can_data_t Union Reference

#include <can.h>

Data Fields

uint64_t qword
 All 64-bits of data of a CAN message. More...
 
uint32_t dwords [2]
 dwords[0] = Byte 0-3, dwords[1] = Byte 4-7 More...
 
uint16_t words [4]
 words[0] = Byte 0-1 ... words[3] = Byte 6-7 More...
 
uint8_t bytes [8]
 8 bytes of a CAN message More...
 

Detailed Description

8-byte structure accessible by 8-bit, 16-bit, 32-bit or as whole 64-bit DO NOT CHANGE THIS STRUCTURE - it maps to the hardware

Field Documentation

uint8_t can_data_t::bytes[8]

8 bytes of a CAN message

uint32_t can_data_t::dwords[2]

dwords[0] = Byte 0-3, dwords[1] = Byte 4-7

uint64_t can_data_t::qword

All 64-bits of data of a CAN message.

uint16_t can_data_t::words[4]

words[0] = Byte 0-1 ... words[3] = Byte 6-7


The documentation for this union was generated from the following file:
  • /var/www/html/SJSU-DEV-Linux/firmware/default/lib/L2_Drivers/can.h