Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
SD card structure. More...
#include <sd.h>
Data Fields | |
const struct device * | sdhc |
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] |
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.
uint32_t sd_card::block_count |
Number of blocks in SD card.
uint16_t sd_card::block_size |
SD block size.
struct sdhc_io sd_card::bus_io |
Current bus I/O props for SDHC.
uint8_t sd_card::bus_width |
Desired bus width.
uint8_t sd_card::card_buffer[CONFIG_SD_BUFFER_SIZE] |
uint8_t sd_card::card_speed |
Card timing mode.
enum sd_voltage sd_card::card_voltage |
Card signal voltage.
uint32_t sd_card::cccr_flags |
SDIO CCCR data.
uint16_t sd_card::flags |
Card flags.
struct sdio_func sd_card::func0 |
Function 0 common card data.
struct sdhc_host_props sd_card::host_props |
SDHC host properties.
struct k_mutex sd_card::lock |
card mutex
unsigned int sd_card::num_io |
I/O function count.
0 for SD cards
uint32_t sd_card::ocr |
Raw card OCR content.
uint16_t sd_card::relative_addr |
Card relative address.
uint8_t sd_card::sd_version |
SD specification version.
const struct device* sd_card::sdhc |
SD host controller for card.
enum card_status sd_card::status |
Card status.
struct sd_switch_caps sd_card::switch_caps |
SD switch capabilities.
enum card_type sd_card::type |
Card type.