 |
simple FS
v0.1.0
|
Go to the documentation of this file.
27 #ifndef INC_SENSOR_FS_H_
28 #define INC_SENSOR_FS_H_
37 void FS_init(
void *hw_obj1,
void *hw_obj2, uint16_t hw_obj3);
59 void file_dump_memory(
void);
uint8_t file_get_num_parts(SimpleFS_t *fileP)
Return number parts of opened file.
Definition: sensor_FS.c:249
uint8_t FS_is_empty(void)
Check, that sensorFS/FLASH is empty.
Definition: sensor_FS.c:370
Module for communication Analog-digital peripheral used on MCU.
SimpleFS_t * FS_open_last_file(void)
Open last file on sensorFS.
Definition: sensor_FS.c:226
void FS_init(void *hw_obj1, void *hw_obj2, uint16_t hw_obj3)
Init the sensorFS filesystem.
Definition: sensor_FS.c:86
Module for manipulating with primitive data types. Supported modes:
Module for communication Real Time Clock (RTC) peripheral used on MCU. Supported modes:
void file_data_prepare(void)
Start value measure on all sensors.
Definition: sensor_FS.c:295
SimpleFS_t * FS_open_file(uint8_t id_file)
Try open to file with given ID.
Definition: sensor_FS.c:217
enum state FS_state
State definition for memory operations.
FS_state FS_commit_file_header(void)
Finish write information about created file.
Definition: sensor_FS.c:204
Describes internal structure of file.
Definition: file_format.h:228
The interface, that defines list of functions, tha have to be implemented for each type of value (or ...
Definition: sensor.h:66
uint32_t file_size(SimpleFS_t *fs)
Return file size in Bytes.
Definition: sensor_FS.c:356
uint8_t FS_num_files()
Return number of files, that is stored in internal info structure.
Definition: sensor_FS.c:268
Sensor value is stored as array of bytes.
Definition: sensor.h:42
SensorInterface_t * FS_sensor_driver(uint8_t sensor_part)
Return driver for attached sensor.
Definition: sensor_FS.c:287
Low-level functions to communicate with simpleFileSystem.
uint16_t file_record_length(SimpleFS_t *fileP)
Return length of record.
Definition: sensor_FS.c:240
Base structure for sFS.
Definition: file_format.h:271
void file_data_row_commit(SimpleFS_t *fs)
Write prepared measured values (by file_store_data} function) to FLASH.
Definition: sensor_FS.c:347
RecordDescriptor_t file_column_format(SimpleFS_t *fileP, uint8_t index_part)
Return format of i-th sensor inf datafile.
Definition: sensor_FS.c:259
FS_state file_add_sensor(uint8_t index, uint8_t index_in_driver, SensorInterface_t *sensor)
Add new sensor to created file.
Definition: sensor_FS.c:180
uint32_t file_data_row_begin(SimpleFS_t *fs)
Initialize internal data structures for new data record.
Definition: sensor_FS.c:321
FS_state FS_write_preamble(void)
Write preamble aprt in sensorFS, if not exists.
Definition: sensor_FS.c:384
uint8_t FS_create_file()
Begin file creation procedure.
Definition: sensor_FS.c:114
Module for communication with sensors in One-Wire bus. Supported modes:
uint8_t FS_detect_num_files(void)
Return number of files.
Definition: sensor_FS.c:277
FS_state file_store_data(SimpleFS_t *fs, uint8_t index, SensorValue_t *value)
Prepare measured value to file buffer.
Definition: sensor_FS.c:337