sd_raw_info Struct Reference
[MMC/SD card raw access]

#include <sd_mmc.h>


Data Fields

uint8_t manufacturer
uint8_t oem [3]
uint8_t product [6]
uint8_t revision
uint32_t serial
uint8_t manufacturing_year
uint8_t manufacturing_month
uint32_t capacity
uint8_t flag_copy
uint8_t flag_write_protect
uint8_t flag_write_protect_temp
uint8_t format


Detailed Description

This struct is used by sd_raw_get_info() to return manufacturing and status information of the card.

Definition at line 58 of file sd_mmc.h.


Field Documentation

A manufacturer code globally assigned by the SD card organization.

Definition at line 63 of file sd_mmc.h.

Referenced by print_disk_info(), and sd_get_info().

uint8_t sd_raw_info::oem[3]

A string describing the card's OEM or content, globally assigned by the SD card organization.

Definition at line 67 of file sd_mmc.h.

Referenced by print_disk_info(), and sd_get_info().

A product name.

Definition at line 71 of file sd_mmc.h.

Referenced by print_disk_info(), and sd_get_info().

The card's revision, coded in packed BCD.

For example, the revision value 0x32 means "3.2".

Definition at line 77 of file sd_mmc.h.

Referenced by print_disk_info(), and sd_get_info().

A serial number assigned by the manufacturer.

Definition at line 81 of file sd_mmc.h.

Referenced by print_disk_info(), and sd_get_info().

The year of manufacturing.

A value of zero means year 2000.

Definition at line 87 of file sd_mmc.h.

Referenced by print_disk_info(), and sd_get_info().

The month of manufacturing.

Definition at line 91 of file sd_mmc.h.

Referenced by print_disk_info(), and sd_get_info().

The card's total capacity in bytes.

Definition at line 95 of file sd_mmc.h.

Referenced by print_disk_info(), and sd_get_info().

Defines wether the card's content is original or copied.

A value of 0 means original, 1 means copied.

Definition at line 101 of file sd_mmc.h.

Referenced by print_disk_info(), and sd_get_info().

Defines wether the card's content is write-protected.

Note:
This is an internal flag and does not represent the state of the card's mechanical write-protect switch.

Definition at line 108 of file sd_mmc.h.

Referenced by print_disk_info(), and sd_get_info().

Defines wether the card's content is temporarily write-protected.

Note:
This is an internal flag and does not represent the state of the card's mechanical write-protect switch.

Definition at line 115 of file sd_mmc.h.

Referenced by print_disk_info(), and sd_get_info().

The card's data layout.

See the SD_RAW_FORMAT_* constants for details.

Note:
This value is not guaranteed to match reality.

Definition at line 123 of file sd_mmc.h.

Referenced by print_disk_info(), and sd_get_info().


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

Generated on Wed Sep 17 19:31:52 2008 for mptry by  doxygen 1.5.5