simple FS  v0.1.0
Modules | Classes | Macros | Functions
Sensor_specification

Definition of sensoric/data modules in simple FS. More...

Collaboration diagram for Sensor_specification:

Modules

 Sensor_ADC
 module for Analog-Digital converter
 
 Sensor_Data
 module for primitive data types
 
 Sensor_OneWire
 module for 1-wire termometers
 
 Sensor_RTC
 module for Real Time Clock
 

Classes

struct  SensorID_t
 Description of one column (or 1 sensor) in file. More...
 
struct  SensorValue_t
 Sensor value is stored as array of bytes. More...
 
struct  SensorInterface_t
 The interface, that defines list of functions, tha have to be implemented for each type of value (or sensor), that will be inserted in file. More...
 

Macros

#define SENSOR_ID_LENGTH   8
 Length of sensor ID in bytes.
 

Functions

uint8_t get_sensor_data_length (ValueFormatMetaLength_t length_code)
 Compute real data length (in bytes) from code length. More...
 

Detailed Description

Definition of sensoric/data modules in simple FS.

Function Documentation

◆ get_sensor_data_length()

uint8_t get_sensor_data_length ( ValueFormatMetaLength_t  length_code)

Compute real data length (in bytes) from code length.

Parameters
length_codecode length defined in ValueFormatMetaLength_t
Returns
real number of bytes for specified code length.