A one wire bus provides the following functions (but you should only need them if you are trying to support a device that isn't directly supported by WebbotLib):
- Often referred to in the specifications as 'strong pull-up' this will drive the signal line high so that parasitic devices can obtain power from the bus.
- Reads a single bit from the bus and returns TRUE for 1, or FALSE for 0.
- Write a single bit to the bus.
- Sets the bus to use 'standard' speed.
- Sets the bus to use the faster 'overdrive' speed.
- Resets the one wire bus and returns the 'presence' bit.
- Writes an 8 bit byte to the bus.
- Reads an 8 bit byte from the bus.
- Dumps out the ROM IDs of every device that is connected to the bus and returns the total number of devices found.
- Dumps the ROM ID of the last device found by a call to 'first' or 'next'.
- Find the first device connected to the bus. Return TRUE if there is one or FALSE if there are no devices at all.
- Find the next device connected to the bus. Return TRUE if there is one or FALSE if there are no more.
- Return the 8 byte ROM ID of the device matched by the last call to first or last.