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

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

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

Public Types

using RawCsdV1 = LongResponse
 type of raw CSD version 1.0 data More...
 

Public Member Functions

constexpr CsdV1 (const RawCsdV1 csdV1)
 CsdV1's constructor. More...
 
uint16_t getCSize () const
 
uint8_t getCSizeMult () const
 
uint8_t getReadBlLen () const
 

Private Attributes

RawCsdV1 csdV1_
 raw CSD version 1.0 data More...
 

Detailed Description

CSD version 1.0, card-specific data register.

Member Typedef Documentation

◆ RawCsdV1

using distortos::devices::anonymous_namespace{SdCard.cpp}::CsdV1::RawCsdV1 = LongResponse

type of raw CSD version 1.0 data

Constructor & Destructor Documentation

◆ CsdV1()

constexpr distortos::devices::anonymous_namespace{SdCard.cpp}::CsdV1::CsdV1 ( const RawCsdV1  csdV1)
inlineexplicit

CsdV1's constructor.

Parameters
[in]csdV1is the raw CSD version 1.0 data

Member Function Documentation

◆ getCSize()

uint16_t distortos::devices::anonymous_namespace{SdCard.cpp}::CsdV1::getCSize ( ) const
inline
Returns
value of C_SIZE (device size) bit field

◆ getCSizeMult()

uint8_t distortos::devices::anonymous_namespace{SdCard.cpp}::CsdV1::getCSizeMult ( ) const
inline
Returns
value of C_SIZE_MULT (device size multiplier) bit field

◆ getReadBlLen()

uint8_t distortos::devices::anonymous_namespace{SdCard.cpp}::CsdV1::getReadBlLen ( ) const
inline
Returns
value of READ_BL_LEN (max. read data block length) bit field

Member Data Documentation

◆ csdV1_

RawCsdV1 distortos::devices::anonymous_namespace{SdCard.cpp}::CsdV1::csdV1_
private

raw CSD version 1.0 data


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