grblHAL core  20241107
canbus.c File Reference
#include "hal.h"
#include "task.h"
#include "protocol.h"
#include "canbus.h"

Data Structures

struct  canbus_rx_message
 
struct  canbus_tx_message
 
struct  canbus_tx_buffer_t
 
struct  canbus_rx_buffer_t
 

Macros

#define CANBUS_BUFFER_LEN   8
 
#define CANBUS_BAUDRATE   0
 

Functions

 __attribute__ ((weak))
 
bool canbus_enabled (void)
 
bool canbus_queue_tx (canbus_message_t message, bool ext_id)
 
bool canbus_add_filter (uint32_t id, uint32_t mask, bool ext_id, can_rx_ptr callback)
 
void canbus_init (void)
 

Macro Definition Documentation

◆ CANBUS_BAUDRATE

#define CANBUS_BAUDRATE   0

◆ CANBUS_BUFFER_LEN

#define CANBUS_BUFFER_LEN   8

Function Documentation

◆ __attribute__()

__attribute__ ( (weak)  )

◆ canbus_add_filter()

bool canbus_add_filter ( uint32_t  id,
uint32_t  mask,
bool  ext_id,
can_rx_ptr  callback 
)

◆ canbus_enabled()

bool canbus_enabled ( void  )

◆ canbus_init()

void canbus_init ( void  )

◆ canbus_queue_tx()

bool canbus_queue_tx ( canbus_message_t  message,
bool  ext_id 
)