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

Timestamped frame producer from the CAN RX callback. More...

#include <string.h>
#include "can_library/generated/MCAN.h"
#include "can_library/generated/SCAN.h"
#include "can_library/generated/VCAN.h"
#include "phal_F4/can/can.h"
#include "rtos/rtos.h"
#include "timestamped_frame/timestamped_frame.h"
#include "rtc_sync.h"
#include "spmc.h"
Include dependency graph for can_callback.c:

Functions

static uint32_t get_bus_id (CAN_TypeDef *peripheral)
 
void PHAL_CAN_rxCallback (CanMsgTypeDef_t *msg)
 

Variables

volatile uint32_t last_can_rx_time_ms = 0
 

Detailed Description

Timestamped frame producer from the CAN RX callback.

Author
Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)
Millan Kumar (kumar.nosp@m.798@.nosp@m.purdu.nosp@m.e.ed.nosp@m.u)

Function Documentation

◆ get_bus_id()

static uint32_t get_bus_id ( CAN_TypeDef * peripheral)
inlinestatic

◆ PHAL_CAN_rxCallback()

void PHAL_CAN_rxCallback ( CanMsgTypeDef_t * msg)
Here is the call graph for this function:

Variable Documentation

◆ last_can_rx_time_ms

volatile uint32_t last_can_rx_time_ms = 0