PDCP  1.0
Interface for Upper-Limb Prosthetics
Enumerator | Functions | Variables
CAN Public Functions

Functions

void CAN_InterfaceInit ()
void CAN_InterfaceDeInit ()
void CAN_SendMsg ()
void CAN_ReceiveMsg ()

Variables

uint32_t CAN_MSG_Type::id
uint8_t CAN_MSG_Type::dataA [4]
uint8_t CAN_MSG_Type::dataB [4]
uint8_t CAN_MSG_Type::len
uint8_t CAN_MSG_Type::format
uint8_t CAN_MSG_Type::type
uint8_t temporaryProduct::size

Variable Documentation

uint8_t CAN_MSG_Type::dataA[4]

Data field A

uint8_t CAN_MSG_Type::dataB[4]

Data field B

Identifier Format, should be:

  • STD_ID_FORMAT: Standard ID - 11 bit format
  • EXT_ID_FORMAT: Extended ID - 29 bit format
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

Length of data field in bytes, should be:

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

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
 All Classes Files Variables Enumerations Enumerator Defines