PCA9548AP unit.
More...
#include <unit_PCA9548AP.hpp>
|
| UnitPCA9548AP (const uint8_t addr=DEFAULT_ADDRESS) |
|
uint8_t | currentChannel () const |
|
bool | readChannel (uint8_t &bits) |
| Read channel status bits.
|
|
|
static constexpr uint8_t | MAX_CHANNEL = 6 |
|
|
virtual Adapter * | duplicate_adapter (const uint8_t ch) override |
|
virtual m5::hal::error::error_t | select_channel (const uint8_t ch=8) override |
|
|
std::array< std::unique_ptr< Adapter >,+MAX_CHANNEL > | _adapters {} |
|
uint8_t | _current {0xFF} |
|
◆ currentChannel()
uint8_t m5::unit::UnitPCA9548AP::currentChannel |
( |
| ) |
const |
|
inline |
Get current channel
- Returns
- Channel no(0...)
◆ readChannel()
bool m5::unit::UnitPCA9548AP::readChannel |
( |
uint8_t & | bits | ) |
|
Read channel status bits.
- Parameters
-
- Returns
- True if successful