33 #if RI_SHTCX_ENABLED || DOXYGEN
37 #include "sensirion_arch_config.h"
38 #include "sensirion_common.h"
39 #include "sensirion_i2c.h"
#define RD_ERROR_FATAL
Program should always reset after this.
uint32_t rd_status_t
bitfield for representing errors
#define RD_ERROR_CHECK(error, mask)
Shorthand macro for calling the rd_error_check with current file & line.
#define RD_ERROR_NOT_SUPPORTED
Not supported.
#define RD_SUCCESS
Internal Error.
#define STATUS_ERR_BAD_DATA
SHTC driver data invald.
Header to enable and disable module compilation.
Ruuvi error codes and error check function.
Interface for I2C operations.
rd_status_t ri_i2c_write_blocking(const uint8_t address, uint8_t *const p_tx, const size_t tx_len, const bool stop)
I2C read function.
rd_status_t ri_i2c_read_blocking(const uint8_t address, uint8_t *const p_rx, const size_t rx_len)
I2C read function.
int8_t sensirion_i2c_write(uint8_t address, const uint8_t *data, uint16_t count)
int8_t sensirion_i2c_read(uint8_t address, uint8_t *data, uint16_t count)
void sensirion_i2c_init(void)
void sensirion_i2c_release(void)
int16_t sensirion_i2c_select_bus(uint8_t bus_idx)