28 #if (HAL_USE_CAN == TRUE) || defined(__DOXYGEN__) 37 #define CAN_TX_MAILBOXES 1 42 #define CAN_RX_MAILBOXES 1 57 #if !defined(PLATFORM_CAN_USE_CAN1) || defined(__DOXYGEN__) 58 #define PLATFORM_CAN_USE_CAN1 FALSE 80 #if defined(CAN_ENFORCE_USE_CALLBACKS) || defined(__DOXYGEN__) 167 #if (CAN_ENFORCE_USE_CALLBACKS == FALSE) || defined (__DOXYGEN__) 193 #if (CAN_USE_SLEEP_MODE == TRUE) || defined (__DOXYGEN__) 225 #if (CAN_USE_SLEEP_MODE == TRUE) || defined (__DOXYGEN__) 243 #if (PLATFORM_CAN_USE_CAN1 == TRUE) && !defined(__DOXYGEN__) 261 #if CAN_USE_SLEEP_MODE == TRUE event_source_t wakeup_event
Exiting sleep state event.
uint32_t canmbx_t
Type of a transmission mailbox index.
void can_lld_transmit(CANDriver *canp, canmbx_t mailbox, const CANTxFrame *ctfp)
Inserts a frame into the transmit queue.
event_source_t txempty_event
One or more transmission mailbox become available.
event_source_t error_event
A CAN bus error happened.
void can_lld_stop(CANDriver *canp)
Deactivates the CAN peripheral.
canstate_t state
Driver state.
Structure representing an CAN driver.
void can_lld_wakeup(CANDriver *canp)
Enforces leaving the sleep mode.
CANDriver CAND1
CAN1 driver identifier.
void can_lld_receive(CANDriver *canp, canmbx_t mailbox, CANRxFrame *crfp)
Receives a frame from the input queue.
const CANConfig * config
Current configuration data.
void can_lld_sleep(CANDriver *canp)
Enters the sleep mode.
bool can_lld_is_rx_nonempty(CANDriver *canp, canmbx_t mailbox)
Determines whether a frame has been received.
void can_lld_start(CANDriver *canp)
Configures and activates the CAN peripheral.
bool can_lld_is_tx_empty(CANDriver *canp, canmbx_t mailbox)
Determines whether a frame can be transmitted.
void can_lld_init(void)
Low level CAN driver initialization.
Driver configuration structure.
threads_queue_t rxqueue
Receive threads queue.
void(* can_callback_t)(CANDriver *canp, uint32_t flags)
Type of a CAN notification callback.
canstate_t
Driver state machine possible states.
event_source_t rxfull_event
One or more frames become available.
threads_queue_t txqueue
Transmission threads queue.
event_source_t sleep_event
Entering sleep state event.