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:
- 2019-01-15
- Revision:
- 22:2c37ac12746e
- Parent:
- 18:78e982f31c6b
- Child:
- 25:8bcc8bea0e31
File content as of revision 22:2c37ac12746e:
//-------------------------------------------------------------------------------
//
// 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_v1p3.h"
#include "lut_data_slot_v1p3.h"
/*******************************************************************************
getLUT_binCode - gets output codes from LUT using row reference.
*******************************************************************************/
unsigned int getLUT_binCode(unsigned short row){
//return binC[row/LUT_SCALE_FACTOR];
return binC[row];
}
/*******************************************************************************
getLUT_binCode - gets output codes from LUT using row reference.
*******************************************************************************/
unsigned int getLUT_thermCode(unsigned short row){
//return thermC[row/LUT_SCALE_FACTOR];
return thermC[row];
}