63 #include <pruss_intc_mapping.h> 82 #define PID_FILE "/var/run/rocketlogger.pid" 83 #define LOG_FILE "/var/www/log/log.txt" 85 #define MAC_ADDRESS_FILE "/sys/class/net/eth0/address" 87 #define CALIBRATION_FILE "/etc/rocketlogger/calibration.dat" 91 #define MAX_LOG_FILE_SIZE 1000000 94 #define SHMEM_STATUS_KEY 1111 95 #define SHMEM_DATA_KEY 4443 97 #define SHMEM_PERMISSIONS 0666 102 #define MAX_PATH_LENGTH 256 103 #define NUM_CHANNELS 8 105 #define NUM_I_CHANNELS 2 107 #define NUM_V_CHANNELS 4 109 #define NUM_DIGITAL_INPUTS 6 111 #define METER_UPDATE_RATE 5 113 #define PRU_DIG_SIZE 2 115 #define PRU_BUFFER_STATUS_SIZE 4 124 #define I1L_VALID_BIT 1 125 #define I2L_VALID_BIT 1 134 #define MIN_ADC_RATE 1000 206 #define RL_CONF_VERSION 0x01 209 #define AMBIENT_MAX_SENSOR_COUNT 128 210 #define AMBIENT_DISABLED 0 211 #define AMBIENT_ENABLED 1 221 #define CHANNEL_DISABLED 0 222 #define CHANNEL_ENABLED 1 240 #define DIGITAL_INPUTS_DISABLED 0 241 #define DIGITAL_INPUTS_ENABLED 1 315 #define SEM_TIME_OUT 3 317 #define SEM_WRITE_TIME_OUT 1 319 #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.