Arduino library for the I²C Multiplexer TCA9548A
Public Member Functions | List of all members
TCA9548A Class Reference

The main class of the Arduino library for the I²C Multiplexer TCA9548A. More...

#include <TCA9548A.h>

Public Member Functions

 TCA9548A ()
 Main construcor of the TCA9548A class.
 
 TCA9548A (uint8_t address)
 Constructor of the TCA9548A class with non standard i2c address. More...
 
 ~TCA9548A ()
 Main destructor of the TCA9548A class.
 
void init ()
 Initialize the TCA9548A Multiplexer.
 
void disable ()
 Disable the TCA9548A Multiplexer.
 
void set_port (uint8_t port)
 Select the port on which the TCA9548A Multiplexer will operate. More...
 
uint8_t get_port ()
 Get the current port on which the TCA9548A Multiplexer operates. More...
 
uint16_t get_version ()
 Get the version of the library. More...
 

Detailed Description

The main class of the Arduino library for the I²C Multiplexer TCA9548A.

Constructor & Destructor Documentation

◆ TCA9548A()

TCA9548A::TCA9548A ( uint8_t  address)

Constructor of the TCA9548A class with non standard i2c address.

Parameters
addressnew i2c address.

Member Function Documentation

◆ set_port()

void TCA9548A::set_port ( uint8_t  port)

Select the port on which the TCA9548A Multiplexer will operate.

Parameters
portthe port on which the TCA9548A Multiplexer will operate.

◆ get_port()

uint8_t TCA9548A::get_port ( )

Get the current port on which the TCA9548A Multiplexer operates.

Returns
the current selected port on which the TCA9548A Multiplexer operates.

◆ get_version()

uint16_t TCA9548A::get_version ( )

Get the version of the library.

Returns
the current version of the library.

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