distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
distortos::devices::anonymous_namespace{SdCardSpiBased.cpp}::SelectGuard Class Reference

select guard for SD card connected via SPI More...

Inheritance diagram for distortos::devices::anonymous_namespace{SdCardSpiBased.cpp}::SelectGuard:
[legend]
Collaboration diagram for distortos::devices::anonymous_namespace{SdCardSpiBased.cpp}::SelectGuard:
[legend]

Public Member Functions

 SelectGuard (OutputPin &slaveSelectPin, const SpiMasterHandle &spiMasterHandle)
 SelectGuard's constructor. More...
 
 ~SelectGuard ()
 SelectGuard's destructor. More...
 
- Public Member Functions inherited from distortos::devices::SpiDeviceSelectGuard
 SpiDeviceSelectGuard (OutputPin &slaveSelectPin)
 SpiDeviceSelectGuard's constructor. More...
 
 ~SpiDeviceSelectGuard ()
 SpiDeviceSelectGuard's destructor. More...
 
 SpiDeviceSelectGuard (const SpiDeviceSelectGuard &)=delete
 
SpiDeviceSelectGuardoperator= (const SpiDeviceSelectGuard &)=delete
 

Private Attributes

const SpiMasterHandlespiMasterHandle_
 reference to SpiMasterHandle associated with this select guard More...
 

Detailed Description

select guard for SD card connected via SPI

Constructor & Destructor Documentation

◆ SelectGuard()

distortos::devices::anonymous_namespace{SdCardSpiBased.cpp}::SelectGuard::SelectGuard ( OutputPin slaveSelectPin,
const SpiMasterHandle spiMasterHandle 
)
inline

SelectGuard's constructor.

Parameters
[in]slaveSelectPinis a reference to slave select pin of this SPI slave device
[in]spiMasterHandleis a reference to SpiMasterHandle associated with this select guard

◆ ~SelectGuard()

distortos::devices::anonymous_namespace{SdCardSpiBased.cpp}::SelectGuard::~SelectGuard ( )
inline

SelectGuard's destructor.

Member Data Documentation

◆ spiMasterHandle_

const SpiMasterHandle& distortos::devices::anonymous_namespace{SdCardSpiBased.cpp}::SelectGuard::spiMasterHandle_
private

reference to SpiMasterHandle associated with this select guard


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