STM32L443xx HAL User Manual
|
Defines | |
#define | __HAL_CRYP_RESET_HANDLE_STATE(__HANDLE__) |
Reset CRYP handle state. | |
#define | __HAL_CRYP_ENABLE(__HANDLE__) ((__HANDLE__)->Instance->CR |= AES_CR_EN) |
Enable the CRYP AES peripheral. | |
#define | __HAL_CRYP_DISABLE(__HANDLE__) ((__HANDLE__)->Instance->CR &= ~AES_CR_EN) |
Disable the CRYP AES peripheral. | |
#define | __HAL_CRYP_SET_OPERATINGMODE(__HANDLE__, __OPERATING_MODE__) MODIFY_REG((__HANDLE__)->Instance->CR, AES_CR_MODE, (__OPERATING_MODE__)) |
Set the algorithm operating mode. | |
#define | __HAL_CRYP_SET_CHAININGMODE(__HANDLE__, __CHAINING_MODE__) MODIFY_REG((__HANDLE__)->Instance->CR, AES_CR_CHMOD, (__CHAINING_MODE__)) |
Set the algorithm chaining mode. | |
#define | __HAL_CRYP_GET_FLAG(__HANDLE__, __FLAG__) (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
Check whether the specified CRYP status flag is set or not. | |
#define | __HAL_CRYP_CLEAR_FLAG(__HANDLE__, __FLAG__) SET_BIT((__HANDLE__)->Instance->CR, (__FLAG__)) |
Clear the CRYP pending status flag. | |
#define | __HAL_CRYP_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CR & (__INTERRUPT__)) == (__INTERRUPT__)) |
Check whether the specified CRYP interrupt source is enabled or not. | |
#define | __HAL_CRYP_GET_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->SR & (__INTERRUPT__)) == (__INTERRUPT__)) |
Check whether the specified CRYP interrupt is set or not. | |
#define | __HAL_CRYP_CLEAR_IT(__HANDLE__, __INTERRUPT__) SET_BIT((__HANDLE__)->Instance->CR, (__INTERRUPT__)) |
Clear the CRYP pending interrupt. | |
#define | __HAL_CRYP_ENABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CR) |= (__INTERRUPT__)) |
Enable the CRYP interrupt. | |
#define | __HAL_CRYP_DISABLE_IT(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->CR) &= ~(__INTERRUPT__)) |
Disable the CRYP interrupt. |
#define __HAL_CRYP_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | SET_BIT((__HANDLE__)->Instance->CR, (__FLAG__)) |
Clear the CRYP pending status flag.
__HANDLE__ | specifies the CRYP handle. |
__FLAG__ | specifies the flag to clear. This parameter can be one of the following values:
|
None |
Definition at line 448 of file stm32l4xx_hal_cryp.h.
Referenced by CRYP_AES_Auth_IT(), CRYP_Authentication_DMAError(), CRYP_Authentication_DMAOutCplt(), CRYP_DMAError(), CRYP_DMAOutCplt(), CRYP_Padding(), CRYP_ProcessData(), CRYP_ReadKey(), HAL_CRYP_IRQHandler(), HAL_CRYPEx_AES_Auth(), and HAL_CRYPEx_AES_Auth_DMA().
#define __HAL_CRYP_CLEAR_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | SET_BIT((__HANDLE__)->Instance->CR, (__INTERRUPT__)) |
Clear the CRYP pending interrupt.
__HANDLE__ | specifies the CRYP handle. |
__INTERRUPT__ | specifies the IT to clear. This parameter can be one of the following values:
|
None |
Definition at line 484 of file stm32l4xx_hal_cryp.h.
#define __HAL_CRYP_DISABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR &= ~AES_CR_EN) |
Disable the CRYP AES peripheral.
__HANDLE__ | specifies the CRYP handle. |
None |
Definition at line 395 of file stm32l4xx_hal_cryp.h.
Referenced by CRYP_AES_Auth_IT(), CRYP_DMAOutCplt(), HAL_CRYP_DeInit(), HAL_CRYP_Init(), HAL_CRYPEx_AES_Auth(), and HAL_CRYPEx_AES_Auth_DMA().
#define __HAL_CRYP_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (((__HANDLE__)->Instance->CR) &= ~(__INTERRUPT__)) |
Disable the CRYP interrupt.
__HANDLE__ | specifies the CRYP handle. |
__INTERRUPT__ | CRYP Interrupt. This parameter can be one of the following values:
|
None |
Definition at line 508 of file stm32l4xx_hal_cryp.h.
Referenced by CRYP_AES_Auth_IT(), CRYP_AES_IT(), and HAL_CRYP_IRQHandler().
#define __HAL_CRYP_ENABLE | ( | __HANDLE__ | ) | ((__HANDLE__)->Instance->CR |= AES_CR_EN) |
Enable the CRYP AES peripheral.
__HANDLE__ | specifies the CRYP handle. |
None |
Definition at line 388 of file stm32l4xx_hal_cryp.h.
Referenced by CRYP_Authentication_SetDMAConfig(), CRYP_SetDMAConfig(), HAL_CRYP_Init(), HAL_CRYPEx_AES_Auth(), HAL_CRYPEx_AES_Auth_DMA(), and HAL_CRYPEx_AES_Auth_IT().
#define __HAL_CRYP_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (((__HANDLE__)->Instance->CR) |= (__INTERRUPT__)) |
Enable the CRYP interrupt.
__HANDLE__ | specifies the CRYP handle. |
__INTERRUPT__ | CRYP Interrupt. This parameter can be one of the following values:
|
None |
Definition at line 496 of file stm32l4xx_hal_cryp.h.
Referenced by HAL_CRYPEx_AES_Auth_IT(), and HAL_CRYPEx_AES_IT().
#define __HAL_CRYP_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ | |||
) | (((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__)) |
Check whether the specified CRYP status flag is set or not.
__HANDLE__ | specifies the CRYP handle. |
__FLAG__ | specifies the flag to check. This parameter can be one of the following values:
|
The | state of __FLAG__ (TRUE or FALSE). |
Definition at line 437 of file stm32l4xx_hal_cryp.h.
Referenced by HAL_CRYP_IRQHandler().
#define __HAL_CRYP_GET_IT | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (((__HANDLE__)->Instance->SR & (__INTERRUPT__)) == (__INTERRUPT__)) |
Check whether the specified CRYP interrupt is set or not.
__HANDLE__ | specifies the CRYP handle. |
__INTERRUPT__ | specifies the interrupt to check. This parameter can be one of the following values:
|
The | state of __INTERRUPT__ (TRUE or FALSE). |
Definition at line 472 of file stm32l4xx_hal_cryp.h.
#define __HAL_CRYP_GET_IT_SOURCE | ( | __HANDLE__, | |
__INTERRUPT__ | |||
) | (((__HANDLE__)->Instance->CR & (__INTERRUPT__)) == (__INTERRUPT__)) |
Check whether the specified CRYP interrupt source is enabled or not.
__HANDLE__ | specifies the CRYP handle. |
__INTERRUPT__ | CRYP interrupt source to check This parameter can be one of the following values:
|
State | of interruption (TRUE or FALSE). |
Definition at line 460 of file stm32l4xx_hal_cryp.h.
Referenced by HAL_CRYP_IRQHandler().
#define __HAL_CRYP_RESET_HANDLE_STATE | ( | __HANDLE__ | ) |
do{\ (__HANDLE__)->State = HAL_CRYP_STATE_RESET;\ (__HANDLE__)->MspInitCallback = NULL; \ (__HANDLE__)->MspDeInitCallback = NULL; \ }while(0)
Reset CRYP handle state.
__HANDLE__ | specifies the CRYP handle. |
None |
Definition at line 374 of file stm32l4xx_hal_cryp.h.
#define __HAL_CRYP_SET_CHAININGMODE | ( | __HANDLE__, | |
__CHAINING_MODE__ | |||
) | MODIFY_REG((__HANDLE__)->Instance->CR, AES_CR_CHMOD, (__CHAINING_MODE__)) |
Set the algorithm chaining mode.
__HANDLE__ | specifies the CRYP handle. |
__CHAINING_MODE__ | specifies the chaining mode This parameter can be one of the following values:
|
None |
Definition at line 423 of file stm32l4xx_hal_cryp.h.
Referenced by CRYP_AES_Auth_IT(), CRYP_Padding(), and HAL_CRYPEx_AES_Auth_IT().
#define __HAL_CRYP_SET_OPERATINGMODE | ( | __HANDLE__, | |
__OPERATING_MODE__ | |||
) | MODIFY_REG((__HANDLE__)->Instance->CR, AES_CR_MODE, (__OPERATING_MODE__)) |
Set the algorithm operating mode.
__HANDLE__ | specifies the CRYP handle. |
__OPERATING_MODE__ | specifies the operating mode This parameter can be one of the following values:
|
None |
Definition at line 408 of file stm32l4xx_hal_cryp.h.