SAMV71 Xplained Ultra Software Package 1.3

SD/MMC status fields
[SD/MMC Spec. definitions]

Collaboration diagram for SD/MMC status fields:

Defines

#define SD_ST(pSt, field, bits)   SD_BITS32(pSt, 512, field, bits)
#define SD_ST_DAT_BUS_WIDTH(pSt)   SD_ST(pSt, 510, 2)
#define SD_ST_DATA_BUS_WIDTH_1BIT   0x0
#define SD_ST_DATA_BUS_WIDTH_4BIT   0x2
#define SD_ST_SECURED_MODE(pSt)   SD_ST(pSt, 509, 1)
#define SD_ST_CARD_TYPE(pSt)   SD_ST(pSt, 480, 16)
#define SD_ST_CARD_TYPE_RW   0x0000
#define SD_ST_CARD_TYPE_ROM   0x0001
#define SD_ST_SIZE_OF_PROTECTED_AREA(pSt)   SD_ST(pSt, 448, 32)
#define SD_ST_SPEED_CLASS(pSt)   SD_ST(pSt, 440, 8)
#define SD_ST_SPEED_CLASS_0   0
#define SD_ST_SPEED_CLASS_2   1
#define SD_ST_SPEED_CLASS_4   2
#define SD_ST_SPEED_CLASS_6   3
#define SD_ST_PERFORMANCE_MOVE(pSt)   SD_ST(pSt, 432, 8)
#define SD_ST_AU_SIZE(pSt)   SD_ST(pSt, 428, 4)
#define SD_ST_AU_SIZE_16K   1
#define SD_ST_AU_SIZE_32K   2
#define SD_ST_AU_SIZE_64K   3
#define SD_ST_AU_SIZE_128K   4
#define SD_ST_AU_SIZE_256K   5
#define SD_ST_AU_SIZE_512K   6
#define SD_ST_AU_SIZE_1M   7
#define SD_ST_AU_SIZE_2M   8
#define SD_ST_AU_SIZE_4M   9
#define SD_ST_ERASE_SIZE(pSt)   SD_ST(pSt, 408, 16)
#define SD_ST_ERASE_TIMEOUT(pSt)   SD_ST(pSt, 402, 6)
#define SD_ST_ERASE_OFFSET(pSt)   SD_ST(pSt, 400, 2)

Define Documentation

#define SD_ST (   pSt,
  field,
  bits 
)    SD_BITS32(pSt, 512, field, bits)

SD Status access macros (512 bits, 16 * 32 bits, 64 * 8 bits).

Definition at line 372 of file sdmmc.h.

#define SD_ST_AU_SIZE (   pSt  )     SD_ST(pSt, 428, 4)

AU Size, in power of 2 from 16KB

Definition at line 387 of file sdmmc.h.

#define SD_ST_CARD_TYPE_ROM   0x0001

SD ROM Card

Definition at line 379 of file sdmmc.h.

#define SD_ST_CARD_TYPE_RW   0x0000

Regular SD R/W Card

Definition at line 378 of file sdmmc.h.

#define SD_ST_DAT_BUS_WIDTH (   pSt  )     SD_ST(pSt, 510, 2)

Bus width, 00: default, 10:4-bit

Definition at line 373 of file sdmmc.h.

#define SD_ST_DATA_BUS_WIDTH_1BIT   0x0

1-bit bus width

Definition at line 374 of file sdmmc.h.

#define SD_ST_DATA_BUS_WIDTH_4BIT   0x2

4-bit bus width

Definition at line 375 of file sdmmc.h.

#define SD_ST_ERASE_OFFSET (   pSt  )     SD_ST(pSt, 400, 2)

Fixed offset value added to erase time

Definition at line 399 of file sdmmc.h.

#define SD_ST_ERASE_SIZE (   pSt  )     SD_ST(pSt, 408, 16)

16-bit, number of AUs erased.

Definition at line 397 of file sdmmc.h.

#define SD_ST_ERASE_TIMEOUT (   pSt  )     SD_ST(pSt, 402, 6)

Timeout value for erasing areas

Definition at line 398 of file sdmmc.h.

#define SD_ST_PERFORMANCE_MOVE (   pSt  )     SD_ST(pSt, 432, 8)

8-bit, by 1MB/s step.

Definition at line 386 of file sdmmc.h.

#define SD_ST_SECURED_MODE (   pSt  )     SD_ST(pSt, 509, 1)

Secured Mode

Definition at line 376 of file sdmmc.h.

#define SD_ST_SIZE_OF_PROTECTED_AREA (   pSt  )     SD_ST(pSt, 448, 32)

STD: ThisSize*Multi*BlockLen, HC: Size in bytes

Definition at line 380 of file sdmmc.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines