62 #include <pruss_intc_mapping.h> 81 #define PID_FILE "/var/run/rocketlogger.pid" 82 #define LOG_FILE "/var/www/log/log.txt" 84 #define MAC_ADDRESS_FILE "/sys/class/net/eth0/address" 86 #define CALIBRATION_FILE "/etc/rocketlogger/calibration.dat" 90 #define MAX_LOG_FILE_SIZE 1000000 93 #define SHMEM_STATUS_KEY 1111 94 #define SHMEM_DATA_KEY 4443 96 #define SHMEM_PERMISSIONS 0666 101 #define MAX_PATH_LENGTH 256 102 #define NUM_CHANNELS 8 104 #define NUM_I_CHANNELS 2 106 #define NUM_V_CHANNELS 4 108 #define NUM_DIGITAL_INPUTS 6 110 #define METER_UPDATE_RATE 5 112 #define PRU_DIG_SIZE 2 114 #define PRU_BUFFER_STATUS_SIZE 4 123 #define I1L_VALID_BIT 1 124 #define I2L_VALID_BIT 1 133 #define MIN_ADC_RATE 1000 205 #define RL_CONF_VERSION 0x01 208 #define AMBIENT_MAX_SENSOR_COUNT 128 209 #define AMBIENT_DISABLED 0 210 #define AMBIENT_ENABLED 1 220 #define CHANNEL_DISABLED 0 221 #define CHANNEL_ENABLED 1 239 #define DIGITAL_INPUTS_DISABLED 0 240 #define DIGITAL_INPUTS_ENABLED 1 314 #define SEM_TIME_OUT 3 316 #define SEM_WRITE_TIME_OUT 1 318 #define SEM_SET_TIME_OUT 1 Limited sampling mode (limited by number of samples to take)
Print default configuration.
Get current status of RocketLogger.
#define NUM_DIGITAL_INPUTS
Number of RocketLogger digital channels.
rl_mode mode
Sampling mode.
Stop continuous sampling.
Continuous sampling mode (in background)
int available_sensors[AMBIENT_MAX_SENSOR_COUNT]
int digital_inputs
En-/disable digital inputs.
#define MAX_PATH_LENGTH
Maximum path length in characters.
enum aggregation rl_aggregation
struct rl_ambient ambient
int enable_web_server
En-/disable plots on web interface.
rl_use_cal calibration
Use/ignore existing calibration.
const char * valid_info_names[NUM_I_CHANNELS]
Range valid information names.
uint64_t samples_taken
Number of samples taken.
Aggregate by averaging data.
int version
Configuration structure version.
#define NUM_I_CHANNELS
Maximum number of RocketLogger current channels.
Aggregate using downsampling.
int sample_limit
Sample limit (0 for continuous)
enum sampling rl_sampling
#define NUM_CHANNELS
Maximum number of RocketLogger channels.
Set default configuration.
enum log_type rl_log_type
uint64_t time
Time stamp of calibration run.
Print the RocketLogger Software Stack version.
uint64_t calibration_time
Time stamp of last calibration run.
enum file_format rl_file_format
rl_file_format file_format
File format.
uint32_t buffer_number
Number of buffers taken.
int update_rate
Data update rate.
char file_name[MAX_PATH_LENGTH]
int sample_rate
Sampling rate.
const char * channel_names[NUM_CHANNELS]
Channel names.
struct rl_status status
RocketLogger status.
Use calibration (if existing)
uint64_t max_file_size
Maximum data file size.
rl_sampling sampling
Sampling state.
Meter mode (display current values in terminal)
rl_aggregation aggregation
Aggregation mode (for sampling rates below lowest native one)
#define AMBIENT_MAX_SENSOR_COUNT
const char * digital_input_names[NUM_DIGITAL_INPUTS]
Digital input names.
struct rl_calibration calibration
Calibration data.