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

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

#include "can_library/can_common.h"
#include "can_library/generated/can_router.h"
Include dependency graph for can_tx.c:

Macros

#define CAN_BUS_TYPE   FDCAN_GlobalTypeDef
 
#define PHAL_TX_CALLBACK   PHAL_FDCAN_txCallback
 

Functions

void CAN_tx_init (void)
 
static void CAN_enqueue_tx_to_queue (QueueHandle_t queue, CanMsgTypeDef_t *msg)
 
static void CAN_wake_tx_from_ISR (void)
 
void CAN_tx_update (void)
 
void PHAL_TX_CALLBACK (CAN_BUS_TYPE *bus)
 

Variables

TaskHandle_t CAN_tx_update_handle
 
volatile can_stats_t can_stats
 

Detailed Description

Common CAN TX queue, task, and callback handling.

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

Macro Definition Documentation

◆ CAN_BUS_TYPE

#define CAN_BUS_TYPE   FDCAN_GlobalTypeDef

◆ PHAL_TX_CALLBACK

#define PHAL_TX_CALLBACK   PHAL_FDCAN_txCallback

Function Documentation

◆ 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 )
Here is the caller graph for this function:

◆ CAN_tx_update()

void CAN_tx_update ( void )

◆ CAN_wake_tx_from_ISR()

static void CAN_wake_tx_from_ISR ( void )
inlinestatic
Here is the caller graph for this function:

◆ PHAL_TX_CALLBACK()

void PHAL_TX_CALLBACK ( CAN_BUS_TYPE * bus)
Here is the call graph for this function:

Variable Documentation

◆ can_stats

volatile can_stats_t can_stats

◆ CAN_tx_update_handle

TaskHandle_t CAN_tx_update_handle
extern