SDIO_Exported_Functions
[SDIO]

Functions

void SDIO_CEATAITCmd (FunctionalState NewState)
 Enables or disables the CE-ATA interrupt.
void SDIO_ClearFlag (uint32_t SDIO_FLAG)
 Clears the SDIO's pending flags.
void SDIO_ClearITPendingBit (uint32_t SDIO_IT)
 Clears the SDIO’s interrupt pending bits.
void SDIO_ClockCmd (FunctionalState NewState)
 Enables or disables the SDIO Clock.
void SDIO_CmdStructInit (SDIO_CmdInitTypeDef *SDIO_CmdInitStruct)
 Fills each SDIO_CmdInitStruct member with its default value.
void SDIO_CommandCompletionCmd (FunctionalState NewState)
 Enables or disables the command completion signal.
void SDIO_DataConfig (SDIO_DataInitTypeDef *SDIO_DataInitStruct)
 Initializes the SDIO data path according to the specified parameters in the SDIO_DataInitStruct.
void SDIO_DataStructInit (SDIO_DataInitTypeDef *SDIO_DataInitStruct)
 Fills each SDIO_DataInitStruct member with its default value.
void SDIO_DeInit (void)
 Deinitializes the SDIO peripheral registers to their default reset values.
void SDIO_DMACmd (FunctionalState NewState)
 Enables or disables the SDIO DMA request.
uint8_t SDIO_GetCommandResponse (void)
 Returns command index of last command for which response received.
uint32_t SDIO_GetDataCounter (void)
 Returns number of remaining data bytes to be transferred.
uint32_t SDIO_GetFIFOCount (void)
 Returns the number of words left to be written to or read from FIFO.
FlagStatus SDIO_GetFlagStatus (uint32_t SDIO_FLAG)
 Checks whether the specified SDIO flag is set or not.
ITStatus SDIO_GetITStatus (uint32_t SDIO_IT)
 Checks whether the specified SDIO interrupt has occurred or not.
uint32_t SDIO_GetPowerState (void)
 Gets the power status of the controller.
uint32_t SDIO_GetResponse (uint32_t SDIO_RESP)
 Returns response received from the card for the last command.
void SDIO_Init (SDIO_InitTypeDef *SDIO_InitStruct)
 Initializes the SDIO peripheral according to the specified parameters in the SDIO_InitStruct.
void SDIO_ITConfig (uint32_t SDIO_IT, FunctionalState NewState)
 Enables or disables the SDIO interrupts.
uint32_t SDIO_ReadData (void)
 Read one data word from Rx FIFO.
void SDIO_SendCEATACmd (FunctionalState NewState)
 Sends CE-ATA command (CMD61).
void SDIO_SendCommand (SDIO_CmdInitTypeDef *SDIO_CmdInitStruct)
 Initializes the SDIO Command according to the specified parameters in the SDIO_CmdInitStruct and send the command.
void SDIO_SendSDIOSuspendCmd (FunctionalState NewState)
 Enables or disables the SD I/O Mode suspend command sending.
void SDIO_SetPowerState (uint32_t SDIO_PowerState)
 Sets the power status of the controller.
void SDIO_SetSDIOOperation (FunctionalState NewState)
 Enables or disables the SD I/O Mode Operation.
void SDIO_SetSDIOReadWaitMode (uint32_t SDIO_ReadWaitMode)
 Sets one of the two options of inserting read wait interval.
void SDIO_StartSDIOReadWait (FunctionalState NewState)
 Starts the SD I/O Read Wait operation.
void SDIO_StopSDIOReadWait (FunctionalState NewState)
 Stops the SD I/O Read Wait operation.
void SDIO_StructInit (SDIO_InitTypeDef *SDIO_InitStruct)
 Fills each SDIO_InitStruct member with its default value.
void SDIO_WriteData (uint32_t Data)
 Write one data word to Tx FIFO.

Function Documentation

void SDIO_CEATAITCmd ( FunctionalState  NewState  ) 

Enables or disables the CE-ATA interrupt.

Parameters:
NewState,: new state of CE-ATA interrupt. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 613 of file stm32f10x_sdio.c.

