Datasheet
Library Routines
- Ow_Reset
- Ow_Read
- Ow_Write
Ow_Reset
348
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
unsigned short Ow_Reset();
Returns
- 0 if the device is present
- 1 if the device is not present
Description
Issues OneWire reset signal for DS18x20.
Parameters :
- None.
Requires
Devices compliant with the Dallas OneWire protocol.
Global variables :
-
OW_Bit_Read: OneWire read line
- OW_Bit_Write: OneWire write line.
- OW_Bit_Direction: Direction of the OneWire pin
must be defined before using this function.
Example
// Issue Reset signal on One-Wire Bus
Ow_Reset();