distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
distortos::devices::SpiMasterOperation Class Reference

#include <SpiMasterOperation.hpp>

Collaboration diagram for distortos::devices::SpiMasterOperation:
[legend]

Classes

class  Transfer
 Transfer class is a single transfer operation. More...
 

Public Member Functions

constexpr SpiMasterOperation (const Transfer transfer)
 SpiMasterOperation's constructor with transfer operation. More...
 
TransfergetTransfer ()
 

Private Attributes

Transfer transfer_
 single transfer operation More...
 

Detailed Description

SpiMasterOperation class is a single operation that can be executed by SPI master as part of a transaction.

Constructor & Destructor Documentation

◆ SpiMasterOperation()

constexpr distortos::devices::SpiMasterOperation::SpiMasterOperation ( const Transfer  transfer)
inline

SpiMasterOperation's constructor with transfer operation.

Parameters
[in]transferis the transfer operation that will be executed
Note
non-explicit on purpose

Member Function Documentation

◆ getTransfer()

Transfer* distortos::devices::SpiMasterOperation::getTransfer ( )
inline
Returns
pointer to contained transfer operation, nullptr if this object contains different type of operation

Member Data Documentation

◆ transfer_

Transfer distortos::devices::SpiMasterOperation::transfer_
private

single transfer operation


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