Common CAN RX queue, task, and callback handling.
More...
#include "can_library/can_common.h"
#include "can_library/generated/can_router.h"
Common CAN RX queue, task, and callback handling.
- Author
- Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)
◆ CAN_rx_init()
| void CAN_rx_init |
( |
void | | ) |
|
◆ CAN_rx_update()
| void CAN_rx_update |
( |
void | | ) |
|
◆ PHAL_FDCAN_rxCallback()
Weak callback fired once per received frame.
Called from FDCANx_IT0_IRQHandler (interrupt context) for every frame popped from RX FIFO0.
Default implementation does nothing.
- Parameters
-
| msg | the received frame (valid only for the duration of the call) |
◆ RTOS_DEFINE_QUEUE()
◆ can_data
| volatile can_data_t can_data |
◆ last_can_rx_time_ms
| volatile uint32_t last_can_rx_time_ms |