13 namespace duds {
namespace hardware {
namespace interface {
35 std::unique_ptr<DigitalPinAccess>
selpin;
81 std::unique_ptr<DigitalPinAccess> &&dpa,
88 virtual bool validChip(
int chipId)
const noexcept;
100 std::unique_ptr<DigitalPinAccess> &&dpa,
Indicates the chip is selected when the pin is driven low, or doesn't drive the line if the output ty...
SelectState
The list of possible pin states that can be used to select a chip.
std::unique_ptr< DigitalPinAccess > selpin
The access object for the select pin.
virtual bool validChip(int chipId) const noexcept
The only valid chip ID for this manager is 1, and it is only valid once a DigitalPinAccess object has...
~ChipPinSelectManager()
Calls shutdown().
SelectState selstate
True when the chip is selected with a high logic level.
void setSelectPin(std::unique_ptr< DigitalPinAccess > &&dpa, SelectState selectState=SelectLow)
Sets the DigitalPinAccess object to use for the chip select line.
ChipPinSelectManager()
Default constructor.
Selects a single chip using a single pin.
virtual void deselect()
Deselects the chip identified by cid.
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 ...
Indicates the chip is selected when the pin is driven high, or doesn't drive the line if the output t...