References assert_param, CMD_NIEN_BB, and IS_FUNCTIONAL_STATE.

void SDIO_ClearFlag ( uint32_t  SDIO_FLAG  ) 

Clears the SDIO's pending flags.

Parameters:
SDIO_FLAG,: specifies the flag to clear. This parameter can be one or a combination of the following values:

  • SDIO_FLAG_CCRCFAIL: Command response received (CRC check failed)
  • SDIO_FLAG_DCRCFAIL: Data block sent/received (CRC check failed)
  • SDIO_FLAG_CTIMEOUT: Command response timeout
  • SDIO_FLAG_DTIMEOUT: Data timeout
  • SDIO_FLAG_TXUNDERR: Transmit FIFO underrun error
  • SDIO_FLAG_RXOVERR: Received FIFO overrun error
  • SDIO_FLAG_CMDREND: Command response received (CRC check passed)
  • SDIO_FLAG_CMDSENT: Command sent (no response required)
  • SDIO_FLAG_DATAEND: Data end (data counter, SDIDCOUNT, is zero)
  • SDIO_FLAG_STBITERR: Start bit not detected on all data signals in wide bus mode
  • SDIO_FLAG_DBCKEND: Data block sent/received (CRC check passed)
  • SDIO_FLAG_SDIOIT: SD I/O interrupt received
  • SDIO_FLAG_CEATAEND: CE-ATA command completion signal received for CMD61
Return values:
None 

Definition at line 703 of file stm32f10x_sdio.c.

References assert_param, IS_SDIO_CLEAR_FLAG, and SDIO.

Referenced by CmdError(), CmdResp1Error(), CmdResp2Error(), CmdResp3Error(), CmdResp6Error(), CmdResp7Error(), FindSCR(), IsCardProgramming(), SD_ReadBlock(), SD_ReadMultiBlocks(), SD_SendSDStatus(), SD_WriteBlock(), and SD_WriteMultiBlocks().

void SDIO_ClearITPendingBit ( uint32_t  SDIO_IT  ) 

Clears the SDIO’s interrupt pending bits.

Parameters:
SDIO_IT,: specifies the interrupt pending bit to clear. This parameter can be one or a combination of the following values:

  • SDIO_IT_CCRCFAIL: Command response received (CRC check failed) interrupt
  • SDIO_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt
  • SDIO_IT_CTIMEOUT: Command response timeout interrupt
  • SDIO_IT_DTIMEOUT: Data timeout interrupt
  • SDIO_IT_TXUNDERR: Transmit FIFO underrun error interrupt
  • SDIO_IT_RXOVERR: Received FIFO overrun error interrupt
  • SDIO_IT_CMDREND: Command response received (CRC check passed) interrupt
  • SDIO_IT_CMDSENT: Command sent (no response required) interrupt
  • SDIO_IT_DATAEND: Data end (data counter, SDIDCOUNT, is zero) interrupt
  • SDIO_IT_STBITERR: Start bit not detected on all data signals in wide bus mode interrupt
  • SDIO_IT_SDIOIT: SD I/O interrupt received interrupt
  • SDIO_IT_CEATAEND: CE-ATA command completion signal received for CMD61
Return values:
None 

Definition at line 778 of file stm32f10x_sdio.c.

References assert_param, IS_SDIO_CLEAR_IT, and SDIO.

Referenced by SD_ProcessIRQSrc().

void SDIO_ClockCmd ( FunctionalState  NewState  ) 

Enables or disables the SDIO Clock.

Parameters:
NewState,: new state of the SDIO Clock. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 234 of file stm32f10x_sdio.c.

References assert_param, CLKCR_CLKEN_BB, and IS_FUNCTIONAL_STATE.

Referenced by SD_LowLevel_DeInit(), and SD_PowerON().

void SDIO_CmdStructInit ( SDIO_CmdInitTypeDef SDIO_CmdInitStruct  ) 

Fills each SDIO_CmdInitStruct member with its default value.

Parameters:
SDIO_CmdInitStruct,: pointer to an SDIO_CmdInitTypeDef structure which will be initialized.
Return values:
None 

