|
OneWire + DS18X20 Library
Basic functions for OneWire operations + specific DS18x20 operations
|
Functions | |
| uint8_t | onewire_reset (void) |
| OneWire reset. More... | |
| uint8_t | onewire_read_byte (void) |
| read one byte More... | |
| void | onewire_write_byte (uint8_t data) |
| write one byte More... | |
| void | onewire_search_init (uint8_t buffer[8]) |
| init rom search buffer and internal variables More... | |
| uint8_t | onewire_alarm_search (uint8_t buffer[8]) |
| scan OneWire bus for devices with active alarm flag More... | |
| uint8_t | onewire_search_rom (uint8_t buffer[8]) |
| scan OneWire bus for ROMs More... | |
| uint8_t | onewire_match_rom (const uint8_t rom[8]) |
| select device on bus More... | |
| uint8_t | onewire_read_rom (uint8_t rom[8]) |
| read ROM ID of device More... | |
| uint8_t | onewire_skip_rom (void) |
| select device on bus More... | |
| uint8_t | onewire_crc (const uint8_t *data, uint8_t cnt) |
| calculate CRC over data array, fast version, 0.3ms for 8 bytes @1MHz More... | |
standard functions
| uint8_t onewire_reset | ( | void | ) |
OneWire reset.
reset onewire bus
| none |
Definition at line 27 of file onewire.cpp.
| uint8_t onewire_read_byte | ( | void | ) |
| void onewire_write_byte | ( | uint8_t | data | ) |
| void onewire_search_init | ( | uint8_t | buffer[8] | ) |
init rom search buffer and internal variables
| buffer[8] | pointer to buffer array |
Definition at line 111 of file onewire.cpp.
| uint8_t onewire_alarm_search | ( | uint8_t | buffer[8] | ) |
scan OneWire bus for devices with active alarm flag
call onewire_search_init() before first call of this function after each call, the buffer contains the new scaned ROM code
| buffer[8] | pointer to buffer array |
Definition at line 120 of file onewire.cpp.
| uint8_t onewire_search_rom | ( | uint8_t | buffer[8] | ) |
scan OneWire bus for ROMs
call onewire_search_init() before first call of this function after each call, the buffer contains the new scaned ROM code
| buffer[8] | pointer to buffer array |
Definition at line 116 of file onewire.cpp.
| uint8_t onewire_match_rom | ( | const uint8_t | rom[8] | ) |
select device on bus
| rom[8] | pointer to ROM ID |
Definition at line 211 of file onewire.cpp.
| uint8_t onewire_read_rom | ( | uint8_t | rom[8] | ) |
read ROM ID of device
can only be used for a single device on bus
| rom[8] | pointer to buffer array |
Definition at line 238 of file onewire.cpp.
| uint8_t onewire_skip_rom | ( | void | ) |
select device on bus
can only be used for a single device on bus
| none |
Definition at line 226 of file onewire.cpp.
| uint8_t onewire_crc | ( | const uint8_t * | data, |
| uint8_t | cnt | ||
| ) |
calculate CRC over data array, fast version, 0.3ms for 8 bytes @1MHz
| *data | pointer to buffer array |
| cnt | number of data bytes |
Definition at line 287 of file onewire.cpp.
1.8.6