Synopsis
typedef struct {
  CTL_TRANSPORT_t transport;
  CTL_STATUS_t (*sample)(CTL_HUMIDITY_SENSOR_s *, float *, float *);
} CTL_HUMIDITY_SENSOR_t;
Description

CTL_HUMIDITY_SENSOR_t is an abstract humidity interface that provides clients with a means to sample relative humidity.

Structure
transport
The underlying transport for the magnetometer which provides, typically, an I2C or SPI connection to the device and a means to read one or more registers from the device.
sample
Method to read the relative humidity, and optional temperature, measured by the humidity sensor.