13 namespace duds {
namespace hardware {
namespace interface {
43 std::unique_ptr<DigitalPinAccess>
selpin;
64 std::unique_ptr<DigitalPinAccess> &&dpa,
75 virtual bool validChip(
int chipId)
const noexcept;
86 void setSelectPin(std::unique_ptr<DigitalPinAccess> &&dpa,
int initSel = 0);
std::unique_ptr< DigitalPinAccess > selpin
The access object for the select pin.
virtual bool validChip(int chipId) const noexcept
The only valid chip IDs for this manager are 0 and 1, and they are only valid once a DigitalPinAccess...
~ChipBinarySelectManager()
Calls shutdown().
void setSelectPin(std::unique_ptr< DigitalPinAccess > &&dpa, int initSel=0)
Sets the DigitalPinAccess object to use for the chip select line.
virtual void deselect()
Deselects the chip identified by cid.
ChipBinarySelectManager()
Default constructor.
Selects one of two chips using a single pin.
virtual void select()
Selects the chip identified by cid.
The base class for all chip selection managers, the classes that handle the output state to select a ...