Little-Wire
 All Classes Functions Groups Pages
Onewire

Onewire functions. More...

Functions

void onewire_sendBit (littleWire *lwHandle, unsigned char bitValue)
 
void onewire_writeByte (littleWire *lwHandle, unsigned char messageToSend)
 
unsigned char onewire_readByte (littleWire *lwHandle)
 
unsigned char onewire_readBit (littleWire *lwHandle)
 
unsigned char onewire_resetPulse (littleWire *lwHandle)
 
int onewire_firstAddress (littleWire *lwHandle)
 
int onewire_nextAddress (littleWire *lwHandle)
 

Detailed Description

Onewire functions.

Function Documentation

int onewire_firstAddress ( littleWire *  lwHandle)

Start searching for device address on the onewire bus.
Read the 8 byte address from ROM_NO array

Parameters
lwHandlelittleWire device pointer
Returns
Nonzero if any device found

Definition at line 526 of file littleWire.c.

int onewire_nextAddress ( littleWire *  lwHandle)

Try to find the next adress on the onewire bus.
Read the 8 byte address from ROM_NO array

Parameters
lwHandlelittleWire device pointer
Returns
Nonzero if any new device found

Definition at line 407 of file littleWire.c.

unsigned char onewire_readBit ( littleWire *  lwHandle)

Read a single bit over onewire bus

Parameters
lwHandlelittleWire device pointer
Returns
Read bit ( 1 or 0 )

Definition at line 344 of file littleWire.c.

unsigned char onewire_readByte ( littleWire *  lwHandle)

Read a byte over onewire bus.

Parameters
lwHandlelittleWire device pointer
Returns
Read byte

Definition at line 336 of file littleWire.c.

unsigned char onewire_resetPulse ( littleWire *  lwHandle)

Send a reset pulse over onewire bus

Parameters
lwHandlelittleWire device pointer
Returns
Nonzero if any device presents on the bus

Definition at line 351 of file littleWire.c.

void onewire_sendBit ( littleWire *  lwHandle,
unsigned char  bitValue 
)

Send a single bit over onewire bus.

Parameters
lwHandlelittleWire device pointer
bitValue1 or 0
Returns
(none)

Definition at line 325 of file littleWire.c.

void onewire_writeByte ( littleWire *  lwHandle,
unsigned char  messageToSend 
)

Send a byte over onewire bus.

Parameters
lwHandlelittleWire device pointer
messageToSendMessage to send
Returns
(none)

Definition at line 330 of file littleWire.c.