#include <interface.h>
|
unsigned int | id:29 |
| CAN ID (11 or 29 bits valid, depending on is_extended member. More...
|
|
unsigned int | is_error:1 |
| marks an error frame (only used internally) More...
|
|
unsigned int | is_extended:1 |
| frame uses 29 bit CAN identifier More...
|
|
unsigned int | is_rtr:1 |
| frame is a remote transfer request More...
|
|
|
static const unsigned int | ERROR_MASK = (1u << 29) |
|
static const unsigned int | EXTENDED_MASK = (1u << 31) |
|
static const unsigned int | ID_MASK = (1u << 29)-1 |
|
static const unsigned int | RTR_MASK = (1u << 30) |
|
Header for CAN id an meta data
Definition at line 17 of file interface.h.
◆ Header() [1/2]
constructor with default parameters
- Parameters
-
[in] | i | CAN id, defaults to 0 |
[in] | extended | uses 29 bit identifier, defaults to false |
[in] | rtr | is rtr frame, defaults to false |
Definition at line 41 of file interface.h.
◆ Header() [2/2]
can::Header::Header |
( |
unsigned int |
i, |
|
|
bool |
extended, |
|
|
bool |
rtr, |
|
|
bool |
error |
|
) |
| |
|
inline |
◆ fullid()
unsigned int can::Header::fullid |
( |
| ) |
const |
|
inline |
◆ isValid()
bool can::Header::isValid |
( |
| ) |
const |
|
inline |
check if frame header is valid
Definition at line 28 of file interface.h.
◆ key()
unsigned int can::Header::key |
( |
| ) |
const |
|
inline |
◆ operator unsigned int()
can::Header::operator unsigned int |
( |
| ) |
const |
|
inlineexplicit |
◆ ERROR_MASK
const unsigned int can::Header::ERROR_MASK = (1u << 29) |
|
static |
◆ EXTENDED_MASK
const unsigned int can::Header::EXTENDED_MASK = (1u << 31) |
|
static |
◆ id
unsigned int can::Header::id |
CAN ID (11 or 29 bits valid, depending on is_extended member.
Definition at line 23 of file interface.h.
◆ ID_MASK
const unsigned int can::Header::ID_MASK = (1u << 29)-1 |
|
static |
◆ is_error
unsigned int can::Header::is_error |
marks an error frame (only used internally)
Definition at line 24 of file interface.h.
◆ is_extended
unsigned int can::Header::is_extended |
frame uses 29 bit CAN identifier
Definition at line 26 of file interface.h.
◆ is_rtr
unsigned int can::Header::is_rtr |
frame is a remote transfer request
Definition at line 25 of file interface.h.
◆ RTR_MASK
const unsigned int can::Header::RTR_MASK = (1u << 30) |
|
static |
The documentation for this struct was generated from the following file: