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

CSD, card-specific data register. More...

Collaboration diagram for distortos::devices::anonymous_namespace{SdCard.cpp}::Csd:
[legend]

Public Types

using RawCsd = LongResponse
 type of raw CSD data More...
 

Public Member Functions

constexpr Csd (const RawCsd csd)
 Csd's constructor. More...
 
uint8_t getCsdStructure () const
 
CsdV1 getCsdV1 () const
 
CsdV2 getCsdV2 () const
 
uint8_t getEraseBlkEn () const
 

Private Attributes

RawCsd csd_
 raw CSD data More...
 

Detailed Description

CSD, card-specific data register.

Member Typedef Documentation

◆ RawCsd

using distortos::devices::anonymous_namespace{SdCard.cpp}::Csd::RawCsd = LongResponse

type of raw CSD data

Constructor & Destructor Documentation

◆ Csd()

constexpr distortos::devices::anonymous_namespace{SdCard.cpp}::Csd::Csd ( const RawCsd  csd)
inlineexplicit

Csd's constructor.

Parameters
[in]csdis the raw CSD data

Member Function Documentation

◆ getCsdStructure()

uint8_t distortos::devices::anonymous_namespace{SdCard.cpp}::Csd::getCsdStructure ( ) const
inline
Returns
value of CSD_STRUCTURE (CSD structure) bit field

◆ getCsdV1()

CsdV1 distortos::devices::anonymous_namespace{SdCard.cpp}::Csd::getCsdV1 ( ) const
inline
Returns
CSD version 1.0, valid only if CSD_STRUCTURE equals 0

◆ getCsdV2()

CsdV2 distortos::devices::anonymous_namespace{SdCard.cpp}::Csd::getCsdV2 ( ) const
inline
Returns
CSD version 2.0, valid only if CSD_STRUCTURE equals 1

◆ getEraseBlkEn()

uint8_t distortos::devices::anonymous_namespace{SdCard.cpp}::Csd::getEraseBlkEn ( ) const
inline
Returns
value of ERASE_BLK_EN (erase single block enable) bit field

Member Data Documentation

◆ csd_

RawCsd distortos::devices::anonymous_namespace{SdCard.cpp}::Csd::csd_
private

raw CSD data


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