Treehouse Mbed Team / Mbed 2 deprecated APS_1U5x

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lut.h Source File

lut.h

00001 //-------------------------------------------------------------------------------
00002 // 
00003 //  Treehouse Designs Inc.
00004 //  Colorado Springs, Colorado
00005 // 
00006 //  Copyright (c) 2016 by Treehouse Designs Inc. 
00007 //  Copyright (c) 2018 by Agility Power Systems Inc. 
00008 // 
00009 //  This code is the property of Treehouse Designs, Inc. (Treehouse) and
00010 //  Agility Power Systems Inc. (Agility) and may not be redistributed
00011 //  in any form without prior written permission from 
00012 //  both copyright holders, Treehouse and Agility.
00013 //
00014 //  The above copyright notice and this permission notice shall be included in
00015 //  all copies or substantial portions of the Software.
00016 // 
00017 //   
00018 //-------------------------------------------------------------------------------
00019 // 
00020 //  REVISION HISTORY:
00021 //  
00022 //   $Author: $
00023 //   $Rev: $
00024 //   $Date: $
00025 //   $URL: $
00026 // 
00027 //-------------------------------------------------------------------------------
00028 
00029 #ifndef lut_H
00030 #define lut_H
00031 
00032 #include "mbed.h"
00033 #include "parameters.h"
00034 
00035 extern unsigned int max_boards;
00036 //extern unsigned int bCodeArray[][];
00037 extern unsigned int bCodeRow[];
00038 
00039 //#define MAX_LUT_ENTRIES 1024
00040 #define LUT_MAX_ADC ADC_MAX_VALUE/2
00041 //const unsigned int LUT_SCALE_FACTOR = LUT_MAX_ADC/MAX_LUT_ENTRIES;
00042 
00043 const float LUT_VER = 1.5;
00044 
00045 void getLUT_binCodeArray(unsigned short);
00046 unsigned int getLUT_binCode(unsigned short);
00047 unsigned int getLUT_thermCode(unsigned short);
00048 
00049 #endif