Macros
AES Exported Macros
Peripheral Driver » HAL Driver » AES » Defines
Collaboration diagram for AES Exported Macros:

## Macros
#define | __HAL_AES_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->state = HAL_AES_STATE_RESET)
| Reset AES handle states. More...
#define | __HAL_AES_ENABLE(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->CTRL, AES_CTRL_ENABLE)
| Enable the specified AES peripheral. More...
#define | __HAL_AES_DISABLE(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->CTRL, AES_CTRL_ENABLE)
| Disable the specified AES peripheral. More...
#define | __HAL_AES_ENABLE_IT(__HANDLE__) ll_aes_enable_it_done((__HANDLE__)->p_instance)
| Enable the AES interrupt. More...
#define | __HAL_AES_DISABLE_IT(__HANDLE__) ll_aes_disable_it_done((__HANDLE__)->p_instance)
| Disable the AES interrupt. More...
#define | __HAL_AES_GET_FLAG_IT(__HANDLE__, __FLAG__) (READ_BITS((__HANDLE__)->p_instance->INTERRUPT, (__FLAG__)) == (__FLAG__))
| Check whether the specified AES interrupt flag is set or not. More...
#define | __HAL_AES_CLEAR_FLAG_IT(__HANDLE__, __FLAG__) SET_BITS((__HANDLE__)->p_instance->INTERRUPT, (__FLAG__))
| Clear the specified AES interrupt flag. More...
#define | __HAL_AES_GET_FLAG(__HANDLE__, __FLAG__) ((READ_BITS((__HANDLE__)->p_instance->STATUS, (__FLAG__)) != 0) ? SET : RESET)
| Check whether the specified AES flag is set or not. More...

## Detailed Description

## Macro Definition Documentation

## ◆ __HAL_AES_CLEAR_FLAG_IT

#define __HAL_AES_CLEAR_FLAG_IT | ( |  | __HANDLE__,
|  |  | __FLAG__
| ) |  | SET_BITS((__HANDLE__)->p_instance->INTERRUPT, (__FLAG__))

Clear the specified AES interrupt flag.

Parameters

  <strong>HANDLE</strong> | Specifies the AES interrupt Handle.
  <strong>FLAG</strong> | Specifies the flag to clear. This parameter can be the following value: AES_IT_DONE Encrypted or Decrypted Data Done Interrupt

Return values

  None |

Definition at line 306 of file gr55xx_hal_aes.h.

## ◆ __HAL_AES_DISABLE

#define __HAL_AES_DISABLE | ( |  | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->CTRL, AES_CTRL_ENABLE)

Disable the specified AES peripheral.

Parameters

  <strong>HANDLE</strong> | Specifies the AES Handle.

Return values

  None |

Definition at line 276 of file gr55xx_hal_aes.h.

## ◆ __HAL_AES_DISABLE_IT

#define __HAL_AES_DISABLE_IT | ( |  | __HANDLE__ | ) | ll_aes_disable_it_done((__HANDLE__)->p_instance)

Disable the AES interrupt.

Parameters

  <strong>HANDLE</strong> | Specifies the AES Handle.

Return values

  None |

Definition at line 288 of file gr55xx_hal_aes.h.

## ◆ __HAL_AES_ENABLE

#define __HAL_AES_ENABLE | ( |  | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->CTRL, AES_CTRL_ENABLE)

Enable the specified AES peripheral.

Parameters

  <strong>HANDLE</strong> | Specifies the AES Handle.

Return values

  None |

Definition at line 270 of file gr55xx_hal_aes.h.

## ◆ __HAL_AES_ENABLE_IT

#define __HAL_AES_ENABLE_IT | ( |  | __HANDLE__ | ) | ll_aes_enable_it_done((__HANDLE__)->p_instance)

Enable the AES interrupt.

Parameters

  <strong>HANDLE</strong> | Specifies the AES Handle.

Return values

  None |

Definition at line 282 of file gr55xx_hal_aes.h.

## ◆ __HAL_AES_GET_FLAG

#define __HAL_AES_GET_FLAG | ( |  | __HANDLE__,
|  |  | __FLAG__
| ) |  | ((READ_BITS((__HANDLE__)->p_instance->STATUS, (__FLAG__)) != 0) ? SET : RESET)

Check whether the specified AES flag is set or not.

Parameters

  <strong>HANDLE</strong> | Specifies the AES Handle.
  <strong>FLAG</strong> | Specifies the flag to check. This parameter can be one of the following values: AES_FLAG_DATAREADY Data ready flag AES_FLAG_DMA_DONE DMA transfer done flag AES_FLAG_DMA_ERR DMA transfer error flag AES_FLAG_KEY_VALID Key valid flag

Return values

  The | new state of FLAG (TRUE or FALSE).

Definition at line 318 of file gr55xx_hal_aes.h.

## ◆ __HAL_AES_GET_FLAG_IT

#define __HAL_AES_GET_FLAG_IT | ( |  | __HANDLE__,
|  |  | __FLAG__
| ) |  | (READ_BITS((__HANDLE__)->p_instance->INTERRUPT, (__FLAG__)) == (__FLAG__))

Check whether the specified AES interrupt flag is set or not.

Parameters

  <strong>HANDLE</strong> | Specifies the AES Handle.
  <strong>FLAG</strong> | Specifies the interrupt flag to check. This parameter can be the following value: AES_IT_DONE Encrypted or Decrypted Data Done Interrupt

Return values

  The | new state of FLAG (TRUE or FALSE).

Definition at line 297 of file gr55xx_hal_aes.h.

## ◆ __HAL_AES_RESET_HANDLE_STATE

#define __HAL_AES_RESET_HANDLE_STATE | ( |  | __HANDLE__ | ) | ((__HANDLE__)->state = HAL_AES_STATE_RESET)

Reset AES handle states.

Parameters

  <strong>HANDLE</strong> | AES handle.

Return values

  None |

Definition at line 264 of file gr55xx_hal_aes.h.