55     SI1133_SENS_SMALL_IR    = 1u << 0,
 
   56     SI1133_SENS_MEDIUM_IR   = 1u << 1,
 
   57     SI1133_SENS_LARGE_IR    = 1u << 2,
 
   58     SI1133_SENS_WHITE       = 1u << 3,
 
   59     SI1133_SENS_LARGE_WHITE = 1u << 4,
 
   60     SI1133_SENS_UV          = 1u << 5,
 
   61     SI1133_SENS_DEEP_UV     = 1u << 6,
 
  153                                             uint32_t num_channels);
 
  176                                         uint8_t sample_time_log,
 
  202                                          uint32_t num_channels);
 
uint_fast8_t i2c_t
Default i2c_t type definition.
 
si1133_sensor_t
Sensor (photodiode combination) in the Si1133 package.
 
si1133_ret_code_t
Driver error return codes.
 
si1133_ret_code_t si1133_configure_channels(si1133_t *dev, const si1133_channel_t *channels, uint32_t num_channels)
Configure the capture channels.
 
si1133_ret_code_t si1133_easy_configure(si1133_t *dev, si1133_sensor_t sensor_mask, uint8_t sample_time_log, uint8_t sw_gain)
Convenience function to configure all capture channels.
 
si1133_ret_code_t si1133_capture_sensors(si1133_t *dev, int32_t *values, uint32_t num_channels)
Perform a one-time blocking sample of the configured channels.
 
si1133_ret_code_t si1133_init(si1133_t *dev, const si1133_params_t *params)
Initialize the given Si1133 device.
 
@ SI1133_ERR_I2C
I2C communication error.
 
@ SI1133_ERR_PARAMS
Invalid parameters.
 
@ SI1133_ERR_LOGIC
Device communication logic error.
 
@ SI1133_ERR_NODEV
No SI1133 device detected.
 
@ SI1133_ERR_OVERFLOW
ADC overflow when sampling.
 
Low-level I2C peripheral driver interface definition.
 
Channel configuration the Si1133 sensor.
 
uint8_t sample_time_log
Log2 of sampling time, 0 to 14.
 
si1133_sensor_t sensor
Sensor to sample.
 
uint8_t sw_gain
Software gain, 0 to 7.
 
Device initialization parameters.
 
uint8_t address
sensor address.
 
i2c_t i2c_dev
I2C bus the sensor is connected to.
 
Device descriptor for the Si1133 sensor.
 
uint8_t cmd_counter
Si1133 command counter.
 
uint8_t address
sensor address
 
uint8_t num_channels
Number of configured channels.
 
i2c_t i2c_dev
I2C bus the sensor is connected to.