Go to the documentation of this file.
34 #ifndef __PQLIB_AFE_H__
35 #define __PQLIB_AFE_H__
42 #include "adi_pqlib.h"
50 #include "basic_example.h"
58 #define ANGLE_VOLTAGE 0
60 #define ANGLE_CURRENT 1
ADI_PQLIB_WAVEFORM inputWaveform
Definition: pqlib_example.h:149
int afe_read_angle(uint16_t *pAngle, uint16_t numAngles, uint16_t angleVolCur)
reads angle registers.
Definition: afe_config.c:343
Header file of ADE9430 Driver.
int afe_read_status_1(uint32_t *pSTATUS1)
Read STATUS1 register.
Definition: afe_config.c:362
ADI_PQLIB_1012_CYCLE_INPUT input1012Cycles
Definition: pqlib_example.h:148
#define ANGLE_VOLTAGE
angle for voltage
Definition: pqlib_afe.h:58
int get_afe_input()
Definition: pqlib_afe.c:48
struct no_os_circular_buffer * no_os_cb_desc
Definition: pqlib_example.h:154
int afe_read_rms_one(uint32_t *pRMS, uint16_t numRMS)
reads rmsonevalue registers.
Definition: afe_config.c:323
int get_afe_input()
Definition: pqlib_afe.c:48
volatile bool processData
Definition: iio_pqm.c:93
PQLIB_EXAMPLE pqlibExample
Definition: pqlib_example.c:45
int afe_read_period(uint32_t *pPeriod, uint16_t numPeriods)
reads period registers.
Definition: afe_config.c:310
int32_t no_os_cb_write(struct no_os_circular_buffer *desc, const void *data, uint32_t nb_elements)
int afe_read_waveform(uint16_t *pData, uint16_t numSamples)
reads waveform buffer.
Definition: afe_config.c:286
ADI_PQLIB_CYCLE_INPUT inputCycle
Definition: pqlib_example.h:147
#define ANGLE_CURRENT
angle for current
Definition: pqlib_afe.h:60
int afe_read_rms_1012(uint32_t *pRMS, uint16_t numRMS)
reads rms1012value registers.
Definition: afe_config.c:333
int afe_read_status0(uint32_t *pSTATUS0)
Read STATUS0 register.
Definition: afe_config.c:495