U.B.O.R
The [U]seless [B]ox [O]rganizing [R]obot. A FreeRTOS study project written in C which implements a multitasked control unit for a belt conveyor system with robotic sorting arms.
Data Structures | Macros | Typedefs | Functions
ucan.c File Reference
#include "ucan.h"
Include dependency graph for ucan.c:

Go to the source code of this file.

Data Structures

struct  msg_link_s
 This datatype combines a message queue its id and a mask for filtering. More...
 

Macros

#define SIZE_MAP   100
 
#define QUEUE_SIZE   10
 
#define STACKSIZE_TASK   256
 
#define PRIORITY_TASK   2
 

Typedefs

typedef struct msg_link_s msg_link_t
 This datatype combines a message queue its id and a mask for filtering. More...
 

Functions

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. More...
 
bool ucan_link_message_to_queue (uint16_t message_id, QueueHandle_t queue)
 Link a single message type to a queue global. More...
 
bool ucan_init (void)
 Initialize the hardware and call each init function global. More...
 
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. More...