AM263x Digital Power SDK  09.01.00
sfra_f32.h File Reference

Go to the source code of this file.

Data Structures

struct  SFRA_F32
 Defines the SFRA_F32 structure. More...
 

Macros

#define IEEE754_TYPES
 

Typedefs

typedef float float32_t
 
typedef double float64_t
 

Functions

void SFRA_F32_reset (SFRA_F32 *SFRA_F_obj)
 Resets internal data of SFRA_F32 module. More...
 
void SFRA_F32_config (SFRA_F32 *SFRA_F_obj, float32_t isrFrequency, float32_t injectionAmplitude, int16_t noFreqPoints, float32_t fraSweepStartFreq, float32_t freqStep, float32_t *h_magVect, float32_t *h_phaseVect, float32_t *gh_magVect, float32_t *gh_phaseVect, float32_t *cl_magVect, float32_t *cl_phaseVect, float32_t *freqVect, int16_t speed)
 Configures the SFRA_F32 module. More...
 
void SFRA_F32_initFreqArrayWithLogSteps (SFRA_F32 *SFRA_F_obj, float32_t fra_sweep_start_freq, float32_t freqStep)
 Initailizes the freq vectors with points that are log step apart. More...
 
void SFRA_F32_resetFreqRespArray (SFRA_F32 *SFRA_F_obj)
 Resets the response data stored in the ol and plant phase and mag vector. More...
 
void SFRA_F32_updateInjectionAmplitude (SFRA_F32 *SFRA_F_obj, float32_t new_injection_amplitude)
 Updates injection amplitude. More...
 
float SFRA_F32_inject (float ref)
 Injects small signal disturbance into the control loop. More...
 
void SFRA_F32_collect (float *control_output, float *feedback)
 Collects the response of the loop because of small signal disturbance injected. More...
 
void SFRA_F32_runBackgroundTask (SFRA_F32 *SFRA_F_obj)
 Runs the background task, this routine executes the state machine when a frequency sweep is started and is responsible for changing the frequency points and saving the measured results in an array. More...