NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

CAN_MSG_Type Struct Reference

CAN_MSG_Type Struct Reference
[CAN_Public_Types]

CAN message object structure. More...

#include <lpc17xx_can.h>

Data Fields

uint32_t 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

uint8_t dataA [4]
 Data field A.
uint8_t dataB [4]
 Data field B.
uint8_t len
 Length of data field in bytes, should be:

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

uint8_t format
 Identifier Format, should be:

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

uint8_t 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.


Detailed Description

CAN message object structure.

Definition at line 588 of file lpc17xx_can.h.


Field Documentation

uint8_t dataA[4]

Data field A.

Definition at line 593 of file lpc17xx_can.h.

uint8_t dataB[4]

Data field B.

Definition at line 594 of file lpc17xx_can.h.

uint8_t format

Identifier Format, should be:

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

Definition at line 599 of file lpc17xx_can.h.

uint32_t 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 589 of file lpc17xx_can.h.

uint8_t len

Length of data field in bytes, should be:

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

Definition at line 595 of file lpc17xx_can.h.

uint8_t 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 603 of file lpc17xx_can.h.