STM32303C_EVAL BSP User Manual: Exported Constants

STM32303C EVAL BSP Drivers

STM32303C_EVAL BSP User Manual
Exported Constants

Defines

#define SD_START_DATA_SINGLE_BLOCK_READ   0xFE /* Data token start byte, Start Single Block Read */
 Start Data tokens: Tokens (necessary because at nop/idle (and CS active) only 0xff is on the data/command line)
#define SD_START_DATA_MULTIPLE_BLOCK_READ   0xFE /* Data token start byte, Start Multiple Block Read */
#define SD_START_DATA_SINGLE_BLOCK_WRITE   0xFE /* Data token start byte, Start Single Block Write */
#define SD_START_DATA_MULTIPLE_BLOCK_WRITE   0xFD /* Data token start byte, Start Multiple Block Write */
#define SD_STOP_DATA_MULTIPLE_BLOCK_WRITE   0xFD /* Data toke stop byte, Stop Multiple Block Write */
#define SD_PRESENT   ((uint8_t)0x01)
 SD detection on its memory slot.
#define SD_NOT_PRESENT   ((uint8_t)0x00)
#define SD_CMD_GO_IDLE_STATE   0 /* CMD0 = 0x40 */
 Commands: CMDxx = CMD-number | 0x40.
#define SD_CMD_SEND_OP_COND   1 /* CMD1 = 0x41 */
#define SD_CMD_SEND_CSD   9 /* CMD9 = 0x49 */
#define SD_CMD_SEND_CID   10 /* CMD10 = 0x4A */
#define SD_CMD_STOP_TRANSMISSION   12 /* CMD12 = 0x4C */
#define SD_CMD_SEND_STATUS   13 /* CMD13 = 0x4D */
#define SD_CMD_SET_BLOCKLEN   16 /* CMD16 = 0x50 */
#define SD_CMD_READ_SINGLE_BLOCK   17 /* CMD17 = 0x51 */
#define SD_CMD_READ_MULT_BLOCK   18 /* CMD18 = 0x52 */
#define SD_CMD_SET_BLOCK_COUNT   23 /* CMD23 = 0x57 */
#define SD_CMD_WRITE_SINGLE_BLOCK   24 /* CMD24 = 0x58 */
#define SD_CMD_WRITE_MULT_BLOCK   25 /* CMD25 = 0x59 */
#define SD_CMD_PROG_CSD   27 /* CMD27 = 0x5B */
#define SD_CMD_SET_WRITE_PROT   28 /* CMD28 = 0x5C */
#define SD_CMD_CLR_WRITE_PROT   29 /* CMD29 = 0x5D */
#define SD_CMD_SEND_WRITE_PROT   30 /* CMD30 = 0x5E */
#define SD_CMD_SD_ERASE_GRP_START   32 /* CMD32 = 0x60 */
#define SD_CMD_SD_ERASE_GRP_END   33 /* CMD33 = 0x61 */
#define SD_CMD_UNTAG_SECTOR   34 /* CMD34 = 0x62 */
#define SD_CMD_ERASE_GRP_START   35 /* CMD35 = 0x63 */
#define SD_CMD_ERASE_GRP_END   36 /* CMD36 = 0x64 */
#define SD_CMD_UNTAG_ERASE_GROUP   37 /* CMD37 = 0x65 */
#define SD_CMD_ERASE   38 /* CMD38 = 0x66 */

Define Documentation

#define SD_CMD_CLR_WRITE_PROT   29 /* CMD29 = 0x5D */

Definition at line 225 of file stm32303c_eval_sd.h.

#define SD_CMD_ERASE   38 /* CMD38 = 0x66 */

Definition at line 233 of file stm32303c_eval_sd.h.

Referenced by BSP_SD_Erase().

#define SD_CMD_ERASE_GRP_END   36 /* CMD36 = 0x64 */

Definition at line 231 of file stm32303c_eval_sd.h.

#define SD_CMD_ERASE_GRP_START   35 /* CMD35 = 0x63 */

Definition at line 230 of file stm32303c_eval_sd.h.

#define SD_CMD_GO_IDLE_STATE   0 /* CMD0 = 0x40 */

Commands: CMDxx = CMD-number | 0x40.

Definition at line 211 of file stm32303c_eval_sd.h.

Referenced by SD_GoIdleState().

#define SD_CMD_PROG_CSD   27 /* CMD27 = 0x5B */

Definition at line 223 of file stm32303c_eval_sd.h.

#define SD_CMD_READ_MULT_BLOCK   18 /* CMD18 = 0x52 */

Definition at line 219 of file stm32303c_eval_sd.h.

#define SD_CMD_READ_SINGLE_BLOCK   17 /* CMD17 = 0x51 */

