STM32F479xx HAL User Manual
|
Defines | |
#define | __HAL_HASH_GET_FLAG(__FLAG__) |
Check whether or not the specified HASH flag is set. | |
#define | __HAL_HASH_CLEAR_FLAG(__FLAG__) CLEAR_BIT(HASH->SR, (__FLAG__)) |
Clear the specified HASH flag. | |
#define | __HAL_HASH_ENABLE_IT(__INTERRUPT__) SET_BIT(HASH->IMR, (__INTERRUPT__)) |
Enable the specified HASH interrupt. | |
#define | __HAL_HASH_DISABLE_IT(__INTERRUPT__) CLEAR_BIT(HASH->IMR, (__INTERRUPT__)) |
Disable the specified HASH interrupt. | |
#define | __HAL_HASH_RESET_HANDLE_STATE(__HANDLE__) |
Reset HASH handle state. | |
#define | __HAL_HASH_RESET_HANDLE_STATUS(__HANDLE__) ((__HANDLE__)->Status = HAL_OK) |
Reset HASH handle status. | |
#define | __HAL_HASH_SET_MDMAT() SET_BIT(HASH->CR, HASH_CR_MDMAT) |
Enable the multi-buffer DMA transfer mode. | |
#define | __HAL_HASH_RESET_MDMAT() CLEAR_BIT(HASH->CR, HASH_CR_MDMAT) |
Disable the multi-buffer DMA transfer mode. | |
#define | __HAL_HASH_START_DIGEST() SET_BIT(HASH->STR, HASH_STR_DCAL) |
Start the digest computation. | |
#define | __HAL_HASH_SET_NBVALIDBITS(__SIZE__) MODIFY_REG(HASH->STR, HASH_STR_NBLW, 8U * ((__SIZE__) % 4U)) |
Set the number of valid bits in the last word written in data register DIN. | |
#define | __HAL_HASH_INIT() SET_BIT(HASH->CR, HASH_CR_INIT) |
Reset the HASH core. |
#define __HAL_HASH_CLEAR_FLAG | ( | __FLAG__ | ) | CLEAR_BIT(HASH->SR, (__FLAG__)) |
Clear the specified HASH flag.
__FLAG__ | specifies the flag to clear. This parameter can be one of the following values:
|
None |
Definition at line 295 of file stm32f4xx_hal_hash.h.
#define __HAL_HASH_DISABLE_IT | ( | __INTERRUPT__ | ) | CLEAR_BIT(HASH->IMR, (__INTERRUPT__)) |
Disable the specified HASH interrupt.
__INTERRUPT__ | specifies the HASH interrupt source to disable. This parameter can be one of the following values:
|
None |
Definition at line 314 of file stm32f4xx_hal_hash.h.
Referenced by HASH_IT(), and HASH_Write_Block_Data().
#define __HAL_HASH_ENABLE_IT | ( | __INTERRUPT__ | ) | SET_BIT(HASH->IMR, (__INTERRUPT__)) |
Enable the specified HASH interrupt.
__INTERRUPT__ | specifies the HASH interrupt source to enable. This parameter can be one of the following values:
|
None |
Definition at line 305 of file stm32f4xx_hal_hash.h.
Referenced by HASH_Accumulate_IT(), HASH_IT(), HASH_Start_IT(), and HMAC_Start_IT().
#define __HAL_HASH_GET_FLAG | ( | __FLAG__ | ) |
(((__FLAG__) > 8U) ? \ ((HASH->CR & (__FLAG__)) == (__FLAG__)) :\ ((HASH->SR & (__FLAG__)) == (__FLAG__)) )
Check whether or not the specified HASH flag is set.
__FLAG__ | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of __FLAG__ (TRUE or FALSE). |
Definition at line 283 of file stm32f4xx_hal_hash.h.
Referenced by HAL_HASH_DMAFeed_ProcessSuspend(), HASH_Accumulate_IT(), HASH_IT(), HASH_Start_IT(), HASH_WaitOnFlagUntilTimeout(), and HASH_WriteData().
#define __HAL_HASH_INIT | ( | ) | SET_BIT(HASH->CR, HASH_CR_INIT) |
Reset the HASH core.
None |
Definition at line 369 of file stm32f4xx_hal_hash.h.
Referenced by HAL_HASH_ContextRestoring().
#define __HAL_HASH_RESET_HANDLE_STATE | ( | __HANDLE__ | ) |
do{\ (__HANDLE__)->State = HAL_HASH_STATE_RESET;\ (__HANDLE__)->MspInitCallback = NULL; \ (__HANDLE__)->MspDeInitCallback = NULL; \ }while(0)
Reset HASH handle state.
__HANDLE__ | HASH handle. |
None |
Definition at line 322 of file stm32f4xx_hal_hash.h.
#define __HAL_HASH_RESET_HANDLE_STATUS | ( | __HANDLE__ | ) | ((__HANDLE__)->Status = HAL_OK) |
Reset HASH handle status.
__HANDLE__ | HASH handle. |
None |
Definition at line 336 of file stm32f4xx_hal_hash.h.
#define __HAL_HASH_RESET_MDMAT | ( | ) | CLEAR_BIT(HASH->CR, HASH_CR_MDMAT) |
Disable the multi-buffer DMA transfer mode.
None |
Definition at line 349 of file stm32f4xx_hal_hash.h.
Referenced by HAL_HASH_Init(), and HMAC_Start_DMA().
#define __HAL_HASH_SET_MDMAT | ( | ) | SET_BIT(HASH->CR, HASH_CR_MDMAT) |
Enable the multi-buffer DMA transfer mode.
None |
Definition at line 343 of file stm32f4xx_hal_hash.h.
Referenced by HASH_DMAXferCplt().
#define __HAL_HASH_SET_NBVALIDBITS | ( | __SIZE__ | ) | MODIFY_REG(HASH->STR, HASH_STR_NBLW, 8U * ((__SIZE__) % 4U)) |
Set the number of valid bits in the last word written in data register DIN.
__SIZE__ | size in bytes of last data written in Data register. |
None |
Definition at line 363 of file stm32f4xx_hal_hash.h.
Referenced by HASH_DMAXferCplt(), HASH_IT(), HASH_Start(), HASH_Start_DMA(), HASH_Start_IT(), HMAC_Processing(), HMAC_Start_DMA(), and HMAC_Start_IT().
#define __HAL_HASH_START_DIGEST | ( | ) | SET_BIT(HASH->STR, HASH_STR_DCAL) |
Start the digest computation.
None |
Definition at line 356 of file stm32f4xx_hal_hash.h.
Referenced by HASH_Start(), HASH_Start_IT(), HASH_Write_Block_Data(), and HMAC_Processing().