Device driver interface for the Si1133 sensor. More...
Device driver interface for the Si1133 sensor.
Definition in file si1133.h.
#include "periph/i2c.h"
Go to the source code of this file.
Data Structures | |
struct | si1133_channel_t |
Channel configuration the Si1133 sensor. More... | |
struct | si1133_params_t |
Device initialization parameters. More... | |
struct | si1133_t |
Device descriptor for the Si1133 sensor. More... | |
Enumerations | |
enum | si1133_ret_code_t { SI1133_OK = 0 , SI1133_ERR_PARAMS = -1 , SI1133_ERR_I2C = -2 , SI1133_ERR_LOGIC = -3 , SI1133_ERR_NODEV = -4 , SI1133_ERR_OVERFLOW = -5 } |
Driver error return codes. More... | |
enum | si1133_sensor_t { SI1133_SENS_SMALL_IR = 1u << 0 , SI1133_SENS_MEDIUM_IR = 1u << 1 , SI1133_SENS_LARGE_IR = 1u << 2 , SI1133_SENS_WHITE = 1u << 3 , SI1133_SENS_LARGE_WHITE = 1u << 4 , SI1133_SENS_UV = 1u << 5 , SI1133_SENS_DEEP_UV = 1u << 6 } |
Sensor (photodiode combination) in the Si1133 package. More... | |
Functions | |
si1133_ret_code_t | si1133_init (si1133_t *dev, const si1133_params_t *params) |
Initialize the given Si1133 device. | |
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. | |