|
abstract byte[] | Read () |
| Reads this sensor's value. More...
|
|
abstract void | Initialize (OneWire.Configuration.OneWireDeviceConfig config) |
| Lets individual sensor implementations do routines to put the sensor in its expected state, such as setting the number of bits to resolve temperature readings. Some (many?) sensors will create a no-op method for this message. More...
|
|
override string | ToString () |
|
|
static OneWireDevice | Create (int port, OneWireDeviceConfig config) |
| Factory method for getting specific 1-Wire device implementations that encapsulate their own communications routines by device type, by using configuration object. More...
|
|
static OneWireDevice | Create (int port, byte[] serialNum) |
| Factory method for getting specific 1-Wire device implementations that encapsulate their own communications routines by device type. More...
|
|
static OneWireDevice | Create (int port, ulong serialNum) |
|
static ulong | DecodeSn (byte[] sn) |
|
static string | GetIdentifier (ulong sn) |
|
|
| OneWireDevice (int port, byte[] serialNumberBuf, owApi.FamilyCodes fc) |
| Creates a new 1-Wire device instance and associates it to the port. More...
|
|
◆ OneWireDevice()
Apac.Dallas.OneWire.OneWireDevice.OneWireDevice |
( |
int |
port, |
|
|
byte[] |
serialNumberBuf, |
|
|
owApi.FamilyCodes |
fc |
|
) |
| |
|
inlineprotected |
Creates a new 1-Wire device instance and associates it to the port.
- Parameters
-
port | A System.Int32 for the port through which this device is to be communicated. |
serialNumberBuf | A System.Byte[] containing the raw data of 1-Wire unique identifier. |
◆ Create() [1/2]
static OneWireDevice Apac.Dallas.OneWire.OneWireDevice.Create |
( |
int |
port, |
|
|
byte[] |
serialNum |
|
) |
| |
|
inlinestatic |
Factory method for getting specific 1-Wire device implementations that encapsulate their own communications routines by device type.
- Parameters
-
port | The port used to connect to the device. |
serialNum | The System.Byte[] holding the discovered device identifier. |
- Returns
- Returns a OneWireDevice subclass appropriate for family code in the provided serial number or
null
if no match is found.
◆ Create() [2/2]
Factory method for getting specific 1-Wire device implementations that encapsulate their own communications routines by device type, by using configuration object.
- Parameters
-
port | The port used to connect to the device. |
config | The OneWireDeviceConfig used to set up the device. |
- Returns
- Returns a OneWireDevice subclass appropriate for family code in the provided serial number or
null
if no match is found.
◆ Initialize()
Lets individual sensor implementations do routines to put the sensor in its expected state, such as setting the number of bits to resolve temperature readings. Some (many?) sensors will create a no-op method for this message.
◆ Read()
abstract byte [] Apac.Dallas.OneWire.OneWireDevice.Read |
( |
| ) |
|
|
pure virtual |
◆ Buffer
byte [] Apac.Dallas.OneWire.OneWireDevice.Buffer |
|
getprotected set |
Gets the last buffer of raw data retrieved from the device using Read.
◆ Config
Gets or sets (protected) the configuration for this OneWireDevice.
The config.
◆ FamilyCode
owApi.FamilyCodes Apac.Dallas.OneWire.OneWireDevice.FamilyCode |
|
get |
Gets the family code that is decoded from the SerialNumber .
◆ FamilyDescription
string Apac.Dallas.OneWire.OneWireDevice.FamilyDescription |
|
getprotected set |
◆ Identifier
string Apac.Dallas.OneWire.OneWireDevice.Identifier |
|
get |
◆ InputResolutionBits
abstract ushort Apac.Dallas.OneWire.OneWireDevice.InputResolutionBits |
|
getset |
Gets the input resolution bits.
The input resolution bits.
◆ IsFunctionalSensor
abstract bool Apac.Dallas.OneWire.OneWireDevice.IsFunctionalSensor |
|
get |
Gets a value indicating whether this instance is functional sensor.
true
if this instance is functional sensor; otherwise, false
.
◆ Log
log4net.ILog Apac.Dallas.OneWire.OneWireDevice.Log |
|
getprotected |
◆ PartIds
string [] Apac.Dallas.OneWire.OneWireDevice.PartIds |
|
getprotected set |
Gets the list of part identifiers that apply to this family of devices.
◆ Port
int Apac.Dallas.OneWire.OneWireDevice.Port |
|
getset |
Gets or sets the number for the port used to communicate with this device.
◆ RawSerialNumber
byte [] Apac.Dallas.OneWire.OneWireDevice.RawSerialNumber |
|
get |
Gets the unique 1-Wire identifier for this device in binary format.
◆ SerialNumber
ulong Apac.Dallas.OneWire.OneWireDevice.SerialNumber |
|
get |
Gets the unique 1-Wire identifier for this device.
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/apac/APAC/Apac.Dallas.OneWire/OneWireDevice.cs