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

Union of old and new style CSD register. More...

#include <SdCardInfo.h>

Public Member Functions

uint32_t capacity () const
 
bool copy () const
 
bool eraseSingleBlock () const
 
int eraseSize () const
 
bool permWriteProtect () const
 
bool tempWriteProtect () const
 

Public Attributes

uint8_t csd [16]
 

Detailed Description

Union of old and new style CSD register.

Member Function Documentation

◆ capacity()

uint32_t CSD::capacity ( ) const
inline
Returns
Capacity in sectors

◆ copy()

bool CSD::copy ( ) const
inline
Returns
true if the contents is copied or true if original.

◆ eraseSingleBlock()

bool CSD::eraseSingleBlock ( ) const
inline
Returns
true if erase granularity is single block.

◆ eraseSize()

int CSD::eraseSize ( ) const
inline
Returns
erase size in 512 byte blocks if eraseSingleBlock is false.

◆ permWriteProtect()

bool CSD::permWriteProtect ( ) const
inline
Returns
true if the entire card is permanently write protected.

◆ tempWriteProtect()

bool CSD::tempWriteProtect ( ) const
inline
Returns
true if the entire card is temporarily write protected.

Member Data Documentation

◆ csd

uint8_t CSD::csd[16]

union of all CSD versions


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