scan OneWire bus for normal ROM or alarm search
call onewire_search_init() before first call of this function after each call, the buffer contains the new scaned ROM code
- Parameters
-
buffer[8] | pointer to buffer array |
cmd | onewire search command |
- Returns
- error code
-
ONEWIRE_OK new ROM code scanned successfully
-
ONEWIRE_NO_PRESENCE no bus response during reset
-
ONEWIRE_CRC_ERROR CRC error in received rom code
-
ONEWIRE_SCAN_ERROR no bus response during scan
-
ONEWIRE_LAST_CODE last scan, no more codes available
Definition at line 130 of file onewire.c.