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
src/lut.cpp
- Committer:
- mfwic
- Date:
- 2018-12-07
- Revision:
- 11:01dcfb29fbc4
- Parent:
- 9:816b9a4e4f21
- Child:
- 17:454afe56eedb
File content as of revision 11:01dcfb29fbc4:
//------------------------------------------------------------------------------- // // Treehouse Designs Inc. // Colorado Springs, Colorado // // Copyright (c) 2016 by Treehouse Designs Inc. // Copyright (c) 2018 by Agility Power Systems Inc. // // This code is the property of Treehouse Designs, Inc. (Treehouse) and // Agility Power Systems Inc. (Agility) and may not be redistributed // in any form without prior written permission from // both copyright holders, Treehouse and Agility. // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // //------------------------------------------------------------------------------- // // REVISION HISTORY: // // $Author: $ // $Rev: $ // $Date: $ // $URL: $ // //------------------------------------------------------------------------------- #include "mbed.h" #include "stdint.h" #include "globals.h" #include "lut.h" unsigned int binCode[WEIGHT_BIN_WIDTH+1]; unsigned int thermCode[BOARDS_THERMCODE_WIDTH+1]; #include "lut_data_en_v1.h" #include "lut_data_slot_v1.h" /******************************************************************************* getLUT_binCode - gets output codes from LUT using row reference. *******************************************************************************/ unsigned int getLUT_binCode(unsigned short row){ return binC[row/LUT_SCALE_FACTOR]; } /******************************************************************************* getLUT_binCode - gets output codes from LUT using row reference. *******************************************************************************/ unsigned int getLUT_thermCode(unsigned short row){ return thermC[row/LUT_SCALE_FACTOR]; }