37 #include <pruss_intc_mapping.h> 57 #define PID_FILE "/var/run/rocketlogger.pid" 58 #define LOG_FILE "/var/www/log/log.txt" 60 #define MAC_ADDRESS_FILE "/sys/class/net/eth0/address" 62 #define CALIBRATION_FILE "/etc/rocketlogger/calibration.dat" 66 #define MAX_LOG_FILE_SIZE 1000000 69 #define SHMEM_STATUS_KEY 1111 70 #define SHMEM_DATA_KEY 4443 76 #define MAX_PATH_LENGTH 100 77 #define NUM_CHANNELS 8 79 #define NUM_I_CHANNELS 2 81 #define NUM_V_CHANNELS 4 83 #define NUM_DIGITAL_INPUTS 6 85 #define METER_UPDATE_RATE 5 87 #define PRU_DIG_SIZE 2 89 #define PRU_BUFFER_STATUS_SIZE 4 98 #define I1L_VALID_BIT 1 99 #define I2L_VALID_BIT 1 108 #define MIN_ADC_RATE 1000 176 #define CHANNEL_DISABLED 0 177 #define CHANNEL_ENABLED 1 195 #define DIGITAL_INPUTS_DISABLED 0 196 #define DIGITAL_INPUTS_ENABLED 1 265 #define SEM_TIME_OUT 3 267 #define SEM_WRITE_TIME_OUT 1 269 #define SEM_SET_TIME_OUT 1 int force_high_channels[NUM_I_CHANNELS]
Current channels to force to high range.
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 digital_inputs
En-/disable digital inputs.
#define MAX_PATH_LENGTH
Maximum path length in characters.
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.
#define NUM_I_CHANNELS
Maximum number of RocketLogger current channels.
int sample_limit
Sample limit (0 for continuous)
enum sampling rl_sampling
#define NUM_CHANNELS
Maximum number of RocketLogger channels.
char file_name[MAX_PATH_LENGTH]
Data file name.
Set default configuration.
int channels[NUM_CHANNELS]
Channels to sample.
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.
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)
const char * digital_input_names[NUM_DIGITAL_INPUTS]
Digital input names.