drivers/sdmmc/protocol.h File Reference

SD/MMC card protocol definitions. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SDMMC_OUT_OF_RANGE   (1 << 31)
 Card status (response R1).
#define SDMMC_RCA_MASK   (0xffff << 16)
 RCA (response R6).
#define SDMMC_SWITCH_FUNC_MODE_CHECK   (0 << 31)
 Switch func argument definitions.
#define SDMMC_SWITCH_FUNC_MODE_SWITCH   (1 << 31)
#define SDMMC_SWITCH_FUNC_HIGH_SPEED   (1 << 0)
#define SDMMC_SWITCH_FUNC_G1_KEEP   (0xf << 0)
#define SDMMC_SWITCH_FUNC_G2_KEEP   (0xf << 4)
#define SDMMC_SWITCH_FUNC_G3_KEEP   (0xf << 8)
#define SDMMC_SWITCH_FUNC_G4_KEEP   (0xf << 12)
#define SDMMC_SWITCH_FUNC_G5_KEEP   (0xf << 16)
#define SDMMC_SWITCH_FUNC_G6_KEEP   (0xf << 20)
#define SD_IF_COND_V_27_33   (1 << 8)
 Interface condition (Command CMD8 and response R7).
#define SD_IF_COND_CHECK_PATTERN   0xaa
#define SDMMC_OCR_POWER_UP_DONE   (1 << 31)
 OCR register definitions.
#define SDMMC_OCR_CCS   (1 << 30)
#define SDMMC_OCR_V_32_33   (1 << 20)
#define SDMMC_OCR_V_33_34   (1 << 21)
#define SDMMC_OCR_LOW_VOLTAGE   (1 << 7)
#define SD_SCR0_VERSION_MASK   (0xf << (60 - 32))
 SCR register definitions.
#define SD_SCR0_VERSION_101_200   (0 << (60 - 32))
#define SD_SCR0_SPEC_VERSION_MASK   (0xf << (56 - 32))
#define SD_SCR0_SPEC_VERSION_10_101   (0 << (56 - 32))
#define SD_SCR0_SPEC_VERSION_110   (1 << (56 - 32))
#define SD_SCR0_SPEC_VERSION_200   (2 << (56 - 32))
#define SD_SCR0_BUS_WIDTH_1BIT_MASK   (1 << (48 - 32))
#define SD_SCR0_BUS_WIDTH_4BIT_MASK   (1 << (48 - 32))


Detailed Description

SD/MMC card protocol definitions.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file protocol.h.


Define Documentation

#define SD_IF_COND_CHECK_PATTERN   0xaa

Check pattern that should be echoed back on R7

Definition at line 170 of file protocol.h.

#define SD_IF_COND_V_27_33   (1 << 8)

Interface condition (Command CMD8 and response R7).

Voltage 2.7V - 3.3V

Definition at line 169 of file protocol.h.

#define SD_SCR0_BUS_WIDTH_1BIT_MASK   (1 << (48 - 32))

1 bit bus support

Definition at line 190 of file protocol.h.

#define SD_SCR0_BUS_WIDTH_4BIT_MASK   (1 << (48 - 32))

4 bit bus support

Definition at line 191 of file protocol.h.

#define SD_SCR0_SPEC_VERSION_10_101   (0 << (56 - 32))

SD version 1.0 to 1.01

Definition at line 187 of file protocol.h.

#define SD_SCR0_SPEC_VERSION_110   (1 << (56 - 32))

SD version 1.10

Definition at line 188 of file protocol.h.

#define SD_SCR0_SPEC_VERSION_200   (2 << (56 - 32))

SD version 2.00

Definition at line 189 of file protocol.h.

#define SD_SCR0_SPEC_VERSION_MASK   (0xf << (56 - 32))

Specification version

Definition at line 186 of file protocol.h.

#define SD_SCR0_VERSION_101_200   (0 << (60 - 32))

SD version 1.01 to 2.00

Definition at line 185 of file protocol.h.

#define SD_SCR0_VERSION_MASK   (0xf << (60 - 32))

SCR register definitions.

SCR Version

Definition at line 184 of file protocol.h.

#define SDMMC_OCR_CCS   (1 << 30)

Card Capacity Status. High for HC cards.

Definition at line 176 of file protocol.h.

#define SDMMC_OCR_LOW_VOLTAGE   (1 << 7)

Low voltage flag (Reserved in SD 2.0 and 1.7-1.95 in MMC 4.2)

Definition at line 179 of file protocol.h.

Referenced by sdmmc_slot_set_voltage().

#define SDMMC_OCR_POWER_UP_DONE   (1 << 31)

OCR register definitions.

Card power up status bit

Definition at line 175 of file protocol.h.

#define SDMMC_OCR_V_32_33   (1 << 20)

3.2 - 3.3 V

Definition at line 177 of file protocol.h.

Referenced by sdmmc_mcihost_init().

#define SDMMC_OCR_V_33_34   (1 << 21)

3.3 - 3.4 V

Definition at line 178 of file protocol.h.

Referenced by sdmmc_mcihost_init().

#define SDMMC_OUT_OF_RANGE   (1 << 31)

Card status (response R1).

Definition at line 115 of file protocol.h.

#define SDMMC_RCA_MASK   (0xffff << 16)

RCA (response R6).

Definition at line 153 of file protocol.h.

#define SDMMC_SWITCH_FUNC_G1_KEEP   (0xf << 0)

Group 1 No influence

Definition at line 159 of file protocol.h.

#define SDMMC_SWITCH_FUNC_G2_KEEP   (0xf << 4)

Group 2 No influence

Definition at line 160 of file protocol.h.

#define SDMMC_SWITCH_FUNC_G3_KEEP   (0xf << 8)

Group 3 No influence

Definition at line 161 of file protocol.h.

#define SDMMC_SWITCH_FUNC_G4_KEEP   (0xf << 12)

Group 4 No influence

Definition at line 162 of file protocol.h.

#define SDMMC_SWITCH_FUNC_G5_KEEP   (0xf << 16)

Group 5 No influence

Definition at line 163 of file protocol.h.

#define SDMMC_SWITCH_FUNC_G6_KEEP   (0xf << 20)

Group 6 No influence

Definition at line 164 of file protocol.h.

#define SDMMC_SWITCH_FUNC_HIGH_SPEED   (1 << 0)

High Speed

Definition at line 158 of file protocol.h.

#define SDMMC_SWITCH_FUNC_MODE_CHECK   (0 << 31)

Switch func argument definitions.

Check function

Definition at line 156 of file protocol.h.

#define SDMMC_SWITCH_FUNC_MODE_SWITCH   (1 << 31)

Switch function

Definition at line 157 of file protocol.h.


Generated on Tue Sep 15 10:19:44 2009 for libavr32 by  doxygen 1.5.8