Definition at line 381 of file stm32f10x_sdio.c.

References SDIO_CmdInitTypeDef::SDIO_Argument, SDIO_CmdInitTypeDef::SDIO_CmdIndex, SDIO_CmdInitTypeDef::SDIO_CPSM, SDIO_CPSM_Disable, SDIO_CmdInitTypeDef::SDIO_Response, SDIO_Response_No, SDIO_CmdInitTypeDef::SDIO_Wait, and SDIO_Wait_No.

void SDIO_CommandCompletionCmd ( FunctionalState  NewState  ) 

Enables or disables the command completion signal.

Parameters:
NewState,: new state of command completion signal. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 600 of file stm32f10x_sdio.c.

References assert_param, CMD_ENCMDCOMPL_BB, and IS_FUNCTIONAL_STATE.

void SDIO_DataConfig ( SDIO_DataInitTypeDef SDIO_DataInitStruct  ) 

Initializes the SDIO data path according to the specified parameters in the SDIO_DataInitStruct.

Parameters:
SDIO_DataInitStruct : pointer to a SDIO_DataInitTypeDef structure that contains the configuration information for the SDIO command.
Return values:
None 

Definition at line 430 of file stm32f10x_sdio.c.

References assert_param, DCTRL_CLEAR_MASK, IS_SDIO_BLOCK_SIZE, IS_SDIO_DATA_LENGTH, IS_SDIO_DPSM, IS_SDIO_TRANSFER_DIR, IS_SDIO_TRANSFER_MODE, SDIO, SDIO_DataInitTypeDef::SDIO_DataBlockSize, SDIO_DataInitTypeDef::SDIO_DataLength, SDIO_DataInitTypeDef::SDIO_DataTimeOut, SDIO_DataInitTypeDef::SDIO_DPSM, SDIO_DataInitTypeDef::SDIO_TransferDir, and SDIO_DataInitTypeDef::SDIO_TransferMode.

Referenced by FindSCR(), SD_ReadBlock(), SD_ReadMultiBlocks(), SD_SendSDStatus(), SD_WriteBlock(), and SD_WriteMultiBlocks().

void SDIO_DataStructInit ( SDIO_DataInitTypeDef SDIO_DataInitStruct  ) 

Fills each SDIO_DataInitStruct member with its default value.

Parameters:
SDIO_DataInitStruct,: pointer to an SDIO_DataInitTypeDef structure which will be initialized.
Return values:
None 

Definition at line 471 of file stm32f10x_sdio.c.

References SDIO_DataInitTypeDef::SDIO_DataBlockSize, SDIO_DataBlockSize_1b, SDIO_DataInitTypeDef::SDIO_DataLength, SDIO_DataInitTypeDef::SDIO_DataTimeOut, SDIO_DataInitTypeDef::SDIO_DPSM, SDIO_DPSM_Disable, SDIO_DataInitTypeDef::SDIO_TransferDir, SDIO_TransferDir_ToCard, SDIO_DataInitTypeDef::SDIO_TransferMode, and SDIO_TransferMode_Block.

void SDIO_DeInit ( void   ) 

Deinitializes the SDIO peripheral registers to their default reset values.

Parameters:
None 
Return values:
None 

Definition at line 160 of file stm32f10x_sdio.c.

References SDIO.

Referenced by SD_Init(), and SD_LowLevel_DeInit().

void SDIO_DMACmd ( FunctionalState  NewState  ) 

Enables or disables the SDIO DMA request.

Parameters:
NewState,: new state of the selected SDIO DMA request. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 330 of file stm32f10x_sdio.c.

References assert_param, DCTRL_DMAEN_BB, and IS_FUNCTIONAL_STATE.

Referenced by SD_ReadBlock(), SD_ReadMultiBlocks(), SD_WriteBlock(), and SD_WriteMultiBlocks().

uint8_t SDIO_GetCommandResponse ( void   ) 

Returns command index of last command for which response received.

Parameters:
None 
Return values:
Returns the command index of the last command response received.

Definition at line 396 of file stm32f10x_sdio.c.

