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.
Dependencies: mbed
inc/lut.h@25:8bcc8bea0e31, 2019-01-20 (annotated)
- Committer:
- mfwic
- Date:
- Sun Jan 20 16:56:52 2019 +0000
- Revision:
- 25:8bcc8bea0e31
- Parent:
- 22:2c37ac12746e
- Child:
- 30:d8721a46ee03
Added multiple LUTs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mfwic | 4:db38665c3727 | 1 | //------------------------------------------------------------------------------- |
mfwic | 4:db38665c3727 | 2 | // |
mfwic | 4:db38665c3727 | 3 | // Treehouse Designs Inc. |
mfwic | 4:db38665c3727 | 4 | // Colorado Springs, Colorado |
mfwic | 4:db38665c3727 | 5 | // |
mfwic | 4:db38665c3727 | 6 | // Copyright (c) 2016 by Treehouse Designs Inc. |
mfwic | 4:db38665c3727 | 7 | // Copyright (c) 2018 by Agility Power Systems Inc. |
mfwic | 4:db38665c3727 | 8 | // |
mfwic | 4:db38665c3727 | 9 | // This code is the property of Treehouse Designs, Inc. (Treehouse) and |
mfwic | 4:db38665c3727 | 10 | // Agility Power Systems Inc. (Agility) and may not be redistributed |
mfwic | 4:db38665c3727 | 11 | // in any form without prior written permission from |
mfwic | 4:db38665c3727 | 12 | // both copyright holders, Treehouse and Agility. |
mfwic | 4:db38665c3727 | 13 | // |
mfwic | 4:db38665c3727 | 14 | // The above copyright notice and this permission notice shall be included in |
mfwic | 4:db38665c3727 | 15 | // all copies or substantial portions of the Software. |
mfwic | 4:db38665c3727 | 16 | // |
mfwic | 4:db38665c3727 | 17 | // |
mfwic | 4:db38665c3727 | 18 | //------------------------------------------------------------------------------- |
mfwic | 4:db38665c3727 | 19 | // |
mfwic | 4:db38665c3727 | 20 | // REVISION HISTORY: |
mfwic | 4:db38665c3727 | 21 | // |
mfwic | 4:db38665c3727 | 22 | // $Author: $ |
mfwic | 4:db38665c3727 | 23 | // $Rev: $ |
mfwic | 4:db38665c3727 | 24 | // $Date: $ |
mfwic | 4:db38665c3727 | 25 | // $URL: $ |
mfwic | 4:db38665c3727 | 26 | // |
mfwic | 4:db38665c3727 | 27 | //------------------------------------------------------------------------------- |
mfwic | 4:db38665c3727 | 28 | |
mfwic | 4:db38665c3727 | 29 | #ifndef lut_H |
mfwic | 4:db38665c3727 | 30 | #define lut_H |
mfwic | 4:db38665c3727 | 31 | |
mfwic | 4:db38665c3727 | 32 | #include "mbed.h" |
mfwic | 11:01dcfb29fbc4 | 33 | #include "parameters.h" |
mfwic | 4:db38665c3727 | 34 | |
mfwic | 25:8bcc8bea0e31 | 35 | extern unsigned int max_boards; |
mfwic | 25:8bcc8bea0e31 | 36 | //extern unsigned int bCodeArray[][]; |
mfwic | 25:8bcc8bea0e31 | 37 | extern unsigned int bCodeRow[]; |
mfwic | 25:8bcc8bea0e31 | 38 | |
mfwic | 25:8bcc8bea0e31 | 39 | //#define MAX_LUT_ENTRIES 1024 |
mfwic | 13:f18864dd2706 | 40 | #define LUT_MAX_ADC ADC_MAX_VALUE/2 |
mfwic | 25:8bcc8bea0e31 | 41 | //const unsigned int LUT_SCALE_FACTOR = LUT_MAX_ADC/MAX_LUT_ENTRIES; |
mfwic | 11:01dcfb29fbc4 | 42 | |
mfwic | 25:8bcc8bea0e31 | 43 | const float LUT_VER = 1.5; |
mfwic | 18:78e982f31c6b | 44 | |
mfwic | 25:8bcc8bea0e31 | 45 | void getLUT_binCodeArray(unsigned short); |
mfwic | 6:39442d493098 | 46 | unsigned int getLUT_binCode(unsigned short); |
mfwic | 6:39442d493098 | 47 | unsigned int getLUT_thermCode(unsigned short); |
mfwic | 4:db38665c3727 | 48 | |
mfwic | 4:db38665c3727 | 49 | #endif |