#include <LOW_deviceID.h>
Inheritance diagram for LOW_deviceID:
Public Types | |
typedef std::vector< LOW_deviceID > | deviceIDVec_t |
Vector type of class LOW_deviceID. | |
typedef std::vector< LOW_deviceIDRaw > | deviceIDRawVec_t |
Vector type of class LOW_deviceIDRaw. | |
typedef uint8_t | devRomID_t [8] |
Type of the whole 64 bit ID. | |
typedef uint8_t | devCRC_t |
Type of 8 bit CRC checksum of the whole ID. | |
typedef uint8_t | devSerNum_t [6] |
Type of device individual serial number. | |
typedef uint8_t | devFamCode_t |
Type of device's family code. | |
Public Member Functions | |
LOW_deviceID () | |
Default constructor. | |
LOW_deviceID (const LOW_deviceID &inDeviceID) | |
Copy constructor. | |
LOW_deviceID (const devRomID_t &inRomID) | |
Constructor from ROM ID as our own data type. | |
LOW_deviceID (uint32_t inHighInt, uint32_t inLowInt) | |
Constructor from two 32 bit values. | |
LOW_deviceID (const byteVec_t &inRomID) | |
Constructor from byte vector. | |
LOW_deviceID (const LOW_deviceIDRaw &inDevIDRaw) | |
Constructor from LOW_deviceIDRaw. | |
virtual | ~LOW_deviceID () |
Destructor. | |
virtual bool | operator== (const LOW_deviceIDRaw &inDID) const |
Comparison on the whole 64 bits of ID. | |
virtual bool | operator!= (const LOW_deviceIDRaw &inDID) const |
Comparison on the whole 64 bits of ID. | |
virtual bool | operator< (const LOW_deviceIDRaw &inDID) const |
Comparison on the whole 64 bits of ID. | |
virtual void | getRomID (devRomID_t &outID) const |
Get 64 bit ROM ID as our data type. | |
virtual byteVec_t | getRomIDVec () const |
Get 64 bit ROM ID as byte vector. | |
virtual std::string | getRomIDString () const |
Get 64 bit ROM ID as hex C++ string. | |
virtual devCRC_t | getCRC () const |
Get 8 bit CRC. | |
virtual void | getSerialNum (devSerNum_t &outSerNum) const |
Get 48 bit serial number. | |
virtual devFamCode_t | getFamilyCode () const |
Get 8 bit family code. | |
virtual bool | getBit (uint8_t inBitNum) const |
Get 1 bit from the ID. | |
Protected Attributes | |
devRomID_t | romID |
The lasered ROM ID. | |
Private Member Functions | |
virtual void | checkCRC () |
Validate CRC checksum of the current ROM ID. | |
virtual void | setBit (const uint8_t inBitNum, const bool inValue) |
Hidden method inherited from LOW_deviceIDRaw. | |
virtual void | setFamilyCode (const devFamCode_t inFamCode) |
Hidden method inherited from LOW_deviceIDRaw. |
In contrast to LOW_deviceIDRaw this class prevents manipulation of the ID and a CRC validation is done on creation.
This class is thread-safe.
Definition at line 35 of file LOW_deviceID.h.
|
Type of 8 bit CRC checksum of the whole ID.
Definition at line 67 of file LOW_deviceIDRaw.h. Referenced by LOW_deviceIDRaw::getCRC(). |
|
Type of device's family code.
Definition at line 69 of file LOW_deviceIDRaw.h. Referenced by LOW_devUnknown::getFamilyCode(), LOW_deviceIDRaw::getFamilyCode(), LOW_device::getFamilyCode(), LOW_devDS2890::getFamilyCode(), LOW_devDS2406::getFamilyCode(), LOW_devDS2405::getFamilyCode(), LOW_devDS2401::getFamilyCode(), and LOW_devDS1820::getFamilyCode(). |
|
Vector type of class LOW_deviceIDRaw.
Definition at line 64 of file LOW_deviceIDRaw.h. |
|
Vector type of class LOW_deviceID.
Definition at line 45 of file LOW_deviceID.h. Referenced by LOW_netSegment::cmd_SearchROM(), LOW_netSegment::cmd_SearchROMVerify(), LOW_netSegment::searchDevices(), LOW_linkDS2490::searchDevices(), and LOW_link::searchDevices(). |
|
Type of the whole 64 bit ID.
Definition at line 66 of file LOW_deviceIDRaw.h. Referenced by LOW_netSegment::cmd_ReadROM(), and LOW_linkDS2490::searchDevices(). |
|
Type of device individual serial number.
Definition at line 68 of file LOW_deviceIDRaw.h. |
|
Default constructor.
Definition at line 27 of file LOW_deviceID.cpp. |
|
Copy constructor.
Definition at line 32 of file LOW_deviceID.cpp. References checkCRC(). |
|
Constructor from ROM ID as our own data type.
Definition at line 38 of file LOW_deviceID.cpp. References checkCRC(). |
|
Constructor from two 32 bit values.
Definition at line 44 of file LOW_deviceID.cpp. References checkCRC(). |
|
Constructor from byte vector.
Definition at line 50 of file LOW_deviceID.cpp. References checkCRC(). |
|
Constructor from LOW_deviceIDRaw.
Definition at line 56 of file LOW_deviceID.cpp. References checkCRC(). |
|
Destructor.
Definition at line 63 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 73 of file LOW_deviceID.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, LOW_helper_CRC::calcCRC8(), and LOW_deviceIDRaw::romID. Referenced by LOW_deviceID(). |
|
Get 1 bit from the ID.
Definition at line 190 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, and LOW_deviceIDRaw::romID. Referenced by LOW_linkDS2480B::doSearchSequence(), LOW_link::doSearchSequence(), and LOW_link::searchDevices(). |
|
Get 8 bit CRC.
Definition at line 157 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, LOW_deviceIDRaw::devCRC_t, and LOW_deviceIDRaw::romID. |
|
Get 8 bit family code.
Definition at line 174 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, LOW_deviceIDRaw::devFamCode_t, and LOW_deviceIDRaw::romID. Referenced by LOW_netSegment::getDevice(), LOW_device::LOW_device(), LOW_deviceFactory::new_SpecificDevice(), LOW_linkDS2490::searchDevices(), and LOW_link::searchDevices(). |
|
Get 64 bit ROM ID as our data type.
Definition at line 118 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, and LOW_deviceIDRaw::romID. |
|
Get 64 bit ROM ID as hex C++ string.
Definition at line 140 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, and LOW_deviceIDRaw::romID. |
|
Get 64 bit ROM ID as byte vector.
Definition at line 127 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, byteVec_t, and LOW_deviceIDRaw::romID. Referenced by LOW_netSegment::cmd_MatchROM(), and LOW_linkDS2490::searchDevices(). |
|
Get 48 bit serial number.
Definition at line 165 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, and LOW_deviceIDRaw::romID. |
|
Comparison on the whole 64 bits of ID.
Definition at line 92 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, and LOW_deviceIDRaw::romID. |
|
Comparison on the whole 64 bits of ID.
Definition at line 99 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, and LOW_deviceIDRaw::romID. |
|
Comparison on the whole 64 bits of ID.
Definition at line 82 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, and LOW_deviceIDRaw::romID. |
|
Hidden method inherited from LOW_deviceIDRaw. Declared as private to prevent changes to ROM ID. Reimplemented from LOW_deviceIDRaw. Definition at line 82 of file LOW_deviceID.cpp. |
|
Hidden method inherited from LOW_deviceIDRaw. Declared as private to prevent changes to ROM ID. Reimplemented from LOW_deviceIDRaw. Definition at line 87 of file LOW_deviceID.cpp. |
|