STM32F4xx_HAL_Driver  1.8.3
Input and Output operation functions

Data transfer functions. More...

+ Collaboration diagram for Input and Output operation functions:

Functions

HAL_StatusTypeDef HAL_MMC_ReadBlocks (MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks, uint32_t Timeout)
 Reads block(s) from a specified address in a card. The Data transfer is managed by polling mode. More...
 
HAL_StatusTypeDef HAL_MMC_WriteBlocks (MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks, uint32_t Timeout)
 Allows to write block(s) to a specified address in a card. The Data transfer is managed by polling mode. More...
 
HAL_StatusTypeDef HAL_MMC_Erase (MMC_HandleTypeDef *hmmc, uint32_t BlockStartAdd, uint32_t BlockEndAdd)
 Erases the specified memory area of the given MMC card. More...
 
HAL_StatusTypeDef HAL_MMC_ReadBlocks_IT (MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks)
 Reads block(s) from a specified address in a card. The Data transfer is managed in interrupt mode. More...
 
HAL_StatusTypeDef HAL_MMC_WriteBlocks_IT (MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks)
 Writes block(s) to a specified address in a card. The Data transfer is managed in interrupt mode. More...
 
HAL_StatusTypeDef HAL_MMC_ReadBlocks_DMA (MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks)
 Reads block(s) from a specified address in a card. The Data transfer is managed by DMA mode. More...
 
HAL_StatusTypeDef HAL_MMC_WriteBlocks_DMA (MMC_HandleTypeDef *hmmc, uint8_t *pData, uint32_t BlockAdd, uint32_t NumberOfBlocks)
 Writes block(s) to a specified address in a card. The Data transfer is managed by DMA mode. More...
 
void HAL_MMC_IRQHandler (MMC_HandleTypeDef *hmmc)
 This function handles MMC card interrupt request. More...
 
void HAL_MMC_TxCpltCallback (MMC_HandleTypeDef *hmmc)
 Tx Transfer completed callbacks. More...
 
void HAL_MMC_RxCpltCallback (MMC_HandleTypeDef *hmmc)
 Rx Transfer completed callbacks. More...
 
void HAL_MMC_ErrorCallback (MMC_HandleTypeDef *hmmc)
 MMC error callbacks. More...
 
void HAL_MMC_AbortCallback (MMC_HandleTypeDef *hmmc)
 MMC Abort callbacks. More...
 
HAL_StatusTypeDef HAL_MMC_RegisterCallback (MMC_HandleTypeDef *hmmc, HAL_MMC_CallbackIDTypeDef CallbackId, pMMC_CallbackTypeDef pCallback)
 Register a User MMC Callback To be used instead of the weak (surcharged) predefined callback. More...
 
HAL_StatusTypeDef HAL_MMC_UnRegisterCallback (MMC_HandleTypeDef *hmmc, HAL_MMC_CallbackIDTypeDef CallbackId)
 Unregister a User MMC Callback MMC Callback is redirected to the weak (surcharged) predefined callback. More...
 
HAL_MMC_StateTypeDef HAL_MMC_GetState (MMC_HandleTypeDef *hmmc)
 return the MMC state More...
 
uint32_t HAL_MMC_GetError (MMC_HandleTypeDef *hmmc)
 Return the MMC error code. More...
 

Detailed Description

Data transfer functions.

  ==============================================================================
                        ##### IO operation functions #####
  ==============================================================================
  [..]
    This subsection provides a set of functions allowing to manage the data
    transfer from/to MMC card.

Function Documentation

◆ HAL_MMC_AbortCallback()

__weak void HAL_MMC_AbortCallback ( MMC_HandleTypeDef hmmc)

MMC Abort callbacks.

Parameters
hmmcPointer MMC handle
Return values
None

Definition at line 1793 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_Erase()

HAL_StatusTypeDef HAL_MMC_Erase ( MMC_HandleTypeDef hmmc,
uint32_t  BlockStartAdd,
uint32_t  BlockEndAdd 
)

Erases the specified memory area of the given MMC card.

Note
This API should be followed by a check on the card state through HAL_MMC_GetCardState().
Parameters
hmmcPointer to MMC handle
BlockStartAddStart Block address
BlockEndAddEnd Block address
Return values
HALstatus

Definition at line 1416 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_ErrorCallback()

__weak void HAL_MMC_ErrorCallback ( MMC_HandleTypeDef hmmc)

MMC error callbacks.

Parameters
hmmcPointer MMC handle
Return values
None

Definition at line 1778 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_GetError()

uint32_t HAL_MMC_GetError ( MMC_HandleTypeDef hmmc)

Return the MMC error code.

Parameters
hmmc: Pointer to a MMC_HandleTypeDef structure that contains the configuration information.
Return values
MMCError Code

Definition at line 1738 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_GetState()

HAL_MMC_StateTypeDef HAL_MMC_GetState ( MMC_HandleTypeDef hmmc)

return the MMC state

Parameters
hmmcPointer to mmc handle
Return values
HALstate

Definition at line 1727 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_IRQHandler()

void HAL_MMC_IRQHandler ( MMC_HandleTypeDef hmmc)

This function handles MMC card interrupt request.

Parameters
hmmcPointer to MMC handle
Return values
None

Definition at line 1513 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_ReadBlocks()

HAL_StatusTypeDef HAL_MMC_ReadBlocks ( MMC_HandleTypeDef hmmc,
uint8_t *  pData,
uint32_t  BlockAdd,
uint32_t  NumberOfBlocks,
uint32_t  Timeout 
)

Reads block(s) from a specified address in a card. The Data transfer is managed by polling mode.

