Zephyr Project API 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sd_card Struct Reference

SD card structure. More...

#include <sd.h>

Data Fields

const struct devicesdhc
 SD host controller for card.
 
struct sdhc_io bus_io
 Current bus I/O props for SDHC.
 
enum sd_voltage card_voltage
 Card signal voltage.
 
struct k_mutex lock
 card mutex
 
struct sdhc_host_props host_props
 SDHC host properties.
 
uint32_t ocr
 Raw card OCR content.
 
struct sd_switch_caps switch_caps
 SD switch capabilities.
 
unsigned int num_io: 3
 I/O function count.
 
uint16_t relative_addr
 Card relative address.
 
uint32_t block_count
 Number of blocks in SD card.
 
uint16_t block_size
 SD block size.
 
uint8_t sd_version
 SD specification version.
 
uint8_t card_speed
 Card timing mode.
 
enum card_status status
 Card status.
 
enum card_type type
 Card type.
 
uint16_t flags
 Card flags.
 
uint8_t bus_width
 Desired bus width.
 
uint32_t cccr_flags
 SDIO CCCR data.
 
struct sdio_func func0
 Function 0 common card data.
 
uint8_t card_buffer [CONFIG_SD_BUFFER_SIZE]
 

Detailed Description

SD card structure.

This structure is used by the subsystem to track an individual SD device connected to the system. The application may access these fields, but use caution when changing values.

Field Documentation

◆ block_count

uint32_t sd_card::block_count

Number of blocks in SD card.

◆ block_size

uint16_t sd_card::block_size

SD block size.

◆ bus_io

struct sdhc_io sd_card::bus_io

Current bus I/O props for SDHC.

◆ bus_width

uint8_t sd_card::bus_width

Desired bus width.

◆ card_buffer

uint8_t sd_card::card_buffer[CONFIG_SD_BUFFER_SIZE]

◆ card_speed

uint8_t sd_card::card_speed

Card timing mode.

◆ card_voltage

enum sd_voltage sd_card::card_voltage

Card signal voltage.

◆ cccr_flags

uint32_t sd_card::cccr_flags

SDIO CCCR data.

◆ flags

uint16_t sd_card::flags

Card flags.

◆ func0

struct sdio_func sd_card::func0

Function 0 common card data.

◆ host_props

struct sdhc_host_props sd_card::host_props

SDHC host properties.

◆ lock

struct k_mutex sd_card::lock

card mutex

◆ num_io

unsigned int sd_card::num_io

I/O function count.

0 for SD cards

◆ ocr

uint32_t sd_card::ocr

Raw card OCR content.

◆ relative_addr

uint16_t sd_card::relative_addr

Card relative address.

◆ sd_version

uint8_t sd_card::sd_version

SD specification version.

◆ sdhc

const struct device* sd_card::sdhc

SD host controller for card.

◆ status

enum card_status sd_card::status

Card status.

◆ switch_caps

struct sd_switch_caps sd_card::switch_caps

SD switch capabilities.

◆ type

enum card_type sd_card::type

Card type.


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