Defines both single, double precision clamp function for saturation.
Go to the source code of this file.
Macros | |
#define | DCL_runSat(data, Umax, Umin) (data > Umax) ? Umax : (data < Umin) ? Umin : data |
Macro to saturate a control variable but does not change the data itself unlike runClamp() More... | |
Functions | |
_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. More... | |
_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. More... | |