#include <LOW_deviceIDRaw.h>
Inheritance diagram for LOW_deviceIDRaw:
Public Types | |
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_deviceIDRaw () | |
Default constructor. | |
LOW_deviceIDRaw (const LOW_deviceIDRaw &inDeviceIDRaw) | |
Copy constructor. | |
LOW_deviceIDRaw (const devRomID_t &inRomID) | |
Constructor from ROM ID as our own data type. | |
LOW_deviceIDRaw (uint32_t inHighInt, uint32_t inLowInt) | |
Constructor from two 32 bit values. | |
LOW_deviceIDRaw (const byteVec_t &inRomID) | |
Constructor from byte vector. | |
virtual | ~LOW_deviceIDRaw () |
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 void | setFamilyCode (const devFamCode_t inFamCode) |
Set 8 bit family code. | |
virtual bool | getBit (uint8_t inBitNum) const |
Get 1 bit from the ID. | |
virtual void | setBit (const uint8_t inBitNum, const bool inValue) |
Set 1 bit in the ID. | |
Protected Attributes | |
devRomID_t | romID |
The lasered ROM ID. |
In contrast to LOW_deviceID this class allows manipulation of the ID. Furthermore no CRC validation is done on creation.
This class is thread-safe.
Definition at line 37 of file LOW_deviceIDRaw.h.
|
Type of 8 bit CRC checksum of the whole ID.
Definition at line 67 of file LOW_deviceIDRaw.h. Referenced by getCRC(). |
|
Type of device's family code.
Definition at line 69 of file LOW_deviceIDRaw.h. Referenced by LOW_devUnknown::getFamilyCode(), 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. |
|
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 30 of file LOW_deviceIDRaw.cpp. References romID. |
|
Copy constructor.
Definition at line 36 of file LOW_deviceIDRaw.cpp. References romID. |
|
Constructor from ROM ID as our own data type. Note: No CRC validation is done.
Definition at line 43 of file LOW_deviceIDRaw.cpp. References romID. |
|
Constructor from two 32 bit values. Note: No CRC validation is done.
Definition at line 50 of file LOW_deviceIDRaw.cpp. References romID. |
|
Constructor from byte vector. Note: No CRC validation is done.
Definition at line 62 of file LOW_deviceIDRaw.cpp. References romID. |
|
Destructor.
Definition at line 72 of file LOW_deviceIDRaw.cpp. |
|
Get 1 bit from the ID.
Definition at line 190 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, and 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__, devCRC_t, and romID. |
|
Get 8 bit family code.
Definition at line 174 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, devFamCode_t, and 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 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 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 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 romID. |
|
Comparison on the whole 64 bits of ID.
Definition at line 92 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, and romID. |
|
Comparison on the whole 64 bits of ID.
Definition at line 99 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, and romID. |
|
Comparison on the whole 64 bits of ID.
Definition at line 82 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_READ__, and romID. |
|
Set 1 bit in the ID.
Reimplemented in LOW_deviceID. Definition at line 201 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_WRITE__, and romID. Referenced by LOW_linkDS2480B::doSearchSequence(), LOW_link::doSearchSequence(), and LOW_link::searchDevices(). |
|
Set 8 bit family code.
Reimplemented in LOW_deviceID. Definition at line 182 of file LOW_deviceIDRaw.cpp. References __LOW_SYNCHRONIZE_METHOD_WRITE__, and romID. Referenced by LOW_linkDS2490::searchDevices(), and LOW_link::searchDevices(). |
|
The lasered ROM ID.
Definition at line 180 of file LOW_deviceIDRaw.h. Referenced by LOW_deviceID::checkCRC(), getBit(), getCRC(), getFamilyCode(), getRomID(), getRomIDString(), getRomIDVec(), getSerialNum(), LOW_deviceIDRaw(), operator!=(), operator<(), operator==(), setBit(), and setFamilyCode(). |