ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_interface_adc_photo.h
Go to the documentation of this file.
1 #ifndef RUUVI_INTERFACE_ADC_PHOTO_H
2 #define RUUVI_INTERFACE_ADC_PHOTO_H
28 #include "ruuvi_driver_error.h"
29 #include "ruuvi_driver_sensor.h"
30 
33  environmental_sensor, rd_bus_t bus, uint8_t handle);
36  environmental_sensor, rd_bus_t bus, uint8_t handle);
38 rd_status_t ri_adc_photo_samplerate_set (uint8_t * samplerate);
42 rd_status_t ri_adc_photo_resolution_set (uint8_t * resolution);
46 rd_status_t ri_adc_photo_scale_set (uint8_t * scale);
50 rd_status_t ri_adc_photo_dsp_set (uint8_t * dsp, uint8_t * parameter);
52 rd_status_t ri_adc_photo_dsp_get (uint8_t * dsp, uint8_t * parameter);
59  data);
61 #endif
uint32_t rd_status_t
bitfield for representing errors
rd_bus_t
Type of bus sensor uses.
Ruuvi error codes and error check function.
Ruuvi sensor interface Lifecycle: Beta
rd_status_t ri_adc_photo_scale_set(uint8_t *scale)
rd_sensor_setup_fp
rd_status_t ri_adc_photo_scale_get(uint8_t *scale)
rd_sensor_setup_fp
rd_status_t ri_adc_photo_resolution_get(uint8_t *resolution)
rd_sensor_setup_fp
rd_status_t ri_adc_photo_dsp_set(uint8_t *dsp, uint8_t *parameter)
rd_sensor_dsp_fp
rd_status_t ri_adc_photo_init(rd_sensor_t *environmental_sensor, rd_bus_t bus, uint8_t handle)
rd_sensor_init_fp
rd_status_t ri_adc_photo_mode_set(uint8_t *)
rd_sensor_setup_fp
rd_status_t ri_adc_photo_dsp_get(uint8_t *dsp, uint8_t *parameter)
rd_sensor_dsp_fp
rd_status_t ri_adc_photo_uninit(rd_sensor_t *environmental_sensor, rd_bus_t bus, uint8_t handle)
rd_sensor_init_fp
rd_status_t ri_adc_photo_samplerate_get(uint8_t *samplerate)
rd_sensor_setup_fp
rd_status_t ri_adc_photo_mode_get(uint8_t *)
rd_sensor_setup_fp
rd_status_t ri_adc_photo_data_get(rd_sensor_data_t *const data)
rd_sensor_data_fp
rd_status_t ri_adc_photo_samplerate_set(uint8_t *samplerate)
rd_sensor_setup_fp
rd_status_t ri_adc_photo_resolution_set(uint8_t *resolution)
rd_sensor_setup_fp
Generic sensor data struct.
Interface to sensor. Some sensors can implement additional functions. The additional functions are de...