12 #include <stm32f4xx.h> 22 #define UCAN_LOG_SENT 0 23 #define UCAN_LOG_SENDING 0 24 #define UCAN_LOG_RECEIVE 0 25 #define UCAN_LOG_DISPATCH 0 26 #define UCAN_LOG_DROP 0 28 #define LOG_IF(cond,...) do{ if(cond) display_log(__VA_ARGS__); } while(false) // Write to log using loglevels 34 bool ucan_send_data(uint8_t n_data_bytes, uint16_t msg_id,
const uint8_t *data);
bool ucan_init(void)
Initialize the hardware and call each init function global.
bool ucan_link_message_to_queue(uint16_t message_id, QueueHandle_t queue)
Link a single message type to a queue global.
bool ucan_send_data(uint8_t n_data_bytes, uint16_t msg_id, const uint8_t *data)
Send data to the can output message queue global.
bool ucan_link_message_to_queue_mask(uint16_t mask, uint16_t message_id, QueueHandle_t queue)
Set a message mask to map multiple message to a queue global.