|
stm32-async-1wire 3.2.0
Non-blocking 1-Wire master for STM32 with DS18B20 temperature and DS2431 EEPROM drivers
|
Functions | |
| void | ds2413_init (void) |
| Initialize the DS2413 driver hardware. | |
| void | ds2413_select (const uint8_t *rom) |
| Select the DS2413 to address. | |
| uint8_t | ds2413_read_pio (uint8_t *out) |
| Read the PIO pin levels (non-blocking). | |
| uint8_t | ds2413_read_pio_poll (void) |
| Advance the non-blocking PIO read. | |
| uint8_t | ds2413_write_pio (uint8_t states) |
| Write the PIO output latches (non-blocking). | |
| uint8_t | ds2413_write_pio_poll (void) |
| Advance the non-blocking PIO write. | |
| uint8_t | ds2413_last_command_ok (void) |
| Result of the last completed operation. | |
| uint8_t | ds2413_last_pio (void) |
| Last valid PIO pin levels read by ds2413_read_pio(). | |
| uint8_t | ds2413_last_latches (void) |
| Last valid PIO latch states read by ds2413_read_pio(). | |
| uint8_t | ds2413_last_reply (void) |
| Raw reply byte of the last read or write operation. | |
| void ds2413_init | ( | void | ) |
Initialize the DS2413 driver hardware.
| uint8_t ds2413_last_command_ok | ( | void | ) |
Result of the last completed operation.
| uint8_t ds2413_last_latches | ( | void | ) |
Last valid PIO latch states read by ds2413_read_pio().
| uint8_t ds2413_last_pio | ( | void | ) |
Last valid PIO pin levels read by ds2413_read_pio().
| uint8_t ds2413_last_reply | ( | void | ) |
Raw reply byte of the last read or write operation.
| uint8_t ds2413_read_pio | ( | uint8_t * | out | ) |
Read the PIO pin levels (non-blocking).
| [out] | out | Destination byte; on success it receives the actual PIOA/PIOB pin levels in bits 0/1 (DS2413_PIOA, DS2413_PIOB), the same layout ds2413_write_pio() takes. A pin held externally does not match its latch; use ds2413_last_latches() for the commanded state. |
| uint8_t ds2413_read_pio_poll | ( | void | ) |
Advance the non-blocking PIO read.
| void ds2413_select | ( | const uint8_t * | rom | ) |
Select the DS2413 to address.
| [in] | rom | Pointer to the 8-byte ROM address (LSB first), or NULL to use Skip ROM (broadcast) |
| uint8_t ds2413_write_pio | ( | uint8_t | states | ) |
Write the PIO output latches (non-blocking).
| [in] | states | PIOA/PIOB latch levels in bits 0/1 (DS2413_PIOA, DS2413_PIOB); other bits are ignored |
| uint8_t ds2413_write_pio_poll | ( | void | ) |
Advance the non-blocking PIO write.