63 int32_t resetStateFlag)
66 #ifndef ARM_MATH_CM0_FAMILY 71 S->
A0 = __QADD16(__QADD16(S->
Kp, S->
Ki), S->
Kd);
75 #ifndef ARM_MATH_BIG_ENDIAN 77 S->
A1 = __PKHBT(-__QADD16(__QADD16(S->
Kd, S->
Kd), S->
Kp), S->
Kd, 16);
81 S->
A1 = __PKHBT(S->
Kd, -__QADD16(__QADD16(S->
Kd, S->
Kd), S->
Kp), 16);
99 temp = S->
Kp + S->
Ki + S->
Kd;
100 S->
A0 = (
q15_t) __SSAT(temp, 16);
103 temp = -(S->
Kd + S->
Kd + S->
Kp);
104 S->
A1 = (
q15_t) __SSAT(temp, 16);
void arm_pid_init_q15(arm_pid_instance_q15 *S, int32_t resetStateFlag)
Initialization function for the Q15 PID Control.
int16_t q15_t
16-bit fractional data type in 1.15 format.
int32_t q31_t
32-bit fractional data type in 1.31 format.
Instance structure for the Q15 PID Control.