References SDIO.

Referenced by CmdResp1Error(), CmdResp6Error(), and IsCardProgramming().

uint32_t SDIO_GetDataCounter ( void   ) 

Returns number of remaining data bytes to be transferred.

Parameters:
None 
Return values:
Number of remaining data bytes to be transferred

Definition at line 487 of file stm32f10x_sdio.c.

References SDIO.

uint32_t SDIO_GetFIFOCount ( void   ) 

Returns the number of words left to be written to or read from FIFO.

Parameters:
None 
Return values:
Remaining number of words.

Definition at line 517 of file stm32f10x_sdio.c.

References SDIO.

FlagStatus SDIO_GetFlagStatus ( uint32_t  SDIO_FLAG  ) 

Checks whether the specified SDIO flag is set or not.

Parameters:
SDIO_FLAG,: specifies the flag to check. This parameter can be one of the following values:

  • SDIO_FLAG_CCRCFAIL: Command response received (CRC check failed)
  • SDIO_FLAG_DCRCFAIL: Data block sent/received (CRC check failed)
  • SDIO_FLAG_CTIMEOUT: Command response timeout
  • SDIO_FLAG_DTIMEOUT: Data timeout
  • SDIO_FLAG_TXUNDERR: Transmit FIFO underrun error
  • SDIO_FLAG_RXOVERR: Received FIFO overrun error
  • SDIO_FLAG_CMDREND: Command response received (CRC check passed)
  • SDIO_FLAG_CMDSENT: Command sent (no response required)
  • SDIO_FLAG_DATAEND: Data end (data counter, SDIDCOUNT, is zero)
  • SDIO_FLAG_STBITERR: Start bit not detected on all data signals in wide bus mode.
  • SDIO_FLAG_DBCKEND: Data block sent/received (CRC check passed)
  • SDIO_FLAG_CMDACT: Command transfer in progress
  • SDIO_FLAG_TXACT: Data transmit in progress
  • SDIO_FLAG_RXACT: Data receive in progress
  • SDIO_FLAG_TXFIFOHE: Transmit FIFO Half Empty
  • SDIO_FLAG_RXFIFOHF: Receive FIFO Half Full
  • SDIO_FLAG_TXFIFOF: Transmit FIFO full
  • SDIO_FLAG_RXFIFOF: Receive FIFO full
  • SDIO_FLAG_TXFIFOE: Transmit FIFO empty
  • SDIO_FLAG_RXFIFOE: Receive FIFO empty
  • SDIO_FLAG_TXDAVL: Data available in transmit FIFO
  • SDIO_FLAG_RXDAVL: Data available in receive FIFO
  • SDIO_FLAG_SDIOIT: SD I/O interrupt received
  • SDIO_FLAG_CEATAEND: CE-ATA command completion signal received for CMD61
Return values:
The new state of SDIO_FLAG (SET or RESET).

Definition at line 665 of file stm32f10x_sdio.c.

References assert_param, IS_SDIO_FLAG, RESET, SDIO, and SET.

Referenced by CmdError(), FindSCR(), SD_ProcessIRQSrc(), SD_ReadBlock(), SD_ReadMultiBlocks(), SD_SendSDStatus(), SD_WriteBlock(), and SD_WriteMultiBlocks().

ITStatus SDIO_GetITStatus ( uint32_t  SDIO_IT  ) 

Checks whether the specified SDIO interrupt has occurred or not.

