PER Firmware
Loading...
Searching...
No Matches
CanMsgTypeDef_t Struct Reference

Classic CAN frame. More...

#include <can.h>

Public Attributes

CAN_TypeDef * Bus
 
bool IDE
 
union { 
 
   uint16_t   StdId 
 
   uint32_t   ExtId 
 
};  
 
uint8_t DLC
 
uint8_t Data [8]
 
FDCAN_GlobalTypeDef * Bus
 
union { 
 
   uint16_t   StdId 
 
   uint32_t   ExtId 
 
};  
 

Detailed Description

Classic CAN frame.

used for both TX and RX.

Member Data Documentation

◆ [union]

union { ... } CanMsgTypeDef_t

◆ [union]

union { ... } CanMsgTypeDef_t

◆ Bus [1/2]

CAN_TypeDef* CanMsgTypeDef_t::Bus

When RX - Bus = which peripheral the frame arrived on When TX - Bus = which peripheral should transmits it

◆ Bus [2/2]

FDCAN_GlobalTypeDef* CanMsgTypeDef_t::Bus

When RX - Bus = which peripheral the frame arrived on When TX - Bus = which peripheral should transmits it

◆ Data

uint8_t CanMsgTypeDef_t::Data

payload bytes

◆ DLC

uint8_t CanMsgTypeDef_t::DLC

payload length, 0-8

◆ ExtId

uint32_t CanMsgTypeDef_t::ExtId

valid when IDE, 29-bit

◆ IDE

bool CanMsgTypeDef_t::IDE

true = extended ID, false = standard ID

◆ StdId

uint16_t CanMsgTypeDef_t::StdId

valid when !IDE, 11-bit


The documentation for this struct was generated from the following files: