STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Peripheral State functions. More...
Functions | |
HAL_HASH_StateTypeDef | HAL_HASH_GetState (HASH_HandleTypeDef *hhash) |
Return the HASH handle state. | |
HAL_StatusTypeDef | HAL_HASH_GetStatus (HASH_HandleTypeDef *hhash) |
Return the HASH HAL status. | |
void | HAL_HASH_ContextSaving (HASH_HandleTypeDef *hhash, uint8_t *pMemBuffer) |
Save the HASH context in case of processing suspension. | |
void | HAL_HASH_ContextRestoring (HASH_HandleTypeDef *hhash, uint8_t *pMemBuffer) |
Restore the HASH context in case of processing resumption. | |
void | HAL_HASH_SwFeed_ProcessSuspend (HASH_HandleTypeDef *hhash) |
Initiate HASH processing suspension when in polling or interruption mode. | |
HAL_StatusTypeDef | HAL_HASH_DMAFeed_ProcessSuspend (HASH_HandleTypeDef *hhash) |
Suspend the HASH processing when in DMA mode. | |
uint32_t | HAL_HASH_GetError (HASH_HandleTypeDef *hhash) |
Return the HASH handle error code. | |
Peripheral State functions.
=============================================================================== ##### Peripheral State methods ##### =============================================================================== [..] This section permits to get in run-time the state and the peripheral handle status of the peripheral: (+) HAL_HASH_GetState() (+) HAL_HASH_GetStatus() [..] Additionally, this subsection provides functions allowing to save and restore the HASH or HMAC processing context in case of calculation suspension: (+) HAL_HASH_ContextSaving() (+) HAL_HASH_ContextRestoring() [..] This subsection provides functions allowing to suspend the HASH processing (+) when input are fed to the Peripheral by software (++) HAL_HASH_SwFeed_ProcessSuspend() (+) when input are fed to the Peripheral by DMA (++) HAL_HASH_DMAFeed_ProcessSuspend()
HAL_HASH_StateTypeDef HAL_HASH_GetState | ( | HASH_HandleTypeDef * | hhash | ) |
#include <stm32f4xx_hal_hash.h>
Return the HASH handle state.
hhash | HASH handle. |
HAL | HASH state |
Definition at line 1374 of file stm32f4xx_hal_hash.c.
References HASH_HandleTypeDef::State.
HAL_StatusTypeDef HAL_HASH_GetStatus | ( | HASH_HandleTypeDef * | hhash | ) |
#include <stm32f4xx_hal_hash.h>
Return the HASH HAL status.
hhash | HASH handle. |
HAL | status |
Definition at line 1387 of file stm32f4xx_hal_hash.c.
References HASH_HandleTypeDef::Status.
void HAL_HASH_ContextSaving | ( | HASH_HandleTypeDef * | hhash, |
uint8_t * | pMemBuffer ) |
#include <stm32f4xx_hal_hash.h>
Save the HASH context in case of processing suspension.
hhash | HASH handle. |
pMemBuffer | pointer to the memory buffer where the HASH context is saved. |
None |
Definition at line 1405 of file stm32f4xx_hal_hash.c.
References HASH_IT_DCI, HASH_IT_DINI, HASH_NUMBER_OF_CSR_REGISTERS, and UNUSED.
void HAL_HASH_ContextRestoring | ( | HASH_HandleTypeDef * | hhash, |
uint8_t * | pMemBuffer ) |
#include <stm32f4xx_hal_hash.h>
Restore the HASH context in case of processing resumption.
hhash | HASH handle. |
pMemBuffer | pointer to the memory buffer where the HASH context is stored. |
None |
Definition at line 1451 of file stm32f4xx_hal_hash.c.
References __HAL_HASH_INIT, HASH_NUMBER_OF_CSR_REGISTERS, and UNUSED.
void HAL_HASH_SwFeed_ProcessSuspend | ( | HASH_HandleTypeDef * | hhash | ) |
#include <stm32f4xx_hal_hash.h>
Initiate HASH processing suspension when in polling or interruption mode.
hhash | HASH handle. |
None |
Definition at line 1494 of file stm32f4xx_hal_hash.c.
References HAL_HASH_SUSPEND, and HASH_HandleTypeDef::SuspendRequest.
HAL_StatusTypeDef HAL_HASH_DMAFeed_ProcessSuspend | ( | HASH_HandleTypeDef * | hhash | ) |
#include <stm32f4xx_hal_hash.h>
Suspend the HASH processing when in DMA mode.
hhash | HASH handle. |
HAL | status |
Definition at line 1509 of file stm32f4xx_hal_hash.c.
References __HAL_HASH_GET_FLAG, HAL_DMA_Abort(), HAL_ERROR, HAL_HASH_STATE_READY, HAL_HASH_STATE_SUSPENDED, HAL_OK, HAL_TIMEOUT, HASH_DMA_SUSPENSION_WORDS_LIMIT, HASH_FLAG_BUSY, HASH_FLAG_DCIS, HASH_NBW_PUSHED, HASH_TIMEOUTVALUE, HASH_WaitOnFlagUntilTimeout(), HASH_HandleTypeDef::HashInCount, HASH_HandleTypeDef::hdmain, __DMA_HandleTypeDef::Instance, HASH_HandleTypeDef::NbWordsAlreadyPushed, HASH_HandleTypeDef::pHashInBuffPtr, and HASH_HandleTypeDef::State.
uint32_t HAL_HASH_GetError | ( | HASH_HandleTypeDef * | hhash | ) |
#include <stm32f4xx_hal_hash.h>
Return the HASH handle error code.
hhash | pointer to a HASH_HandleTypeDef structure. |
HASH | Error Code |
Definition at line 1630 of file stm32f4xx_hal_hash.c.
References HASH_HandleTypeDef::ErrorCode.