Little-Wire
|
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) |
Onewire functions.
int onewire_firstAddress | ( | littleWire * | lwHandle) |
Start searching for device address on the onewire bus.
Read the 8 byte address from ROM_NO array
lwHandle | littleWire device pointer |
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
lwHandle | littleWire device pointer |
Definition at line 407 of file littleWire.c.
unsigned char onewire_readBit | ( | littleWire * | lwHandle) |
Read a single bit over onewire bus
lwHandle | littleWire device pointer |
Definition at line 344 of file littleWire.c.
unsigned char onewire_readByte | ( | littleWire * | lwHandle) |
Read a byte over onewire bus.
lwHandle | littleWire device pointer |
Definition at line 336 of file littleWire.c.
unsigned char onewire_resetPulse | ( | littleWire * | lwHandle) |
Send a reset pulse over onewire bus
lwHandle | littleWire device pointer |
Definition at line 351 of file littleWire.c.
void onewire_sendBit | ( | littleWire * | lwHandle, |
unsigned char | bitValue | ||
) |
Send a single bit over onewire bus.
lwHandle | littleWire device pointer |
bitValue | 1 or 0 |
Definition at line 325 of file littleWire.c.
void onewire_writeByte | ( | littleWire * | lwHandle, |
unsigned char | messageToSend | ||
) |
Send a byte over onewire bus.
lwHandle | littleWire device pointer |
messageToSend | Message to send |
Definition at line 330 of file littleWire.c.