MG32F157 Standard Peripherals Firmware Library
Data Fields
CAN_Msg Struct Reference

CAN Message structure definition. More...

#include <mg32f157_can.h>

Data Fields

uint32_t Identifier
 
uint8_t IDType
 
uint8_t FrameType
 
uint8_t DataLength
 
uint8_t Data [8]
 

Detailed Description

CAN Message structure definition.

Field Documentation

◆ Data

uint8_t Data[8]

Contains the data to be transmitted. It ranges from 0 to 0xFF.

◆ DataLength

uint8_t DataLength

Specifies the length of the frame that will be transmitted. This parameter can be a value of CAN_DataLength

◆ FrameType

uint8_t FrameType

Specifies the frame type of the message that will be transmitted. remote frame or data frame. This parameter can be a value of CAN_FrameType

◆ Identifier

uint32_t Identifier

Specifies the identifier. This parameter must be a number between:

  • 0 and 0x7FF, if IdType is CAN_IdType_Standard.
  • 0 and 0x1FFFFFFF, if IdType is CAN_IdType_Extended

◆ IDType

uint8_t IDType

Specifies the identifier type for the message that will be transmitted. etended ID or standard ID. This parameter can be a value of CAN_IDType


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