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

## Macros
#define | __HAL_HMAC_DMA_START_LAST_TRF(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->CTRL, (HMAC_CTRL_LST_TX | HMAC_CTRL_DMA_START))
| Start DMA Last block transfer. More...
#define | __HAL_HMAC_CLEAR_FLAG_IT(__HANDLE__, __FLAG__) SET_BITS((__HANDLE__)->p_instance->INT, (__FLAG__))
| Clear the specified HMAC interrupt flag. More...
#define | __HAL_HMAC_GET_FLAG(__HANDLE__, __FLAG__) ((READ_BITS((__HANDLE__)->p_instance->STAT, (__FLAG__)) != 0U) ? 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->INT, (__FLAG__))

Clear the specified HMAC interrupt flag.

Parameters

  __HANDLE__ | Specifies the HMAC interrupt Handle.
  __FLAG__ | 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 278 of file hal_hmac.h.

## ◆ __HAL_HMAC_DMA_START_LAST_TRF

#define __HAL_HMAC_DMA_START_LAST_TRF | ( |  | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->CTRL, (HMAC_CTRL_LST_TX | HMAC_CTRL_DMA_START))

Start DMA Last block transfer.

Parameters

  __HANDLE__ | Specifies the HMAC interrupt Handle.

Return values

  None |

Definition at line 269 of file hal_hmac.h.

## ◆ __HAL_HMAC_GET_FLAG

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

Check whether the specified HMAC flag is set or not.

Parameters

  __HANDLE__ | Specifies the HMAC Handle.
  __FLAG__ | 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 291 of file hal_hmac.h.