Go to the documentation of this file.
40 #ifndef __PQLIB_AFE_H__
41 #define __PQLIB_AFE_H__
48 #include "adi_pqlib.h"
57 #include "basic_example.h"
65 #define ANGLE_VOLTAGE 0
67 #define ANGLE_CURRENT 1
ADI_PQLIB_WAVEFORM inputWaveform
Definition: pqlib_example.h:155
int64_t get_irq0_timestamp(void)
Returns timestamp of last IRQ0 interrupt.
Definition: intrpt_handler.c:103
int afe_read_angle(uint16_t *pAngle, uint16_t numAngles, uint16_t angleVolCur)
reads angle registers.
Definition: afe_config.c:270
Header file of ADE9430 Driver.
int afe_read_status_1(uint32_t *pSTATUS1)
Read STATUS1 register.
Definition: afe_config.c:289
ADI_PQLIB_1012_CYCLE_INPUT input1012Cycles
Definition: pqlib_example.h:154
#define ANGLE_VOLTAGE
angle for voltage
Definition: pqlib_afe.h:65
int get_afe_input()
Definition: pqlib_afe.c:53
struct no_os_circular_buffer * no_os_cb_desc
Definition: pqlib_example.h:160
int afe_read_rms_one(uint32_t *pRMS, uint16_t numRMS)
reads rmsonevalue registers.
Definition: afe_config.c:250
int get_afe_input()
Definition: pqlib_afe.c:53
PQLIB_EXAMPLE pqlibExample
Definition: pqlib_example.c:51
int afe_read_period(uint32_t *pPeriod, uint16_t numPeriods)
reads period registers.
Definition: afe_config.c:237
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:213
ADI_PQLIB_CYCLE_INPUT inputCycle
Definition: pqlib_example.h:153
#define ANGLE_CURRENT
angle for current
Definition: pqlib_afe.h:67
int afe_read_rms_1012(uint32_t *pRMS, uint16_t numRMS)
reads rms1012value registers.
Definition: afe_config.c:260
int afe_read_status0(uint32_t *pSTATUS0)
Read STATUS0 register.
Definition: afe_config.c:422