grblHAL core  20241107
canbus.h File Reference
#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  canbus_message_t
 

Typedefs

typedef bool(* can_rx_ptr) (canbus_message_t)
 
typedef bool(* can_rx_enqueue_fn) (canbus_message_t msg, can_rx_ptr callback)
 

Functions

void canbus_init (void)
 
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)
 

Typedef Documentation

◆ can_rx_enqueue_fn

typedef bool(* can_rx_enqueue_fn) (canbus_message_t msg, can_rx_ptr callback)

◆ can_rx_ptr

typedef bool(* can_rx_ptr) (canbus_message_t)

Function Documentation

◆ 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 
)