OWIN pin,mode,(variable, variable...)
Pin - is a variable/constant which specifies input pin to use.
Mode is a variable/ constant which selects the mode.
Each bit of 'mode' has a separate function:
||reset pulse sent before data
||reset pulse sent after data
||bit mode (receive 1 bit rather than 8 bits (1 byte))
||apply strong pullup after data
For convenience these predefined constants may be used:
Variables(s) - receives the data.
This command is used to read data from a one-wire device.
Read data (either full byte or single bit) from one-wire device connected to an input pin, with optional reset pulses before and after the read. This command cannot be used on the following pins due to silicon restrictions:
Use of one-wire parts is covered in more detail in the separate 'One-Wire Tutorial' datasheet.