Pigweed
 
Loading...
Searching...
No Matches
pw::spi::DigitalOutChipSelector Class Reference

#include <chip_selector_digital_out.h>

Inheritance diagram for pw::spi::DigitalOutChipSelector:
pw::spi::ChipSelector

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 ()
 

Detailed Description

An implementation of pw::spi::ChipSelector that sets the state of a pw_digital_io output when activated.

Member Function Documentation

◆ SetActive()

Status pw::spi::DigitalOutChipSelector::SetActive ( bool  active)
inlineoverridevirtual

Set a pw::digital_io::DigitalOut state as a chip select signal.

Parameters
[active]true Set the DigitalOut to kActive
[active]false Set the DigitalOut to kInactive

Implements pw::spi::ChipSelector.


The documentation for this class was generated from the following file: