AM263x Digital Power SDK  09.01.00
POWER_MEAS_SINE_ANALYZER Struct Reference

Detailed Description

Defines the POWER_MEAS_SINE_ANALYZER structure.

The POWER_MEAS_SINE_ANALYZER can be used to analyze the input sine wave and calculates several parameters like RMS, Average and Frequency

Data Fields

float32_t v
 Input: Voltage Sine Signal. More...
 
float32_t i
 Input Current Signal. More...
 
float32_t sampleFreq
 Input: Signal Sampling Freq. More...
 
float32_t threshold
 Input: Voltage level corresponding to zero i/p. More...
 
float32_t vRms
 Output: RMS Value. More...
 
float32_t vAvg
 Output: Average Value. More...
 
float32_t vEma
 Output: Exponential Moving Average Value. More...
 
float32_t acFreq
 Output: Signal Freq. More...
 
float32_t acFreqAvg
 Output: Signal Freq. More...
 
float32_t iRms
 Output: RMS Value of current. More...
 
float32_t pRms
 Output: RMS Value of input power. More...
 
float32_t vaRms
 Output: RMS VA. More...
 
float32_t powerFactor
 Output: powerFactor. More...
 
int16_t zcd
 Output: Zero Cross detected. More...
 
float32_t vSum
 Internal : running sum for vac calculation over one sine cycles. More...
 
float32_t vSqrSum
 Internal : running sum for vacc square calculation over one sine cycle. More...
 
float32_t iSqrSum
 Internal : running sum for Iacc_rms calculation over one sine cycle. More...
 
float32_t acFreqSum
 Internal : running sum of acFreq. More...
 
float32_t pSum
 Internal : running sum for Pacc_rms calculation over one sine cycle. More...
 
float32_t vaSumMul
 Internal : running sum for Pacc_rms calculation over one sine cycle. More...
 
float32_t vNorm
 Internal: Normalized value of the input voltage. More...
 
float32_t iNorm
 Internal: Normalized value of the input current. More...
 
int16_t prevSign
 Internal: Flag to detect ZCD. More...
 
int16_t currSign
 Internal: Flag to detect ZCD. More...
 
int32_t nSamples
 Internal: No of samples in one cycle of the sine wave. More...
 
int32_t nSamplesMin
 Internal: Lowerbound for no of samples in one sine wave cycle. More...
 
int32_t nSamplesMax
 Internal: Upperbound for no of samples in one sine wave cycle. More...
 
float32_t inverse_nSamples
 Internal: 1/( No of samples in one cycle of the sine wave) More...
 
float32_t sqrt_inverse_nSamples
 Internal: sqrt(1/( No of samples in one cycle of the sine wave)) More...
 
int16_t slewPowerUpdate
 Internal: used to slew update of the power value. More...
 
float32_t pRmsSumMul
 Internal: used to sum Pac value over multiple sine cycles (100) More...
 
int16_t jitterCount
 Internal: used to store jitter information due to noise on input. More...
 
float32_t emaFilterMultiplier
 Internal: multiplier value used for the exponential moving average filter. More...
 

Field Documentation

◆ v

float32_t POWER_MEAS_SINE_ANALYZER::v

Input: Voltage Sine Signal.

◆ i

float32_t POWER_MEAS_SINE_ANALYZER::i

Input Current Signal.

◆ sampleFreq

float32_t POWER_MEAS_SINE_ANALYZER::sampleFreq

Input: Signal Sampling Freq.

◆ threshold

float32_t POWER_MEAS_SINE_ANALYZER::threshold

Input: Voltage level corresponding to zero i/p.

◆ vRms

float32_t POWER_MEAS_SINE_ANALYZER::vRms

Output: RMS Value.

◆ vAvg

float32_t POWER_MEAS_SINE_ANALYZER::vAvg

Output: Average Value.

◆ vEma

float32_t POWER_MEAS_SINE_ANALYZER::vEma

