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:

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)
 
static void CAN_drain_tx_bus (const FDCAN_GlobalTypeDef *bus, QueueHandle_t tx_queue)
 
void CAN_tx_update (void)
 
void PHAL_FDCAN_txCallback (FDCAN_GlobalTypeDef *bus)
 Weak callback fired when a queued frame finishes transmitting.
 

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)

Function Documentation

◆ CAN_drain_tx_bus()

static void CAN_drain_tx_bus ( const FDCAN_GlobalTypeDef * bus,
QueueHandle_t tx_queue )
static
Here is the call graph for this function:
Here is the caller graph for this function:

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

◆ CAN_wake_tx_from_ISR()

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

◆ 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
fdcanthe peripheral instance that completed a transmission
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