|
stm32-async-1wire 3.2.0
Non-blocking 1-Wire master for STM32 with DS18B20 temperature and DS2431 EEPROM drivers
|
| DS18B20 Exported Constants | |
| DS18B20 Non-Blocking Device Search | Maxim Search ROM (0xF0) state machine, driven from the main loop like the measurement state machine. It filters by family code, validates the CRC and reports each found DS18B20 via a callback. When the search finishes the driver stays idle until the application requests the next operation (ds18b20_start_measure(), a new search or a command) |
| DS18B20 Non-Blocking Alarm Search | Maxim Alarm Search ROM (0xEC) state machine, driven from the main loop exactly like the device search. It reports only the DS18B20 devices currently in alarm state (temperature outside the TH/TL thresholds set with Write Scratchpad); the regular Search ROM returns every device regardless of alarm state |
| DS18B20 Non-Blocking Resolution Change | Change the temperature conversion resolution (9..12 bit) between measurement cycles. The sensor answers Convert T (0x44) after 93.75ms (9 bit) / 187.5ms (10 bit) / 375ms (11 bit) / 750ms (12 bit); this driver waits exactly as long as the configured resolution requires and parks until the application starts the next measurement cycle |
| DS18B20 Non-Blocking Command Transactions | Infrequent DS18B20 commands driven with the same non-blocking discipline as the device search and the resolution change: every command owns TIM1/DMA while it runs (reset -> presence -> write -> read | wait) and leaves the bus idle when done |
| DS18B20 Simultaneous Multi-Device Conversion | 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 |
| DS18B20 Exported Functions | |
| DS2413 Exported Constants | |
| DS2413 Exported Functions | |
| DS2431 Exported Constants | |
| DS2431 Exported Functions | |
| 1-Wire Protocol Constants | |
| Init | Board facts: the family selection token and ow_pulse_t |
| Non-Blocking 1-Wire Bus Primitives | Each primitive schedules exactly one hardware-timed operation on TIM1/DMA and returns immediately. Poll onewire_bus_done() to learn when the operation finished, then decode the result |
| Generic Non-Blocking Search ROM Engine | Implements the Maxim Search ROM (0xF0) / Alarm Search (0xEC) algorithm as a polled state machine. The direction bit written at position i determines which devices keep participating at position i+1, so the transaction cannot be batched into one DMA pass; the linear loop is decomposed into states with loop counters kept in the context. Every state performs exactly one hardware-timed operation, and no search stage is long enough to become a low-power wait, so a poll call returns straight away |
| CRC Checksums |