STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
CRYP Exported Macros
Collaboration diagram for CRYP Exported Macros:

Macros

#define __HAL_CRYP_RESET_HANDLE_STATE(__HANDLE__)
 Reset CRYP handle state.
 
#define __HAL_CRYP_ENABLE(__HANDLE__)
 Enable/Disable the CRYP peripheral.
 
#define __HAL_CRYP_DISABLE(__HANDLE__)
 
#define CRYP_FLAG_MASK   0x0000001FU
 Check whether the specified CRYP status flag is set or not.
 
#define __HAL_CRYP_GET_FLAG(__HANDLE__, __FLAG__)
 
#define __HAL_CRYP_CLEAR_FLAG(__HANDLE__, __FLAG__)
 Clear the CRYP pending status flag.
 
#define __HAL_CRYP_GET_IT_SOURCE(__HANDLE__, __INTERRUPT__)
 Check whether the specified CRYP interrupt source is enabled or not.
 
#define __HAL_CRYP_GET_IT(__HANDLE__, __INTERRUPT__)
 Check whether the specified CRYP interrupt is set or not.
 
#define __HAL_CRYP_ENABLE_IT(__HANDLE__, __INTERRUPT__)
 Enable the CRYP interrupt.
 
#define __HAL_CRYP_DISABLE_IT(__HANDLE__, __INTERRUPT__)
 Disable the CRYP interrupt.
 

Detailed Description

Macro Definition Documentation

◆ __HAL_CRYP_RESET_HANDLE_STATE

#define __HAL_CRYP_RESET_HANDLE_STATE ( __HANDLE__)

#include <stm32f4xx_hal_cryp.h>

Value:
( (__HANDLE__)->State = HAL_CRYP_STATE_RESET)
@ HAL_CRYP_STATE_RESET

Reset CRYP handle state.

Parameters
__HANDLE__specifies the CRYP handle.
Return values
None

Definition at line 369 of file stm32f4xx_hal_cryp.h.

◆ __HAL_CRYP_ENABLE

◆ __HAL_CRYP_DISABLE

◆ CRYP_FLAG_MASK

#define CRYP_FLAG_MASK   0x0000001FU

#include <stm32f4xx_hal_cryp.h>

Check whether the specified CRYP status flag is set or not.

Parameters
__FLAG__specifies the flag to check. This parameter can be one of the following values for TinyAES:
  • CRYP_FLAG_BUSY GCM process suspension forbidden
  • CRYP_IT_WRERR Write Error
  • CRYP_IT_RDERR Read Error
  • CRYP_IT_CCF Computation Complete This parameter can be one of the following values for CRYP:
  • CRYP_FLAG_BUSY: The CRYP core is currently processing a block of data or a key preparation (for AES decryption).
  • CRYP_FLAG_IFEM: Input FIFO is empty
  • CRYP_FLAG_IFNF: Input FIFO is not full
  • CRYP_FLAG_INRIS: Input FIFO service raw interrupt is pending
  • CRYP_FLAG_OFNE: Output FIFO is not empty
  • CRYP_FLAG_OFFU: Output FIFO is full
  • CRYP_FLAG_OUTRIS: Input FIFO service raw interrupt is pending
Return values
Thestate of FLAG (TRUE or FALSE).

Definition at line 403 of file stm32f4xx_hal_cryp.h.

◆ __HAL_CRYP_GET_FLAG

#define __HAL_CRYP_GET_FLAG ( __HANDLE__,
__FLAG__ )

#include <stm32f4xx_hal_cryp.h>

Value:
(((__HANDLE__)->Instance->SR & (__FLAG__)) == (__FLAG__))

Definition at line 408 of file stm32f4xx_hal_cryp.h.

Referenced by HAL_CRYP_IRQHandler().

◆ __HAL_CRYP_CLEAR_FLAG

#define __HAL_CRYP_CLEAR_FLAG ( __HANDLE__,
__FLAG__ )

#include <stm32f4xx_hal_cryp.h>

Value:
SET_BIT((__HANDLE__)->Instance->CR, (__FLAG__))

Clear the CRYP pending status flag.

Parameters
__FLAG__specifies the flag to clear. This parameter can be one of the following values:
__HANDLE__specifies the CRYP handle.
Return values
None

Definition at line 421 of file stm32f4xx_hal_cryp.h.

