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

Go to the source code of this file.

Data Structures

struct  motPars
 

Macros

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

Typedefs

typedef struct motPars cmplxPars_t
 

Variables

QEP qep1
 
ENC_Status_e lsw
 
FCL_PIController_t pi_iq
 
cmplxPars_t Q_cla
 
cmplxPars_t D_cpu
 
float32_t pangle
 
float32_t speedWe
 
RAMP_GEN_CLA rg1
 

Macro Definition Documentation

◆ SETGPIO18_HIGH

#define SETGPIO18_HIGH

◆ SETGPIO18_LOW

#define SETGPIO18_LOW

◆ 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

Variable Documentation

◆ qep1

QEP qep1

◆ lsw

◆ pi_iq

◆ Q_cla

cmplxPars_t Q_cla

◆ D_cpu

cmplxPars_t D_cpu

◆ pangle

float32_t pangle

◆ speedWe

float32_t speedWe

◆ rg1

RAMP_GEN_CLA rg1

Copyright 2023, Texas Instruments Incorporated