Treehouse Mbed Team / Mbed 2 deprecated APS_DCM1SL2

Dependencies:   mbed

Committer:
mfwic
Date:
Fri Dec 07 20:42:41 2018 +0000
Revision:
11:01dcfb29fbc4
Parent:
9:816b9a4e4f21
Child:
15:aed8f326c949
Cleaned up code, reduced global variables, deleted commented out lines and stale sections.

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 adc_H
mfwic 0:44a3005d4f20 30 #define adc_H
mfwic 0:44a3005d4f20 31
mfwic 11:01dcfb29fbc4 32 #include "globals.h"
mfwic 0:44a3005d4f20 33 #include "mbed.h"
mfwic 0:44a3005d4f20 34
mfwic 0:44a3005d4f20 35 void initADC(void);
mfwic 0:44a3005d4f20 36
mfwic 11:01dcfb29fbc4 37 struct adcValues getADCresults(void);
mfwic 11:01dcfb29fbc4 38 struct adcValues getADCvolts(void);
mfwic 11:01dcfb29fbc4 39 struct adcValues getADCamps(void);
mfwic 11:01dcfb29fbc4 40
mfwic 11:01dcfb29fbc4 41 struct displayValues calcDisplayValues(struct adcValues avals);
mfwic 11:01dcfb29fbc4 42
mfwic 11:01dcfb29fbc4 43 extern bool raw;
mfwic 1:9f8583ba2431 44
mfwic 1:9f8583ba2431 45 #endif