35#define BH1900NUX_ADDR_1          (0x48)         
   36#define BH1900NUX_ADDR_2          (0x49)         
   37#define BH1900NUX_ADDR_3          (0x4a)         
   38#define BH1900NUX_ADDR_4          (0x4b)         
   39#define BH1900NUX_ADDR_5          (0x4c)         
   40#define BH1900NUX_ADDR_6          (0x4d)         
   41#define BH1900NUX_ADDR_7          (0x4e)         
   42#define BH1900NUX_ADDR_8          (0x4f)         
   51#define BH1900NUX_REG_ADDR      (0x00) 
   57#define BH1900NUX_DEFAULT_ADDR          BH1900NUX_ADDR_1 
   62#define BH1900NUX_I2C_MAX_CLK           I2C_SPEED_FAST 
int bh1900nux_read(const bh1900nux_t *dev, int16_t *temp)
Read the temperature measerd by the device [MILICELSIUS].
 
int bh1900nux_init(bh1900nux_t *dev, const bh1900nux_params_t *params)
Initialize the given BH1900NUX device.
 
@ BH1900NUX_OK
everything was fine
 
@ BH1900NUX_ERR_I2C
error initializing the I2C bus
 
uint_fast8_t i2c_t
Default i2c_t type definition.
 
Low-level I2C peripheral driver interface definition.
 
Set of configuration parameters for BH1900NUX devices.
 
i2c_t i2c
I2C bus the device is connected to.
 
uint8_t addr
slave address of the device
 
Device descriptor for BH1900NUX devices.
 
uint8_t addr
slave address of the device
 
i2c_t i2c
I2C bus the device is connected to.