#include <LOW_deviceID.h>
Inheritance diagram for LOW_deviceID:
Public Types | |
typedef std::vector< LOW_deviceID > | deviceIDVec_t |
Vector type of class LOW_deviceID. More... | |
typedef std::vector< LOW_deviceIDRaw > | deviceIDRawVec_t |
Vector type of class LOW_deviceIDRaw. More... | |
typedef uint8_t | devRomID_t [8] |
Type of the whole 64 bit ID. More... | |
typedef uint8_t | devCRC_t |
Type of 8 bit CRC checksum of the whole ID. More... | |
typedef uint8_t | devSerNum_t [6] |
Type of device individual serial number. More... | |
typedef uint8_t | devFamCode_t |
Type of device's family code. More... | |
Public Methods | |
LOW_deviceID () | |
Default constructor. More... | |
LOW_deviceID (const devRomID_t &inRomID) | |
Constructor from ROM ID as our own data type. More... | |
LOW_deviceID (uint32_t inHighInt, uint32_t inLowInt) | |
Constructor from two 32 bit values. More... | |
LOW_deviceID (const byteVec_t &inRomID) | |
Constructor from byte vector. More... | |
LOW_deviceID (const LOW_deviceIDRaw &inDevIDRaw) | |
Constructor from LOW_deviceIDRaw. More... | |
~LOW_deviceID () | |
Destructor. More... | |
bool | operator== (const LOW_deviceIDRaw &inDID) const |
Comparison on the whole 64 bits of ID. More... | |
bool | operator!= (const LOW_deviceIDRaw &inDID) const |
Comparison on the whole 64 bits of ID. More... | |
bool | operator< (const LOW_deviceIDRaw &inDID) const |
Comparison on the whole 64 bits of ID. More... | |
void | getRomID (devRomID_t &outID) const |
Get 64 bit ROM ID as our data type. More... | |
byteVec_t | getRomIDVec () const |
Get 64 bit ROM ID as byte vector. More... | |
std::string | getRomIDString () const |
Get 64 bit ROM ID as hex C++ string. More... | |
devCRC_t | getCRC () const |
Get 8 bit CRC. More... | |
void | getSerialNum (devSerNum_t &outSerNum) const |
Get 48 bit serial number. More... | |
devFamCode_t | getFamilyCode () const |
Get 8 bit family code. More... | |
bool | getBit (uint8_t inBitNum) const |
Get 1 bit from the ID. More... | |
Protected Attributes | |
devRomID_t | romID |
The lasered ROM ID. More... | |
Private Methods | |
void | checkCRC () |
Validate CRC checksum of the current ROM ID. More... | |
void | setBit (const uint8_t inBitNum, const bool inValue) |
Hidden method inherited from LOW_deviceIDRaw. More... | |
void | setFamilyCode (const devFamCode_t inFamCode) |
Hidden method inherited from LOW_deviceIDRaw. More... |
In contrast to LOW_deviceIDRaw this class prevents manipulation of the ID and a CRC validation is done on creation.
Definition at line 33 of file LOW_deviceID.h.
|
Type of 8 bit CRC checksum of the whole ID.
Definition at line 64 of file LOW_deviceIDRaw.h. Referenced by LOW_deviceIDRaw::getCRC(). |
|
Type of device's family code.
Definition at line 66 of file LOW_deviceIDRaw.h. Referenced by LOW_netSegment::cmd_SearchROM(), LOW_deviceIDRaw::getFamilyCode(), LOW_device::LOW_device(), and LOW_deviceFactory::registerSpecificCtor(). |
|
Vector type of class LOW_deviceIDRaw.
Definition at line 61 of file LOW_deviceIDRaw.h. |
|
Vector type of class LOW_deviceID.
Definition at line 43 of file LOW_deviceID.h. Referenced by LOW_netSegment::cmd_SearchROM(), and LOW_netSegment::searchDevices(). |
|
Type of the whole 64 bit ID.
Definition at line 63 of file LOW_deviceIDRaw.h. Referenced by LOW_netSegment::cmd_ReadROM(). |
|
Type of device individual serial number.
Definition at line 65 of file LOW_deviceIDRaw.h. Referenced by LOW_IPCKeyGenerator_SysV::getSemSetKey(). |
|
Default constructor.
Definition at line 27 of file LOW_deviceID.cpp. |
|
Constructor from ROM ID as our own data type.
Definition at line 32 of file LOW_deviceID.cpp. References checkCRC(). |
|
Constructor from two 32 bit values.
Definition at line 38 of file LOW_deviceID.cpp. References checkCRC(). |
|
Constructor from byte vector.
Definition at line 44 of file LOW_deviceID.cpp. |
|
Constructor from LOW_deviceIDRaw.
Definition at line 50 of file LOW_deviceID.cpp. References checkCRC(). |
|
Destructor.
Definition at line 57 of file LOW_deviceID.cpp. |
|
Validate CRC checksum of the current ROM ID. Returns silently when CRC is OK, else an exception is thrown.
Definition at line 67 of file LOW_deviceID.cpp. References LOW_helper_CRC::calcCRC8(), and LOW_deviceIDRaw::romID. Referenced by LOW_deviceID(). |
|
Get 1 bit from the ID.
Definition at line 163 of file LOW_deviceIDRaw.cpp. References LOW_deviceIDRaw::romID. Referenced by LOW_netSegment::cmd_SearchROM(), LOW_linkPassiveSerial::doSearchSequence(), and LOW_linkDS2480B::doSearchSequence(). |
|
Get 8 bit CRC.
Definition at line 138 of file LOW_deviceIDRaw.cpp. References LOW_deviceIDRaw::devCRC_t, and LOW_deviceIDRaw::romID. |
|
Get 8 bit family code.
Definition at line 151 of file LOW_deviceIDRaw.cpp. References LOW_deviceIDRaw::devFamCode_t, and LOW_deviceIDRaw::romID. Referenced by LOW_netSegment::cmd_SearchROM(), LOW_netSegment::getDevice(), LOW_device::LOW_device(), and LOW_deviceFactory::new_SpecificDevice(). |
|
Get 64 bit ROM ID as our data type.
Definition at line 105 of file LOW_deviceIDRaw.cpp. References LOW_deviceIDRaw::romID. |
|
Get 64 bit ROM ID as hex C++ string.
Definition at line 123 of file LOW_deviceIDRaw.cpp. References LOW_deviceIDRaw::romID. |
|
Get 64 bit ROM ID as byte vector.
Definition at line 112 of file LOW_deviceIDRaw.cpp. References byteVec_t, and LOW_deviceIDRaw::romID. Referenced by LOW_netSegment::cmd_MatchROM(). |
|
Get 48 bit serial number.
Definition at line 144 of file LOW_deviceIDRaw.cpp. References LOW_deviceIDRaw::romID. Referenced by LOW_IPCKeyGenerator_SysV::getSemSetKey(). |
|
Comparison on the whole 64 bits of ID.
Definition at line 83 of file LOW_deviceIDRaw.cpp. References LOW_deviceIDRaw::romID. |
|
Comparison on the whole 64 bits of ID.
Definition at line 88 of file LOW_deviceIDRaw.cpp. References LOW_deviceIDRaw::romID. |
|
Comparison on the whole 64 bits of ID.
Definition at line 75 of file LOW_deviceIDRaw.cpp. References LOW_deviceIDRaw::romID. |
|
Hidden method inherited from LOW_deviceIDRaw. Declared as private to prevent changes to ROM ID. Reimplemented from LOW_deviceIDRaw. |
|
Hidden method inherited from LOW_deviceIDRaw. Declared as private to prevent changes to ROM ID. Reimplemented from LOW_deviceIDRaw. |
|
The lasered ROM ID.
Definition at line 174 of file LOW_deviceIDRaw.h. Referenced by checkCRC(), LOW_deviceIDRaw::getBit(), LOW_deviceIDRaw::getCRC(), LOW_deviceIDRaw::getFamilyCode(), LOW_deviceIDRaw::getRomID(), LOW_deviceIDRaw::getRomIDString(), LOW_deviceIDRaw::getRomIDVec(), LOW_deviceIDRaw::getSerialNum(), LOW_deviceIDRaw::LOW_deviceIDRaw(), LOW_deviceIDRaw::operator!=(), LOW_deviceIDRaw::operator<(), LOW_deviceIDRaw::operator==(), LOW_deviceIDRaw::setBit(), and LOW_deviceIDRaw::setFamilyCode(). |