Skip to main content
Pigweed's logo Pigweed
  1. Home
  2. Reference
  3. C/C++
  4. Pw_spi
  5. pw::spi::DigitalOutChipSelector Class Reference
Loading...
Searching...
No Matches
pw::spi::DigitalOutChipSelector Class Reference

Overview

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

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

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
activetrue to set the DigitalOut to kActive, false to set the DigitalOut to kInactive.

Implements pw::spi::ChipSelector.


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