45 #define RL_SCALE_PICO -12 46 #define RL_SCALE_TEN_PICO -11 47 #define RL_SCALE_NANO -9 48 #define RL_SCALE_TEN_NANO -8 49 #define RL_SCALE_MICRO -6 50 #define RL_SCALE_MILLI -3 51 #define RL_SCALE_NONE 0 52 #define RL_SCALE_KILO 3 53 #define RL_SCALE_MEGA 6 54 #define RL_SCALE_GIGA 9 55 #define RL_SCALE_TERA 12 60 #define RL_FILE_MAGIC 0x444C5225 // const uint32_t RL_FILE_MAGIC = 0x25524C42; 63 #define RL_FILE_VERSION 0x03 // const uint8_t RL_FILE_VERSION = 0x01; 66 #define RL_FILE_CHANNEL_NAME_LENGTH \ 67 16 // const uint8_t RL_FILE_CHANNEL_NAME_LENGTH = 16; 70 #define NO_VALID_DATA 0xFFFF // const uint16_t NO_VALID_DATA = 0xFFFF; 73 #define RL_FILE_COMMENT "This is a comment" 76 #define RL_FILE_COMMENT_ALIGNMENT_BYTES sizeof(uint32_t)
uint16_t data_size
Datum size in bytes (for voltage and current)
uint16_t header_length
Total size of the header in bytes.
struct time_stamp start_time
Start time of the measurement in UNIX time, UTC.
Degree celcius (temperature)
#define MAC_ADDRESS_LENGTH
MAC address length in bytes.
Percent (numeric, humidity)
uint64_t sample_count
Total sample count.
uint16_t channel_bin_count
Binary channel count.
uint16_t file_version
File version number.
rl_unit unit
Channel unit.
uint16_t channel_count
Analog channel count.
uint32_t comment_length
Comment length.
uint32_t magic
File magic constant.
uint32_t data_block_size
Size of the data blocks in the file in rows.
uint16_t sample_rate
Sampling rate of the measurement.
int32_t channel_scale
Channel scale (in power of ten, for voltage and current)
Integer channel (numeric)
uint16_t valid_data_channel
Link to channel valid data (for low-range current channels)
uint32_t data_block_count
Number of data blocks stored in the file.
uint8_t mac_address[MAC_ADDRESS_LENGTH]
Instrument ID (mac address)
#define RL_FILE_CHANNEL_NAME_LENGTH
Maximum channel description length.