Parameters:
SDIO_IT,: specifies the SDIO interrupt source to check. This parameter can be one of the following values:

  • SDIO_IT_CCRCFAIL: Command response received (CRC check failed) interrupt
  • SDIO_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt
  • SDIO_IT_CTIMEOUT: Command response timeout interrupt
  • SDIO_IT_DTIMEOUT: Data timeout interrupt
  • SDIO_IT_TXUNDERR: Transmit FIFO underrun error interrupt
  • SDIO_IT_RXOVERR: Received FIFO overrun error interrupt
  • SDIO_IT_CMDREND: Command response received (CRC check passed) interrupt
  • SDIO_IT_CMDSENT: Command sent (no response required) interrupt
  • SDIO_IT_DATAEND: Data end (data counter, SDIDCOUNT, is zero) interrupt
  • SDIO_IT_STBITERR: Start bit not detected on all data signals in wide bus mode interrupt
  • SDIO_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt
  • SDIO_IT_CMDACT: Command transfer in progress interrupt
  • SDIO_IT_TXACT: Data transmit in progress interrupt
  • SDIO_IT_RXACT: Data receive in progress interrupt
  • SDIO_IT_TXFIFOHE: Transmit FIFO Half Empty interrupt
  • SDIO_IT_RXFIFOHF: Receive FIFO Half Full interrupt
  • SDIO_IT_TXFIFOF: Transmit FIFO full interrupt
  • SDIO_IT_RXFIFOF: Receive FIFO full interrupt
  • SDIO_IT_TXFIFOE: Transmit FIFO empty interrupt
  • SDIO_IT_RXFIFOE: Receive FIFO empty interrupt
  • SDIO_IT_TXDAVL: Data available in transmit FIFO interrupt
  • SDIO_IT_RXDAVL: Data available in receive FIFO interrupt
  • SDIO_IT_SDIOIT: SD I/O interrupt received interrupt
  • SDIO_IT_CEATAEND: CE-ATA command completion signal received for CMD61 interrupt
Return values:
The new state of SDIO_IT (SET or RESET).

Definition at line 742 of file stm32f10x_sdio.c.

References assert_param, IS_SDIO_GET_IT, RESET, SDIO, and SET.

Referenced by SD_ProcessIRQSrc().

uint32_t SDIO_GetPowerState ( void   ) 

Gets the power status of the controller.

Parameters:
None 
Return values:
Power status of the controller. The returned value can be one of the following:

  • 0x00: Power OFF
  • 0x02: Power UP
  • 0x03: Power ON

Definition at line 268 of file stm32f10x_sdio.c.

References PWR_PWRCTRL_MASK, and SDIO.

Referenced by SD_InitializeCards().

uint32_t SDIO_GetResponse ( uint32_t  SDIO_RESP  ) 

Returns response received from the card for the last command.

Parameters:
SDIO_RESP,: Specifies the SDIO response register. This parameter can be one of the following values:

  • SDIO_RESP1: Response Register 1
  • SDIO_RESP2: Response Register 2
  • SDIO_RESP3: Response Register 3
  • SDIO_RESP4: Response Register 4
Return values:
The Corresponding response register value.

Definition at line 411 of file stm32f10x_sdio.c.

References assert_param, IS_SDIO_RESP, and SDIO_RESP_ADDR.

Referenced by CmdResp1Error(), CmdResp6Error(), IsCardProgramming(), SD_Erase(), SD_InitializeCards(), SD_PowerON(), SD_ReadBlock(), SD_ReadMultiBlocks(), SD_SendSDStatus(), SD_SendStatus(), SD_WriteBlock(), SD_WriteMultiBlocks(), and SDEnWideBus().

void SDIO_Init ( SDIO_InitTypeDef SDIO_InitStruct  ) 

Initializes the SDIO peripheral according to the specified parameters in the SDIO_InitStruct.

Parameters:
SDIO_InitStruct : pointer to a SDIO_InitTypeDef structure that contains the configuration information for the SDIO peripheral.
Return values:
None 

Definition at line 180 of file stm32f10x_sdio.c.

References assert_param, CLKCR_CLEAR_MASK, IS_SDIO_BUS_WIDE, IS_SDIO_CLOCK_BYPASS, IS_SDIO_CLOCK_EDGE, IS_SDIO_CLOCK_POWER_SAVE, IS_SDIO_HARDWARE_FLOW_CONTROL, SDIO, SDIO_InitTypeDef::SDIO_BusWide, SDIO_InitTypeDef::SDIO_ClockBypass, SDIO_InitTypeDef::SDIO_ClockDiv, SDIO_InitTypeDef::SDIO_ClockEdge, SDIO_InitTypeDef::SDIO_ClockPowerSave, and SDIO_InitTypeDef::SDIO_HardwareFlowControl.

