Macros
HMAC Exported Macros
Peripheral Driver » HAL Driver » HMAC » Defines

## Macros
#define | __HAL_HMAC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->state = HAL_HMAC_STATE_RESET)
| Reset HMAC handle states. More...
#define | __HAL_HMAC_ENABLE(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->CTRL, HMAC_CTRL_ENABLE)
| Enable the specified HMAC peripheral. More...
#define | __HAL_HMAC_DISABLE(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->CTRL, HMAC_CTRL_ENABLE)
| Disable the specified HMAC peripheral. More...
#define | __HAL_HMAC_ENABLE_IT(__HANDLE__) ll_hmac_enable_it_done((__HANDLE__)->p_instance)
| Enable the HMAC interrupt. More...
#define | __HAL_HMAC_DISABLE_IT(__HANDLE__) ll_hmac_disable_it_done((__HANDLE__)->p_instance)
| Disable the HMAC interrupt. More...
#define | __HAL_HMAC_GET_FLAG_IT(__HANDLE__, __FLAG__) (READ_BITS((__HANDLE__)->p_instance->INTERRUPT, (__FLAG__)) == (__FLAG__))
| Check whether the specified HMAC interrupt flag is set or not. More...
#define | __HAL_HMAC_CLEAR_FLAG_IT(__HANDLE__, __FLAG__) SET_BITS((__HANDLE__)->p_instance->INTERRUPT, (__FLAG__))
| Clear the specified HMAC interrupt flag. More...
#define | __HAL_HMAC_GET_FLAG(__HANDLE__, __FLAG__) ((READ_BITS((__HANDLE__)->p_instance->STATUS, (__FLAG__)) != 0) ? SET : RESET)
| Check whether the specified HMAC flag is set or not. More...

## Detailed Description

## Macro Definition Documentation

## ◆ __HAL_HMAC_CLEAR_FLAG_IT

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

Clear the specified HMAC interrupt flag.

Parameters

  <strong>HANDLE</strong> | Specifies the HMAC interrupt Handle.
  <strong>FLAG</strong> | Specifies the flag to clear. This parameter can be one of the following values: HMAC_IT_DONE Encrypted or Decrypted Data Done Interrupt

Return values

  None |

Definition at line 308 of file gr55xx_hal_hmac.h.

## ◆ __HAL_HMAC_DISABLE

#define __HAL_HMAC_DISABLE | ( |  | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->CTRL, HMAC_CTRL_ENABLE)

Disable the specified HMAC peripheral.

Parameters

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

Return values

  None |

Definition at line 278 of file gr55xx_hal_hmac.h.

## ◆ __HAL_HMAC_DISABLE_IT

#define __HAL_HMAC_DISABLE_IT | ( |  | __HANDLE__ | ) | ll_hmac_disable_it_done((__HANDLE__)->p_instance)

Disable the HMAC interrupt.

Parameters

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

Return values

  None |

Definition at line 290 of file gr55xx_hal_hmac.h.

## ◆ __HAL_HMAC_ENABLE

#define __HAL_HMAC_ENABLE | ( |  | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->CTRL, HMAC_CTRL_ENABLE)

Enable the specified HMAC peripheral.

Parameters

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

Return values

  None |

Definition at line 272 of file gr55xx_hal_hmac.h.

## ◆ __HAL_HMAC_ENABLE_IT

#define __HAL_HMAC_ENABLE_IT | ( |  | __HANDLE__ | ) | ll_hmac_enable_it_done((__HANDLE__)->p_instance)

Enable the HMAC interrupt.

Parameters

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

Return values

  None |

Definition at line 284 of file gr55xx_hal_hmac.h.

## ◆ __HAL_HMAC_GET_FLAG

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

Check whether the specified HMAC flag is set or not.

Parameters

  <strong>HANDLE</strong> | Specifies the HMAC Handle.
  <strong>FLAG</strong> | Specifies the flag to check. This parameter can be one of the following values: HMAC_FLAG_DATAREADY_SHA Data ready (SHA mode) flag HMAC_FLAG_DATAREADY_HMAC Data ready (HMAC mode) flag HMAC_FLAG_DMA_DONE DMA transfer done flag HMAC_FLAG_DMA_ERR DMA transfer error flag HMAC_FLAG_KEY_VALID Key valid flag

Return values

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

Definition at line 321 of file gr55xx_hal_hmac.h.

## ◆ __HAL_HMAC_GET_FLAG_IT

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

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

Parameters

  <strong>HANDLE</strong> | Specifies the HMAC Handle.
  <strong>FLAG</strong> | Specifies the interrupt flag to check. This parameter can be one of the following values: HMAC_IT_DONE Encrypted or Decrypted Data Done Interrupt

Return values

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

Definition at line 299 of file gr55xx_hal_hmac.h.

## ◆ __HAL_HMAC_RESET_HANDLE_STATE

#define __HAL_HMAC_RESET_HANDLE_STATE | ( |  | __HANDLE__ | ) | ((__HANDLE__)->state = HAL_HMAC_STATE_RESET)

Reset HMAC handle states.

Parameters

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

Return values

  None |

Definition at line 266 of file gr55xx_hal_hmac.h.