Definition at line 218 of file stm32303c_eval_sd.h.

Referenced by BSP_SD_ReadBlocks().

#define SD_CMD_SD_ERASE_GRP_END   33 /* CMD33 = 0x61 */

Definition at line 228 of file stm32303c_eval_sd.h.

Referenced by BSP_SD_Erase().

#define SD_CMD_SD_ERASE_GRP_START   32 /* CMD32 = 0x60 */

Definition at line 227 of file stm32303c_eval_sd.h.

Referenced by BSP_SD_Erase().

#define SD_CMD_SEND_CID   10 /* CMD10 = 0x4A */

Definition at line 214 of file stm32303c_eval_sd.h.

Referenced by SD_GetCIDRegister().

#define SD_CMD_SEND_CSD   9 /* CMD9 = 0x49 */

Definition at line 213 of file stm32303c_eval_sd.h.

Referenced by SD_GetCSDRegister().

#define SD_CMD_SEND_OP_COND   1 /* CMD1 = 0x41 */

Definition at line 212 of file stm32303c_eval_sd.h.

Referenced by SD_GoIdleState().

#define SD_CMD_SEND_STATUS   13 /* CMD13 = 0x4D */

Definition at line 216 of file stm32303c_eval_sd.h.

#define SD_CMD_SEND_WRITE_PROT   30 /* CMD30 = 0x5E */

Definition at line 226 of file stm32303c_eval_sd.h.

#define SD_CMD_SET_BLOCK_COUNT   23 /* CMD23 = 0x57 */

Definition at line 220 of file stm32303c_eval_sd.h.

#define SD_CMD_SET_BLOCKLEN   16 /* CMD16 = 0x50 */

Definition at line 217 of file stm32303c_eval_sd.h.

Referenced by BSP_SD_ReadBlocks().

#define SD_CMD_SET_WRITE_PROT   28 /* CMD28 = 0x5C */

Definition at line 224 of file stm32303c_eval_sd.h.

#define SD_CMD_STOP_TRANSMISSION   12 /* CMD12 = 0x4C */

Definition at line 215 of file stm32303c_eval_sd.h.

#define SD_CMD_UNTAG_ERASE_GROUP   37 /* CMD37 = 0x65 */

Definition at line 232 of file stm32303c_eval_sd.h.

#define SD_CMD_UNTAG_SECTOR   34 /* CMD34 = 0x62 */

Definition at line 229 of file stm32303c_eval_sd.h.

#define SD_CMD_WRITE_MULT_BLOCK   25 /* CMD25 = 0x59 */

Definition at line 222 of file stm32303c_eval_sd.h.

#define SD_CMD_WRITE_SINGLE_BLOCK   24 /* CMD24 = 0x58 */

Definition at line 221 of file stm32303c_eval_sd.h.

Referenced by BSP_SD_WriteBlocks().

#define SD_NOT_PRESENT   ((uint8_t)0x00)

Definition at line 206 of file stm32303c_eval_sd.h.

Referenced by BSP_SD_Init(), and BSP_SD_IsDetected().

#define SD_PRESENT   ((uint8_t)0x01)

SD detection on its memory slot.

Definition at line 205 of file stm32303c_eval_sd.h.

Referenced by BSP_SD_Init(), and BSP_SD_IsDetected().

#define SD_START_DATA_MULTIPLE_BLOCK_READ   0xFE /* Data token start byte, Start Multiple Block Read */

Definition at line 197 of file stm32303c_eval_sd.h.

#define SD_START_DATA_MULTIPLE_BLOCK_WRITE   0xFD /* Data token start byte, Start Multiple Block Write */

Definition at line 199 of file stm32303c_eval_sd.h.

#define SD_START_DATA_SINGLE_BLOCK_READ   0xFE /* Data token start byte, Start Single Block Read */

Start Data tokens: Tokens (necessary because at nop/idle (and CS active) only 0xff is on the data/command line)

Definition at line 196 of file stm32303c_eval_sd.h.

Referenced by BSP_SD_ReadBlocks(), SD_GetCIDRegister(), and SD_GetCSDRegister().

#define SD_START_DATA_SINGLE_BLOCK_WRITE   0xFE /* Data token start byte, Start Single Block Write */

Definition at line 198 of file stm32303c_eval_sd.h.

Referenced by BSP_SD_WriteBlocks().

#define SD_STOP_DATA_MULTIPLE_BLOCK_WRITE   0xFD /* Data toke stop byte, Stop Multiple Block Write */

Definition at line 200 of file stm32303c_eval_sd.h.

Generated on Wed May 31 2017 10:00:44 for STM32303C_EVAL BSP User Manual by   doxygen 1.7.6.1