RocketLogger  1.0
meter.c File Reference
#include "meter.h"
+ Include dependency graph for meter.c:

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 *buffer_addr, uint32_t sample_size)
 

Variables

char * channel_units [NUM_CHANNELS] = {"mA","uA","V","V","mA","uA","V","V"}
 Analog channel units. More...
 
uint32_t channel_scales [NUM_CHANNELS] = {1000000, 100000, 100000000, 100000000,1000000, 100000, 100000000, 100000000}
 Analog channel scales. More...
 
const uint32_t digital_input_bits [NUM_DIGITAL_INPUTS] = {DIGIN1_BIT, DIGIN2_BIT, DIGIN3_BIT, DIGIN4_BIT, DIGIN5_BIT, DIGIN6_BIT}
 Digital input bit location in binary data. More...
 

Function Documentation

void meter_init ( void  )

Init meter window

Definition at line 17 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 40 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 30 of file meter.c.

Referenced by pru_sample().

Variable Documentation

uint32_t channel_scales[NUM_CHANNELS] = {1000000, 100000, 100000000, 100000000,1000000, 100000, 100000000, 100000000}

Analog channel scales.

Definition at line 10 of file meter.c.

Referenced by meter_print_buffer().

char* channel_units[NUM_CHANNELS] = {"mA","uA","V","V","mA","uA","V","V"}

Analog channel units.

Copyright (c) 2016-2017, ETH Zurich, Computer Engineering Group

Definition at line 8 of file meter.c.

Referenced by meter_print_buffer().

const uint32_t digital_input_bits[NUM_DIGITAL_INPUTS] = {DIGIN1_BIT, DIGIN2_BIT, DIGIN3_BIT, DIGIN4_BIT, DIGIN5_BIT, DIGIN6_BIT}

Digital input bit location in binary data.

Definition at line 12 of file meter.c.

Referenced by meter_print_buffer().