12 #define TWR_DS2484_STATUS_1WB (1<<0)
13 #define TWR_DS2484_STATUS_PPD (1<<1)
14 #define TWR_DS2484_STATUS_SD (1<<2)
15 #define TWR_DS2484_STATUS_LL (1<<3)
16 #define TWR_DS2484_STATUS_RST (1<<4)
17 #define TWR_DS2484_STATUS_SBR (1<<5)
18 #define TWR_DS2484_STATUS_TSB (1<<6)
19 #define TWR_DS2484_STATUS_DIR (1<<7)
34 bool (*_set_slpz)(
void *, bool);
46 void twr_ds2484_set_slpz_handler(
twr_ds2484_t *
self,
bool (*handler)(
void *,
bool),
void *handler_ctx);
68 bool twr_ds2484_write_byte(
twr_ds2484_t *
self,
const uint8_t
byte);
70 bool twr_ds2484_read_byte(
twr_ds2484_t *
self, uint8_t *
byte);
72 bool twr_ds2484_read_bit(
twr_ds2484_t *
self, uint8_t *bit);
74 bool twr_ds2484_triplet(
twr_ds2484_t *
self,
const uint8_t direction);
bool twr_ds2484_reset(twr_ds2484_t *self)
Reset the 1-Wire bus and return the presence of any device.
bool twr_ds2484_init(twr_ds2484_t *self, twr_i2c_channel_t i2c_channel)
Initialize DS2484.
void twr_ds2484_enable(twr_ds2484_t *self)
Enable DS2484.
bool twr_ds2484_busy_wait(twr_ds2484_t *self)
Wait until not busy.
void twr_ds2484_disable(twr_ds2484_t *self)
Disable DS2484.
struct twr_ds2484_t twr_ds2484_t
TMP112 instance.
twr_i2c_channel_t
I2C channels.