| EVShield v1.3 EVShield Library Reference by mindsensors.com

EVShieldAGS.h
1
2 /*
3 * EVShield interface library
4 * Copyright (C) 2015 mindsensors.com
5 12/18/2014 Nitin Patil -- modified to work with EVshield
6 *
7 * This file is part of EVShield interface library.
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #ifndef EVShieldAGS_H
24 #define EVShieldAGS_H
25
26 #include "SHDefines.h"
27 #include "EVShield.h"
28
32 class EVShieldAGS
33 {
34 public:
36 EVShield * mp_shield;
37
39 SH_BankPort m_bp;
40
42 EVShieldAGS();
43
45 EVShieldAGS(EVShield * shield, SH_BankPort bp);
46
48 bool setType(uint8_t type);
49
51 int readRaw();
52
54 bool init(EVShield * shield, SH_BankPort bp);
55
56 };
57
58
59 #endif
60
EVShieldAGS
EVShield Analog Sensor class.
Definition: EVShieldAGS.h:32
EVShieldAGS::setType
bool setType(uint8_t type)
Definition: EVShieldAGS.cpp:32
EVShieldAGS::EVShieldAGS
EVShieldAGS()
Definition: EVShieldAGS.cpp:21
SHDefines.h
EVShieldAGS::readRaw
int readRaw()
Definition: EVShieldAGS.cpp:51
EVShield
This class defines methods to access EVShield features.
Definition: EVShield.h:694
EVShieldAGS::init
bool init(EVShield *shield, SH_BankPort bp)
Definition: EVShieldAGS.cpp:71
EVShieldAGS::m_bp
SH_BankPort m_bp
Definition: EVShieldAGS.h:39
EVShieldAGS::mp_shield
EVShield * mp_shield
Definition: EVShieldAGS.h:36
SH_BankPort
SH_BankPort
Definition: SHDefines.h:52
EVShield.h