Go to the documentation of this file.
36 #ifndef C2000_IEEE754_TYPES
37 #define C2000_IEEE754_TYPES
45 #endif // C2000_IEEE754_TYPES}}
52 #define SFRA_F32_inject __SFRA_F32_inject
53 #define SFRA_F32_collect __SFRA_F32_collect
55 #define SFRA_F32_inject _SFRA_F32_inject
56 #define SFRA_F32_collect _SFRA_F32_collect
113 int16_t noFreqPoints,
189 #endif // end of SFRA_F32_H definition
int16_t start
Command to start SFRA.
Definition: sfra_f32.h:75
float32_t amplitude
Injection Amplitude.
Definition: sfra_f32.h:71
float float32_t
Definition: sfra_f32.h:42
void SFRA_F32_reset(SFRA_F32 *SFRA_F_obj)
Resets internal data of SFRA_F32 module.
float32_t freqStep
Log space between frequency points (optional)
Definition: sfra_f32.h:74
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 a...
float32_t * gh_phaseVect
Open Loop Phase SFRA Vector.
Definition: sfra_f32.h:67
long double float64_t
Definition: sfra_f32.h:43
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.
float32_t * h_phaseVect
Plant Phase SFRA Vector.
Definition: sfra_f32.h:65
void SFRA_F32_resetFreqRespArray(SFRA_F32 *SFRA_F_obj)
Resets the response data stored in the ol and plant phase and mag vector.
int16_t speed
variable to change the speed of the sweep
Definition: sfra_f32.h:83
float32_t * h_magVect
Plant Mag SFRA Vector.
Definition: sfra_f32.h:64
int16_t state
State of SFRA.
Definition: sfra_f32.h:76
float32_t * cl_magVect
Closed Loop Mag SFRA Vector.
Definition: sfra_f32.h:68
float32_t * freqVect
Frequency Vector.
Definition: sfra_f32.h:70
int16_t storeGH
Flag to indicate if GH vector is stored.
Definition: sfra_f32.h:81
Defines the SFRA_F32 structure.
Definition: sfra_f32.h:63
float32_t * gh_magVect
Open Loop Mag SFRA Vector.
Definition: sfra_f32.h:66
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.
int16_t vecLength
No. of Points in the SFRA.
Definition: sfra_f32.h:78
int16_t storeCL
Flag to indicate if CL vector is stored.
Definition: sfra_f32.h:82
int16_t storeH
Flag to indicate if H vector is stored.
Definition: sfra_f32.h:80
float32_t * cl_phaseVect
Closed Loop Phase SFRA Vector.
Definition: sfra_f32.h:69
void SFRA_F32_updateInjectionAmplitude(SFRA_F32 *SFRA_F_obj, float32_t new_injection_amplitude)
Updates injection amplitude.
int16_t status
Status of SFRA.
Definition: sfra_f32.h:77
#define SFRA_F32_collect
Definition: sfra_f32.h:56
float32_t freqStart
Start frequency of SFRA sweep.
Definition: sfra_f32.h:73
float32_t isrFreq
SFRA ISR frequency.
Definition: sfra_f32.h:72
#define SFRA_F32_inject
Definition: sfra_f32.h:55
int16_t freqIndex
Index of the frequency vector.
Definition: sfra_f32.h:79
Copyright 2023, Texas Instruments Incorporated