Loading...
Searching...
No Matches

CSD register structure Version 2.0 and Version 3.0. More...

Detailed Description

CSD register structure Version 2.0 and Version 3.0.

A combined format is used for CSD Version 2.0 and 3.0 to reduce the code size. The only difference is the bit length of C_SIZE.

See also
Physical Layer Simplified Specification Version 9.00 [sdcard.org]
  • Version 2.0: Section 5.3.3, Table 5-16
  • Version 3.0: Section 5.3.4, Table 5.3.4-1

Definition at line 687 of file sdmmc.h.

#include <sdmmc.h>

Data Fields

uint32_t CSD_CRC:8
 CRC including End bit 1b [7:0].
 
uint32_t reserved5:1
 reserved [8]
 
uint32_t WP_UPC:1
 write protection until power cycle [9]
 
uint32_t FILE_FORMAT:2
 File format [11:10].
 
uint32_t TMP_WRITE_PROTECT:1
 temporary write protection [12]
 
uint32_t PERM_WRITE_PROTECT:1
 permanent write protection [13]
 
uint32_t COPY:1
 copy flag [14]
 
uint32_t FILE_FORMAT_GRP:1
 File format group [15].
 
uint32_t reserved4:5
 reserved [20:16]
 
uint32_t WRITE_BL_PARTIAL:1
 partial blocks for write allowed [21]
 
uint32_t WRITE_BL_LEN:4
 max.
 
uint32_t R2W_FACTOR:3
 write speed factor [28:26]
 
uint32_t reserved3:2
 reserved [30:29]
 
uint32_t WP_GRP_ENABLE:1
 write protect group enable [31]
 
uint32_t WP_GRP_SIZE:7
 write protect group size [38:32]
 
uint32_t SECTOR_SIZE:7
 erase sector size [45:39]
 
uint32_t ERASE_BLK_EN:1
 erase single block enable [46]
 
uint32_t reserved2:1
 reserved [47]
 
uint32_t C_SIZE:28
 device size v2.0 [69:48], v3.0 [75:48]
 
uint32_t DSR_IMP:1
 DSR implemented [76].
 
uint32_t READ_BLK_MISALIGN:1
 read block misalignment [77]
 
uint32_t WRITE_BLK_MISALIGN:1
 write block misalignment [78]
 
uint32_t READ_BL_PARTIAL:1
 partial blocks for read allowed [79]
 
uint32_t READ_BL_LEN:4
 max.
 
uint32_t CCC:12
 card command classes [95:84]
 
uint32_t TRAN_SPEED:8
 max.
 
uint32_t NSAC:8
 data read access-time-2 in CLK cycles [111:104]
 
uint32_t TAAC:8
 data read access-time-1 [119:112]
 
uint32_t reserved1:6
 reserved [125:120]
 
uint32_t CSD_STRUCTURE:2
 CSD structure [127:126].
 

Field Documentation

◆ C_SIZE

uint32_t sdmmc_csd_v2_t::C_SIZE

device size v2.0 [69:48], v3.0 [75:48]

Definition at line 706 of file sdmmc.h.

◆ CCC

uint32_t sdmmc_csd_v2_t::CCC

card command classes [95:84]

Definition at line 712 of file sdmmc.h.

◆ COPY

uint32_t sdmmc_csd_v2_t::COPY

copy flag [14]

Definition at line 694 of file sdmmc.h.

◆ CSD_CRC

uint32_t sdmmc_csd_v2_t::CSD_CRC

CRC including End bit 1b [7:0].

Definition at line 688 of file sdmmc.h.

◆ CSD_STRUCTURE

uint32_t sdmmc_csd_v2_t::CSD_STRUCTURE

CSD structure [127:126].

Definition at line 717 of file sdmmc.h.

◆ DSR_IMP

uint32_t sdmmc_csd_v2_t::DSR_IMP

DSR implemented [76].

Definition at line 707 of file sdmmc.h.

◆ ERASE_BLK_EN

uint32_t sdmmc_csd_v2_t::ERASE_BLK_EN

erase single block enable [46]

Definition at line 704 of file sdmmc.h.

◆ FILE_FORMAT

