NXShield  v1.07
NXShield Library Reference by OpenElectrons.com
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
NXShieldAGS.h
1 
2 /*
3  * NXShield interface library
4  * Copyright (C) 2011 mindsensors.com
5  *
6  * This file is part of NXShield interface library.
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Lesser General Public
9  License as published by the Free Software Foundation; either
10  version 2.1 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public
18  License along with this library; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21 
22 #ifndef NXShieldAGS_H
23 #define NXShieldAGS_H
24 
25 #include "SHDefines.h"
26 #include "NXShield.h"
27 
32 {
33 public:
36 
39 
41  NXShieldAGS();
42 
44  NXShieldAGS(NXShield * shield, SH_BankPort bp);
45 
47  bool setType(uint8_t type);
48 
50  int readRaw();
51 
53  bool init(NXShield * shield, SH_BankPort bp);
54 
55 };
56 
57 
58 #endif
59 
This class defines methods to access NXShield features.
Definition: NXShield.h:639
int readRaw()
Definition: NXShieldAGS.cpp:50
SH_BankPort m_bp
Definition: NXShieldAGS.h:38
NXShield * mp_shield
Definition: NXShieldAGS.h:35
bool init(NXShield *shield, SH_BankPort bp)
Definition: NXShieldAGS.cpp:70
SH_BankPort
Definition: SHDefines.h:49
bool setType(uint8_t type)
Definition: NXShieldAGS.cpp:31
NXShield Analog Sensor class.
Definition: NXShieldAGS.h:31
NXShieldAGS()
Definition: NXShieldAGS.cpp:20