Referenced by SD_EnableWideBusOperation(), SD_Init(), and SD_PowerON().

void SDIO_ITConfig ( uint32_t  SDIO_IT,
FunctionalState  NewState 
)

Enables or disables the SDIO interrupts.

Parameters:
SDIO_IT,: specifies the SDIO interrupt sources to be enabled or disabled. This parameter can be one or a combination of the following values:

  • SDIO_IT_CCRCFAIL: Command response received (CRC check failed) interrupt
  • SDIO_IT_DCRCFAIL: Data block sent/received (CRC check failed) interrupt
  • SDIO_IT_CTIMEOUT: Command response timeout interrupt
  • SDIO_IT_DTIMEOUT: Data timeout interrupt
  • SDIO_IT_TXUNDERR: Transmit FIFO underrun error interrupt
  • SDIO_IT_RXOVERR: Received FIFO overrun error interrupt
  • SDIO_IT_CMDREND: Command response received (CRC check passed) interrupt
  • SDIO_IT_CMDSENT: Command sent (no response required) interrupt
  • SDIO_IT_DATAEND: Data end (data counter, SDIDCOUNT, is zero) interrupt
  • SDIO_IT_STBITERR: Start bit not detected on all data signals in wide bus mode interrupt
  • SDIO_IT_DBCKEND: Data block sent/received (CRC check passed) interrupt
  • SDIO_IT_CMDACT: Command transfer in progress interrupt
  • SDIO_IT_TXACT: Data transmit in progress interrupt
  • SDIO_IT_RXACT: Data receive in progress interrupt
  • SDIO_IT_TXFIFOHE: Transmit FIFO Half Empty interrupt
  • SDIO_IT_RXFIFOHF: Receive FIFO Half Full interrupt
  • SDIO_IT_TXFIFOF: Transmit FIFO full interrupt
  • SDIO_IT_RXFIFOF: Receive FIFO full interrupt
  • SDIO_IT_TXFIFOE: Transmit FIFO empty interrupt
  • SDIO_IT_RXFIFOE: Receive FIFO empty interrupt
  • SDIO_IT_TXDAVL: Data available in transmit FIFO interrupt
  • SDIO_IT_RXDAVL: Data available in receive FIFO interrupt
  • SDIO_IT_SDIOIT: SD I/O interrupt received interrupt
  • SDIO_IT_CEATAEND: CE-ATA command completion signal received for CMD61 interrupt
NewState,: new state of the specified SDIO interrupts. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 306 of file stm32f10x_sdio.c.

References assert_param, DISABLE, IS_FUNCTIONAL_STATE, IS_SDIO_IT, and SDIO.

Referenced by SD_ProcessIRQSrc(), SD_ReadBlock(), SD_ReadMultiBlocks(), SD_WriteBlock(), and SD_WriteMultiBlocks().

uint32_t SDIO_ReadData ( void   ) 

Read one data word from Rx FIFO.

Parameters:
None 
Return values:
Data received

Definition at line 497 of file stm32f10x_sdio.c.

References SDIO.

Referenced by FindSCR(), SD_ProcessIRQSrc(), SD_ReadBlock(), SD_ReadMultiBlocks(), and SD_SendSDStatus().

void SDIO_SendCEATACmd ( FunctionalState  NewState  ) 

Sends CE-ATA command (CMD61).

Parameters:
NewState,: new state of CE-ATA command. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 626 of file stm32f10x_sdio.c.

References assert_param, CMD_ATACMD_BB, and IS_FUNCTIONAL_STATE.

void SDIO_SendCommand ( SDIO_CmdInitTypeDef SDIO_CmdInitStruct  ) 

Initializes the SDIO Command according to the specified parameters in the SDIO_CmdInitStruct and send the command.

Parameters:
SDIO_CmdInitStruct : pointer to a SDIO_CmdInitTypeDef structure that contains the configuration information for the SDIO command.
Return values:
None 

Definition at line 345 of file stm32f10x_sdio.c.

