14 namespace duds {
namespace hardware {
namespace interface {
30 std::unique_ptr<DigitalPinSetAccess>
outacc;
56 virtual bool validChip(
int chipId)
const noexcept;
72 void setAccess(std::unique_ptr<DigitalPinSetAccess> &&acc);
virtual void select()
Selects the chip identified by cid.
void setAccess(std::unique_ptr< DigitalPinSetAccess > &&acc)
Sets the access object used to output the number of the chip to select.
std::unique_ptr< DigitalPinSetAccess > outacc
Access used for parallel output.
virtual void deselect()
Deselects the chip identified by cid.
std::unique_ptr< DigitalPinSetAccess > releaseAccess()
Returns the access object that was used by this chip select manager.
ChipMultiplexerSelectManager()=default
Default constructor.
virtual bool validChip(int chipId) const noexcept
Valid chip IDs are greater than zero and can be represented in the same number of bits as there are p...
Selects one of several chips using several pins for parallel output of a number.
The base class for all chip selection managers, the classes that handle the output state to select a ...