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

EVs_EV3SensorMux.h
1 //EVs_EV3SensorMux.h
2 //
3 /*
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 /*
19 * History
20 * ------------------------------------------------
21 * Author Date Comments
22 * Deepak 11/21/13 Initial Authoring.
23 * Benjamin J. 12/15/15 modified for EVShield.
24 */
25
26
27 #ifndef EV3_SENSOR_MUX_H
28 #define EV3_SENSOR_MUX_H
29
30 #define ESA_Command 0x41
31
32 #include "EVShieldI2C.h"
35 class EVs_EV3SensorMux : public EVShieldI2C
36 {
37 public:
39 EVs_EV3SensorMux(uint8_t i2c_address = 0x32);
41 uint8_t issueCommand(char command);
43 uint8_t setMode(char newMode);
46 byte getMode( );
49 int readValue();
50
51
52 };
53
54 #endif
EVs_EV3SensorMux::setMode
uint8_t setMode(char newMode)
Definition: EVs_EV3SensorMux.cpp:49
EVs_EV3SensorMux::readValue
int readValue()
Definition: EVs_EV3SensorMux.cpp:54
EVs_EV3SensorMux::getMode
byte getMode()
Definition: EVs_EV3SensorMux.cpp:42
EVs_EV3SensorMux::EVs_EV3SensorMux
EVs_EV3SensorMux(uint8_t i2c_address=0x32)
Definition: EVs_EV3SensorMux.cpp:31
EVShieldI2C
This class implements I2C interfaces used by EVShield.
Definition: EVShieldI2C.h:32
EVs_EV3SensorMux
This class interfaces with sensor attached to NXShield.
Definition: EVs_EV3SensorMux.h:35
EVs_EV3SensorMux::issueCommand
uint8_t issueCommand(char command)
Definition: EVs_EV3SensorMux.cpp:37