ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_interface_i2c_tmp117.h
Go to the documentation of this file.
1 #ifndef RUUVI_INTERFACE_I2C_TMP117_H
2 #define RUUVI_INTERFACE_I2C_TMP117_H
16 #include "ruuvi_driver_error.h"
17 
28 rd_status_t ri_i2c_tmp117_write (const uint8_t dev_id,
29  const uint8_t reg_addr,
30  const uint16_t reg_val);
31 
43 rd_status_t ri_i2c_tmp117_read (const uint8_t dev_id,
44  const uint8_t reg_addr,
45  uint16_t * const reg_val);
46 
48 #endif
uint32_t rd_status_t
bitfield for representing errors
rd_status_t ri_i2c_tmp117_write(const uint8_t dev_id, const uint8_t reg_addr, const uint16_t reg_val)
I2C write function for TMP117.
rd_status_t ri_i2c_tmp117_read(const uint8_t dev_id, const uint8_t reg_addr, uint16_t *const reg_val)
I2C Read function for TMP117.
Ruuvi error codes and error check function.