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
Diff: inc/lut.h
- Revision:
- 11:01dcfb29fbc4
- Parent:
- 10:6c3233b03658
- Child:
- 13:f18864dd2706
--- a/inc/lut.h Fri Dec 07 17:39:01 2018 +0000 +++ b/inc/lut.h Fri Dec 07 20:42:41 2018 +0000 @@ -30,13 +30,11 @@ #define lut_H #include "mbed.h" - -extern unsigned int binCode[WEIGHT_BIN_WIDTH+1]; -extern unsigned int thermCode[BOARDS_THERMCODE_WIDTH+1]; +#include "parameters.h" -void dec2bin_fix(unsigned int, unsigned int); -void dec2therm_fix(unsigned int, unsigned int); -void getLUTcode(unsigned short); +#define MAX_LUT_ENTRIES 1024 +const unsigned int LUT_SCALE_FACTOR = ADC_MAX_VALUE/MAX_LUT_ENTRIES; + unsigned int getLUT_binCode(unsigned short); unsigned int getLUT_thermCode(unsigned short);