Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of FXOS8700Q by
Revision 12:8b16b2101097, committed 2017-10-29
- Comitter:
- durvesh
- Date:
- Sun Oct 29 23:35:42 2017 +0000
- Parent:
- 11:aee7dea904e2
- Commit message:
- Drivers for accelerometers;
Changed in this revision
Bandpass.h | Show annotated file Show diff for this revision Revisions of this file |
filter.h | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Bandpass.h Sun Oct 29 23:35:42 2017 +0000 @@ -0,0 +1,141 @@ +// Bandpass.h (1500 2500) +// this file was generated using +// function iirsos_coeffs.m + +#define NUM_SECTIONS 31 + +#define NUM_SECTIONSY 31 + +float b[NUM_SECTIONS][3] = { +{4.86247764E-01, 0.00000000E+00, -4.86247764E-01}, +{4.86247764E-01, 0.00000000E+00, -4.86247764E-01}, +{4.67187414E-01, 0.00000000E+00, -4.67187414E-01}, +{4.67187414E-01, 0.00000000E+00, -4.67187414E-01}, +{4.50453934E-01, 0.00000000E+00, -4.50453934E-01}, +{4.50453934E-01, 0.00000000E+00, -4.50453934E-01}, +{4.35770007E-01, 0.00000000E+00, -4.35770007E-01}, +{4.35770007E-01, 0.00000000E+00, -4.35770007E-01}, +{4.22904560E-01, 0.00000000E+00, -4.22904560E-01}, +{4.22904560E-01, 0.00000000E+00, -4.22904560E-01}, +{4.11664928E-01, 0.00000000E+00, -4.11664928E-01}, +{4.11664928E-01, 0.00000000E+00, -4.11664928E-01}, +{4.01890473E-01, 0.00000000E+00, -4.01890473E-01}, +{4.01890473E-01, 0.00000000E+00, -4.01890473E-01}, +{3.93447430E-01, 0.00000000E+00, -3.93447430E-01}, +{3.93447430E-01, 0.00000000E+00, -3.93447430E-01}, +{3.86224749E-01, 0.00000000E+00, -3.86224749E-01}, +{3.86224749E-01, 0.00000000E+00, -3.86224749E-01}, +{3.80130768E-01, 0.00000000E+00, -3.80130768E-01}, +{3.80130768E-01, 0.00000000E+00, -3.80130768E-01}, +{3.75090557E-01, 0.00000000E+00, -3.75090557E-01}, +{3.75090557E-01, 0.00000000E+00, -3.75090557E-01}, +{3.71043814E-01, 0.00000000E+00, -3.71043814E-01}, +{3.71043814E-01, 0.00000000E+00, -3.71043814E-01}, +{3.67943219E-01, 0.00000000E+00, -3.67943219E-01}, +{3.67943219E-01, 0.00000000E+00, -3.67943219E-01}, +{3.65753179E-01, 0.00000000E+00, -3.65753179E-01}, +{3.65753179E-01, 0.00000000E+00, -3.65753179E-01}, +{3.64448900E-01, 0.00000000E+00, -3.64448900E-01}, +{3.64448900E-01, 0.00000000E+00, -3.64448900E-01}, +{3.64015753E-01, 0.00000000E+00, -3.64015753E-01} }; + +float a[NUM_SECTIONS][3] = { +{1.00000000E+00, 7.65091766E-01, 9.54427410E-01}, +{1.00000000E+00, -1.16526801E+00, 9.60062504E-01}, +{1.00000000E+00, 7.25624505E-01, 8.69240923E-01}, +{1.00000000E+00, -1.11575129E+00, 8.84703177E-01}, +{1.00000000E+00, -1.06511089E+00, 8.14690941E-01}, +{1.00000000E+00, 6.83475521E-01, 7.91178486E-01}, +{1.00000000E+00, -1.01318986E+00, 7.49349157E-01}, +{1.00000000E+00, 6.38750753E-01, 7.19416540E-01}, +{1.00000000E+00, -9.59765178E-01, 6.88134790E-01}, +{1.00000000E+00, 5.91435127E-01, 6.53297702E-01}, +{1.00000000E+00, -9.04552268E-01, 6.30626145E-01}, +{1.00000000E+00, 5.41409446E-01, 5.92316632E-01}, +{1.00000000E+00, -8.47206253E-01, 5.76518370E-01}, +{1.00000000E+00, 4.88460878E-01, 5.36113492E-01}, +{1.00000000E+00, -7.87322296E-01, 5.25627655E-01}, +{1.00000000E+00, 4.32290319E-01, 4.84475893E-01}, +{1.00000000E+00, -7.24438822E-01, 4.77905812E-01}, +{1.00000000E+00, 3.72520937E-01, 4.37350428E-01}, +{1.00000000E+00, -6.58050261E-01, 4.33467346E-01}, +{1.00000000E+00, 3.08714947E-01, 3.94864615E-01}, +{1.00000000E+00, -5.87641111E-01, 3.92630314E-01}, +{1.00000000E+00, 2.40410756E-01, 3.57358088E-01}, +{1.00000000E+00, -5.12760723E-01, 3.55967573E-01}, +{1.00000000E+00, 1.67200088E-01, 3.25415614E-01}, +{1.00000000E+00, -4.33163772E-01, 3.24351546E-01}, +{1.00000000E+00, 8.88702126E-02, 2.99879969E-01}, +{1.00000000E+00, -3.49029233E-01, 2.98948688E-01}, +{1.00000000E+00, 5.62423897E-03, 2.81798509E-01}, +{1.00000000E+00, -2.61210148E-01, 2.81090424E-01}, +{1.00000000E+00, -8.16681810E-02, 2.72240653E-01}, +{1.00000000E+00, -1.71351921E-01, 2.71968495E-01} }; + +/*float yb[NUM_SECTIONSY][3] = { +{4.86247764E-01, 0.00000000E+00, -4.86247764E-01}, +{4.86247764E-01, 0.00000000E+00, -4.86247764E-01}, +{4.67187414E-01, 0.00000000E+00, -4.67187414E-01}, +{4.67187414E-01, 0.00000000E+00, -4.67187414E-01}, +{4.50453934E-01, 0.00000000E+00, -4.50453934E-01}, +{4.50453934E-01, 0.00000000E+00, -4.50453934E-01}, +{4.35770007E-01, 0.00000000E+00, -4.35770007E-01}, +{4.35770007E-01, 0.00000000E+00, -4.35770007E-01}, +{4.22904560E-01, 0.00000000E+00, -4.22904560E-01}, +{4.22904560E-01, 0.00000000E+00, -4.22904560E-01}, +{4.11664928E-01, 0.00000000E+00, -4.11664928E-01}, +{4.11664928E-01, 0.00000000E+00, -4.11664928E-01}, +{4.01890473E-01, 0.00000000E+00, -4.01890473E-01}, +{4.01890473E-01, 0.00000000E+00, -4.01890473E-01}, +{3.93447430E-01, 0.00000000E+00, -3.93447430E-01}, +{3.93447430E-01, 0.00000000E+00, -3.93447430E-01}, +{3.86224749E-01, 0.00000000E+00, -3.86224749E-01}, +{3.86224749E-01, 0.00000000E+00, -3.86224749E-01}, +{3.80130768E-01, 0.00000000E+00, -3.80130768E-01}, +{3.80130768E-01, 0.00000000E+00, -3.80130768E-01}, +{3.75090557E-01, 0.00000000E+00, -3.75090557E-01}, +{3.75090557E-01, 0.00000000E+00, -3.75090557E-01}, +{3.71043814E-01, 0.00000000E+00, -3.71043814E-01}, +{3.71043814E-01, 0.00000000E+00, -3.71043814E-01}, +{3.67943219E-01, 0.00000000E+00, -3.67943219E-01}, +{3.67943219E-01, 0.00000000E+00, -3.67943219E-01}, +{3.65753179E-01, 0.00000000E+00, -3.65753179E-01}, +{3.65753179E-01, 0.00000000E+00, -3.65753179E-01}, +{3.64448900E-01, 0.00000000E+00, -3.64448900E-01}, +{3.64448900E-01, 0.00000000E+00, -3.64448900E-01}, +{3.64015753E-01, 0.00000000E+00, -3.64015753E-01} }; + +float ya[NUM_SECTIONSY][3] = { +{1.00000000E+00, 7.65091766E-01, 9.54427410E-01}, +{1.00000000E+00, -1.16526801E+00, 9.60062504E-01}, +{1.00000000E+00, 7.25624505E-01, 8.69240923E-01}, +{1.00000000E+00, -1.11575129E+00, 8.84703177E-01}, +{1.00000000E+00, -1.06511089E+00, 8.14690941E-01}, +{1.00000000E+00, 6.83475521E-01, 7.91178486E-01}, +{1.00000000E+00, -1.01318986E+00, 7.49349157E-01}, +{1.00000000E+00, 6.38750753E-01, 7.19416540E-01}, +{1.00000000E+00, -9.59765178E-01, 6.88134790E-01}, +{1.00000000E+00, 5.91435127E-01, 6.53297702E-01}, +{1.00000000E+00, -9.04552268E-01, 6.30626145E-01}, +{1.00000000E+00, 5.41409446E-01, 5.92316632E-01}, +{1.00000000E+00, -8.47206253E-01, 5.76518370E-01}, +{1.00000000E+00, 4.88460878E-01, 5.36113492E-01}, +{1.00000000E+00, -7.87322296E-01, 5.25627655E-01}, +{1.00000000E+00, 4.32290319E-01, 4.84475893E-01}, +{1.00000000E+00, -7.24438822E-01, 4.77905812E-01}, +{1.00000000E+00, 3.72520937E-01, 4.37350428E-01}, +{1.00000000E+00, -6.58050261E-01, 4.33467346E-01}, +{1.00000000E+00, 3.08714947E-01, 3.94864615E-01}, +{1.00000000E+00, -5.87641111E-01, 3.92630314E-01}, +{1.00000000E+00, 2.40410756E-01, 3.57358088E-01}, +{1.00000000E+00, -5.12760723E-01, 3.55967573E-01}, +{1.00000000E+00, 1.67200088E-01, 3.25415614E-01}, +{1.00000000E+00, -4.33163772E-01, 3.24351546E-01}, +{1.00000000E+00, 8.88702126E-02, 2.99879969E-01}, +{1.00000000E+00, -3.49029233E-01, 2.98948688E-01}, +{1.00000000E+00, 5.62423897E-03, 2.81798509E-01}, +{1.00000000E+00, -2.61210148E-01, 2.81090424E-01}, +{1.00000000E+00, -8.16681810E-02, 2.72240653E-01}, +{1.00000000E+00, -1.71351921E-01, 2.71968495E-01} */ +//}; +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/filter.h Sun Oct 29 23:35:42 2017 +0000 @@ -0,0 +1,17 @@ +/// filter.h +// this file was generated using function fir_coeffs.m +typedef float float32_t; +// filter.h +// this file was generated using function fir_coeffs.m + +#define N 41 + +float32_t h[N] = { +-3.6301E-05,-5.3092E-05,-6.5449E-05,-6.9183E-05,-5.9740E-05,-3.2570E-05, +1.6442E-05,9.0528E-05,1.9161E-04,3.1995E-04,4.7389E-04,6.4976E-04, +8.4195E-04,1.0431E-03,1.2446E-03,1.4371E-03,1.6109E-03,1.7570E-03, +1.8675E-03,1.9364E-03,1.9598E-03,1.9364E-03,1.8675E-03,1.7570E-03, +1.6109E-03,1.4371E-03,1.2446E-03,1.0431E-03,8.4195E-04,6.4976E-04, +4.7389E-04,3.1995E-04,1.9161E-04,9.0528E-05,1.6442E-05,-3.2570E-05, +-5.9740E-05,-6.9183E-05,-6.5449E-05,-5.3092E-05,-3.6301E-05 +};