Synopsis
CTL_STATUS_t hih6130_initialize_i2c(CTL_HUMIDITY_SENSOR_t *self,
                                    CTL_I2C_BUS_t *bus,
                                    int addr);
Description

hih6130_initialize_i2c initializes the humidity sensor interface self with methods to communicate with an HIH6130 humidity sensor on the I2C bus bus with 8-bit I2C address addr.

Once the humidity sensor interface is initialized, you can use all standard humidity sensor methods from the sensor API on the interface.

Return Value

hih6130_initialize_i2c returns a standard status code.

Thread Safety

hih6130_initialize_i2c is thread-safe if a mutex is associated with the I2C bus bus.

See Also

<ctl_sensors.h>