Treehouse Mbed Team / Mbed 2 deprecated APS_DCM1SL

Dependencies:   mbed

Committer:
mfwic
Date:
Sat Dec 01 00:08:53 2018 +0000
Revision:
5:09be5bbb5020
Parent:
4:db38665c3727
Child:
6:39442d493098
Modified parseCommand to take commands with data assignment.; e.g. MULT=1 is parsed into commandString is MULT, commandData is 1.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mfwic 0:44a3005d4f20 1 //-------------------------------------------------------------------------------
mfwic 0:44a3005d4f20 2 //
mfwic 0:44a3005d4f20 3 // Treehouse Designs Inc.
mfwic 0:44a3005d4f20 4 // Colorado Springs, Colorado
mfwic 0:44a3005d4f20 5 //
mfwic 0:44a3005d4f20 6 // Copyright (c) 2016 by Treehouse Designs Inc.
mfwic 0:44a3005d4f20 7 // Copyright (c) 2018 by Agility Power Systems Inc.
mfwic 0:44a3005d4f20 8 //
mfwic 0:44a3005d4f20 9 // This code is the property of Treehouse Designs, Inc. (Treehouse) and
mfwic 0:44a3005d4f20 10 // Agility Power Systems Inc. (Agility) and may not be redistributed
mfwic 0:44a3005d4f20 11 // in any form without prior written permission from
mfwic 0:44a3005d4f20 12 // both copyright holders, Treehouse and Agility.
mfwic 0:44a3005d4f20 13 //
mfwic 0:44a3005d4f20 14 // The above copyright notice and this permission notice shall be included in
mfwic 0:44a3005d4f20 15 // all copies or substantial portions of the Software.
mfwic 0:44a3005d4f20 16 //
mfwic 0:44a3005d4f20 17 //
mfwic 0:44a3005d4f20 18 //-------------------------------------------------------------------------------
mfwic 0:44a3005d4f20 19 //
mfwic 0:44a3005d4f20 20 // REVISION HISTORY:
mfwic 0:44a3005d4f20 21 //
mfwic 0:44a3005d4f20 22 // $Author: $
mfwic 0:44a3005d4f20 23 // $Rev: $
mfwic 0:44a3005d4f20 24 // $Date: $
mfwic 0:44a3005d4f20 25 // $URL: $
mfwic 0:44a3005d4f20 26 //
mfwic 0:44a3005d4f20 27 //-------------------------------------------------------------------------------
mfwic 0:44a3005d4f20 28
mfwic 0:44a3005d4f20 29 #ifndef BOARDS_H
mfwic 0:44a3005d4f20 30 #define BOARDS_H
mfwic 0:44a3005d4f20 31
mfwic 0:44a3005d4f20 32 #define ADC_CH2 7
mfwic 0:44a3005d4f20 33 #define ADC_CH1 20
mfwic 0:44a3005d4f20 34 #define ADC_CH1_OFFSET 11
mfwic 0:44a3005d4f20 35 #define ADC_CH2_OFFSET 16
mfwic 0:44a3005d4f20 36 #define ADC_OFFSET 10922
mfwic 0:44a3005d4f20 37
mfwic 0:44a3005d4f20 38 extern unsigned int boardEnableBits;
mfwic 1:9f8583ba2431 39 extern unsigned int boardsActive;
mfwic 0:44a3005d4f20 40
mfwic 4:db38665c3727 41 void setBoardEnables(unsigned int enableBits[]);
mfwic 0:44a3005d4f20 42
mfwic 4:db38665c3727 43 void setBoardWeights(unsigned int enableWeights[]);
mfwic 0:44a3005d4f20 44
mfwic 1:9f8583ba2431 45 int checkRange(int setvalue, int limlo, int limhi);
mfwic 1:9f8583ba2431 46
mfwic 1:9f8583ba2431 47 void toggleLatchSignal(void);
mfwic 1:9f8583ba2431 48
mfwic 4:db38665c3727 49 void startConverter(unsigned int reg);
mfwic 4:db38665c3727 50 void stopConverter(void);
mfwic 4:db38665c3727 51
mfwic 5:09be5bbb5020 52 void updateControls(int);
mfwic 4:db38665c3727 53
mfwic 0:44a3005d4f20 54 #endif