|
AM243x Motor Control SDK
09.00.00
|
|
Go to the documentation of this file.
62 *(data) = (*(data) > Umax) ? Umax : *(data);
63 *(data) = (*(data) < Umin) ? Umin : *(data);
64 return(((iv < Umax) && (iv > Umin)) ? false :
true);
78 *(data) = (*(data) > Umax) ? Umax : *(data);
79 *(data) = (*(data) < Umin) ? Umin : *(data);
80 return(((iv < Umax) && (iv > Umin)) ? false :
true);
89 #define DCL_runSat(data,Umax,Umin) (data > Umax) ? Umax : (data < Umin) ? Umin : data
97 #endif // _DCL_CLAMP_H_
#define _DCL_CODE_ACCESS
Defines the scope of dcl functions (static inline/extern inline/none)
Definition: dcl_common.h:55
_DCL_CODE_ACCESS bool DCL_runClampF64(float64_t *data, float64_t Umax, float64_t Umin)
Saturates a control variable and returns true if either limit is exceeded.
Definition: dcl_clamp.h:75
_DCL_CODE_ACCESS bool DCL_runClamp(float32_t *data, float32_t Umax, float32_t Umin)
Saturates a control variable and returns true if either limit is exceeded.
Definition: dcl_clamp.h:59
double float64_t
Definition: dcl_common.h:52
float float32_t
Defines single,double precision data type. Note: Assumes ABI to be TI_EABI, does not support legacy T...
Definition: dcl_common.h:51