13 namespace duds {
namespace hardware {
namespace interface {
35 std::unique_ptr<DigitalPinSetAccess>
selpins;
68 std::unique_ptr<DigitalPinSetAccess> &&dpsa,
69 std::uint32_t selectStates = 0
75 virtual bool validChip(
int chipId)
const noexcept;
93 std::unique_ptr<DigitalPinSetAccess> &&dpsa,
94 std::uint32_t selectStates = 0
Selects a single chip at a time using one pin from a set.
std::unique_ptr< DigitalPinSetAccess > selpins
The access object for the select pin.
virtual bool validChip(int chipId) const noexcept
Valid IDs are those with a pin in the DigitalPinSetAccess object given to this manager.
virtual void select()
Selects the chip identified by cid.
virtual void deselect()
Deselects the chip identified by cid.
std::uint32_t selstates
The select logic states for each pin.
~ChipPinSetSelectManager()
Calls shutdown().
void setSelectPins(std::unique_ptr< DigitalPinSetAccess > &&dpsa, std::uint32_t selectStates=0)
Sets the DigitalPinSetAccess object to use for the chip select lines, and the selection states for ea...
The base class for all chip selection managers, the classes that handle the output state to select a ...
ChipPinSetSelectManager()
Default constructor.