Common CAN TX queue, task, and callback handling.
More...
#include "can_library/can_common.h"
#include "can_library/generated/can_router.h"
Common CAN TX queue, task, and callback handling.
- Author
- Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)
◆ CAN_drain_tx_bus()
| static void CAN_drain_tx_bus |
( |
const FDCAN_GlobalTypeDef * | bus, |
|
|
QueueHandle_t | tx_queue ) |
|
static |
◆ CAN_enqueue_tx_to_queue()
| static void CAN_enqueue_tx_to_queue |
( |
QueueHandle_t | queue, |
|
|
CanMsgTypeDef_t * | msg ) |
|
static |
◆ CAN_tx_init()
| void CAN_tx_init |
( |
void | | ) |
|
◆ CAN_tx_update()
| void CAN_tx_update |
( |
void | | ) |
|
◆ CAN_wake_tx_from_ISR()
| static void CAN_wake_tx_from_ISR |
( |
void | | ) |
|
|
inlinestatic |
◆ PHAL_FDCAN_txCallback()
| void PHAL_FDCAN_txCallback |
( |
FDCAN_GlobalTypeDef * | fdcan | ) |
|
Weak callback fired when a queued frame finishes transmitting.
Called from FDCANx_IT1_IRQHandler (interrupt context).
Default implementation does nothing.
- Parameters
-
| fdcan | the peripheral instance that completed a transmission |
◆ can_stats
◆ CAN_tx_update_handle
| TaskHandle_t CAN_tx_update_handle |
|
extern |