distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
distortos::devices::SdMmcCardLowLevel::ReadTransfer Struct Reference

read transfer associated with transaction More...

#include "distortos/devices/memory/SdMmcCardLowLevel.hpp"

Inheritance diagram for distortos::devices::SdMmcCardLowLevel::ReadTransfer:
[legend]
Collaboration diagram for distortos::devices::SdMmcCardLowLevel::ReadTransfer:
[legend]

Public Member Functions

constexpr ReadTransfer (void *const readBuffer, const size_t size, const size_t blockSize, const uint16_t timeoutMs)
 ReadTransfer's constructor. More...
 
- Public Member Functions inherited from distortos::devices::SdMmcCardLowLevel::Transfer
constexpr Transfer ()
 Transfer's constructor. More...
 
constexpr Transfer (void *const readBuffer, const size_t size, const size_t blockSize, const uint16_t timeoutMs)
 Transfer's constructor. More...
 
constexpr Transfer (const void *const writeBuffer, const size_t size, const size_t blockSize, const uint16_t timeoutMs)
 Transfer's constructor. More...
 
size_t getBlockSize () const
 
void * getReadBuffer () const
 
size_t getSize () const
 
uint16_t getTimeoutMs () const
 
const void * getWriteBuffer () const
 
bool isWriteTransfer () const
 

Detailed Description

read transfer associated with transaction

Constructor & Destructor Documentation

◆ ReadTransfer()

constexpr distortos::devices::SdMmcCardLowLevel::ReadTransfer::ReadTransfer ( void *const  readBuffer,
const size_t  size,
const size_t  blockSize,
const uint16_t  timeoutMs 
)
inline

ReadTransfer's constructor.

Parameters
[out]readBufferis the buffer into which the data will be read
[in]sizeis the size of readBuffer, bytes, must be a multiple of block size
[in]blockSizeis the block size, bytes
[in]timeoutMsis the timeout of read transfer, milliseconds

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