Output: Exponential Moving Average Value.

◆ acFreq

float32_t POWER_MEAS_SINE_ANALYZER::acFreq

Output: Signal Freq.

◆ acFreqAvg

float32_t POWER_MEAS_SINE_ANALYZER::acFreqAvg

Output: Signal Freq.

◆ iRms

float32_t POWER_MEAS_SINE_ANALYZER::iRms

Output: RMS Value of current.

◆ pRms

float32_t POWER_MEAS_SINE_ANALYZER::pRms

Output: RMS Value of input power.

◆ vaRms

float32_t POWER_MEAS_SINE_ANALYZER::vaRms

Output: RMS VA.

◆ powerFactor

float32_t POWER_MEAS_SINE_ANALYZER::powerFactor

Output: powerFactor.

◆ zcd

int16_t POWER_MEAS_SINE_ANALYZER::zcd

Output: Zero Cross detected.

◆ vSum

float32_t POWER_MEAS_SINE_ANALYZER::vSum

Internal : running sum for vac calculation over one sine cycles.

◆ vSqrSum

float32_t POWER_MEAS_SINE_ANALYZER::vSqrSum

Internal : running sum for vacc square calculation over one sine cycle.

◆ iSqrSum

float32_t POWER_MEAS_SINE_ANALYZER::iSqrSum

Internal : running sum for Iacc_rms calculation over one sine cycle.

◆ acFreqSum

float32_t POWER_MEAS_SINE_ANALYZER::acFreqSum

Internal : running sum of acFreq.

◆ pSum

float32_t POWER_MEAS_SINE_ANALYZER::pSum

Internal : running sum for Pacc_rms calculation over one sine cycle.

◆ vaSumMul

float32_t POWER_MEAS_SINE_ANALYZER::vaSumMul

Internal : running sum for Pacc_rms calculation over one sine cycle.

◆ vNorm

float32_t POWER_MEAS_SINE_ANALYZER::vNorm

Internal: Normalized value of the input voltage.

◆ iNorm

float32_t POWER_MEAS_SINE_ANALYZER::iNorm

Internal: Normalized value of the input current.

◆ prevSign

int16_t POWER_MEAS_SINE_ANALYZER::prevSign

Internal: Flag to detect ZCD.

◆ currSign

int16_t POWER_MEAS_SINE_ANALYZER::currSign

Internal: Flag to detect ZCD.

◆ nSamples

int32_t POWER_MEAS_SINE_ANALYZER::nSamples

Internal: No of samples in one cycle of the sine wave.

◆ nSamplesMin

int32_t POWER_MEAS_SINE_ANALYZER::nSamplesMin

Internal: Lowerbound for no of samples in one sine wave cycle.

◆ nSamplesMax

int32_t POWER_MEAS_SINE_ANALYZER::nSamplesMax

Internal: Upperbound for no of samples in one sine wave cycle.

◆ inverse_nSamples

float32_t POWER_MEAS_SINE_ANALYZER::inverse_nSamples

Internal: 1/( No of samples in one cycle of the sine wave)

◆ sqrt_inverse_nSamples

float32_t POWER_MEAS_SINE_ANALYZER::sqrt_inverse_nSamples

Internal: sqrt(1/( No of samples in one cycle of the sine wave))

◆ slewPowerUpdate

int16_t POWER_MEAS_SINE_ANALYZER::slewPowerUpdate

Internal: used to slew update of the power value.

◆ pRmsSumMul

float32_t POWER_MEAS_SINE_ANALYZER::pRmsSumMul

Internal: used to sum Pac value over multiple sine cycles (100)

◆ jitterCount

int16_t POWER_MEAS_SINE_ANALYZER::jitterCount

Internal: used to store jitter information due to noise on input.

◆ emaFilterMultiplier

float32_t POWER_MEAS_SINE_ANALYZER::emaFilterMultiplier

Internal: multiplier value used for the exponential moving average filter.