no-OS
Macros | Variables
iio_pqm.h File Reference
#include "common_data.h"
#include "pqlib_afe.h"
#include "pqlib_convert.h"
#include "pqlib_example.h"
#include "status.h"
#include <inttypes.h>
Include dependency graph for iio_pqm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ATTR_U2   0
 
#define ATTR_U0   1
 
#define SNEG_VOLTAGE   2
 
#define SPOS_VOLTAGE   3
 
#define SZRO_VOLTAGE   4
 
#define ATTR_I2   5
 
#define ATTR_I0   6
 
#define SNEG_CURRENT   7
 
#define SPOS_CURRENT   8
 
#define SZRO_CURRENT   9
 
#define NOMINAL_VOLTAGE   10
 
#define VOLTAGE_SCALE   11
 
#define CURRENT_SCALE   12
 
#define I_CONSEL_ENABLE   13
 
#define DIP_THRESHOLD   14
 
#define DIP_HYSTERESIS   15
 
#define SWELL_THRESHOLD   16
 
#define SWELL_HYSTERESIS   17
 
#define INTERP_THRESHOLD   18
 
#define INTERP_HYSTERESIS   19
 
#define RVC_THRESHOLD   20
 
#define RVC_HYSTERESIS   21
 
#define MSV_CARRIER_FREQUENCY   22
 
#define MSV_RECORDING_LENGTH   23
 
#define MSV_THRESHOLD   24
 
#define SAMPLING_FREQUENCY   25
 
#define V_CONSEL   26
 
#define V_CONSEL_AVAILABLE   27
 
#define FLICKER_MODEL   28
 
#define FLICKER_MODEL_AVAILABLE   29
 
#define NOMINAL_FREQUENCY   30
 
#define NOMINAL_FREQUENCY_AVAILABLE   31
 
#define PROCESS_DATA   32
 
#define FW_VERSION_NR   33
 
#define CHAN_RMS   0
 
#define CHAN_ANGLE   1
 
#define CHAN_HARMONICS   2
 
#define CHAN_INTER_HARMONICS   3
 
#define CHAN_SCALE   4
 
#define CHAN_OFFSET   5
 
#define CHAN_THD   6
 
#define CHAN_RAW   7
 
#define CHAN_VOLTAGE_UNDER_DEV   8
 
#define CHAN_VOLTAGE_OVER_DEV   9
 
#define CHAN_VOLTAGE_PINST   10
 
#define CHAN_VOLTAGE_PST   11
 
#define CHAN_VOLTAGE_PLT   12
 
#define RESAMPLED_WAVEFORM_FULL_SCALE   18196
 

Variables

struct iio_device pqm_iio_descriptor
 
volatile bool configChanged
 
volatile bool processData
 

Macro Definition Documentation

◆ ATTR_I0

#define ATTR_I0   6

◆ ATTR_I2

#define ATTR_I2   5

◆ ATTR_U0

#define ATTR_U0   1

◆ ATTR_U2

#define ATTR_U2   0

◆ CHAN_ANGLE

#define CHAN_ANGLE   1

◆ CHAN_HARMONICS

#define CHAN_HARMONICS   2

◆ CHAN_INTER_HARMONICS

#define CHAN_INTER_HARMONICS   3

◆ CHAN_OFFSET

#define CHAN_OFFSET   5

◆ CHAN_RAW

#define CHAN_RAW   7

◆ CHAN_RMS

#define CHAN_RMS   0

◆ CHAN_SCALE

#define CHAN_SCALE   4

◆ CHAN_THD

#define CHAN_THD   6

◆ CHAN_VOLTAGE_OVER_DEV

#define CHAN_VOLTAGE_OVER_DEV   9

◆ CHAN_VOLTAGE_PINST

#define CHAN_VOLTAGE_PINST   10

◆ CHAN_VOLTAGE_PLT

#define CHAN_VOLTAGE_PLT   12

◆ CHAN_VOLTAGE_PST

#define CHAN_VOLTAGE_PST   11

◆ CHAN_VOLTAGE_UNDER_DEV

#define CHAN_VOLTAGE_UNDER_DEV   8

◆ CURRENT_SCALE

#define CURRENT_SCALE   12

◆ DIP_HYSTERESIS

#define DIP_HYSTERESIS   15

◆ DIP_THRESHOLD

#define DIP_THRESHOLD   14

◆ FLICKER_MODEL

#define FLICKER_MODEL   28

◆ FLICKER_MODEL_AVAILABLE

#define FLICKER_MODEL_AVAILABLE   29

◆ FW_VERSION_NR

#define FW_VERSION_NR   33

◆ I_CONSEL_ENABLE

#define I_CONSEL_ENABLE   13

◆ INTERP_HYSTERESIS

#define INTERP_HYSTERESIS   19

◆ INTERP_THRESHOLD

#define INTERP_THRESHOLD   18

◆ MSV_CARRIER_FREQUENCY

#define MSV_CARRIER_FREQUENCY   22

◆ MSV_RECORDING_LENGTH

#define MSV_RECORDING_LENGTH   23

◆ MSV_THRESHOLD

#define MSV_THRESHOLD   24

◆ NOMINAL_FREQUENCY

#define NOMINAL_FREQUENCY   30

◆ NOMINAL_FREQUENCY_AVAILABLE

#define NOMINAL_FREQUENCY_AVAILABLE   31

◆ NOMINAL_VOLTAGE

#define NOMINAL_VOLTAGE   10

◆ PROCESS_DATA

#define PROCESS_DATA   32

◆ RESAMPLED_WAVEFORM_FULL_SCALE

#define RESAMPLED_WAVEFORM_FULL_SCALE   18196

◆ RVC_HYSTERESIS

#define RVC_HYSTERESIS   21

◆ RVC_THRESHOLD

#define RVC_THRESHOLD   20

◆ SAMPLING_FREQUENCY

#define SAMPLING_FREQUENCY   25

◆ SNEG_CURRENT

#define SNEG_CURRENT   7

◆ SNEG_VOLTAGE

#define SNEG_VOLTAGE   2

◆ SPOS_CURRENT

#define SPOS_CURRENT   8

◆ SPOS_VOLTAGE

#define SPOS_VOLTAGE   3

◆ SWELL_HYSTERESIS

#define SWELL_HYSTERESIS   17

◆ SWELL_THRESHOLD

#define SWELL_THRESHOLD   16

◆ SZRO_CURRENT

#define SZRO_CURRENT   9

◆ SZRO_VOLTAGE

#define SZRO_VOLTAGE   4

◆ V_CONSEL

#define V_CONSEL   26

◆ V_CONSEL_AVAILABLE

#define V_CONSEL_AVAILABLE   27

◆ VOLTAGE_SCALE

#define VOLTAGE_SCALE   11

Variable Documentation

◆ configChanged

volatile bool configChanged

◆ pqm_iio_descriptor

struct iio_device pqm_iio_descriptor

◆ processData

volatile bool processData