PER Firmware
Loading...
Searching...
No Matches
can_tx.c File Reference

Common CAN TX queue, task, and callback handling. More...

#include "can_common.h"
#include "generated/can_router.h"

Macros

#define CAN_BUS_TYPE   FDCAN_GlobalTypeDef
 
#define PHAL_TX_CALLBACK   PHAL_FDCAN_txCallback
 

Functions

void CAN_tx_init (void)
 
void CAN_enqueue_tx (CanMsgTypeDef_t *msg)
 
void CAN_tx_update (void)
 
void PHAL_TX_CALLBACK (CAN_BUS_TYPE *bus)
 

Variables

osThreadId_t CAN_tx_update_handle
 
volatile can_stats_t can_stats
 
QueueHandle_t can_tx_queues [CAN_NUM_PERIPHERALS]
 

Detailed Description

Common CAN TX queue, task, and callback handling.

Author
Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)