no-OS
pqlib_example.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * @file pqlib_example.h
3  * @brief Header file for pqlib display example functions
4  * @author Robert Budai (robert.budai@analog.com)
5  ********************************************************************************
6  * Copyright (c) 2024 Analog Devices, Inc.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions are met:
10  *
11  * 1. Redistributions of source code must retain the above copyright notice,
12  * this list of conditions and the following disclaimer.
13  *
14  * 2. Redistributions in binary form must reproduce the above copyright notice,
15  * this list of conditions and the following disclaimer in the documentation
16  * and/or other materials provided with the distribution.
17  *
18  * 3. Neither the name of Analog Devices, Inc. nor the names of its
19  * contributors may be used to endorse or promote products derived from this
20  * software without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR
23  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
24  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
25  * EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
26  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
28  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
31  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  *******************************************************************************/
33 
34 #ifndef __PQLIB_EXAMPLE_H__
35 #define __PQLIB_EXAMPLE_H__
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 
41 #include "ade9430.h"
42 #include "adi_pqlib.h"
43 #include "adi_pqlib_memory.h"
44 #include "adi_pqlib_profile.h"
45 #include "pqlib_convert.h"
46 #include "status.h"
47 #include <stddef.h>
48 #include "no_os_circular_buffer.h"
49 
50 /******************************************************************************/
51 /********************** Macros and Constants Definitions **********************/
52 /******************************************************************************/
53 
54 #define PQLIB_MAX_CHANNELS 7
55 #define ADI_PQLIB_NUM_WAVEFORM_BLOCKS 4
56 #define PQLIB_MAX_HARMONICS 50
57 #define PQLIB_MAX_INTER_HARMONICS 50
58 #define SIZE_OF_INPUT_RTC 19
59 
64 typedef enum {
68 } PQLIB_STATE;
69 
74 typedef enum {
81 
85 typedef struct {
89  uint8_t harmonics[PQLIB_MAX_HARMONICS];
90  uint8_t interHarmonics[PQLIB_MAX_INTER_HARMONICS];
91  uint8_t maxHarmonics;
93  uint8_t rtcBuff[SIZE_OF_INPUT_RTC];
94  uint16_t currentCorrCoef[PQLIB_MAX_HARMONICS];
95  uint16_t voltageCorrCoef[PQLIB_MAX_HARMONICS];
100  uint32_t cyclesToRun;
102  uint32_t correction;
104  uint64_t syncTime;
119  float inputCurrentCorrCoef50Hz[PQLIB_MAX_HARMONICS];
120  float inputVoltageCorrCoef50Hz[PQLIB_MAX_HARMONICS];
121  float inputCurrentCorrCoef60Hz[PQLIB_MAX_HARMONICS];
122  float inputVoltageCorrCoef60Hz[PQLIB_MAX_HARMONICS];
123  char *pEnabledChannels[PQLIB_MAX_CHANNELS];
124  ADI_PQLIB_REF_CHANNEL refChannel;
125  ADI_PQLIB_CORR_COEF correctionData;
126  ADI_PQLIB_FLICKER_MODEL flickerModel;
127  ADI_PQLIB_PHASE_MAP phaseMap;
129 
130 } EXAMPLE_CONFIG; // pqlib example config
131 
132 typedef struct {
133 
137  uint16_t syncCycles;
138  uint32_t processedCycles;
140  uint32_t timeOutCount;
141  uint32_t pqlibStateMemory[ADI_PQLIB_STATE_MEM_NUM_BYTES / 4];
142  uint32_t pqlibTempMemory[ADI_PQLIB_TEMP_MEM_NUM_BYTES / 4];
144  char *pChannel;
145  ADI_PQLIB_HANDLE hDevice;
146  ADI_PQLIB_CONFIG config;
147  ADI_PQLIB_CYCLE_INPUT inputCycle;
148  ADI_PQLIB_1012_CYCLE_INPUT input1012Cycles;
149  ADI_PQLIB_WAVEFORM inputWaveform;
151  ADI_PQLIB_OUTPUT *output;
152  ADI_PQLIB_PHASE_MAP channelMap;
155 
156 } PQLIB_EXAMPLE; // pqlib example struct
157 
158 /******************************************************************************/
159 /************************ Functions Declarations ******************************/
160 /******************************************************************************/
161 
167 int pqm_one_cycle(void);
168 
177 int process_pqlib_error(PQLIB_EXAMPLE *pExample,
178  ADI_PQLIB_RESULT pqlibStatus);
179 
185 int open_pqlib(PQLIB_EXAMPLE *pExample);
186 
197 int SyncLibTime(PQLIB_EXAMPLE *pExample, bool checkRtcTime);
198 
209 int config_measurement(PQLIB_EXAMPLE *pExample);
210 
217 void set_default_config(EXAMPLE_CONFIG *pConfig);
218 
227 void populate_event_config(EXAMPLE_CONFIG *pExampleConfig);
228 
243 int cpy_correction_coeffs(ADI_PQLIB_NOMINAL_FREQUENCY nominalFrequency,
244  ADI_PQLIB_CORR_COEF *pCorrCoef);
245 
260  ADI_PQLIB_RESULT pqlibStatus);
261 
268 void SyncToDip(PQLIB_EXAMPLE *pExample, ADI_PQLIB_RESULT pqlibStatus);
269 
271 
277 int pqm_measurement_init(void);
278 
287 int pqm_start_measurement(bool waitingForSync);
288 
304 
305 #endif /* __PQLIB_EXAMPLE_H__ */
EXAMPLE_CONFIG::msvCarrierFrequency
float msvCarrierFrequency
Definition: pqlib_example.h:114
EXAMPLE_CONFIG::msvThreshold
float msvThreshold
Definition: pqlib_example.h:113
PQLIB_EXAMPLE::inputWaveform
ADI_PQLIB_WAVEFORM inputWaveform
Definition: pqlib_example.h:149
EXAMPLE_CONFIG::dipThreshold
float dipThreshold
Definition: pqlib_example.h:105
EXAMPLE_CONFIG::useExternalTimestamp
bool useExternalTimestamp
Definition: pqlib_example.h:88
pqm_start_measurement
int pqm_start_measurement(bool waitingForSync)
Starts Power Quality measurement as per configured cycles.
Definition: pqlib_example.c:68
EXAMPLE_CONFIG::voltageCorrCoef
uint16_t voltageCorrCoef[PQLIB_MAX_HARMONICS]
Definition: pqlib_example.h:95
EXAMPLE_CONFIG::correction
uint32_t correction
Definition: pqlib_example.h:102
ade9430.h
Header file of ADE9430 Driver.
set_default_config
void set_default_config(EXAMPLE_CONFIG *pConfig)
Sets default configuration of the example as floating points Note that this function doesn't configur...
Definition: pqlib_example.c:478
cpy_correction_coeffs
int cpy_correction_coeffs(ADI_PQLIB_NOMINAL_FREQUENCY nominalFrequency, ADI_PQLIB_CORR_COEF *pCorrCoef)
Copies the user provided correction factors to the interface structure. This shows how floating point...
Definition: pqlib_example.c:297
EXAMPLE_CONFIG::enableRTCSync
bool enableRTCSync
Definition: pqlib_example.h:86
PQLIB_EXAMPLE::input1012Cycles
ADI_PQLIB_1012_CYCLE_INPUT input1012Cycles
Definition: pqlib_example.h:148
pqm_one_cycle
int pqm_one_cycle(void)
One complete cycle for IIO callback function.
Definition: pqlib_example.c:117
SYS_STATUS_PQLIB_RUNNING
#define SYS_STATUS_PQLIB_RUNNING
Definition: status.h:44
config_measurement
int config_measurement(PQLIB_EXAMPLE *pExample)
Configures AFE and the library . This serves as an example on how to call APIs adi_pqlib_SetConfig an...
Definition: pqlib_example.c:146
EXAMPLE_CONFIG::refChannel
ADI_PQLIB_REF_CHANNEL refChannel
Definition: pqlib_example.h:124
EXAMPLE_CONFIG::numCorrCoefVoltage60Hz
uint16_t numCorrCoefVoltage60Hz
Definition: pqlib_example.h:99
EXAMPLE_CONFIG::rvcHysteresis
float rvcHysteresis
Definition: pqlib_example.h:112
EXAMPLE_CONFIG::numCorrCoefCurrent50Hz
uint16_t numCorrCoefCurrent50Hz
Definition: pqlib_example.h:96
VCONSEL_4W_DELTA_VA_VB_VC
@ VCONSEL_4W_DELTA_VA_VB_VC
Definition: pqlib_example.h:79
afe_read_version
int afe_read_version(uint32_t *pVersion)
reads AFE version.
Definition: afe_config.c:378
PQLIB_EXAMPLE
Definition: pqlib_example.h:132
EXAMPLE_CONFIG::cyclesToRun
uint32_t cyclesToRun
Definition: pqlib_example.h:100
EXAMPLE_CONFIG::intrpHysteresis
float intrpHysteresis
Definition: pqlib_example.h:110
get_afe_input
int get_afe_input()
Definition: pqlib_afe.c:48
PQLIB_EXAMPLE::no_os_cb_desc
struct no_os_circular_buffer * no_os_cb_desc
Definition: pqlib_example.h:154
cpy_correction_coeffs
int cpy_correction_coeffs(ADI_PQLIB_NOMINAL_FREQUENCY nominalFrequency, ADI_PQLIB_CORR_COEF *pCorrCoef)
Copies the user provided correction factors to the interface structure. This shows how floating point...
Definition: pqlib_example.c:297
PQLIB_EXAMPLE::channelMap
ADI_PQLIB_PHASE_MAP channelMap
Definition: pqlib_example.h:152
EXAMPLE_CONFIG::currentCorrCoef
uint16_t currentCorrCoef[PQLIB_MAX_HARMONICS]
Definition: pqlib_example.h:94
EXAMPLE_CONFIG::correctionData
ADI_PQLIB_CORR_COEF correctionData
Definition: pqlib_example.h:125
open_pqlib
int open_pqlib(PQLIB_EXAMPLE *pExample)
Call adi_pqlib_Open with required buffers. Serves as an example how to call adi_pqlib_Open API.
Definition: pqlib_example.c:129
PQLIB_STATE
PQLIB_STATE
PQLIB Example states.
Definition: pqlib_example.h:64
EXAMPLE_CONFIG::flickerModel
ADI_PQLIB_FLICKER_MODEL flickerModel
Definition: pqlib_example.h:126
populate_event_config
void populate_event_config(EXAMPLE_CONFIG *pExampleConfig)
Populates event configuration using user configuration Serves as an example on how to convert thresho...
Definition: pqlib_example.c:376
process_and_prepare_output
int process_and_prepare_output()
The function gets AFE input and calls main processing APIs of the library. This also gets the measure...
Definition: pqlib_example.c:213
pqm_one_cycle
int pqm_one_cycle(void)
One complete cycle for IIO callback function.
Definition: pqlib_example.c:117
EXAMPLE_CONFIG::syncTime
uint64_t syncTime
Definition: pqlib_example.h:104
PQLIB_MAX_CHANNELS
#define PQLIB_MAX_CHANNELS
Definition: pqlib_example.h:54
EXAMPLE_CONFIG::inputVoltageCorrCoef50Hz
float inputVoltageCorrCoef50Hz[PQLIB_MAX_HARMONICS]
Definition: pqlib_example.h:120
pqlib_convert.h
PQLIB_MAX_INTER_HARMONICS
#define PQLIB_MAX_INTER_HARMONICS
Definition: pqlib_example.h:57
EXAMPLE_CONFIG::swellThreshold
float swellThreshold
Definition: pqlib_example.h:107
EXAMPLE_CONFIG::interHarmonics
uint8_t interHarmonics[PQLIB_MAX_INTER_HARMONICS]
Definition: pqlib_example.h:90
process_pqlib_error
int process_pqlib_error(PQLIB_EXAMPLE *pExample, ADI_PQLIB_RESULT pqlibStatus)
Prints error message for errors from the library. Serves as an examples on how to handle the errors f...
Definition: pqlib_example.c:461
configChanged
volatile bool configChanged
Definition: iio_pqm.c:62
SYS_STATUS_SUCCESS
#define SYS_STATUS_SUCCESS
Definition: status.h:41
EXAMPLE_CONFIG::intrpThreshold
float intrpThreshold
Definition: pqlib_example.h:109
EXAMPLE_CONFIG::rvcThreshold
float rvcThreshold
Definition: pqlib_example.h:111
EXAMPLE_CONFIG::currentScale
float currentScale
Definition: pqlib_example.h:117
afe_start
int afe_start(void)
Starts the AFE.
Definition: afe_config.c:210
SyncToDip
void SyncToDip(PQLIB_EXAMPLE *pExample, ADI_PQLIB_RESULT pqlibStatus)
Sync the time to a dip or interruption event. Serves as an example how to sync to an external time ev...
Definition: pqlib_example.c:560
SyncLibTime
int SyncLibTime(PQLIB_EXAMPLE *pExample, bool checkRtcTime)
Sets library internal time using RTC time. Serves as an example how to call the APIs....
Definition: pqlib_example.c:532
EXAMPLE_CONFIG::numCorrCoefVoltage50Hz
uint16_t numCorrCoefVoltage50Hz
Definition: pqlib_example.h:97
PQLIB_EXAMPLE::state
PQLIB_STATE state
Definition: pqlib_example.h:153
PQLIB_EXAMPLE::zeroCrossingCount
uint32_t zeroCrossingCount
Definition: pqlib_example.h:139
pqm_measurement_init
int pqm_measurement_init(void)
Initializes Power Quality Measurement.
Definition: pqlib_example.c:53
VCONSEL_4W_DELTA_VB_NEGVA
@ VCONSEL_4W_DELTA_VB_NEGVA
Definition: pqlib_example.h:78
PQLIB_EXAMPLE::calibration
bool calibration
Definition: pqlib_example.h:136
wait_for_zero_crossing
int wait_for_zero_crossing(PQLIB_EXAMPLE *pExample, ADI_PQLIB_RESULT pqlibStatus)
Looks at the return code from library and checks whether there is a zero crossing timeout....
Definition: pqlib_example.c:412
EXAMPLE_CONFIG::inputCurrentCorrCoef50Hz
float inputCurrentCorrCoef50Hz[PQLIB_MAX_HARMONICS]
Definition: pqlib_example.h:119
PQLIB_STATE_RUNNING
@ PQLIB_STATE_RUNNING
Definition: pqlib_example.h:67
PQLIB_EXAMPLE::config
ADI_PQLIB_CONFIG config
Definition: pqlib_example.h:146
pqlib_example.h
EXAMPLE_CONFIG::vconsel
VCONSEL_CONFIG vconsel
Definition: pqlib_example.h:128
EXAMPLE_CONFIG::enableIconsel
bool enableIconsel
Definition: pqlib_example.h:87
convert_to_pct_type
ADI_PQLIB_PCT_TYPE convert_to_pct_type(float val)
Converts val to percentage.
Definition: pqlib_convert.c:73
no_os_circular_buffer.h
Circular buffer library header.
processData
volatile bool processData
Definition: iio_pqm.c:63
EXAMPLE_CONFIG::maxHarmonics
uint8_t maxHarmonics
Definition: pqlib_example.h:91
EXAMPLE_CONFIG::swellHysteresis
float swellHysteresis
Definition: pqlib_example.h:108
EXAMPLE_CONFIG::inputCurrentCorrCoef60Hz
float inputCurrentCorrCoef60Hz[PQLIB_MAX_HARMONICS]
Definition: pqlib_example.h:121
SYS_STATUS_PQLIB_CONFIG_ERROR
#define SYS_STATUS_PQLIB_CONFIG_ERROR
Definition: status.h:45
PQLIB_EXAMPLE::readyToDisplay
bool readyToDisplay
Definition: pqlib_example.h:134
EXAMPLE_CONFIG::phaseMap
ADI_PQLIB_PHASE_MAP phaseMap
Definition: pqlib_example.h:127
iio_pqm.h
EXAMPLE_CONFIG::numCorrCoefCurrent60Hz
uint16_t numCorrCoefCurrent60Hz
Definition: pqlib_example.h:98
EXAMPLE_CONFIG::maxInterHarmonics
uint8_t maxInterHarmonics
Definition: pqlib_example.h:92
PQLIB_EXAMPLE::pChannel
char * pChannel
Definition: pqlib_example.h:144
PQLIB_EXAMPLE::hDevice
ADI_PQLIB_HANDLE hDevice
Definition: pqlib_example.h:145
SyncToDip
void SyncToDip(PQLIB_EXAMPLE *pExample, ADI_PQLIB_RESULT pqlibStatus)
Sync the time to a dip or interruption event. Serves as an example how to sync to an external time ev...
Definition: pqlib_example.c:560
SyncLibTime
int SyncLibTime(PQLIB_EXAMPLE *pExample, bool checkRtcTime)
Sets library internal time using RTC time. Serves as an example how to call the APIs....
Definition: pqlib_example.c:532
PQLIB_EXAMPLE::timeOutCount
uint32_t timeOutCount
Definition: pqlib_example.h:140
set_default_config
void set_default_config(EXAMPLE_CONFIG *pConfig)
Sets default configuration of the example as floating points Note that this function doesn't configur...
Definition: pqlib_example.c:478
pqlibExample
PQLIB_EXAMPLE pqlibExample
Definition: pqlib_example.c:45
EXAMPLE_CONFIG::pEnabledChannels
char * pEnabledChannels[PQLIB_MAX_CHANNELS]
Definition: pqlib_example.h:123
PQLIB_STATE_WAITING_FOR_TRIGGER
@ PQLIB_STATE_WAITING_FOR_TRIGGER
Definition: pqlib_example.h:66
EXAMPLE_CONFIG::msvRecordingLength
float msvRecordingLength
Definition: pqlib_example.h:115
wait_for_zero_crossing
int wait_for_zero_crossing(PQLIB_EXAMPLE *pExample, ADI_PQLIB_RESULT pqlibStatus)
Looks at the return code from library and checks whether there is a zero crossing timeout....
Definition: pqlib_example.c:412
convert_to_coef_fract_type
ADI_PQLIB_COEF_TYPE convert_to_coef_fract_type(float val)
Converts val to correction coefficient.
Definition: pqlib_convert.c:89
config_measurement
int config_measurement(PQLIB_EXAMPLE *pExample)
Configures AFE and the library . This serves as an example on how to call APIs adi_pqlib_SetConfig an...
Definition: pqlib_example.c:146
EXAMPLE_CONFIG::nominalFrequency
uint32_t nominalFrequency
Definition: pqlib_example.h:101
afe_set_ref_channel
int afe_set_ref_channel(uint16_t refChannel)
sets refChannel.
Definition: afe_config.c:564
afe_wait_settling
void afe_wait_settling(uint32_t cycles)
Waits for passed number of cycles.
Definition: afe_config.c:519
populate_event_config
void populate_event_config(EXAMPLE_CONFIG *pExampleConfig)
Populates event configuration using user configuration Serves as an example on how to convert thresho...
Definition: pqlib_example.c:376
PQLIB_EXAMPLE::waitingForSync
bool waitingForSync
Definition: pqlib_example.h:135
EXAMPLE_CONFIG::inputVoltageCorrCoef60Hz
float inputVoltageCorrCoef60Hz[PQLIB_MAX_HARMONICS]
Definition: pqlib_example.h:122
NULL
#define NULL
Definition: wrapper.h:64
EXAMPLE_CONFIG::voltageScale
float voltageScale
Definition: pqlib_example.h:116
PQLIB_STATE_WAITING_FOR_START_CMD
@ PQLIB_STATE_WAITING_FOR_START_CMD
Definition: pqlib_example.h:65
PQLIB_EXAMPLE::processedCycles
uint32_t processedCycles
Definition: pqlib_example.h:138
VCONSEL_CONFIG
VCONSEL_CONFIG
VCONSEL H/W config selection.
Definition: pqlib_example.h:74
PQLIB_EXAMPLE::pqlibTempMemory
uint32_t pqlibTempMemory[ADI_PQLIB_TEMP_MEM_NUM_BYTES/4]
Definition: pqlib_example.h:142
VCONSEL_4W_WYE
@ VCONSEL_4W_WYE
Definition: pqlib_example.h:75
PQLIB_MAX_HARMONICS
#define PQLIB_MAX_HARMONICS
Definition: pqlib_example.h:56
process_pqlib_error
int process_pqlib_error(PQLIB_EXAMPLE *pExample, ADI_PQLIB_RESULT pqlibStatus)
Prints error message for errors from the library. Serves as an examples on how to handle the errors f...
Definition: pqlib_example.c:461
no_os_circular_buffer
Circular buffer descriptor.
Definition: no_os_circular_buffer.h:67
pqm_start_measurement
int pqm_start_measurement(bool waitingForSync)
Starts Power Quality measurement as per configured cycles.
Definition: pqlib_example.c:68
EXAMPLE_CONFIG::harmonics
uint8_t harmonics[PQLIB_MAX_HARMONICS]
Definition: pqlib_example.h:89
SIZE_OF_INPUT_RTC
#define SIZE_OF_INPUT_RTC
Definition: pqlib_example.h:58
afe_set_acc_mode
int afe_set_acc_mode(uint16_t frequency, uint16_t vconsel, uint16_t iconsel)
sets ACCMODE register for nominal frequency, ICONSEL, VCONSEL.
Definition: afe_config.c:533
PQLIB_EXAMPLE::exampleConfig
EXAMPLE_CONFIG exampleConfig
Definition: pqlib_example.h:150
pqm_measurement_init
int pqm_measurement_init(void)
Initializes Power Quality Measurement.
Definition: pqlib_example.c:53
VCONSEL_4W_WYE_VB_NEGVA_NEGVC
@ VCONSEL_4W_WYE_VB_NEGVA_NEGVC
Definition: pqlib_example.h:77
PQLIB_EXAMPLE::calExpectedRms
float calExpectedRms
Definition: pqlib_example.h:143
pqlibExample
PQLIB_EXAMPLE pqlibExample
Definition: pqlib_example.c:45
EXAMPLE_CONFIG::nominalVoltage
float nominalVoltage
Definition: pqlib_example.h:118
PQLIB_EXAMPLE::inputCycle
ADI_PQLIB_CYCLE_INPUT inputCycle
Definition: pqlib_example.h:147
open_pqlib
int open_pqlib(PQLIB_EXAMPLE *pExample)
Call adi_pqlib_Open with required buffers. Serves as an example how to call adi_pqlib_Open API.
Definition: pqlib_example.c:129
PQLIB_EXAMPLE::output
ADI_PQLIB_OUTPUT * output
Definition: pqlib_example.h:151
convert_to_time_ms
uint32_t convert_to_time_ms(float timesec)
Converts time in sec to time in ms.
Definition: pqlib_convert.c:96
convert_to_freq_type
ADI_PQLIB_FREQ_TYPE convert_to_freq_type(float val)
Converts val to freq in mhz.
Definition: pqlib_convert.c:81
EXAMPLE_CONFIG
Definition: pqlib_example.h:85
process_and_prepare_output
int process_and_prepare_output()
The function gets AFE input and calls main processing APIs of the library. This also gets the measure...
Definition: pqlib_example.c:213
EXAMPLE_CONFIG::zeroCrossingCheck
uint32_t zeroCrossingCheck
Definition: pqlib_example.h:103
PQLIB_EXAMPLE::syncCycles
uint16_t syncCycles
Definition: pqlib_example.h:137
VCONSEL_3W_DELTA_VB_VA_NEGVC
@ VCONSEL_3W_DELTA_VB_VA_NEGVC
Definition: pqlib_example.h:76
status.h
newSyncTimeAvailable
volatile uint8_t newSyncTimeAvailable
SYS_STATUS_PQLIB_ERROR
#define SYS_STATUS_PQLIB_ERROR
Definition: status.h:42
PQLIB_EXAMPLE::pqlibStateMemory
uint32_t pqlibStateMemory[ADI_PQLIB_STATE_MEM_NUM_BYTES/4]
Definition: pqlib_example.h:141
EXAMPLE_CONFIG::dipHysteresis
float dipHysteresis
Definition: pqlib_example.h:106
SYS_STATUS_NO_SIGNAL
#define SYS_STATUS_NO_SIGNAL
Definition: status.h:43