Note
This API should be followed by a check on the card state through HAL_MMC_GetCardState().
Parameters
hmmcPointer to MMC handle
pDatapointer to the buffer that will contain the received data
BlockAddBlock Address from where data is to be read
NumberOfBlocksNumber of MMC blocks to read
TimeoutSpecify timeout value
Return values
HALstatus

Definition at line 600 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_ReadBlocks_DMA()

HAL_StatusTypeDef HAL_MMC_ReadBlocks_DMA ( MMC_HandleTypeDef hmmc,
uint8_t *  pData,
uint32_t  BlockAdd,
uint32_t  NumberOfBlocks 
)

Reads block(s) from a specified address in a card. The Data transfer is managed by DMA mode.

Note
This API should be followed by a check on the card state through HAL_MMC_GetCardState().
You could also check the DMA transfer process through the MMC Rx interrupt event.
Parameters
hmmcPointer MMC handle
pDataPointer to the buffer that will contain the received data
BlockAddBlock Address from where data is to be read
NumberOfBlocksNumber of blocks to read.
Return values
HALstatus

Definition at line 1176 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_ReadBlocks_IT()

HAL_StatusTypeDef HAL_MMC_ReadBlocks_IT ( MMC_HandleTypeDef hmmc,
uint8_t *  pData,
uint32_t  BlockAdd,
uint32_t  NumberOfBlocks 
)

Reads block(s) from a specified address in a card. The Data transfer is managed in interrupt mode.

Note
This API should be followed by a check on the card state through HAL_MMC_GetCardState().
You could also check the IT transfer process through the MMC Rx interrupt event.
Parameters
hmmcPointer to MMC handle
pDataPointer to the buffer that will contain the received data
BlockAddBlock Address from where data is to be read
NumberOfBlocksNumber of blocks to read.
Return values
HALstatus

Definition at line 984 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_RegisterCallback()

HAL_StatusTypeDef HAL_MMC_RegisterCallback ( MMC_HandleTypeDef hmmc,
HAL_MMC_CallbackIDTypeDef  CallbackId,
pMMC_CallbackTypeDef  pCallback 
)

Register a User MMC Callback To be used instead of the weak (surcharged) predefined callback.

Parameters
hmmc: MMC handle
CallbackId: ID of the callback to be registered This parameter can be one of the following values:
pCallback: pointer to the Callback function
Return values
status

Definition at line 1819 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_RxCpltCallback()

__weak void HAL_MMC_RxCpltCallback ( MMC_HandleTypeDef hmmc)

Rx Transfer completed callbacks.

Parameters
hmmcPointer MMC handle
Return values
None

Definition at line 1763 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_TxCpltCallback()

__weak void HAL_MMC_TxCpltCallback ( MMC_HandleTypeDef hmmc)

Tx Transfer completed callbacks.

Parameters
hmmcPointer to MMC handle
Return values
None

Definition at line 1748 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_UnRegisterCallback()

HAL_StatusTypeDef HAL_MMC_UnRegisterCallback ( MMC_HandleTypeDef hmmc,
HAL_MMC_CallbackIDTypeDef  CallbackId 
)

Unregister a User MMC Callback MMC Callback is redirected to the weak (surcharged) predefined callback.

Parameters
hmmc: MMC handle
CallbackId: ID of the callback to be unregistered This parameter can be one of the following values:
Return values
status

Definition at line 1908 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_WriteBlocks()

HAL_StatusTypeDef HAL_MMC_WriteBlocks ( MMC_HandleTypeDef hmmc,
uint8_t *  pData,
uint32_t  BlockAdd,
uint32_t  NumberOfBlocks,
uint32_t  Timeout 
)

Allows to write block(s) to a specified address in a card. The Data transfer is managed by polling mode.

Note
This API should be followed by a check on the card state through HAL_MMC_GetCardState().
Parameters
hmmcPointer to MMC handle
pDatapointer to the buffer that will contain the data to transmit
BlockAddBlock Address where data will be written
NumberOfBlocksNumber of MMC blocks to write
TimeoutSpecify timeout value
Return values
HALstatus

Definition at line 805 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_WriteBlocks_DMA()

HAL_StatusTypeDef HAL_MMC_WriteBlocks_DMA ( MMC_HandleTypeDef hmmc,
uint8_t *  pData,
uint32_t  BlockAdd,
uint32_t  NumberOfBlocks 
)

Writes block(s) to a specified address in a card. The Data transfer is managed by DMA mode.

Note
This API should be followed by a check on the card state through HAL_MMC_GetCardState().
You could also check the DMA transfer process through the MMC Tx interrupt event.
Parameters
hmmcPointer to MMC handle
pDataPointer to the buffer that will contain the data to transmit
BlockAddBlock Address where data will be written
NumberOfBlocksNumber of blocks to write
Return values
HALstatus

Definition at line 1297 of file stm32f4xx_hal_mmc.c.

◆ HAL_MMC_WriteBlocks_IT()

HAL_StatusTypeDef HAL_MMC_WriteBlocks_IT ( MMC_HandleTypeDef hmmc,
uint8_t *  pData,
uint32_t  BlockAdd,
uint32_t  NumberOfBlocks 
)

Writes block(s) to a specified address in a card. The Data transfer is managed in interrupt mode.

Note
This API should be followed by a check on the card state through HAL_MMC_GetCardState().
You could also check the IT transfer process through the MMC Tx interrupt event.
Parameters
hmmcPointer to MMC handle
pDataPointer to the buffer that will contain the data to transmit
BlockAddBlock Address where data will be written
NumberOfBlocksNumber of blocks to write
Return values
HALstatus

Definition at line 1080 of file stm32f4xx_hal_mmc.c.