SdFat
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
scr_t Class Reference

SCR register. More...

#include <SdCardInfo.h>

Public Member Functions

uint8_t cmdSupport () const
 
bool dataAfterErase () const
 
uint8_t sdBusWidths () const
 
uint8_t sdSecurity () const
 
uint8_t sdSpec () const
 
bool sdSpec3 () const
 
bool sdSpec4 () const
 
int16_t sdSpecVer () const
 
uint8_t sdSpecX () const
 
uint8_t srcStructure () const
 

Public Attributes

uint8_t scr [8]
 

Detailed Description

SCR register.

Member Function Documentation

◆ cmdSupport()

uint8_t scr_t::cmdSupport ( ) const
inline
Returns
bit map for support CMD58/59, CMD48/49, CMD23, and CMD20

◆ dataAfterErase()

bool scr_t::dataAfterErase ( ) const
inline
Returns
false if all zero, true if all one.

◆ sdBusWidths()

uint8_t scr_t::sdBusWidths ( ) const
inline
Returns
0101b.

◆ sdSecurity()

uint8_t scr_t::sdSecurity ( ) const
inline
Returns
CPRM Security Version.

◆ sdSpec()

uint8_t scr_t::sdSpec ( ) const
inline
Returns
SD_SPEC field 0 - v1.0 or V1.01, 1 - 1.10, 2 - V2.00 or greater

◆ sdSpec3()

bool scr_t::sdSpec3 ( ) const
inline
Returns
true if V3.0 or greater.

◆ sdSpec4()

bool scr_t::sdSpec4 ( ) const
inline
Returns
if true and sdSpecX is zero V4.xx.

◆ sdSpecVer()

int16_t scr_t::sdSpecVer ( ) const
inline
Returns
SD spec version

◆ sdSpecX()

uint8_t scr_t::sdSpecX ( ) const
inline
Returns
nonzero for version 5 or greater if sdSpec == 2, sdSpec3 == true. Version is return plus four.

◆ srcStructure()

uint8_t scr_t::srcStructure ( ) const
inline
Returns
SCR_STRUCTURE field - must be zero.

Member Data Documentation

◆ scr

uint8_t scr_t::scr[8]

Bytes 0-3 SD Association, bytes 4-7 reserved for manufacturer.


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