uint32_t sdmmc_csd_v2_t::FILE_FORMAT

File format [11:10].

Definition at line 691 of file sdmmc.h.

◆ FILE_FORMAT_GRP

uint32_t sdmmc_csd_v2_t::FILE_FORMAT_GRP

File format group [15].

Definition at line 695 of file sdmmc.h.

◆ NSAC

uint32_t sdmmc_csd_v2_t::NSAC

data read access-time-2 in CLK cycles [111:104]

Definition at line 714 of file sdmmc.h.

◆ PERM_WRITE_PROTECT

uint32_t sdmmc_csd_v2_t::PERM_WRITE_PROTECT

permanent write protection [13]

Definition at line 693 of file sdmmc.h.

◆ R2W_FACTOR

uint32_t sdmmc_csd_v2_t::R2W_FACTOR

write speed factor [28:26]

Definition at line 699 of file sdmmc.h.

◆ READ_BL_LEN

uint32_t sdmmc_csd_v2_t::READ_BL_LEN

max.

read data block length [83:80]

Definition at line 711 of file sdmmc.h.

◆ READ_BL_PARTIAL

uint32_t sdmmc_csd_v2_t::READ_BL_PARTIAL

partial blocks for read allowed [79]

Definition at line 710 of file sdmmc.h.

◆ READ_BLK_MISALIGN

uint32_t sdmmc_csd_v2_t::READ_BLK_MISALIGN

read block misalignment [77]

Definition at line 708 of file sdmmc.h.

◆ reserved1

uint32_t sdmmc_csd_v2_t::reserved1

reserved [125:120]

Definition at line 716 of file sdmmc.h.

◆ reserved2

uint32_t sdmmc_csd_v2_t::reserved2

reserved [47]

Definition at line 705 of file sdmmc.h.

◆ reserved3

uint32_t sdmmc_csd_v2_t::reserved3

reserved [30:29]

Definition at line 700 of file sdmmc.h.

◆ reserved4

uint32_t sdmmc_csd_v2_t::reserved4

reserved [20:16]

Definition at line 696 of file sdmmc.h.

◆ reserved5

uint32_t sdmmc_csd_v2_t::reserved5

reserved [8]

Definition at line 689 of file sdmmc.h.

◆ SECTOR_SIZE

uint32_t sdmmc_csd_v2_t::SECTOR_SIZE

erase sector size [45:39]

Definition at line 703 of file sdmmc.h.

◆ TAAC

uint32_t sdmmc_csd_v2_t::TAAC

data read access-time-1 [119:112]

Definition at line 715 of file sdmmc.h.

◆ TMP_WRITE_PROTECT

uint32_t sdmmc_csd_v2_t::TMP_WRITE_PROTECT

temporary write protection [12]

Definition at line 692 of file sdmmc.h.

◆ TRAN_SPEED

uint32_t sdmmc_csd_v2_t::TRAN_SPEED

max.

data transfer rate [103:96]

Definition at line 713 of file sdmmc.h.

◆ WP_GRP_ENABLE

uint32_t sdmmc_csd_v2_t::WP_GRP_ENABLE

write protect group enable [31]

Definition at line 701 of file sdmmc.h.

◆ WP_GRP_SIZE

uint32_t sdmmc_csd_v2_t::WP_GRP_SIZE

write protect group size [38:32]

Definition at line 702 of file sdmmc.h.

◆ WP_UPC

uint32_t sdmmc_csd_v2_t::WP_UPC

write protection until power cycle [9]

Definition at line 690 of file sdmmc.h.

◆ WRITE_BL_LEN

uint32_t sdmmc_csd_v2_t::WRITE_BL_LEN

max.

write data block length [25:22]

Definition at line 698 of file sdmmc.h.

◆ WRITE_BL_PARTIAL

uint32_t sdmmc_csd_v2_t::WRITE_BL_PARTIAL

partial blocks for write allowed [21]

Definition at line 697 of file sdmmc.h.

◆ WRITE_BLK_MISALIGN

uint32_t sdmmc_csd_v2_t::WRITE_BLK_MISALIGN

write block misalignment [78]

Definition at line 709 of file sdmmc.h.


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