CAN_MessageObject_TypeDef Struct Reference

CAN Message Object TypeDef structure.

#include <em_can.h>

Data Fields

uint8_t msgNum
A message number of this Message Object, [1 - 32].
bool extended
ID extended if true, standard if false.
uint32_t id
ID of the message with 11 bits (standard) or 28 bits (extended).
uint8_t dlc
Data Length Code [0 - 8].
uint8_t data [8]
A pointer to data, [0 - 8] bytes.
uint32_t mask
A mask for ID filtering.
bool extendedMask
Enable the use of 'extended' value for filtering.
bool directionMask
Enable the use of 'direction' value for filtering.

CAN Message Object TypeDef structure.

LSBs is used.

Field Documentation

msgNum

uint8_t CAN_MessageObject_TypeDef::msgNum

A message number of this Message Object, [1 - 32].

extended

bool CAN_MessageObject_TypeDef::extended

ID extended if true, standard if false.


id

uint32_t CAN_MessageObject_TypeDef::id

ID of the message with 11 bits (standard) or 28 bits (extended).

LSBs are used for both.

dlc

uint8_t CAN_MessageObject_TypeDef::dlc

Data Length Code [0 - 8].


data

uint8_t CAN_MessageObject_TypeDef::data[8]

A pointer to data, [0 - 8] bytes.


mask

uint32_t CAN_MessageObject_TypeDef::mask

A mask for ID filtering.

extendedMask

bool CAN_MessageObject_TypeDef::extendedMask

Enable the use of 'extended' value for filtering.

directionMask

bool CAN_MessageObject_TypeDef::directionMask

Enable the use of 'direction' value for filtering.