  | 
  
    simple FS
    v0.1.0
    
   | 
 
 
 
 
Go to the documentation of this file.
   48 #include "simplefs_config.h" 
   53 #define ADC_RESOLUTION   12     // 12bit 
   55 #define ADC_Q_RESOLUTION   5        // 2^(-5) 
   57 #define ADC_HW_MULTIPLYER   8 
   61 #define Q_FORMAT_ADC        (((8-ADC_Q_RESOLUTION)<<8) | ADC_Q_RESOLUTION) 
   62 #define ADC_VALUE_CONSTANT  (10*(2<<(ADC_RESOLUTION-ADC_Q_RESOLUTION-1))) 
  
SensorValue_t * get_adc_value()
Read measured value from ADC.
Definition: module_adc.c:105
 
Describes internal structure of file.
Definition: file_format.h:228
 
RecordDescriptor_t adc_getType()
Return format specification of this senor.
Definition: module_adc.c:96
 
void adc_reset(void)
Reset ADC peripheral.
Definition: module_adc.c:135
 
The interface, that defines list of functions, tha have to be implemented for each type of value (or ...
Definition: sensor.h:66
 
Declarations of universal functions to access to values.
 
Sensor value is stored as array of bytes.
Definition: sensor.h:42
 
SensorID_t * get_adc_sensor_id(uint8_t index)
Return ID of sensor.
Definition: module_adc.c:78
 
void adc_doMeasure(void)
Start the measure procedure in blocking mode.
Definition: module_adc.c:143
 
uint8_t adc_count(void)
Return number of sensors in this peripheral.
Definition: module_adc.c:156
 
void adc_init(void *, uint16_t)
Initialization of ADC module.
Definition: module_adc.c:55
 
Description of one column (or 1 sensor) in file.
Definition: sensor.h:32
 
SensorInterface_t adcSensor
Interface to ADC sensor.
Definition: module_adc.c:38