4 #include <twr_onewire.h>
15 uint64_t _device_number;
bool twr_ds28e17_write(twr_ds28e17_t *self, const twr_i2c_transfer_t *transfer)
Write to I2C.
bool twr_ds28e17_memory_read(twr_ds28e17_t *self, const twr_i2c_memory_transfer_t *transfer)
Memory read from I2C.
void twr_ds28e17_deinit(twr_ds28e17_t *self)
Deinitialize DS28E17.
bool twr_ds28e17_memory_write(twr_ds28e17_t *self, const twr_i2c_memory_transfer_t *transfer)
Memory write to I2C.
bool twr_ds28e17_set_speed(twr_ds28e17_t *self, twr_i2c_speed_t speed)
Set I2C speed.
void twr_ds28e17_init(twr_ds28e17_t *self, twr_onewire_t *onewire, uint64_t device_number)
Initialize DS28E17.
bool twr_ds28e17_read(twr_ds28e17_t *self, const twr_i2c_transfer_t *transfer)
Read from I2C.
uint64_t twr_ds28e17_get_device_number(twr_ds28e17_t *self)
Get Device number.
bool twr_ds28e17_enable_sleep_mode(twr_ds28e17_t *self)
Enable Sleep Mode.
twr_i2c_speed_t
I2C communication speed.
struct twr_onewire_t twr_onewire_t
1-Wire instance
I2C memory transfer parameters.