RTOS_MSPM0  1.1
ECE445M starter code
LPF.h
Go to the documentation of this file.
1 
20 /* This example accompanies the books
21  "Embedded Systems: Introduction to ARM Cortex M Microcontrollers",
22  ISBN: 978-1469998749, Jonathan Valvano, copyright (c) 2020
23  "Embedded Systems: Real Time Interfacing to ARM Cortex M Microcontrollers",
24  ISBN: 978-1463590154, Jonathan Valvano, copyright (c) 2020
25  "Embedded Systems: Real-Time Operating Systems for ARM Cortex-M Microcontrollers",
26  ISBN: 978-1466468863, Jonathan Valvano, copyright (c) 2020
27 
28  Copyright 2020 by Jonathan W. Valvano, valvano@mail.utexas.edu
29  You may use, edit, run or distribute this file
30  as long as the above copyright notice remains
31  THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
32  OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
33  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
34  VALVANO SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL,
35  OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
36  For more information about my classes, my research, and my books, see
37  http://users.ece.utexas.edu/~valvano/
38  */
39 #include <stdint.h>
46 uint32_t sqrt2(uint32_t s);
47 
56 void LPF_Init(int32_t initial, int32_t size);
57 
65 int32_t LPF_Calc(int32_t newdata);
66 int32_t Noise1(void);
67 
76 void LPF_Init2(int32_t initial, int32_t size);
84 int32_t LPF_Calc2(int32_t newdata);
85 int32_t Noise2(void);
94 void LPF_Init3(int32_t initial, int32_t size);
95 
103 int32_t LPF_Calc3(int32_t newdata);
104 int32_t Noise3(void);
105 
114 void LPF_Init4(int32_t initial, int32_t size);
115 
123 int32_t LPF_Calc4(int32_t newdata);
124 int32_t Noise4(void);
125 
134 void LPF_Init5(int32_t initial, int32_t size);
135 
143 int32_t LPF_Calc5(int32_t newdata);
144 int32_t Noise5(void);
153 void LPF_Init6(int32_t initial, int32_t size);
154 
162 int32_t LPF_Calc6(int32_t newdata);
163 int32_t Noise6(void);
164 
173 void LPF_Init7(int32_t initial, int32_t size);
174 
182 int32_t LPF_Calc7(int32_t newdata);
183 int32_t Noise7(void);
184 
192 int32_t Median(int32_t newdata);
193 
201 int32_t Median5(int32_t newdata);
202 
210 int32_t Median7(int32_t newdata);
211 
220  int32_t Filter(int32_t data);
void LPF_Init5(int32_t initial, int32_t size)
Initialize fifth LPF.
int32_t LPF_Calc(int32_t newdata)
FIR low pass filter.
int32_t Median7(int32_t newdata)
Median filter.
int32_t LPF_Calc4(int32_t newdata)
FIR low pass filter.
void LPF_Init7(int32_t initial, int32_t size)
Initialize Seventh LPF.
int32_t LPF_Calc6(int32_t newdata)
FIR low pass filter.
int32_t LPF_Calc3(int32_t newdata)
FIR low pass filter.
int32_t Median5(int32_t newdata)
Median filter.
int32_t Filter(int32_t data)
60-Hz notch high-Q, IIR filter
int32_t LPF_Calc5(int32_t newdata)
FIR low pass filter.
void LPF_Init6(int32_t initial, int32_t size)
Initialize Sixth LPF.
int32_t Median(int32_t newdata)
Median filter.
int32_t LPF_Calc2(int32_t newdata)
FIR low pass filter.
int32_t LPF_Calc7(int32_t newdata)
FIR low pass filter.
void LPF_Init2(int32_t initial, int32_t size)
Initialize second LPF.
uint32_t sqrt2(uint32_t s)
square root
void LPF_Init3(int32_t initial, int32_t size)
Initialize third LPF.
void LPF_Init(int32_t initial, int32_t size)
Initialize first LPF.
void LPF_Init4(int32_t initial, int32_t size)
Initialize third LPF.