52#define DS2413_FAMILY_CODE 0x3Au
55#define DS2413_ROM_BYTES 8u
58#define DS2413_BITS_PER_BYTE 8u
61#define DS2413_PIOA 0x01u
64#define DS2413_PIOB 0x02u
67#define DS2413_PIO_MASK 0x03u
70#define DS2413_CMD_READ 0xF5u
73#define DS2413_CMD_WRITE 0x5Au
76#define DS2413_ACK 0xAAu
79#define DS2413_NO_RESPONSE 0xFFu
uint8_t ds2413_last_command_ok(void)
Result of the last completed operation.
uint8_t ds2413_write_pio_poll(void)
Advance the non-blocking PIO write.
uint8_t ds2413_read_pio_poll(void)
Advance the non-blocking PIO read.
void ds2413_init(void)
Initialize the DS2413 driver hardware.
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().
void ds2413_select(const uint8_t *rom)
Select the DS2413 to address.
uint8_t ds2413_write_pio(uint8_t states)
Write the PIO output latches (non-blocking).
uint8_t ds2413_read_pio(uint8_t *out)
Read the PIO pin levels (non-blocking).
uint8_t ds2413_last_reply(void)
Raw reply byte of the last read or write operation.
Central compile-time configuration for the 1-Wire stack.
Library version (semantic versioning).