CardSight 0.1.0
C API reference for the CardSight firmware and application
Loading...
Searching...
No Matches
mmc_card_info Struct Reference

What the host found out about the card. More...

#include <card.h>

Data Fields

uint32_t sectors
uint32_t clock
int bus_width
bool high_capacity
uint8_t cid [16]
struct mmc_cid_identity identity
uint16_t rca
bool s18a
uint16_t sw_groups [6]
uint16_t max_current
const char * mode
bool tuned

Detailed Description

What the host found out about the card.

The trailing fields describe what the card offers, read during identification.

Field Documentation

◆ bus_width

int mmc_card_info::bus_width

Data bus width in bits.

◆ cid

uint8_t mmc_card_info::cid[16]

Raw card identification register.

◆ clock

uint32_t mmc_card_info::clock

Clock in use, in Hz.

◆ high_capacity

bool mmc_card_info::high_capacity

SDHC/SDXC, which use block addressing.

◆ identity

struct mmc_cid_identity mmc_card_info::identity

Decoded card identification.

◆ max_current

uint16_t mmc_card_info::max_current

Maximum current in mA, from CMD6 status.

◆ mode

const char* mmc_card_info::mode

Speed mode in use: SDR104, SDR50, DDR50, SDR25, default.

◆ rca

uint16_t mmc_card_info::rca

Relative card address.

◆ s18a

bool mmc_card_info::s18a

The card accepted 1.8 V signalling in ACMD41.

◆ sectors

uint32_t mmc_card_info::sectors

Capacity in 512 byte sectors.

◆ sw_groups

uint16_t mmc_card_info::sw_groups[6]

CMD6 support masks of function groups 1..6.

◆ tuned

bool mmc_card_info::tuned

The sample point was found by tuning.


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