Referenced by CRYP_AES_Decrypt(), CRYP_AES_Decrypt_DMA(), CRYP_AES_Decrypt_IT(), CRYP_AES_ProcessData(), CRYP_AESCCM_Process(), CRYP_AESCCM_Process_DMA(), CRYP_AESGCM_Process(), CRYP_AESGCM_Process_DMA(), CRYP_AESGCM_Process_IT(), CRYP_DMAError(), CRYP_DMAInCplt(), CRYP_DMAOutCplt(), CRYP_GCMCCM_SetHeaderPhase(), CRYP_GCMCCM_SetHeaderPhase_DMA(), CRYP_Workaround(), HAL_CRYP_IRQHandler(), HAL_CRYP_SetConfig(), HAL_CRYPEx_AESCCM_GenerateAuthTAG(), and HAL_CRYPEx_AESGCM_GenerateAuthTAG().

◆ __HAL_CRYP_GET_IT_SOURCE

#define __HAL_CRYP_GET_IT_SOURCE ( __HANDLE__,
__INTERRUPT__ )

#include <stm32f4xx_hal_cryp.h>

Value:
(((__HANDLE__)->Instance->CR\
& (__INTERRUPT__)) == (__INTERRUPT__))

Check whether the specified CRYP interrupt source is enabled or not.

Parameters
__INTERRUPT__CRYP interrupt source to check This parameter can be one of the following values for TinyAES:
__HANDLE__specifies the CRYP handle.
Return values
Stateof interruption (TRUE or FALSE).

Definition at line 433 of file stm32f4xx_hal_cryp.h.

Referenced by HAL_CRYP_IRQHandler().

◆ __HAL_CRYP_GET_IT

#define __HAL_CRYP_GET_IT ( __HANDLE__,
__INTERRUPT__ )

#include <stm32f4xx_hal_cryp.h>

Value:
(((__HANDLE__)->Instance->SR & (__INTERRUPT__)) == (__INTERRUPT__))

Check whether the specified CRYP interrupt is set or not.

Parameters
__INTERRUPT__specifies the interrupt to check. This parameter can be one of the following values for TinyAES:
  • CRYP_IT_WRERR Write Error
  • CRYP_IT_RDERR Read Error
  • CRYP_IT_CCF Computation Complete This parameter can be one of the following values for CRYP:
  • CRYP_IT_INI: Input FIFO service masked interrupt status
  • CRYP_IT_OUTI: Output FIFO service masked interrupt status
__HANDLE__specifies the CRYP handle.
Return values
Thestate of INTERRUPT (TRUE or FALSE).

Definition at line 454 of file stm32f4xx_hal_cryp.h.

◆ __HAL_CRYP_ENABLE_IT

#define __HAL_CRYP_ENABLE_IT ( __HANDLE__,
__INTERRUPT__ )

#include <stm32f4xx_hal_cryp.h>

Value:
(((__HANDLE__)->Instance->CR) |= (__INTERRUPT__))

Enable the CRYP interrupt.

Parameters
__INTERRUPT__CRYP Interrupt. This parameter can be one of the following values for TinyAES:
  • CRYP_IT_ERRIE Error interrupt (used for RDERR and WRERR)
  • CRYP_IT_CCFIE Computation Complete interrupt This parameter can be one of the following values for CRYP: @ CRYP_IT_INI : Input FIFO service interrupt mask. @ CRYP_IT_OUTI : Output FIFO service interrupt mask.CRYP interrupt.
__HANDLE__specifies the CRYP handle.
Return values
None

Definition at line 472 of file stm32f4xx_hal_cryp.h.

Referenced by CRYP_AES_Decrypt_IT(), CRYP_AES_Encrypt_IT(), CRYP_AESCCM_Process_IT(), CRYP_AESGCM_Process_IT(), CRYP_GCMCCM_SetHeaderPhase_IT(), HAL_CRYP_Decrypt_IT(), and HAL_CRYP_Encrypt_IT().

◆ __HAL_CRYP_DISABLE_IT

#define __HAL_CRYP_DISABLE_IT ( __HANDLE__,
__INTERRUPT__ )

#include <stm32f4xx_hal_cryp.h>

Value:
(((__HANDLE__)->Instance->CR) &= ~(__INTERRUPT__))

Disable the CRYP interrupt.

Parameters
__INTERRUPT__CRYP Interrupt. This parameter can be one of the following values for TinyAES:
  • CRYP_IT_ERRIE Error interrupt (used for RDERR and WRERR)
  • CRYP_IT_CCFIE Computation Complete interrupt This parameter can be one of the following values for CRYP: @ CRYP_IT_INI : Input FIFO service interrupt mask. @ CRYP_IT_OUTI : Output FIFO service interrupt mask.CRYP interrupt.
__HANDLE__specifies the CRYP handle.
Return values
None

Definition at line 490 of file stm32f4xx_hal_cryp.h.

Referenced by CRYP_AES_IT(), CRYP_AESGCM_Process_IT(), CRYP_GCMCCM_SetHeaderPhase_IT(), and CRYP_GCMCCM_SetPayloadPhase_IT().