|
Treehopper Java API
|
One-wire bus. More...
Public Member Functions | |
| void | startOneWire () |
| Start OneWire mode on this host. More... | |
| void | oneWireResetAndMatchAddress (long address) |
| Reset all devices on the OneWire bus and send the supplied address. More... | |
| List< Long > | oneWireSearch () |
| Search all attached devices to discover addresses. More... | |
| boolean | oneWireReset () |
| Reset the OneWire bus to put all devices in a known state. More... | |
| byte [] | receive (int numBytes) |
| receive data from the OneWire bus More... | |
| void | send (byte[] dataToSend) |
| send an array of bytes to the OneWire bus More... | |
| void | send (byte data) |
| send a single byte to the OneWire bus More... | |
One-wire bus.
| boolean io.treehopper.interfaces.IOneWire.oneWireReset | ( | ) |
Reset the OneWire bus to put all devices in a known state.
Implemented in io.treehopper.HardwareUart.
| void io.treehopper.interfaces.IOneWire.oneWireResetAndMatchAddress | ( | long | address | ) |
Reset all devices on the OneWire bus and send the supplied address.
| address | The address to address |
Implemented in io.treehopper.HardwareUart.
| List<Long> io.treehopper.interfaces.IOneWire.oneWireSearch | ( | ) |
Search all attached devices to discover addresses.
Implemented in io.treehopper.HardwareUart.
| byte [] io.treehopper.interfaces.IOneWire.receive | ( | int | numBytes | ) |
receive data from the OneWire bus
| numBytes | The number of bytes to receive |
Implemented in io.treehopper.HardwareUart.
| void io.treehopper.interfaces.IOneWire.send | ( | byte [] | dataToSend | ) |
send an array of bytes to the OneWire bus
| dataToSend | byte array of the data to send |
Implemented in io.treehopper.HardwareUart.
| void io.treehopper.interfaces.IOneWire.send | ( | byte | data | ) |
send a single byte to the OneWire bus
| data | The byte to send |
Implemented in io.treehopper.HardwareUart.
| void io.treehopper.interfaces.IOneWire.startOneWire | ( | ) |
Start OneWire mode on this host.
Implemented in io.treehopper.HardwareUart.