libuav original
Dependents: UAVCAN UAVCAN_Subscriber
CanFrame Struct Reference
Raw CAN frame, as passed to/from the CAN driver. More...
#include <can.hpp>
Inherited by CanRxFrame.
Public Types | |
enum | StringRepresentation { StrTight, StrAligned } |
Public Member Functions | |
bool | priorityHigherThan (const CanFrame &rhs) const |
CAN frame arbitration rules, particularly STD vs EXT: Marco Di Natale - "Understanding and using the Controller Area Network" http://www6.in.tum.de/pub/Main/TeachingWs2013MSE/CANbus.pdf. | |
Data Fields | |
uint32_t | id |
CAN ID with flags (above) | |
uint8_t | dlc |
Data Length Code. | |
Static Public Attributes | |
static const uint32_t | FlagEFF = 1U << 31 |
Extended frame format. | |
static const uint32_t | FlagRTR = 1U << 30 |
Remote transmission request. | |
static const uint32_t | FlagERR = 1U << 29 |
Error frame. |
Detailed Description
Raw CAN frame, as passed to/from the CAN driver.
Definition at line 24 of file include/uavcan/driver/can.hpp.
Member Enumeration Documentation
enum StringRepresentation |
Definition at line 65 of file include/uavcan/driver/can.hpp.
Member Function Documentation
bool priorityHigherThan | ( | const CanFrame & | rhs ) | const |
CAN frame arbitration rules, particularly STD vs EXT: Marco Di Natale - "Understanding and using the Controller Area Network" http://www6.in.tum.de/pub/Main/TeachingWs2013MSE/CANbus.pdf.
Definition at line 19 of file uc_can.cpp.
Field Documentation
uint8_t dlc |
Data Length Code.
Definition at line 36 of file include/uavcan/driver/can.hpp.
const uint32_t FlagEFF = 1U << 31 [static] |
Extended frame format.
Definition at line 28 of file include/uavcan/driver/can.hpp.
const uint32_t FlagERR = 1U << 29 [static] |
Error frame.
Definition at line 30 of file include/uavcan/driver/can.hpp.
const uint32_t FlagRTR = 1U << 30 [static] |
Remote transmission request.
Definition at line 29 of file include/uavcan/driver/can.hpp.
uint32_t id |
CAN ID with flags (above)
Definition at line 34 of file include/uavcan/driver/can.hpp.
Generated on Tue Jul 12 2022 17:17:37 by 1.7.2