Synopsis
typedef struct {
CTL_TRANSPORT_t transport;
CTL_STATUS_t (*sample)(CTL_LIGHT_SENSOR_s *, float *);
} CTL_LIGHT_SENSOR_t;
Description
CTL_LIGHT_SENSOR_t is an abstract light sensor interface that
provides clients with a means to sample ambient light level.
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 light level measured by the light sensor.