16 #define MAC_ADDRESS_LENGTH 6 21 #define RL_SCALE_PICO -12 22 #define RL_SCALE_TEN_PICO -11 23 #define RL_SCALE_NANO -9 24 #define RL_SCALE_TEN_NANO -8 25 #define RL_SCALE_MICRO -6 26 #define RL_SCALE_MILLI -3 27 #define RL_SCALE_NONE 0 28 #define RL_SCALE_KILO 3 29 #define RL_SCALE_MEGA 6 30 #define RL_SCALE_GIGA 9 31 #define RL_SCALE_TERA 12 37 #define RL_FILE_MAGIC 0x444C5225 //const uint32_t RL_FILE_MAGIC = 0x25524C42; 40 #define RL_FILE_VERSION 0x02 //const uint8_t RL_FILE_VERSION = 0x01; 43 #define RL_FILE_CHANNEL_NAME_LENGTH 16 //const uint8_t RL_FILE_CHANNEL_NAME_LENGTH = 16; 46 #define NO_VALID_DATA 0xFFFF //const uint16_t NO_VALID_DATA = 0xFFFF; 49 #define RL_FILE_COMMENT "This is a comment" 52 #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.
int64_t sec
Seconds in UNIX time (UTC)
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.
#define MAC_ADDRESS_LENGTH
MAC address length in bytes.
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)
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.
#define RL_FILE_CHANNEL_NAME_LENGTH
Maximum channel description length.