sd_raw_info Struct Reference
[MMC/SD/SDHC card raw access]

#include <sd_raw.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
offset_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 56 of file sd_raw.h.


Field Documentation

A manufacturer code globally assigned by the SD card organization.

Definition at line 61 of file sd_raw.h.

Referenced by WaspSD::print_disk_info(), and sd_raw_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 65 of file sd_raw.h.

Referenced by WaspSD::print_disk_info(), and sd_raw_get_info().

A product name.

Definition at line 69 of file sd_raw.h.

Referenced by WaspSD::print_disk_info(), and sd_raw_get_info().

The card's revision, coded in packed BCD.

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

Definition at line 75 of file sd_raw.h.

Referenced by WaspSD::print_disk_info(), and sd_raw_get_info().

A serial number assigned by the manufacturer.

Definition at line 79 of file sd_raw.h.

Referenced by WaspSD::print_disk_info(), and sd_raw_get_info().

The year of manufacturing.

A value of zero means year 2000.

Definition at line 85 of file sd_raw.h.

Referenced by WaspSD::print_disk_info(), and sd_raw_get_info().

The month of manufacturing.

Definition at line 89 of file sd_raw.h.

Referenced by WaspSD::print_disk_info(), and sd_raw_get_info().

The card's total capacity in bytes.

Definition at line 93 of file sd_raw.h.

Referenced by WaspSD::print_disk_info(), and sd_raw_get_info().

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

A value of 0 means original, 1 means copied.

Definition at line 99 of file sd_raw.h.

Referenced by WaspSD::print_disk_info(), and sd_raw_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 106 of file sd_raw.h.

Referenced by WaspSD::print_disk_info(), and sd_raw_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 113 of file sd_raw.h.

Referenced by WaspSD::print_disk_info(), and sd_raw_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 121 of file sd_raw.h.

Referenced by WaspSD::print_disk_info(), and sd_raw_get_info().


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

Generated on Tue Jul 20 09:31:01 2010 for WaspmoteAPI by  doxygen 1.5.6