|
RocketLogger
1.1.4
|
#include "rl_lib.h"
Include dependency graph for rl_lib.c:Go to the source code of this file.
Functions | |
| rl_state | rl_get_status (void) |
| int | rl_read_status (struct rl_status *status) |
| void | rl_read_calibration (struct rl_calibration *calibration_ptr, struct rl_conf *conf) |
| int | rl_start (struct rl_conf *conf, char *file_comment) |
| int | rl_stop (void) |
| rl_state rl_get_status | ( | void | ) |
Copyright (c) 2016-2018, Swiss Federal Institute of Technology (ETH Zurich) All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Get status of RocketLogger
Definition at line 38 of file rl_lib.c.
References FAILURE, get_pid(), read_status(), RL_OFF, and rl_status::state.
Referenced by main(), and rl_stop().
Here is the call graph for this function:| void rl_read_calibration | ( | struct rl_calibration * | calibration_ptr, |
| struct rl_conf * | conf | ||
| ) |
Read calibration file
| calibration_ptr | Pointer to rl_calibration to write to |
| conf | Current rl_conf configuration |
Definition at line 79 of file rl_lib.c.
References calibration, and read_calibration().
Referenced by print_status().
Here is the call graph for this function:| int rl_read_status | ( | struct rl_status * | status | ) |
Read status of RocketLogger
| status | Pointer to rl_status struct to write to |
Definition at line 60 of file rl_lib.c.
References FAILURE, get_pid(), read_status(), RL_OFF, and rl_status::state.
Referenced by main().
Here is the call graph for this function:| int rl_start | ( | struct rl_conf * | conf, |
| char * | file_comment | ||
| ) |
RocketLogger start function: start sampling
| conf | Pointer to desired rl_conf configuration |
| file_comment | Comment to store in the file header |
Definition at line 91 of file rl_lib.c.
References rl_conf::ambient, AMBIENT_DISABLED, AMBIENT_ENABLED, check_sample_rate(), check_update_rate(), CONTINUOUS, rl_conf::enable_web_server, rl_ambient::enabled, ERROR, FAILURE, rl_conf::file_format, hw_close(), hw_init(), hw_sample(), INFO, LIMIT, METER, METER_UPDATE_RATE, MIN_ADC_RATE, rl_conf::mode, NO_FILE, rl_log(), rl_conf::sample_limit, rl_conf::sample_rate, rl_ambient::sensor_count, set_pid(), sig_handler(), SUCCESS, rl_conf::update_rate, and WARNING.
Referenced by main().
Here is the call graph for this function:| int rl_stop | ( | void | ) |
RocketLogger stop function (to stop continuous mode)
Definition at line 180 of file rl_lib.c.
References ERROR, FAILURE, get_pid(), rl_get_status(), rl_log(), RL_RUNNING, and SUCCESS.
Referenced by main().
Here is the call graph for this function: