Computes a Dallas Semiconductor 16 bit CRC. Data - Array with the bytes to checksum. Length - Number of bytes to use.
CRC8 (Data() AsByte, LengthAsByte) AsByte
Computes a Dallas Semiconductor 8 bit CRC. Data - Array with the bytes to checksum. Length - Number of bytes to use.
Initialize (WirePinAsByte) Asvoid
Initializes the object. Sets the OneWire pin.
ReadBytes (Bytes() AsByte, CountAsUInt) Asvoid
Reads data. Bytes - Data will be written to this array. Count - Number of bytes to read.
ResetAsBoolean
Performs a reset function. Returns True if the device asserted a presence pulse.
ResetSearchAsvoid
Clears the search state. The next search will start from the beginning.
Search (Address() AsByte) AsBoolean
Searches for the next device. Returns True if a device was found. The order of devices is deterministic. Address - 8 bytes array. The address of the device found will be written to this array.
Select (Address() AsByte) Asvoid
Issues a select command. This is needed after each call to Reset.
SkipAsvoid
Skips the device selection. Useful when there is only a single device connected.
Write (ValueAsByte, PowerAsBoolean) Asvoid
Writes a byte. Value - Value to write. Power - Set to True if power after the write is needed.