
29
5. Dallas One-Wire
5.1. Search for a One-Wire
Device
Sends a search query to each of the up to 32 devices on the one wire bus. Any connected device will respond with
an identification packet.
14 bytes, identification packet as shown below
Table 23: Dallas One-Wire Packet Information
Another device packet will follow OR
Error Code (0 indicates success)
CRC8 address check (0 indicates validity)
5.2. Dallas One-Wire
Transaction
Flags Send Bits Receive Bits Data
Flags Send Bits Receive Bits Data
Performs a single Dallas 1-Wire transaction. Consult your device documentation for information regarding device
specific protocols. If an error is encountered, a corresponding value will be returned by the device.
1 byte, flags for transaction, see below
1 byte, number of bytes to be sent to the device
1 byte, number of bytes expected to be received from the device
Variable, data to be transmitted LSB to MSB
Table 24: Dallas One-Wire Flag Table
Read CRC8 from transaction
Reset Bus prior to transaction
Table 25: Dallas One-Wire Error Table
Kommentare zu diesen Handbüchern