|
RocketLogger
1.0
|
Include dependency graph for rl_hw.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | FHR1_GPIO 30 |
| Linux GPIO number for forcing I1 high. More... | |
| #define | FHR2_GPIO 60 |
| Linux GPIO number for forcing I2 high. More... | |
| #define | LED_STATUS_GPIO 45 |
| Linux GPIO number of status LED. More... | |
| #define | LED_ERROR_GPIO 44 |
| Linux GPIO number of error LED. More... | |
Functions | |
| void | hw_init (struct rl_conf *conf) |
| void | hw_close (struct rl_conf *conf) |
| int | hw_sample (struct rl_conf *conf) |
| #define FHR1_GPIO 30 |
Linux GPIO number for forcing I1 high.
Copyright (c) 2016-2017, ETH Zurich, Computer Engineering Group
Definition at line 12 of file rl_hw.h.
Referenced by hw_close(), and hw_init().
| #define FHR2_GPIO 60 |
Linux GPIO number for forcing I2 high.
Definition at line 14 of file rl_hw.h.
Referenced by hw_close(), and hw_init().
| #define LED_ERROR_GPIO 44 |
Linux GPIO number of error LED.
Definition at line 18 of file rl_hw.h.
Referenced by hw_init(), and hw_sample().
| #define LED_STATUS_GPIO 45 |
Linux GPIO number of status LED.
Definition at line 16 of file rl_hw.h.
Referenced by hw_close(), and hw_init().
| 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: