RocketLogger 2.1.3
rl_config Struct Reference

#include <rl.h>

Data Fields

uint8_t config_version
 Configuration structure version.
 
bool background_enable
 Put the measurement process in background after successful start.
 
bool interactive_enable
 Display measurement data interactively in CLI while sampling.
 
uint64_t sample_limit
 Sample limit (0 for continuous)
 
uint32_t sample_rate
 Sampling rate.
 
uint32_t update_rate
 Data update rate.
 
bool channel_enable [RL_CHANNEL_COUNT]
 Channels to sample.
 
bool channel_force_range [RL_CHANNEL_SWITCHED_COUNT]
 Current channels to force to high range.
 
rl_aggregation_mode_t aggregation_mode
 Sample aggregation mode (for sampling rates below lowest native one)
 
bool digital_enable
 Enable digital inputs.
 
bool web_enable
 Enable web interface connection.
 
bool calibration_ignore
 Perform calibration measurement (ignore existing calibration)
 
bool ambient_enable
 Enable logging of ambient sensor.
 
bool file_enable
 Enable storing measurements to file.
 
char file_name [PATH_MAX]
 Data file name.
 
rl_file_format_t file_format
 File format.
 
uint64_t file_size
 Maximum data file size.
 
char const * file_comment
 File comment.
 

Detailed Description

RocketLogger sampling configuration.

Definition at line 154 of file rl.h.

Field Documentation

◆ aggregation_mode

rl_aggregation_mode_t rl_config::aggregation_mode

Sample aggregation mode (for sampling rates below lowest native one)

Definition at line 172 of file rl.h.

Referenced by meter_print_buffer(), rl_config_print(), rl_config_print_cmd(), and rl_file_add_data_block().

◆ ambient_enable

bool rl_config::ambient_enable

Enable logging of ambient sensor.

Definition at line 180 of file rl.h.

Referenced by hw_deinit(), hw_init(), hw_sample(), pru_sample(), rl_config_get_json(), rl_config_print_cmd(), rl_run(), rl_socket_handle_data(), and rl_socket_metadata().

◆ background_enable

bool rl_config::background_enable

Put the measurement process in background after successful start.

Definition at line 158 of file rl.h.

Referenced by adc_calibrate(), hw_deinit(), pru_sample(), rl_config_get_json(), rl_config_print(), rl_config_print_cmd(), and rl_config_validate().

◆ calibration_ignore

bool rl_config::calibration_ignore

Perform calibration measurement (ignore existing calibration)

Definition at line 178 of file rl.h.

Referenced by hw_sample(), rl_config_get_json(), rl_config_print(), rl_config_print_cmd(), and rl_file_setup_data_channels().

◆ channel_enable

◆ channel_force_range

bool rl_config::channel_force_range[RL_CHANNEL_SWITCHED_COUNT]

Current channels to force to high range.

Definition at line 170 of file rl.h.

Referenced by hw_init(), rl_config_get_json(), rl_config_print(), and rl_config_print_cmd().

◆ config_version

uint8_t rl_config::config_version

Configuration structure version.

Definition at line 156 of file rl.h.

Referenced by rl_config_read_default(), and rl_config_validate().

◆ digital_enable

◆ file_comment

char const* rl_config::file_comment

◆ file_enable

bool rl_config::file_enable

Enable storing measurements to file.

Definition at line 182 of file rl.h.

Referenced by adc_calibrate(), hw_init(), hw_sample(), pru_sample(), rl_config_get_json(), rl_config_print(), rl_config_print_cmd(), and rl_file_add_data_block().

◆ file_format

rl_file_format_t rl_config::file_format

File format.

Definition at line 186 of file rl.h.

Referenced by pru_sample(), rl_config_get_json(), rl_config_print(), rl_config_print_cmd(), and rl_file_add_data_block().

◆ file_name

char rl_config::file_name[PATH_MAX]

Data file name.

Definition at line 184 of file rl.h.

Referenced by hw_sample(), pru_sample(), rl_config_get_json(), rl_config_print(), rl_config_print_cmd(), and rl_status_write().

◆ file_size

uint64_t rl_config::file_size

Maximum data file size.

Definition at line 188 of file rl.h.

Referenced by pru_sample(), rl_config_get_json(), rl_config_print(), rl_config_print_cmd(), and rl_config_validate().

◆ interactive_enable

bool rl_config::interactive_enable

Display measurement data interactively in CLI while sampling.

Definition at line 160 of file rl.h.

Referenced by adc_calibrate(), pru_sample(), rl_config_get_json(), rl_config_print(), rl_config_print_cmd(), and rl_config_validate().

◆ sample_limit

uint64_t rl_config::sample_limit

Sample limit (0 for continuous)

Definition at line 162 of file rl.h.

Referenced by adc_calibrate(), pru_control_init(), pru_sample(), rl_config_get_json(), rl_config_print(), and rl_config_print_cmd().

◆ sample_rate

◆ update_rate

◆ web_enable

bool rl_config::web_enable

Enable web interface connection.

Definition at line 176 of file rl.h.

Referenced by adc_calibrate(), pru_sample(), rl_config_get_json(), rl_config_print(), rl_config_print_cmd(), and rl_run().


The documentation for this struct was generated from the following file: