Go to the documentation of this file.
34 #ifndef __PQLIB_CONVERT_H__
35 #define __PQLIB_CONVERT_H__
41 #include "adi_pqlib.h"
float convert_rms_type(ADI_AFE_RMS_TYPE mag, float scale)
Converts ADI_AFE_RMS_TYPE to voltage/current magnitude.
Definition: pqlib_convert.c:54
int prepara_string(EVENT_TYPE event_type, int event_value, char *buf)
Prepare string output for specific event attribute types.
Definition: pqlib_convert.c:104
#define CHAN_EVENT_DELTA_U_SS
Definition: iio_pqm.h:108
ADI_PQLIB_COEF_TYPE convert_to_coef_fract_type(float val)
Converts val to correction coefficient.
Definition: pqlib_convert.c:90
ADI_PQLIB_PCT_TYPE convert_to_pct_type(float val)
Converts val to percentage.
Definition: pqlib_convert.c:74
#define CHAN_EVENT_DURATION_IN_CYCL
Definition: iio_pqm.h:104
float convert_pct_type(ADI_PQLIB_PCT_TYPE val)
Converts ADI_PQLIB_PCT_TYPE to percentage.
Definition: pqlib_convert.c:64
#define CHAN_EVENT_MIN_MAG
Definition: iio_pqm.h:105
uint32_t convert_to_time_ms(float timesec)
Converts time in sec to time in ms.
Definition: pqlib_convert.c:97
EVENT_TYPE
Enumeration for possible event types for iio output preparation.
Definition: pqlib_convert.h:53
@ EVENT_RVC
Definition: pqlib_convert.h:87
@ EVENT_DIPS
Definition: pqlib_convert.h:85
ADI_PQLIB_FREQ_TYPE convert_to_freq_type(float val)
Converts val to freq in mhz.
Definition: pqlib_convert.c:82
float convert_rms_type(ADI_AFE_RMS_TYPE mag, float scale)
Converts ADI_AFE_RMS_TYPE to voltage/current magnitude.
Definition: pqlib_convert.c:54
ADI_PQLIB_PCT_TYPE convert_to_pct_type(float val)
Converts val to percentage.
Definition: pqlib_convert.c:74
@ EVENT_SWELL
Definition: pqlib_convert.h:86
#define CHAN_EVENT_END_TIME
Definition: iio_pqm.h:103
ADI_AFE_ANGLE_TYPE convert_angle_type(ADI_AFE_ANGLE_TYPE angleRaw)
Definition: pqlib_convert.c:46
#define CHAN_EVENT_DELTA_U_MAX
Definition: iio_pqm.h:107
#define CHAN_EVENT_MAX_MAG
Definition: iio_pqm.h:106
PQLIB_EXAMPLE pqlibExample
Definition: pqlib_example.c:45
float convert_pct_type(ADI_PQLIB_PCT_TYPE val)
Converts ADI_PQLIB_PCT_TYPE to percentage.
Definition: pqlib_convert.c:64
int prepara_string(EVENT_TYPE event_type, int event_value, char *buf)
Prepare string output for specific event attribute types.
Definition: pqlib_convert.c:104
ADI_PQLIB_COEF_TYPE convert_to_coef_fract_type(float val)
Converts val to correction coefficient.
Definition: pqlib_convert.c:90
@ EVENT_INTRPS
Definition: pqlib_convert.h:88
float voltageScale
Definition: pqlib_example.h:116
#define CHAN_EVENT_START_TIME
Definition: iio_pqm.h:102
EXAMPLE_CONFIG exampleConfig
Definition: pqlib_example.h:150
#define MAX_EVENT_NUMBER
Definition: common_data.h:77
ADI_PQLIB_OUTPUT * output
Definition: pqlib_example.h:151
uint32_t convert_to_time_ms(float timesec)
Converts time in sec to time in ms.
Definition: pqlib_convert.c:97
ADI_PQLIB_FREQ_TYPE convert_to_freq_type(float val)
Converts val to freq in mhz.
Definition: pqlib_convert.c:82