|
RocketLogger
1.1.5
|
Include dependency graph for ambient.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | AMBIENT_SAMPLING_RATE 1 |
| #define | AMBIENT_DATA_BLOCK_SIZE 1 |
Functions | |
| void | ambient_store_data (FILE *ambient_file, struct time_stamp *timestamp_realtime, struct time_stamp *timestamp_monotonic, struct rl_conf *conf) |
| void | ambient_set_file_name (struct rl_conf *conf) |
| void | ambient_setup_lead_in (struct rl_file_lead_in *lead_in, struct rl_conf *conf) |
| void | ambient_setup_channels (struct rl_file_header *file_header, struct rl_conf *conf) |
| void | ambient_setup_header (struct rl_file_header *file_header, struct rl_conf *conf, char *comment) |
| #define AMBIENT_DATA_BLOCK_SIZE 1 |
Definition at line 43 of file ambient.h.
Referenced by ambient_setup_lead_in(), and pru_sample().
| #define AMBIENT_SAMPLING_RATE 1 |
Copyright (c) 2016-2019, 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.
Definition at line 42 of file ambient.h.
Referenced by ambient_setup_lead_in().
| void ambient_set_file_name | ( | struct rl_conf * | conf | ) |
Definition at line 78 of file ambient.c.
References rl_conf::ambient, rl_ambient::file_name, rl_conf::file_name, and MAX_PATH_LENGTH.
Referenced by parse_args().
| void ambient_setup_channels | ( | struct rl_file_header * | file_header, |
| struct rl_conf * | conf | ||
| ) |
Definition at line 135 of file ambient.c.
References rl_conf::ambient, rl_ambient::available_sensors, rl_file_header::channel, rl_file_lead_in::channel_bin_count, rl_file_lead_in::channel_count, rl_file_channel::channel_scale, rl_file_channel::data_size, rl_file_header::lead_in, rl_sensor::name, rl_file_channel::name, NO_VALID_DATA, rl_sensor::scale, sensor_registry, SENSOR_REGISTRY_SIZE, rl_sensor::unit, rl_file_channel::unit, and rl_file_channel::valid_data_channel.
Referenced by ambient_setup_header().
| void ambient_setup_header | ( | struct rl_file_header * | file_header, |
| struct rl_conf * | conf, | ||
| char * | comment | ||
| ) |
Definition at line 160 of file ambient.c.
References ambient_setup_channels(), and rl_file_header::comment.
Referenced by pru_sample().
Here is the call graph for this function:| void ambient_setup_lead_in | ( | struct rl_file_lead_in * | lead_in, |
| struct rl_conf * | conf | ||
| ) |
Definition at line 101 of file ambient.c.
References rl_conf::ambient, AMBIENT_DATA_BLOCK_SIZE, AMBIENT_SAMPLING_RATE, rl_file_lead_in::channel_bin_count, rl_file_lead_in::channel_count, rl_file_lead_in::comment_length, create_time_stamp(), rl_file_lead_in::data_block_count, rl_file_lead_in::data_block_size, rl_file_lead_in::file_version, get_mac_addr(), rl_file_lead_in::header_length, rl_file_lead_in::mac_address, rl_file_lead_in::magic, RL_FILE_COMMENT_ALIGNMENT_BYTES, RL_FILE_MAGIC, RL_FILE_VERSION, rl_file_lead_in::sample_count, rl_file_lead_in::sample_rate, rl_ambient::sensor_count, and rl_file_lead_in::start_time.
Referenced by pru_sample().
Here is the call graph for this function:| void ambient_store_data | ( | FILE * | ambient_file, |
| struct time_stamp * | timestamp_realtime, | ||
| struct time_stamp * | timestamp_monotonic, | ||
| struct rl_conf * | conf | ||
| ) |
Copyright (c) 2016-2019, 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. Handle a ambient data buffer, dependent on current configuration
| ambient_file | File pointer to ambient file |
| timestamp_realtime | time_stamp with realtime clock value |
| timestamp_monotonic | time_stamp with monotonic clock value |
| conf | Current rl_conf configuration. |
Definition at line 43 of file ambient.c.
References rl_conf::ambient, rl_ambient::available_sensors, rl_sensor::getValue, rl_sensor::identifier, rl_sensor::read, rl_ambient::sensor_count, sensor_registry, and SENSOR_REGISTRY_SIZE.
Referenced by pru_sample().