An implementation of pw::spi::ChipSelector that sets the state of a pw_digital_io output when activated.
Public Member Functions | |
| constexpr | DigitalOutChipSelector (pw::digital_io::DigitalOut &cs_pin) |
| Status | SetActive (bool active) override |
Public Member Functions inherited from pw::spi::ChipSelector | |
| virtual Status | SetActive (bool active)=0 |
| Status | Activate () |
| Status | Deactivate () |
|
inlineoverridevirtual |
Set a pw::digital_io::DigitalOut state as a chip select signal.
| [active] | true Set the DigitalOut to kActive |
| [active] | false Set the DigitalOut to kInactive |
Implements pw::spi::ChipSelector.