32 #include "mraa/i2c.hpp" 34 #define TCA9548A_I2C_BUS 0 35 #define TCA9548A_DEFAULT_ADDR 0x70 36 #define TCA9548A_NO_PORTS 0x00 37 #define TCA9548A_ALL_PORTS 0xFF 39 #define TCA9548A_MIN_PORT 0 40 #define TCA9548A_MAX_PORT 7 128 TCA9548A (
int bus, uint8_t address = 0x70);
185 uint8_t getPortConfig();
186 void setPortConfig(uint8_t config);
187 bool validPort(
int port);
~TCA9548A()
Definition: tca9548a.cxx:59
std::string name()
Definition: tca9548a.hpp:138
void setPort(int port, TCA9548A_PORT_STATE state, TCA9548A_PORT_MODE mode)
Definition: tca9548a.cxx:80
bool getPort(int port)
Definition: tca9548a.cxx:65
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void disableAllPorts()
Definition: tca9548a.cxx:108
TCA9548A_PORT_STATE
boolean enum containing port state
Definition: tca9548a.hpp:105
TCA9548A_PORT_MODE
boolean enum containing port access mode
Definition: tca9548a.hpp:117
TCA9548A(int bus, uint8_t address=0x70)
Definition: tca9548a.cxx:38
API TCA9548A Multiplexer Breakout.
Definition: tca9548a.hpp:95
void enableAllPorts()
Definition: tca9548a.cxx:114