Libsockcanpp
A complete C++ wrapper around socketcan.
|
Represents a CAN ID in a simple and easy-to-use manner. More...
#include <CanId.hpp>
Public Member Functions | |
CanId (const CanId &orig) | |
CanId (const uint32_t identifier) | |
CanId () | |
operator int16_t () const | |
operator uint16_t () const | |
operator int32_t () const | |
operator uint32_t () const | |
CanId | operator& (CanId &x) const |
CanId | operator& (const CanId x) const |
CanId | operator& (const int16_t x) const |
CanId | operator& (const uint16_t x) const |
CanId | operator& (const int32_t x) const |
CanId | operator& (const uint32_t x) const |
CanId | operator& (const int64_t x) const |
CanId | operator& (const uint64_t x) const |
CanId | operator| (CanId &x) const |
CanId | operator| (const CanId x) const |
CanId | operator| (const int16_t x) const |
CanId | operator| (const uint16_t x) const |
CanId | operator| (const int32_t x) const |
CanId | operator| (const uint32_t x) const |
CanId | operator| (const int64_t x) const |
CanId | operator| (const uint64_t x) const |
bool | operator== (CanId &x) const |
bool | operator== (const CanId &x) const |
bool | operator== (const int16_t x) const |
bool | operator== (const uint16_t x) const |
bool | operator== (const int32_t x) const |
bool | operator== (const uint32_t x) const |
bool | operator== (const int64_t x) const |
bool | operator== (const uint64_t x) const |
bool | operator!= (CanId &x) const |
bool | operator!= (const CanId &x) const |
bool | operator!= (const int16_t x) const |
bool | operator!= (const uint16_t x) const |
bool | operator!= (const int32_t x) const |
bool | operator!= (const uint32_t x) const |
bool | operator!= (const int64_t x) const |
bool | operator!= (const uint64_t x) const |
bool | operator< (CanId &x) const |
bool | operator< (int32_t x) const |
bool | operator< (uint32_t x) const |
bool | operator< (int16_t x) const |
bool | operator< (uint16_t x) const |
bool | operator<= (CanId &x) const |
bool | operator> (CanId &x) const |
bool | operator> (int32_t x) const |
bool | operator> (uint32_t x) const |
bool | operator> (int16_t x) const |
bool | operator> (uint16_t x) const |
bool | operator>= (CanId &x) const |
bool | operator< (const CanId &x) const |
bool | operator<= (const CanId &x) const |
bool | operator> (const CanId &x) const |
bool | operator>= (const CanId &x) const |
CanId | operator= (const int32_t val) |
CanId | operator= (const uint32_t val) |
CanId | operator= (const int64_t val) |
CanId | operator+ (CanId &x) const |
CanId | operator+ (const CanId &x) const |
CanId | operator+ (const int16_t x) const |
CanId | operator+ (const uint16_t x) const |
CanId | operator+ (const int32_t x) const |
CanId | operator+ (const uint32_t x) const |
CanId | operator+ (const int64_t x) const |
CanId | operator+ (const uint64_t x) const |
CanId | operator- (CanId &x) const |
CanId | operator- (const CanId &x) const |
CanId | operator- (const int16_t x) const |
CanId | operator- (const uint16_t x) const |
CanId | operator- (const int32_t x) const |
CanId | operator- (const uint32_t x) const |
CanId | operator- (const int64_t x) const |
CanId | operator- (const uint64_t x) const |
bool | hasErrorFrameFlag () const |
bool | hasRtrFrameFlag () const |
bool | isStandardFrameId () const |
bool | isExtendedFrameId () const |
bool | equals (CanId otherId) const |
Static Public Member Functions | |
static bool | isValidIdentifier (uint32_t value) |
Indicates whether or not a given integer is a valid CAN identifier. More... | |
static bool | isErrorFrame (uint32_t value) |
Indicates whether or not a given integer contains the error frame flag or not. More... | |
static bool | isRemoteTransmissionRequest (uint32_t value) |
Indicates whether the received frame is a remote transmission request. More... | |
Private Attributes | |
bool | _isErrorFrame = false |
bool | _isRemoteTransmissionRequest = false |
bool | _isStandardFrameId = false |
bool | _isExtendedFrameId = false |
uint32_t | _identifier = 0 |
|
inline |
Definition at line 50 of file CanId.hpp.
References _identifier, _isErrorFrame, _isExtendedFrameId, _isRemoteTransmissionRequest, and _isStandardFrameId.
Referenced by sockcanpp::CanDriver::CanDriver(), and sockcanpp::CanMessage::CanMessage().
|
inline |
Definition at line 54 of file CanId.hpp.
References _identifier, _isErrorFrame, _isExtendedFrameId, _isRemoteTransmissionRequest, _isStandardFrameId, isErrorFrame(), isRemoteTransmissionRequest(), and isValidIdentifier().
Referenced by sockcanpp::CanMessage::CanMessage(), and operator=().
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Indicates whether or not a given integer contains the error frame flag or not.
value | The integer to check. |
Definition at line 199 of file CanId.hpp.
Referenced by CanId().
|
inline |
|
inlinestatic |
Indicates whether the received frame is a remote transmission request.
value | The integer to check. |
Definition at line 212 of file CanId.hpp.
Referenced by CanId().
|
inline |
Definition at line 220 of file CanId.hpp.
References _isStandardFrameId.
Referenced by operator int16_t(), and operator uint16_t().
|
inlinestatic |
Indicates whether or not a given integer is a valid CAN identifier.
value | The integer to check. |
Definition at line 179 of file CanId.hpp.
Referenced by CanId(), and operator=().
|
inline |
Definition at line 73 of file CanId.hpp.
References _identifier, and isStandardFrameId().
|
inline |
|
inline |
Definition at line 74 of file CanId.hpp.
References _identifier, and isStandardFrameId().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 136 of file CanId.hpp.
References CanId(), and isValidIdentifier().
Referenced by operator=().
|
inline |
|
inline |
Definition at line 142 of file CanId.hpp.
References CanId(), and isValidIdentifier().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 232 of file CanId.hpp.
Referenced by CanId(), operator int16_t(), operator int32_t(), operator uint16_t(), operator uint32_t(), operator!=(), operator&(), operator+(), operator-(), operator<(), operator<=(), operator==(), operator>(), operator>=(), and operator|().
|
private |
Definition at line 227 of file CanId.hpp.
Referenced by CanId(), and hasErrorFrameFlag().
|
private |
Definition at line 230 of file CanId.hpp.
Referenced by CanId(), and isExtendedFrameId().
|
private |
Definition at line 228 of file CanId.hpp.
Referenced by CanId(), and hasRtrFrameFlag().
|
private |
Definition at line 229 of file CanId.hpp.
Referenced by CanId(), and isStandardFrameId().