CARME-M4 BSP
V1.5
|
This file contains all the functions prototypes for the SDIO firmware library. More...
#include "stm32f4xx.h"
Go to the source code of this file.
Data Structures | |
struct | SDIO_InitTypeDef |
struct | SDIO_CmdInitTypeDef |
struct | SDIO_DataInitTypeDef |
Macros | |
#define | SDIO_ClockEdge_Rising ((uint32_t)0x00000000) |
#define | SDIO_ClockEdge_Falling ((uint32_t)0x00002000) |
#define | IS_SDIO_CLOCK_EDGE(EDGE) |
#define | SDIO_ClockBypass_Disable ((uint32_t)0x00000000) |
#define | SDIO_ClockBypass_Enable ((uint32_t)0x00000400) |
#define | IS_SDIO_CLOCK_BYPASS(BYPASS) |
#define | SDIO_ClockPowerSave_Disable ((uint32_t)0x00000000) |
#define | SDIO_ClockPowerSave_Enable ((uint32_t)0x00000200) |
#define | IS_SDIO_CLOCK_POWER_SAVE(SAVE) |
#define | SDIO_BusWide_1b ((uint32_t)0x00000000) |
#define | SDIO_BusWide_4b ((uint32_t)0x00000800) |
#define | SDIO_BusWide_8b ((uint32_t)0x00001000) |
#define | IS_SDIO_BUS_WIDE(WIDE) |
#define | SDIO_HardwareFlowControl_Disable ((uint32_t)0x00000000) |
#define | SDIO_HardwareFlowControl_Enable ((uint32_t)0x00004000) |
#define | IS_SDIO_HARDWARE_FLOW_CONTROL(CONTROL) |
#define | SDIO_PowerState_OFF ((uint32_t)0x00000000) |
#define | SDIO_PowerState_ON ((uint32_t)0x00000003) |
#define | IS_SDIO_POWER_STATE(STATE) (((STATE) == SDIO_PowerState_OFF) || ((STATE) == SDIO_PowerState_ON)) |
#define | SDIO_IT_CCRCFAIL ((uint32_t)0x00000001) |
#define | SDIO_IT_DCRCFAIL ((uint32_t)0x00000002) |
#define | SDIO_IT_CTIMEOUT ((uint32_t)0x00000004) |
#define | SDIO_IT_DTIMEOUT ((uint32_t)0x00000008) |
#define | SDIO_IT_TXUNDERR ((uint32_t)0x00000010) |
#define | SDIO_IT_RXOVERR ((uint32_t)0x00000020) |
#define | SDIO_IT_CMDREND ((uint32_t)0x00000040) |
#define | SDIO_IT_CMDSENT ((uint32_t)0x00000080) |
#define | SDIO_IT_DATAEND ((uint32_t)0x00000100) |
#define | SDIO_IT_STBITERR ((uint32_t)0x00000200) |
#define | SDIO_IT_DBCKEND ((uint32_t)0x00000400) |
#define | SDIO_IT_CMDACT ((uint32_t)0x00000800) |
#define | SDIO_IT_TXACT ((uint32_t)0x00001000) |
#define | SDIO_IT_RXACT ((uint32_t)0x00002000) |
#define | SDIO_IT_TXFIFOHE ((uint32_t)0x00004000) |
#define | SDIO_IT_RXFIFOHF ((uint32_t)0x00008000) |
#define | SDIO_IT_TXFIFOF ((uint32_t)0x00010000) |
#define | SDIO_IT_RXFIFOF ((uint32_t)0x00020000) |
#define | SDIO_IT_TXFIFOE ((uint32_t)0x00040000) |
#define | SDIO_IT_RXFIFOE ((uint32_t)0x00080000) |
#define | SDIO_IT_TXDAVL ((uint32_t)0x00100000) |
#define | SDIO_IT_RXDAVL ((uint32_t)0x00200000) |
#define | SDIO_IT_SDIOIT ((uint32_t)0x00400000) |
#define | SDIO_IT_CEATAEND ((uint32_t)0x00800000) |
#define | IS_SDIO_IT(IT) ((((IT) & (uint32_t)0xFF000000) == 0x00) && ((IT) != (uint32_t)0x00)) |
#define | IS_SDIO_CMD_INDEX(INDEX) ((INDEX) < 0x40) |
#define | SDIO_Response_No ((uint32_t)0x00000000) |
#define | SDIO_Response_Short ((uint32_t)0x00000040) |
#define | SDIO_Response_Long ((uint32_t)0x000000C0) |
#define | IS_SDIO_RESPONSE(RESPONSE) |
#define | SDIO_Wait_No ((uint32_t)0x00000000) |
#define | SDIO_Wait_IT ((uint32_t)0x00000100) |
#define | SDIO_Wait_Pend ((uint32_t)0x00000200) |
#define | IS_SDIO_WAIT(WAIT) |
#define | SDIO_CPSM_Disable ((uint32_t)0x00000000) |
#define | SDIO_CPSM_Enable ((uint32_t)0x00000400) |
#define | IS_SDIO_CPSM(CPSM) (((CPSM) == SDIO_CPSM_Enable) || ((CPSM) == SDIO_CPSM_Disable)) |
#define | SDIO_RESP1 ((uint32_t)0x00000000) |
#define | SDIO_RESP2 ((uint32_t)0x00000004) |
#define | SDIO_RESP3 ((uint32_t)0x00000008) |
#define | SDIO_RESP4 ((uint32_t)0x0000000C) |
#define | IS_SDIO_RESP(RESP) |
#define | IS_SDIO_DATA_LENGTH(LENGTH) ((LENGTH) <= 0x01FFFFFF) |
#define | SDIO_DataBlockSize_1b ((uint32_t)0x00000000) |
#define | SDIO_DataBlockSize_2b ((uint32_t)0x00000010) |
#define | SDIO_DataBlockSize_4b ((uint32_t)0x00000020) |
#define | SDIO_DataBlockSize_8b ((uint32_t)0x00000030) |
#define | SDIO_DataBlockSize_16b ((uint32_t)0x00000040) |
#define | SDIO_DataBlockSize_32b ((uint32_t)0x00000050) |
#define | SDIO_DataBlockSize_64b ((uint32_t)0x00000060) |
#define | SDIO_DataBlockSize_128b ((uint32_t)0x00000070) |
#define | SDIO_DataBlockSize_256b ((uint32_t)0x00000080) |
#define | SDIO_DataBlockSize_512b ((uint32_t)0x00000090) |
#define | SDIO_DataBlockSize_1024b ((uint32_t)0x000000A0) |
#define | SDIO_DataBlockSize_2048b ((uint32_t)0x000000B0) |
#define | SDIO_DataBlockSize_4096b ((uint32_t)0x000000C0) |
#define | SDIO_DataBlockSize_8192b ((uint32_t)0x000000D0) |
#define | SDIO_DataBlockSize_16384b ((uint32_t)0x000000E0) |
#define | IS_SDIO_BLOCK_SIZE(SIZE) |
#define | SDIO_TransferDir_ToCard ((uint32_t)0x00000000) |
#define | SDIO_TransferDir_ToSDIO ((uint32_t)0x00000002) |
#define | IS_SDIO_TRANSFER_DIR(DIR) |
#define | SDIO_TransferMode_Block ((uint32_t)0x00000000) |
#define | SDIO_TransferMode_Stream ((uint32_t)0x00000004) |
#define | IS_SDIO_TRANSFER_MODE(MODE) |
#define | SDIO_DPSM_Disable ((uint32_t)0x00000000) |
#define | SDIO_DPSM_Enable ((uint32_t)0x00000001) |
#define | IS_SDIO_DPSM(DPSM) (((DPSM) == SDIO_DPSM_Enable) || ((DPSM) == SDIO_DPSM_Disable)) |
#define | SDIO_FLAG_CCRCFAIL ((uint32_t)0x00000001) |
#define | SDIO_FLAG_DCRCFAIL ((uint32_t)0x00000002) |
#define | SDIO_FLAG_CTIMEOUT ((uint32_t)0x00000004) |
#define | SDIO_FLAG_DTIMEOUT ((uint32_t)0x00000008) |
#define | SDIO_FLAG_TXUNDERR ((uint32_t)0x00000010) |
#define | SDIO_FLAG_RXOVERR ((uint32_t)0x00000020) |
#define | SDIO_FLAG_CMDREND ((uint32_t)0x00000040) |
#define | SDIO_FLAG_CMDSENT ((uint32_t)0x00000080) |
#define | SDIO_FLAG_DATAEND ((uint32_t)0x00000100) |
#define | SDIO_FLAG_STBITERR ((uint32_t)0x00000200) |
#define | SDIO_FLAG_DBCKEND ((uint32_t)0x00000400) |
#define | SDIO_FLAG_CMDACT ((uint32_t)0x00000800) |
#define | SDIO_FLAG_TXACT ((uint32_t)0x00001000) |
#define | SDIO_FLAG_RXACT ((uint32_t)0x00002000) |
#define | SDIO_FLAG_TXFIFOHE ((uint32_t)0x00004000) |
#define | SDIO_FLAG_RXFIFOHF ((uint32_t)0x00008000) |
#define | SDIO_FLAG_TXFIFOF ((uint32_t)0x00010000) |
#define | SDIO_FLAG_RXFIFOF ((uint32_t)0x00020000) |
#define | SDIO_FLAG_TXFIFOE ((uint32_t)0x00040000) |
#define | SDIO_FLAG_RXFIFOE ((uint32_t)0x00080000) |
#define | SDIO_FLAG_TXDAVL ((uint32_t)0x00100000) |
#define | SDIO_FLAG_RXDAVL ((uint32_t)0x00200000) |
#define | SDIO_FLAG_SDIOIT ((uint32_t)0x00400000) |
#define | SDIO_FLAG_CEATAEND ((uint32_t)0x00800000) |
#define | IS_SDIO_FLAG(FLAG) |
#define | IS_SDIO_CLEAR_FLAG(FLAG) ((((FLAG) & (uint32_t)0xFF3FF800) == 0x00) && ((FLAG) != (uint32_t)0x00)) |
#define | IS_SDIO_GET_IT(IT) |
#define | IS_SDIO_CLEAR_IT(IT) ((((IT) & (uint32_t)0xFF3FF800) == 0x00) && ((IT) != (uint32_t)0x00)) |
#define | SDIO_ReadWaitMode_DATA2 ((uint32_t)0x00000000) |
#define | SDIO_ReadWaitMode_CLK ((uint32_t)0x00000001) |
#define | IS_SDIO_READWAIT_MODE(MODE) |
Functions | |
void | SDIO_DeInit (void) |
Deinitializes the SDIO peripheral registers to their default reset values. More... | |
void | SDIO_Init (SDIO_InitTypeDef *SDIO_InitStruct) |
Initializes the SDIO peripheral according to the specified parameters in the SDIO_InitStruct. More... | |
void | SDIO_StructInit (SDIO_InitTypeDef *SDIO_InitStruct) |
Fills each SDIO_InitStruct member with its default value. More... | |
void | SDIO_ClockCmd (FunctionalState NewState) |
Enables or disables the SDIO Clock. More... | |
void | SDIO_SetPowerState (uint32_t SDIO_PowerState) |
Sets the power status of the controller. More... | |
uint32_t | SDIO_GetPowerState (void) |
Gets the power status of the controller. More... | |
void | SDIO_SendCommand (SDIO_CmdInitTypeDef *SDIO_CmdInitStruct) |
Initializes the SDIO Command according to the specified parameters in the SDIO_CmdInitStruct and send the command. More... | |
void | SDIO_CmdStructInit (SDIO_CmdInitTypeDef *SDIO_CmdInitStruct) |
Fills each SDIO_CmdInitStruct member with its default value. More... | |
uint8_t | SDIO_GetCommandResponse (void) |
Returns command index of last command for which response received. More... | |
uint32_t | SDIO_GetResponse (uint32_t SDIO_RESP) |
Returns response received from the card for the last command. More... | |
void | SDIO_DataConfig (SDIO_DataInitTypeDef *SDIO_DataInitStruct) |
Initializes the SDIO data path according to the specified parameters in the SDIO_DataInitStruct. More... | |
void | SDIO_DataStructInit (SDIO_DataInitTypeDef *SDIO_DataInitStruct) |
Fills each SDIO_DataInitStruct member with its default value. More... | |
uint32_t | SDIO_GetDataCounter (void) |
Returns number of remaining data bytes to be transferred. More... | |
uint32_t | SDIO_ReadData (void) |
Read one data word from Rx FIFO. More... | |
void | SDIO_WriteData (uint32_t Data) |
Write one data word to Tx FIFO. More... | |
uint32_t | SDIO_GetFIFOCount (void) |
Returns the number of words left to be written to or read from FIFO. More... | |
void | SDIO_StartSDIOReadWait (FunctionalState NewState) |
Starts the SD I/O Read Wait operation. More... | |
void | SDIO_StopSDIOReadWait (FunctionalState NewState) |
Stops the SD I/O Read Wait operation. More... | |
void | SDIO_SetSDIOReadWaitMode (uint32_t SDIO_ReadWaitMode) |
Sets one of the two options of inserting read wait interval. More... | |
void | SDIO_SetSDIOOperation (FunctionalState NewState) |
Enables or disables the SD I/O Mode Operation. More... | |
void | SDIO_SendSDIOSuspendCmd (FunctionalState NewState) |
Enables or disables the SD I/O Mode suspend command sending. More... | |
void | SDIO_CommandCompletionCmd (FunctionalState NewState) |
Enables or disables the command completion signal. More... | |
void | SDIO_CEATAITCmd (FunctionalState NewState) |
Enables or disables the CE-ATA interrupt. More... | |
void | SDIO_SendCEATACmd (FunctionalState NewState) |
Sends CE-ATA command (CMD61). More... | |
void | SDIO_DMACmd (FunctionalState NewState) |
Enables or disables the SDIO DMA request. More... | |
void | SDIO_ITConfig (uint32_t SDIO_IT, FunctionalState NewState) |
Enables or disables the SDIO interrupts. More... | |
FlagStatus | SDIO_GetFlagStatus (uint32_t SDIO_FLAG) |
Checks whether the specified SDIO flag is set or not. More... | |
void | SDIO_ClearFlag (uint32_t SDIO_FLAG) |
Clears the SDIO's pending flags. More... | |
ITStatus | SDIO_GetITStatus (uint32_t SDIO_IT) |
Checks whether the specified SDIO interrupt has occurred or not. More... | |
void | SDIO_ClearITPendingBit (uint32_t SDIO_IT) |
Clears the SDIO's interrupt pending bits. More... | |
This file contains all the functions prototypes for the SDIO firmware library.
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file stm32f4xx_sdio.h.