Matrix Orbital DD-DB1 LCD/VFD Dev Board User Manual

Page 29

Advertising
background image

5.2.Dallas 1-Wire

Transaction

Dec
Hex

254 200 1

FE C8 01

Flags Send Bits Receive Bits Data
Flags Send Bits Receive Bits Data

Preforms 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.

Flags

1 byte, flags for transaction, see below

Send Bits

1 byte, number of bytes to be sent to the device

Receive Bits

1 byte, number of bytes expected to be received from the device

Data

Variable, data to be transmitted LSB to MSB

Bit Flag Description

Code Error Description

7

0

Success

6

Unused

1

Unknown Command

5

2

No Devices Found

4

0 (Future Compatibility)

3

Fatal Search Error

3

Add CRC8 to transaction

2

0 (Future Compatibility)

1

Read CRC8 from transaction

0

Reset Bus prior to transaction

27

Advertising