Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sd_csd Struct Reference

SD card specific data register. More...

#include <sd_spec.h>

Data Fields

uint8_t csd_structure
 CSD structure [127:126].
 
uint8_t read_time1
 Data read access-time-1 [119:112].
 
uint8_t read_time2
 Data read access-time-2 in clock cycles (NSAC*100) [111:104].
 
uint8_t xfer_rate
 Maximum data transfer rate [103:96].
 
uint16_t cmd_class
 Card command classes [95:84].
 
uint8_t read_blk_len
 Maximum read data block length [83:80].
 
uint16_t flags
 Flags in _sd_csd_flag.
 
uint32_t device_size
 Device size [73:62].
 
uint8_t read_current_min
 Maximum read current at VDD min [61:59].
 
uint8_t read_current_max
 Maximum read current at VDD max [58:56].
 
uint8_t write_current_min
 Maximum write current at VDD min [55:53].
 
uint8_t write_current_max
 Maximum write current at VDD max [52:50].
 
uint8_t dev_size_mul
 Device size multiplier [49:47].
 
uint8_t erase_size
 Erase sector size [45:39].
 
uint8_t write_prtect_size
 Write protect group size [38:32].
 
uint8_t write_speed_factor
 Write speed factor [28:26].
 
uint8_t write_blk_len
 Maximum write data block length [25:22].
 
uint8_t file_fmt
 File format [11:10].
 

Detailed Description

SD card specific data register.

Card specific data register. contains additional data about SD card.

Field Documentation

◆ cmd_class

uint16_t sd_csd::cmd_class

Card command classes [95:84].

◆ csd_structure

uint8_t sd_csd::csd_structure

CSD structure [127:126].

◆ dev_size_mul

uint8_t sd_csd::dev_size_mul

Device size multiplier [49:47].

◆ device_size

uint32_t sd_csd::device_size

Device size [73:62].

◆ erase_size

uint8_t sd_csd::erase_size

Erase sector size [45:39].

◆ file_fmt

uint8_t sd_csd::file_fmt

File format [11:10].

◆ flags

uint16_t sd_csd::flags

Flags in _sd_csd_flag.

◆ read_blk_len

uint8_t sd_csd::read_blk_len

Maximum read data block length [83:80].

◆ read_current_max

uint8_t sd_csd::read_current_max

Maximum read current at VDD max [58:56].

◆ read_current_min

uint8_t sd_csd::read_current_min

Maximum read current at VDD min [61:59].

◆ read_time1

uint8_t sd_csd::read_time1

Data read access-time-1 [119:112].

◆ read_time2

uint8_t sd_csd::read_time2

Data read access-time-2 in clock cycles (NSAC*100) [111:104].

◆ write_blk_len

uint8_t sd_csd::write_blk_len

Maximum write data block length [25:22].

◆ write_current_max

uint8_t sd_csd::write_current_max

Maximum write current at VDD max [52:50].

◆ write_current_min

uint8_t sd_csd::write_current_min

Maximum write current at VDD min [55:53].

◆ write_prtect_size

uint8_t sd_csd::write_prtect_size

Write protect group size [38:32].

◆ write_speed_factor

uint8_t sd_csd::write_speed_factor

Write speed factor [28:26].

◆ xfer_rate

uint8_t sd_csd::xfer_rate

Maximum data transfer rate [103:96].


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