RocketLogger  1.1.4
meter.h File Reference
#include <ncurses.h>
#include <stdint.h>
#include "log.h"
#include "types.h"
#include "util.h"
+ Include dependency graph for meter.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void meter_init (void)
 
void meter_stop (void)
 
void meter_print_buffer (struct rl_conf *conf, void *virt_addr, uint32_t sample_size)
 

Function Documentation

void meter_init ( 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:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

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.

Init meter window

Definition at line 47 of file meter.c.

Referenced by pru_sample().

void meter_print_buffer ( struct rl_conf conf,
void *  buffer_addr,
uint32_t  sample_size 
)

Print data buffer in meter window

Parameters
confPointer to current rl_conf configuration
buffer_addr
sample_sizeSize of samples in buffer

Definition at line 68 of file meter.c.

References calibration, CHANNEL_ENABLED, channel_names, channel_scales, channel_units, rl_conf::channels, count_channels(), digital_input_bits, digital_input_names, rl_conf::digital_inputs, I1L_VALID_BIT, I2L_VALID_BIT, is_current(), num_channels, NUM_CHANNELS, rl_calibration::offsets, PRU_DIG_SIZE, rl_conf::sample_rate, rl_calibration::scales, and rl_conf::update_rate.

Referenced by pru_sample().

+ Here is the call graph for this function:

void meter_stop ( void  )

Stop meter window

Definition at line 60 of file meter.c.

Referenced by pru_sample().