5 #define _FILE_OFFSET_BITS 64 88 FILE* data = (FILE*) -1;
99 rl_log(
WARNING,
"no calibration file, returning uncalibrated values");
int force_high_channels[NUM_I_CHANNELS]
Current channels to force to high range.
int write_status(struct rl_status *status)
Limited sampling mode (limited by number of samples to take)
rl_mode mode
Sampling mode.
void range_clock_setup(int sample_rate)
struct rl_status status
Current status of RocketLogger.
void rl_log(rl_log_type type, const char *format,...)
#define FHR2_GPIO
Linux GPIO number for forcing I2 high.
#define LED_ERROR_GPIO
Linux GPIO number of error LED.
int pru_sample(FILE *data, struct rl_conf *conf)
uint64_t samples_taken
Number of samples taken.
int gpio_set_value(int num, int val)
#define LED_STATUS_GPIO
Linux GPIO number of status LED.
char file_name[MAX_PATH_LENGTH]
Data file name.
#define CHANNEL_DISABLED
Channel sampling disabled.
rl_file_format file_format
File format.
uint32_t buffer_number
Number of buffers taken.
int gpio_unexport(int num)
struct rl_conf conf
Current configuration.
int sample_rate
Sampling rate.
#define FHR1_GPIO
Linux GPIO number for forcing I1 high.
void hw_init(struct rl_conf *conf)
rl_sampling sampling
Sampling state.
void adc_clock_setup(void)
#define MIN_ADC_RATE
Minimal ADC sampling rate.
void hw_close(struct rl_conf *conf)
int read_calibration(struct rl_conf *conf)
int gpio_dir(int num, rl_direction dir)
int hw_sample(struct rl_conf *conf)