uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CAN_MSG_Type Struct Reference

CAN message object structure. More...

#include <lpc17xx_can.h>

Public Attributes

uint32_t id
 
uint8_t dataA [4]
 
uint8_t dataB [4]
 
uint8_t len
 
uint8_t format
 
uint8_t type
 

Detailed Description

CAN message object structure.

Definition at line 678 of file lpc17xx_can.h.

Member Data Documentation

uint8_t CAN_MSG_Type::dataA[4]

Data field A

Definition at line 683 of file lpc17xx_can.h.

uint8_t CAN_MSG_Type::dataB[4]

Data field B

Definition at line 684 of file lpc17xx_can.h.

uint8_t CAN_MSG_Type::format

Identifier Format, should be:

  • STD_ID_FORMAT: Standard ID - 11 bit format
  • EXT_ID_FORMAT: Extended ID - 29 bit format

Definition at line 689 of file lpc17xx_can.h.

uint32_t CAN_MSG_Type::id

29 bit identifier, it depend on "format" value

  • if format = STD_ID_FORMAT, id should be 11 bit identifier
  • if format = EXT_ID_FORMAT, id should be 29 bit identifier

Definition at line 679 of file lpc17xx_can.h.

uint8_t CAN_MSG_Type::len

Length of data field in bytes, should be:

  • 0000b-0111b: 0-7 bytes
  • 1xxxb: 8 bytes

Definition at line 685 of file lpc17xx_can.h.

uint8_t CAN_MSG_Type::type

Remote Frame transmission, should be:

  • DATA_FRAME: the number of data bytes called out by the DLC field are send from the CANxTDA and CANxTDB registers
  • REMOTE_FRAME: Remote Frame is sent

Definition at line 693 of file lpc17xx_can.h.


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