Firmware SDK
|
Driver for DS28E17 (1-wire-to-I2C Master Bridge) More...
Data Structures | |
struct | twr_ds28e17_t |
DS28E17 instance. More... | |
Functions | |
void | twr_ds28e17_init (twr_ds28e17_t *self, twr_onewire_t *onewire, uint64_t device_number) |
Initialize DS28E17. More... | |
void | twr_ds28e17_deinit (twr_ds28e17_t *self) |
Deinitialize DS28E17. More... | |
uint64_t | twr_ds28e17_get_device_number (twr_ds28e17_t *self) |
Get Device number. More... | |
bool | twr_ds28e17_enable_sleep_mode (twr_ds28e17_t *self) |
Enable Sleep Mode. More... | |
bool | twr_ds28e17_set_speed (twr_ds28e17_t *self, twr_i2c_speed_t speed) |
Set I2C speed. More... | |
bool | twr_ds28e17_write (twr_ds28e17_t *self, const twr_i2c_transfer_t *transfer) |
Write to I2C. More... | |
bool | twr_ds28e17_read (twr_ds28e17_t *self, const twr_i2c_transfer_t *transfer) |
Read from I2C. More... | |
bool | twr_ds28e17_memory_write (twr_ds28e17_t *self, const twr_i2c_memory_transfer_t *transfer) |
Memory write to I2C. More... | |
bool | twr_ds28e17_memory_read (twr_ds28e17_t *self, const twr_i2c_memory_transfer_t *transfer) |
Memory read from I2C. More... | |
Driver for DS28E17 (1-wire-to-I2C Master Bridge)
void twr_ds28e17_deinit | ( | twr_ds28e17_t * | self | ) |
Deinitialize DS28E17.
[in] | self | Instance |
Definition at line 25 of file twr_ds28e17.c.
Referenced by twr_i2c_deinit().
bool twr_ds28e17_enable_sleep_mode | ( | twr_ds28e17_t * | self | ) |
Enable Sleep Mode.
[in] | self | Instance |
uint64_t twr_ds28e17_get_device_number | ( | twr_ds28e17_t * | self | ) |
void twr_ds28e17_init | ( | twr_ds28e17_t * | self, |
twr_onewire_t * | onewire, | ||
uint64_t | device_number | ||
) |
Initialize DS28E17.
[in] | self | Instance |
[in] | Pointer | on instance 1-Wire |
[in] | device_number | Device number |
Definition at line 14 of file twr_ds28e17.c.
Referenced by twr_i2c_init().
bool twr_ds28e17_memory_read | ( | twr_ds28e17_t * | self, |
const twr_i2c_memory_transfer_t * | transfer | ||
) |
Memory read from I2C.
[in] | self | Instance |
[in] | transfer | Pointer to I2C memory transfer parameters instance |
Definition at line 107 of file twr_ds28e17.c.
Referenced by twr_i2c_memory_read().
bool twr_ds28e17_memory_write | ( | twr_ds28e17_t * | self, |
const twr_i2c_memory_transfer_t * | transfer | ||
) |
Memory write to I2C.
[in] | self | Instance |
[in] | transfer | Pointer to I2C memory transfer parameters instance |
Definition at line 82 of file twr_ds28e17.c.
Referenced by twr_i2c_memory_write().
bool twr_ds28e17_read | ( | twr_ds28e17_t * | self, |
const twr_i2c_transfer_t * | transfer | ||
) |
Read from I2C.
[in] | self | Instance |
[in] | transfer | Pointer to I2C transfer parameters instance |
Definition at line 71 of file twr_ds28e17.c.
Referenced by twr_i2c_read().
bool twr_ds28e17_set_speed | ( | twr_ds28e17_t * | self, |
twr_i2c_speed_t | speed | ||
) |
Set I2C speed.
[in] | self | Instance |
[in] | speed | I2C communication speed |
Definition at line 35 of file twr_ds28e17.c.
Referenced by twr_i2c_set_speed().
bool twr_ds28e17_write | ( | twr_ds28e17_t * | self, |
const twr_i2c_transfer_t * | transfer | ||
) |
Write to I2C.
[in] | self | Instance |
[in] | transfer | Pointer to I2C transfer parameters instance |
Definition at line 60 of file twr_ds28e17.c.
Referenced by twr_i2c_write().