MechaLib
The robust, all-in-one software library for MechaLeague Robots
Loading...
Searching...
No Matches
I2C_MUX_TCA9548A Class Reference

#include <I2C_MUX_TCA9548A.h>

Public Member Functions

 I2C_MUX_TCA9548A ()
 I2C_MUX_TCA9548A (uint8_t address)
 I2C_MUX_TCA9548A (TwoWire *wire, uint8_t address)
void begin (bool beginI2C=true)
 Begin the I2C communication By default this function begins the I2C bus, if this behavior is not desired, pass false as the argument.
bool exposeChannel (uint8_t channel)
 Expose a channel to the I2C bus.
bool hideChannel (uint8_t channel)
 Hide a channel from the I2C bus.
void exposeAllChannels ()
 Expose ALL channels to the I2C bus.
void hideAllChannels ()
 Hide ALL channels from the I2C bus.
bool isChannelExposed (uint8_t channel)
 Check if a channel is exposed.
bool * getChannelStates ()
 Get the state of all channels.
void writeRawRegister (uint8_t value)
 Write a raw value to the mux.
byte readRawRegister ()
 Read a raw value from the mux.
 ~I2C_MUX_TCA9548A ()

Constructor & Destructor Documentation

◆ I2C_MUX_TCA9548A() [1/3]

I2C_MUX_TCA9548A::I2C_MUX_TCA9548A ( )
inline

◆ I2C_MUX_TCA9548A() [2/3]

I2C_MUX_TCA9548A::I2C_MUX_TCA9548A ( uint8_t address)
inline

◆ I2C_MUX_TCA9548A() [3/3]

I2C_MUX_TCA9548A::I2C_MUX_TCA9548A ( TwoWire * wire,
uint8_t address )
inline

◆ ~I2C_MUX_TCA9548A()

I2C_MUX_TCA9548A::~I2C_MUX_TCA9548A ( )
inline

Member Function Documentation

◆ begin()

void I2C_MUX_TCA9548A::begin ( bool beginI2C = true)
inline

Begin the I2C communication By default this function begins the I2C bus, if this behavior is not desired, pass false as the argument.

◆ exposeAllChannels()

void I2C_MUX_TCA9548A::exposeAllChannels ( )
inline

Expose ALL channels to the I2C bus.

◆ exposeChannel()

bool I2C_MUX_TCA9548A::exposeChannel ( uint8_t channel)
inline

Expose a channel to the I2C bus.

◆ getChannelStates()

bool * I2C_MUX_TCA9548A::getChannelStates ( )
inline

Get the state of all channels.

◆ hideAllChannels()

void I2C_MUX_TCA9548A::hideAllChannels ( )
inline

Hide ALL channels from the I2C bus.

◆ hideChannel()

bool I2C_MUX_TCA9548A::hideChannel ( uint8_t channel)
inline

Hide a channel from the I2C bus.

◆ isChannelExposed()

bool I2C_MUX_TCA9548A::isChannelExposed ( uint8_t channel)
inline

Check if a channel is exposed.

◆ readRawRegister()

byte I2C_MUX_TCA9548A::readRawRegister ( )
inline

Read a raw value from the mux.

◆ writeRawRegister()

void I2C_MUX_TCA9548A::writeRawRegister ( uint8_t value)
inline

Write a raw value to the mux.


The documentation for this class was generated from the following file: