10#include <furi_hal_gpio.h>
OneWireHost * onewire_host_alloc(const GpioPin *gpio_pin)
Allocate OneWireHost instance.
Definition one_wire_host.c:58
uint8_t onewire_host_read(OneWireHost *host)
Read one byte.
Definition one_wire_host.c:131
void onewire_host_reset_search(OneWireHost *host)
Reset previous search results.
Definition one_wire_host.c:211
void onewire_host_target_search(OneWireHost *host, uint8_t family_code)
Set the family code to search for.
Definition one_wire_host.c:223
OneWireHostSearchMode
Definition one_wire_host.h:16
@ OneWireHostSearchModeConditional
Search for alarmed device.
Definition one_wire_host.h:17
@ OneWireHostSearchModeNormal
Search for all devices.
Definition one_wire_host.h:18
void onewire_host_set_overdrive(OneWireHost *host, bool set)
Enable overdrive mode.
Definition one_wire_host.c:352
void onewire_host_write_bytes(OneWireHost *host, const uint8_t *buffer, uint16_t count)
Write one or more bytes.
Definition one_wire_host.c:188
void onewire_host_write_bit(OneWireHost *host, bool value)
Write one bit.
Definition one_wire_host.c:154
bool onewire_host_search(OneWireHost *host, uint8_t *new_addr, OneWireHostSearchMode mode)
Search for devices on the 1-Wire bus.
Definition one_wire_host.c:234
void onewire_host_write(OneWireHost *host, uint8_t value)
Write one byte.
Definition one_wire_host.c:178
void onewire_host_free(OneWireHost *host)
Destroy OneWireHost instance, free resources.
Definition one_wire_host.c:69
void onewire_host_stop(OneWireHost *host)
Stop working with the bus.
Definition one_wire_host.c:204
bool onewire_host_reset(OneWireHost *host)
Reset the 1-Wire bus.
Definition one_wire_host.c:76
void onewire_host_read_bytes(OneWireHost *host, uint8_t *buffer, uint16_t count)
Read one or more bytes.
Definition one_wire_host.c:145
bool onewire_host_read_bit(OneWireHost *host)
Read one bit.
Definition one_wire_host.c:109
void onewire_host_start(OneWireHost *host)
Start working with the bus.
Definition one_wire_host.c:197
Gpio structure.
Definition furi_hal_gpio.h:161
Definition one_wire_host.c:49