SdFat
Public Member Functions | Public Attributes | List of all members
SCR Class Reference

SCR register. More...

#include <SdCardInfo.h>

Public Member Functions

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

Public Attributes

uint8_t scr [8]
 

Detailed Description

SCR register.

Member Function Documentation

◆ cmdSupport()

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

◆ dataAfterErase()

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

◆ sdBusWidths()

uint8_t SCR::sdBusWidths ( )
inline
Returns
0101b.

◆ sdSecurity()

uint8_t SCR::sdSecurity ( )
inline
Returns
CPRM Security Version.

◆ sdSpec()

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

◆ sdSpec3()

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

◆ sdSpec4()

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

◆ sdSpecVer()

int16_t SCR::sdSpecVer ( )
inline
Returns
SD spec version

◆ sdSpecX()

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

◆ srcStructure()

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

Member Data Documentation

◆ scr

uint8_t SCR::scr[8]

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


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