Utility to send and receive CAN messages.  
More...
 | 
| struct   | msg_link_s | 
|   | This datatype combines a message queue its id and a mask for filtering.  More...
  | 
|   | 
Utility to send and receive CAN messages. 
◆ PRIORITY_TASK
◆ QUEUE_SIZE
◆ SIZE_MAP
◆ STACKSIZE_TASK
      
        
          | #define STACKSIZE_TASK   256 | 
        
      
 
 
◆ msg_link_t
This datatype combines a message queue its id and a mask for filtering. 
 
 
◆ ucan_init()
Initialize the hardware and call each init function  global. 
- Returns
 - True if successful 
 
Definition at line 212 of file ucan.c.
 
 
◆ ucan_link_message_to_queue()
      
        
          | bool ucan_link_message_to_queue  | 
          ( | 
          uint16_t  | 
          message_id,  | 
        
        
           | 
           | 
          QueueHandle_t  | 
          queue  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Link a single message type to a queue  global. 
- Parameters
 - 
  
    | [in] | message_id | Unique integer which serves as id for the queue  | 
    | [in] | queue | FreeRTOS message queue  | 
  
   
- Returns
 - True if successful false if there is not enough space left 
 
Definition at line 202 of file ucan.c.
 
 
◆ ucan_link_message_to_queue_mask()
      
        
          | 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. 
- Parameters
 - 
  
    | [in] | mask | Binary mask for filtering  | 
    | [in] | message_id | Unique integer which serves as id for the queue  | 
    | [in] | queue | FreeRTOS message queue  | 
  
   
- Returns
 - True if successful false if there is not enough space left 
 
Definition at line 178 of file ucan.c.
 
 
◆ ucan_send_data()
      
        
          | 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. 
- Parameters
 - 
  
    | [in] | message_id | Unique integer which serves as id for the queue  | 
    | [in] | n_data_bytes | Size of the payload in bytes  | 
    | [in] | *data | Payload data to transmit  | 
  
   
- Returns
 - True if successful 
 
Definition at line 264 of file ucan.c.