fcl_cmplx_ctrl.h
Go to the documentation of this file.
1 //#############################################################################
2 //
3 // FILE: fcl_cmplxCtrl.h
4 //
5 // TITLE: Header file to be shared between example and library for CPU data.
6 //
7 // Group: C2000
8 //
9 // Target Family: F2837x/F2838x/F28004x/F28002x
10 //
11 //#############################################################################
12 // $TI Release: $
13 // $Release Date: $
14 // $Copyright: $
15 //#############################################################################
16 
17 #ifndef FCL_CMPLX_CTRL_H
18 #define FCL_CMPLX_CTRL_H
19 
20 #include "inc/hw_types.h"
21 
22 typedef struct FCL_cmplxCtrl_t
23 {
24  float32_t ref; // Input: reference set-point
25  float32_t fbk; // Input: feedback
26  float32_t err; // Output : error
27  float32_t out; // Output: controller output
28  float32_t carryOver; // Output : carry over for next iteration
29  float32_t Kp; // Parameter: proportional loop gain
30  float32_t Ki; // Parameter: integral gain
31  float32_t Kerr; // Parameter: gain for latest error
32  float32_t KerrOld; // Parameter: gain for prev error
33  float32_t Umax; // Parameter: upper saturation limit
34  float32_t Umin; // Parameter: lower saturation limit
41 
42 #define FCL_CMPLXCTRL_DEFAULTS { \
43  0.0, /* ref */ \
44  0.0, /* fbk */ \
45  0.0, /* err */ \
46  0.0, /* out */ \
47  0.0, /* carryOver */ \
48  1.0, /* Kp */ \
49  0.1, /* Ki */ \
50  0.0, /* Kerr */ \
51  0.0, /* KerrOld */ \
52  1.0, /* Umax */ \
53  -1.0, /* Umin */ \
54  0.0, /* cosWTs */ \
55  0.0, /* sinWTs */ \
56  0.0, /* expVal */ \
57  0.0, /* kDirect */ \
58  0.0 /* xErr */ \
59 }
60 
61 #endif // FCL_CMPLX_CTRL_H
FCL_cmplxCtrl_t::ref
float32_t ref
Definition: fcl_cmplx_ctrl.h:24
FCL_cmplxCtrl_t::Kp
float32_t Kp
Definition: fcl_cmplx_ctrl.h:29
float32_t
float float32_t
Definition: sfra_f32.h:42
FCL_cmplxCtrl_t::fbk
float32_t fbk
Definition: fcl_cmplx_ctrl.h:25
FCL_cmplxCtrl_t::xErr
float32_t xErr
Definition: fcl_cmplx_ctrl.h:39
FCL_cmplxCtrl_t::cosWTs
float32_t cosWTs
Definition: fcl_cmplx_ctrl.h:35
FCL_cmplxCtrl_t::expVal
float32_t expVal
Definition: fcl_cmplx_ctrl.h:37
FCL_cmplxCtrl_t
Definition: fcl_cmplx_ctrl.h:22
FCL_cmplxCtrl_t::kDirect
float32_t kDirect
Definition: fcl_cmplx_ctrl.h:38
FCL_cmplxCtrl_t::Umax
float32_t Umax
Definition: fcl_cmplx_ctrl.h:33
FCL_cmplxCtrl_t::Umin
float32_t Umin
Definition: fcl_cmplx_ctrl.h:34
FCL_cmplxCtrl_t::Ki
float32_t Ki
Definition: fcl_cmplx_ctrl.h:30
FCL_cmplxCtrl_t::out
float32_t out
Definition: fcl_cmplx_ctrl.h:27
FCL_cmplxCtrl_t::sinWTs
float32_t sinWTs
Definition: fcl_cmplx_ctrl.h:36
FCL_cmplxCtrl_t::KerrOld
float32_t KerrOld
Definition: fcl_cmplx_ctrl.h:32
FCL_cmplxCtrl_t
struct FCL_cmplxCtrl_t FCL_cmplxCtrl_t
FCL_cmplxCtrl_t::carryOver
float32_t carryOver
Definition: fcl_cmplx_ctrl.h:28
FCL_cmplxCtrl_t::err
float32_t err
Definition: fcl_cmplx_ctrl.h:26
FCL_cmplxCtrl_t::Kerr
float32_t Kerr
Definition: fcl_cmplx_ctrl.h:31

Copyright 2023, Texas Instruments Incorporated