simple FS  v0.1.0
module_data.h
Go to the documentation of this file.
1 
45 #ifndef FLASH_MODULE_DATA_H
46 #define FLASH_MODULE_DATA_H
47 
48 #include "sensor.h"
49 
50 extern SensorInterface_t dataSensor;
51 
52 typedef struct{
53  SensorType_t data_type;
54  RecordTypeValue_t data_format;
56 
57 
58 void data_init(void*, uint16_t);
59 SensorID_t *get_data_sensor_id(uint8_t index);
60 RecordDescriptor_t data_getType();
61 SensorValue_t* get_data_value();
62 void data_reset(void);
63 void data_doMeasure(void);
64 uint8_t data_count(void);
65 
66 #endif //FLASH_MODULE_DATA_H
67 
RecordDescriptor_t
Describes internal structure of file.
Definition: file_format.h:228
SensorInterface_t
The interface, that defines list of functions, tha have to be implemented for each type of value (or ...
Definition: sensor.h:66
sensor.h
Declarations of universal functions to access to values.
SensorValue_t
Sensor value is stored as array of bytes.
Definition: sensor.h:42
Data_HandleTypeDef
Definition: module_data.h:52
RecordTypeValue_t
Base structure for description of sored value.
Definition: file_format.h:211
SensorType_t
enum sensor_type SensorType_t
Definition of base types os supported sensors.
SensorID_t
Description of one column (or 1 sensor) in file.
Definition: sensor.h:32