|
RocketLogger
1.0
|
#include "rl_hw.h"
Include dependency graph for rl_hw.c:Go to the source code of this file.
Macros | |
| #define | _FILE_OFFSET_BITS 64 |
Functions | |
| void | hw_init (struct rl_conf *conf) |
| void | hw_close (struct rl_conf *conf) |
| int | hw_sample (struct rl_conf *conf) |
| #define _FILE_OFFSET_BITS 64 |
| void hw_close | ( | struct rl_conf * | conf | ) |
Close all hardware modules
| conf | Pointer to current rl_conf configuration |
Definition at line 56 of file rl_hw.c.
References rl_status::buffer_number, FHR1_GPIO, FHR2_GPIO, gpio_set_value(), gpio_unexport(), LED_STATUS_GPIO, LIMIT, rl_conf::mode, pru_close(), pru_stop(), pwm_close(), rl_status::samples_taken, status, and write_status().
Referenced by rl_start().
Here is the call graph for this function:| void hw_init | ( | struct rl_conf * | conf | ) |
Initiate all hardware modules
| conf | Pointer to current rl_conf configuration |
Definition at line 13 of file rl_hw.c.
References adc_clock_setup(), rl_status::buffer_number, CHANNEL_DISABLED, rl_status::conf, FHR1_GPIO, FHR2_GPIO, rl_conf::force_high_channels, gpio_dir(), gpio_export(), gpio_set_value(), LED_ERROR_GPIO, LED_STATUS_GPIO, MIN_ADC_RATE, OUT, pru_init(), pwm_setup(), range_clock_setup(), RL_RUNNING, rl_conf::sample_rate, rl_status::samples_taken, rl_status::sampling, SAMPLING_OFF, rl_status::state, status, and write_status().
Referenced by rl_start().
Here is the call graph for this function:| int hw_sample | ( | struct rl_conf * | conf | ) |
Hardware sampling function
| conf | Pointer to current rl_conf configuration |
Definition at line 85 of file rl_hw.c.
References ERROR, FAILURE, rl_conf::file_format, rl_conf::file_name, gpio_set_value(), LED_ERROR_GPIO, NO_FILE, pru_sample(), read_calibration(), rl_log(), SUCCESS, and WARNING.
Referenced by rl_start().
Here is the call graph for this function: