Added all the F4 libraries to the project
[fw/stlink] / exampleF4 / CMSIS / DSP_Lib / Source / ControllerFunctions / arm_pid_reset_q15.c
1 /* ----------------------------------------------------------------------   
2 * Copyright (C) 2010 ARM Limited. All rights reserved.   
3 *   
4 * $Date:        15. July 2011  
5 * $Revision:    V1.0.10  
6 *   
7 * Project:          CMSIS DSP Library   
8 * Title:            arm_pid_reset_q15.c   
9 *   
10 * Description:  Q15 PID Control reset function  
11 *   
12 * Target Processor: Cortex-M4/Cortex-M3/Cortex-M0
13 *  
14 * Version 1.0.10 2011/7/15 
15 *    Big Endian support added and Merged M0 and M3/M4 Source code.  
16 *   
17 * Version 1.0.3 2010/11/29  
18 *    Re-organized the CMSIS folders and updated documentation.   
19 *    
20 * Version 1.0.2 2010/11/11   
21 *    Documentation updated.    
22 *   
23 * Version 1.0.1 2010/10/05    
24 *    Production release and review comments incorporated.   
25 *   
26 * Version 1.0.0 2010/09/20    
27 *    Production release and review comments incorporated.   
28 * -------------------------------------------------------------------- */
29
30 #include "arm_math.h"
31
32  /**   
33  * @addtogroup PID   
34  * @{   
35  */
36
37 /**   
38 * @brief  Reset function for the Q15 PID Control.  
39 * @param[in] *S         Instance pointer of PID control data structure.  
40 * @return none.   
41 * \par Description:  
42 * The function resets the state buffer to zeros.   
43 */
44 void arm_pid_reset_q15(
45   arm_pid_instance_q15 * S)
46 {
47   /* Reset state to zero, The size will be always 3 samples */
48   memset(S->state, 0, 3u * sizeof(q15_t));
49 }
50
51 /**   
52  * @} end of PID group   
53  */