PCA9548AP unit.
More...
#include <unit_PCA9548AP.hpp>
|
| UnitPCA9548AP (const uint8_t addr=DEFAULT_ADDRESS) |
|
uint8_t | currentChannel () const |
| Get current channel.
|
|
bool | readChannel (uint8_t &bits) |
| Read channel status bits.
|
|
|
static constexpr uint8_t | MAX_CHANNEL = 6 |
|
|
virtual m5::hal::error::error_t | select_channel (const uint8_t ch) override |
|
virtual std::shared_ptr< Adapter > | ensure_adapter (const uint8_t ch) override |
|
◆ 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