References assert_param, CMD_CLEAR_MASK, IS_SDIO_CMD_INDEX, IS_SDIO_CPSM, IS_SDIO_RESPONSE, IS_SDIO_WAIT, SDIO, SDIO_CmdInitTypeDef::SDIO_Argument, SDIO_CmdInitTypeDef::SDIO_CmdIndex, SDIO_CmdInitTypeDef::SDIO_CPSM, SDIO_CmdInitTypeDef::SDIO_Response, and SDIO_CmdInitTypeDef::SDIO_Wait.

Referenced by FindSCR(), IsCardProgramming(), SD_Erase(), SD_InitializeCards(), SD_PowerON(), SD_ReadBlock(), SD_ReadMultiBlocks(), SD_SelectDeselect(), SD_SendSDStatus(), SD_SendStatus(), SD_StopTransfer(), SD_WriteBlock(), SD_WriteMultiBlocks(), and SDEnWideBus().

void SDIO_SendSDIOSuspendCmd ( FunctionalState  NewState  ) 

Enables or disables the SD I/O Mode suspend command sending.

Parameters:
NewState,: new state of the SD I/O Mode suspend command. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 586 of file stm32f10x_sdio.c.

References assert_param, CMD_SDIOSUSPEND_BB, and IS_FUNCTIONAL_STATE.

void SDIO_SetPowerState ( uint32_t  SDIO_PowerState  ) 

Sets the power status of the controller.

Parameters:
SDIO_PowerState,: new state of the Power state. This parameter can be one of the following values:

  • SDIO_PowerState_OFF
  • SDIO_PowerState_ON
Return values:
None 

Definition at line 250 of file stm32f10x_sdio.c.

References assert_param, IS_SDIO_POWER_STATE, PWR_PWRCTRL_MASK, and SDIO.

Referenced by SD_LowLevel_DeInit(), SD_PowerOFF(), and SD_PowerON().

void SDIO_SetSDIOOperation ( FunctionalState  NewState  ) 

Enables or disables the SD I/O Mode Operation.

Parameters:
NewState,: new state of SDIO specific operation. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 572 of file stm32f10x_sdio.c.

References assert_param, DCTRL_SDIOEN_BB, and IS_FUNCTIONAL_STATE.

void SDIO_SetSDIOReadWaitMode ( uint32_t  SDIO_ReadWaitMode  ) 

Sets one of the two options of inserting read wait interval.

Parameters:
SDIO_ReadWaitMode,: SD I/O Read Wait operation mode. This parametre can be:

  • SDIO_ReadWaitMode_CLK: Read Wait control by stopping SDIOCLK
  • SDIO_ReadWaitMode_DATA2: Read Wait control using SDIO_DATA2
Return values:
None 

Definition at line 558 of file stm32f10x_sdio.c.

References assert_param, DCTRL_RWMOD_BB, and IS_SDIO_READWAIT_MODE.

void SDIO_StartSDIOReadWait ( FunctionalState  NewState  ) 

Starts the SD I/O Read Wait operation.

Parameters:
NewState,: new state of the Start SDIO Read Wait operation. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 528 of file stm32f10x_sdio.c.

References assert_param, DCTRL_RWSTART_BB, and IS_FUNCTIONAL_STATE.

void SDIO_StopSDIOReadWait ( FunctionalState  NewState  ) 

Stops the SD I/O Read Wait operation.

Parameters:
NewState,: new state of the Stop SDIO Read Wait operation. This parameter can be: ENABLE or DISABLE.
Return values:
None 

Definition at line 542 of file stm32f10x_sdio.c.

References assert_param, DCTRL_RWSTOP_BB, and IS_FUNCTIONAL_STATE.

void SDIO_StructInit ( SDIO_InitTypeDef SDIO_InitStruct  ) 
void SDIO_WriteData ( uint32_t  Data  ) 

Write one data word to Tx FIFO.

Parameters:
Data,: 32-bit data word to write.
Return values:
None 

Definition at line 507 of file stm32f10x_sdio.c.

References SDIO.

Referenced by SD_ProcessIRQSrc(), SD_WriteBlock(), and SD_WriteMultiBlocks().

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32