OneWire: Functions to interact with OneWire devices

Top  Previous  Next

This group of functions allows connections of Maxim 1-Wire devices to the RTCU device.

1-Wire is a simple and very easy to implement serial bus. It consists of only two wires (Signal and GND) and makes it very easy to implement remote sensing in various applications.

 

Currently, direct support for iButton and temperature sensors is implemented, and support for additional devices can be added by using the generic OneWire functions.

 


owSearch

Searches for OneWire devices.


owTempGetID

Gets the ID of a specific temperature sensor.


owTempGet

Gets the temperature from a specific device.


owiButtonGetID

Queries iButton for its ID.


owiButtonReadData

Reads data from a memory iButton.


owiButtonWriteData

Writes data to a memory iButton.


owiButtonEnableLED

Enables or disables the use of the iButton reader LED.


owiButtonSetLed

Controls the iButton LED.

 

Generic OneWire functions:


owSearchX

Advanced search function for OneWire devices.


owQuery

Queries the number of devices in a family.


owGetID

Queries the ID of a device.


owGetFamily

Returns the family ID of the device.


owAccess

Selects a device and locks the OneWire net.


owRelease

Releases the lock on the OneWire net.


owReadData

Reads data from the OneWire net.


owWriteData

Writes data to the OneWire net.


owRead

Reads a byte from the OneWire net.


owReadBit

Reads a bit from the OneWire net.


owWrite

Writes a byte to the OneWite net.


owWriteBit

Writes a bit to the OneWire net.


owAlarmSearch

Searches for alerted devices.


owAlarmQuery

Queries if there are alerted devices.


owAlarmGetID

Queries the ID of the alerted device.


owAlarmGetFamily

Reads the family of the alerted device.


owAlarmAccess

Selects the alerted device and locks the OneWire net.


owAlarmRelease

Releases the lock on the OneWire net.

 

 


The implementation of OneWire has the following limitations:

It is only possible to read/write to the last iButton discovered with owiButtonGetID.