Data Structures | Macros | Typedefs | Variables
cpu_cla_shared_dm.h File Reference
#include "f28x_project.h"
#include "f28x_bmsk.h"
#include "qep_defs.h"
#include "fcl_pi.h"
#include "RAMP_GEN_CLA.h"
#include "dual_axis_servo_drive_user.h"

Go to the source code of this file.

Data Structures

struct  motPars
 
struct  _FCL_Vars_t_
 typedefs for motorVars Variables for CLA tasks More...
 
struct  _SVGEN2_t_
 

Macros

#define SETGPIO18_HIGH
 
#define SETGPIO18_LOW
 
#define CMPLXPARS_DEFAULTS
 
#define FCL_DEFAULTS
 
#define FCL_PI_MACRO(v)
 
#define CLAMP_MACRO(v)
 

Typedefs

typedef struct motPars cmplxPars_t
 
typedef struct _FCL_Vars_t_ FCL_Vars_t
 typedefs for motorVars Variables for CLA tasks More...
 
typedef struct _SVGEN2_t_ SVGEN2_t
 

Variables

FCL_Vars_t fclVars [2]
 

Macro Definition Documentation

◆ SETGPIO18_HIGH

#define SETGPIO18_HIGH

◆ SETGPIO18_LOW

#define SETGPIO18_LOW

◆ CMPLXPARS_DEFAULTS

#define CMPLXPARS_DEFAULTS
Value:
{ \
0, /* cosWTs */ \
0, /* sinWTs */ \
0, /* expVal */ \
0, /* kDirect */ \
0, /* idErr */ \
0, /* iqErr */ \
0 /* carryOver */ \
}

◆ FCL_DEFAULTS

#define FCL_DEFAULTS
Value:
{ \
ENC_ALIGNMENT, /* lsw */ \
\
CMPLXPARS_DEFAULTS, /* Q_cla */ \
0, /* speedWePrev */ \
0, /* pangle */ \
RAMPGEN_CLA_DEFAULTS, /* rg */ \
FCL_PI_CONTROLLER_DEFAULTS, /* pi_iq */ \
QEP_DEFAULTS, /* qep */ \
&EQep1Regs, /* *ptrQEP */ \
0, /* taskFlag */ \
0, 0, 0, 0 /* taskCount[4] */ \
}

◆ FCL_PI_MACRO

#define FCL_PI_MACRO (   v)
Value:
{ \
v.out += (v.err * v.Kerr) + v.carryOver; \
v.out = (v.out > v.Umax) ? v.Umax : v.out; \
v.out = (v.out < v.Umin) ? v.Umin : v.out; \
}

◆ CLAMP_MACRO

#define CLAMP_MACRO (   v)
Value:
{ \
v.out = (v.out > v.Umax) ? v.Umax : v.out; \
v.out = (v.out < v.Umin) ? v.Umin : v.out; \
}

Typedef Documentation

◆ cmplxPars_t

typedef struct motPars cmplxPars_t

◆ FCL_Vars_t

typedef struct _FCL_Vars_t_ FCL_Vars_t

typedefs for motorVars Variables for CLA tasks

◆ SVGEN2_t

typedef struct _SVGEN2_t_ SVGEN2_t

Variable Documentation

◆ fclVars

FCL_Vars_t fclVars[2]

Copyright 2023, Texas Instruments Incorporated