MG32F157 Standard Peripherals Firmware Library
|
Functions | |
void | SDIO_DeInit (SDIO_TypeDef *SDIOx) |
Deinitializes the SDIOx peripheral registers to their default reset values. More... | |
void | SDIO_Init (SDIO_TypeDef *SDIOx, SDIO_InitTypeDef *SDIO_InitStruct) |
Initializes the SDIO according to the specified parameters in the SDIO_InitTypeDef and create the associated handle. More... | |
void | SDIO_ConfigBusWidth (SDIO_TypeDef *SDIOx, uint32_t BusWidth) |
Configure the width of the SDIO data bus. More... | |
uint32_t | SDIO_ReadFIFO (SDIO_TypeDef *SDIOx) |
Read data (word) from Rx FIFO in blocking mode (polling) More... | |
void | SDIO_WriteFIFO (SDIO_TypeDef *SDIOx, uint32_t *pWriteData) |
Write data (word) to Tx FIFO in blocking mode (polling) More... | |
void | SDIO_PowerON (SDIO_TypeDef *SDIOx) |
Set SDIO Power state to ON. More... | |
void | SDIO_PowerOFF (SDIO_TypeDef *SDIOx) |
Set SDIO Power state to OFF. More... | |
uint32_t | SDIO_GetPower (SDIO_TypeDef *SDIOx) |
Get SDIO Power state. More... | |
void | SDIO_ClockCmd (SDIO_TypeDef *SDIOx, FunctionalState NewState) |
Enables or disables the SDIO Clock. More... | |
void | SDIO_ClockUpdate (SDIO_TypeDef *SDIOx) |
Update the SDIO Clock. More... | |
void | SDIO_ControlReset (SDIO_TypeDef *SDIOx) |
Reset the SDIO Controller. More... | |
void | SDIO_DMACmd (SDIO_TypeDef *SDIOx, FunctionalState NewState) |
Enables or disables the SDIO DMA request. More... | |
void | SDIO_ITConfig (SDIO_TypeDef *SDIOx, uint32_t SDIO_IT, FunctionalState NewState) |
Enables or disables the SDIO interrupts. More... | |
FlagStatus | SDIO_GetFlagStatus (SDIO_TypeDef *SDIOx, uint32_t SDIO_FLAG) |
Checks whether the specified SDIO flag is set or not. More... | |
void | SDIO_ClearFlagStatus (SDIO_TypeDef *SDIOx, uint32_t SDIO_FLAG) |
Clears the SDIO's pending flags. More... | |
ITStatus | SDIO_GetITStatus (SDIO_TypeDef *SDIOx, uint32_t SDIO_IT) |
Checks whether the specified SDIO interrupt has occurred or not. More... | |
void | SDIO_ClearITPendingBit (SDIO_TypeDef *SDIOx, uint32_t SDIO_IT) |
Clears the SDIO's interrupt pending bits. More... | |
void | SDIO_SendCommand (SDIO_TypeDef *SDIOx, SDIO_CmdInitTypeDef *Command) |
Configure the SDIO command path according to the specified parameters in SDIO_CmdInitTypeDef structure and send the command. More... | |
uint8_t | SDIO_GetCommandResponse (SDIO_TypeDef *SDIOx) |
Return the command index of last command for which response received. More... | |
uint32_t | SDIO_GetResponse (SDIO_TypeDef *SDIOx, uint32_t Response) |
Return the response received from the card for the last command. More... | |
void | SDIO_ConfigData (SDIO_TypeDef *SDIOx, SDIO_DataInitTypeDef *Data) |
Configure the SDIO data path according to the specified parameters in the SDIO_DataInitTypeDef. More... | |
void SDIO_ClearFlagStatus | ( | SDIO_TypeDef * | SDIOx, |
uint32_t | SDIO_FLAG | ||
) |
Clears the SDIO's pending flags.
SDIOx | Pointer to SDIO register base |
SDIO_FLAG | specifies the flag to clear. This parameter can be one or a combination of the following values:
|
void SDIO_ClearITPendingBit | ( | SDIO_TypeDef * | SDIOx, |
uint32_t | SDIO_IT | ||
) |
Clears the SDIO's interrupt pending bits.
SDIOx | Pointer to SDIO register base. |
SDIO_IT | specifies the interrupt pending bit to clear. This parameter can be one or a combination of the following values:
|
void SDIO_ClockCmd | ( | SDIO_TypeDef * | SDIOx, |
FunctionalState | NewState | ||
) |
Enables or disables the SDIO Clock.
SDIOx | Pointer to SDIO register base |
NewState | new state of the SDIO Clock. This parameter can be: ENABLE or DISABLE. |
void SDIO_ClockUpdate | ( | SDIO_TypeDef * | SDIOx | ) |
Update the SDIO Clock.
SDIOx | Pointer to SDIO register base |
void SDIO_ConfigBusWidth | ( | SDIO_TypeDef * | SDIOx, |
uint32_t | BusWidth | ||
) |
Configure the width of the SDIO data bus.
SDIOx | Pointer to SDIO register base |
BusWidth | SDIO data bus width |
void SDIO_ConfigData | ( | SDIO_TypeDef * | SDIOx, |
SDIO_DataInitTypeDef * | Data | ||
) |
Configure the SDIO data path according to the specified parameters in the SDIO_DataInitTypeDef.
SDIOx | Pointer to SDIO register base |
Data | pointer to a SDIO_DataInitTypeDef structure that contains the configuration information for the SDIO data. |
void SDIO_ControlReset | ( | SDIO_TypeDef * | SDIOx | ) |
Reset the SDIO Controller.
SDIOx | Pointer to SDIO register base |
void SDIO_DeInit | ( | SDIO_TypeDef * | SDIOx | ) |
Deinitializes the SDIOx peripheral registers to their default reset values.
SDIOx | Pointer to selected SDIO peripheral. This parameter can be one of the following values: SDIO. |
void SDIO_DMACmd | ( | SDIO_TypeDef * | SDIOx, |
FunctionalState | NewState | ||
) |
Enables or disables the SDIO DMA request.
SDIOx | Pointer to SDIO register base |
NewState | new state of the selected SDIO DMA request. This parameter can be: ENABLE or DISABLE. |
uint8_t SDIO_GetCommandResponse | ( | SDIO_TypeDef * | SDIOx | ) |
Return the command index of last command for which response received.
SDIOx | Pointer to SDIO register base |
FlagStatus SDIO_GetFlagStatus | ( | SDIO_TypeDef * | SDIOx, |
uint32_t | SDIO_FLAG | ||
) |
Checks whether the specified SDIO flag is set or not.
SDIOx | Pointer to SDIO register base |
SDIO_FLAG | specifies the flag to check. This parameter can be one of the following values:
|
ITStatus SDIO_GetITStatus | ( | SDIO_TypeDef * | SDIOx, |
uint32_t | SDIO_IT | ||
) |
Checks whether the specified SDIO interrupt has occurred or not.
SDIOx | Pointer to SDIO register base |
SDIO_IT | specifies the SDIO interrupt source to check. This parameter can be one of the following values:
|
uint32_t SDIO_GetPower | ( | SDIO_TypeDef * | SDIOx | ) |
Get SDIO Power state.
SDIOx | Pointer to SDIO register base |
uint32_t SDIO_GetResponse | ( | SDIO_TypeDef * | SDIOx, |
uint32_t | Response | ||
) |
Return the response received from the card for the last command.
SDIOx | Pointer to SDIO register base |
Response | Specifies the SDIO response register. This parameter can be one of the following values:
|
void SDIO_Init | ( | SDIO_TypeDef * | SDIOx, |
SDIO_InitTypeDef * | SDIO_InitStruct | ||
) |
Initializes the SDIO according to the specified parameters in the SDIO_InitTypeDef and create the associated handle.
SDIOx | Pointer to SDIO register base. |
SDIO_InitStruct | SDIO initialization structure. |
void SDIO_ITConfig | ( | SDIO_TypeDef * | SDIOx, |
uint32_t | SDIO_IT, | ||
FunctionalState | NewState | ||
) |
Enables or disables the SDIO interrupts.
SDIOx | Pointer to SDIO register base |
SDIO_IT | specifies the SDIO interrupt sources to be enabled or disabled. This parameter can be one or a combination of the following values:
|
NewState | new state of the selected SDIO DMA request. This parameter can be: ENABLE or DISABLE. |
void SDIO_PowerOFF | ( | SDIO_TypeDef * | SDIOx | ) |
Set SDIO Power state to OFF.
SDIOx | Pointer to SDIO register base |
void SDIO_PowerON | ( | SDIO_TypeDef * | SDIOx | ) |
Set SDIO Power state to ON.
SDIOx | Pointer to SDIO register base |
uint32_t SDIO_ReadFIFO | ( | SDIO_TypeDef * | SDIOx | ) |
Read data (word) from Rx FIFO in blocking mode (polling)
SDIOx | Pointer to SDIO register base |
void SDIO_SendCommand | ( | SDIO_TypeDef * | SDIOx, |
SDIO_CmdInitTypeDef * | Command | ||
) |
Configure the SDIO command path according to the specified parameters in SDIO_CmdInitTypeDef structure and send the command.
SDIOx | Pointer to SDIO register base. |
Command | pointer to a SDIO_CmdInitTypeDef structure that contains the configuration information for the SDIO command. |
void SDIO_WriteFIFO | ( | SDIO_TypeDef * | SDIOx, |
uint32_t * | pWriteData | ||
) |
Write data (word) to Tx FIFO in blocking mode (polling)
SDIOx | Pointer to SDIO register base |
pWriteData | pointer to data to write |