|
stm32-async-1wire 3.2.0
Non-blocking 1-Wire master for STM32 with DS18B20 temperature and DS2431 EEPROM drivers
|
Convert every discovered sensor at the same time with one broadcast Convert T (Skip ROM), then read each sensor back through Match ROM. A single conversion time covers all devices: N x 750ms becomes 750ms + N x read. Each sensor's temperature is reported through ds18b20_complete() in device-table order. More...
Functions | |
| void | ds18b20_scan_start (void) |
| Arm simultaneous conversion of every discovered device. | |
| uint8_t | ds18b20_device_count (void) |
| Number of DS18B20 devices stored by the driver. | |
| const uint8_t * | ds18b20_device_rom (uint8_t index) |
| ROM address of a discovered device. | |
| uint8_t | ds18b20_scan_index (void) |
| Index of the device whose result ds18b20_complete() just reported. | |
Convert every discovered sensor at the same time with one broadcast Convert T (Skip ROM), then read each sensor back through Match ROM. A single conversion time covers all devices: N x 750ms becomes 750ms + N x read. Each sensor's temperature is reported through ds18b20_complete() in device-table order.
The device table is filled by the non-blocking device search (ds18b20_search_*). Scan mode assumes a single resolution across all sensors (the driver writes the config broadcast) and is mutually exclusive with the single-device ds18b20_select() addressing.
| uint8_t ds18b20_device_count | ( | void | ) |
Number of DS18B20 devices stored by the driver.
| const uint8_t * ds18b20_device_rom | ( | uint8_t | index | ) |
ROM address of a discovered device.
| [in] | index | Device index (0 .. ds18b20_device_count()-1) |
| uint8_t ds18b20_scan_index | ( | void | ) |
Index of the device whose result ds18b20_complete() just reported.
| void ds18b20_scan_start | ( | void | ) |
Arm simultaneous conversion of every discovered device.