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

## Macros
#define | __HAL_PKC_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->state = HAL_PKC_STATE_RESET)
| Reset PKC handle states. More...
#define | __HAL_PKC_RESET(__HANDLE__)
| Reset the specified PKC peripheral. More...
#define | __HAL_PKC_ENABLE(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->CTRL, PKC_CTRL_EN)
| Enable the specified PKC peripheral. More...
#define | __HAL_PKC_DISABLE(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->CTRL, PKC_CTRL_EN)
| Disable the specified PKC peripheral. More...
#define | __HAL_PKC_ENABLE_IT(__HANDLE__, __INTERRUPT__) SET_BITS((__HANDLE__)->p_instance->INT_EN, (__INTERRUPT__))
| Enable the specified PKC interrupts. More...
#define | __HAL_PKC_DISABLE_IT(__HANDLE__, __INTERRUPT__) CLEAR_BITS((__HANDLE__)->p_instance->INT_EN, (__INTERRUPT__))
| Disable the specified PKC interrupts. More...
#define | __HAL_PKC_GET_FLAG_IT(__HANDLE__, __FLAG__) (READ_BITS((__HANDLE__)->p_instance->INT_STAT, (__FLAG__)) == (__FLAG__))
| Check whether the specified PKC interrupt flag is set or not. More...
#define | __HAL_PKC_CLEAR_FLAG_IT(__HANDLE__, __FLAG__) SET_BITS((__HANDLE__)->p_instance->INT_STAT, (__FLAG__))
| Clear the specified PKC interrupt flag. More...
#define | __HAL_PKC_GET_FLAG(__HANDLE__, __FLAG__) ((READ_BITS((__HANDLE__)->p_instance->STAT, (__FLAG__)) != 0) ? SET : RESET)
| Check whether the specified PKC flag is set or not. More...

## Detailed Description

## Macro Definition Documentation

## ◆ __HAL_PKC_CLEAR_FLAG_IT

#define __HAL_PKC_CLEAR_FLAG_IT | ( |  | __HANDLE__,
|  |  | __FLAG__
| ) |  | SET_BITS((__HANDLE__)->p_instance->INT_STAT, (__FLAG__))

Clear the specified PKC interrupt flag.

Parameters

  <strong>HANDLE</strong> | Specifies the PKC Handle.
  <strong>FLAG</strong> | Specifies the interrupt flag to clear. This parameter can be one of the following values: PKC_IT_DONE Operation Done Interrupt source PKC_IT_ERR Operation Error Interrupt source PKC_IT_OVF Big Integer Result Overflow Interrupt source

Return values

  None |

Definition at line 450 of file gr55xx_hal_pkc.h.

## ◆ __HAL_PKC_DISABLE

#define __HAL_PKC_DISABLE | ( |  | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->CTRL, PKC_CTRL_EN)

Disable the specified PKC peripheral.

Parameters

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

Return values

  None |

Definition at line 402 of file gr55xx_hal_pkc.h.

## ◆ __HAL_PKC_DISABLE_IT

#define __HAL_PKC_DISABLE_IT | ( |  | __HANDLE__,
|  |  | __INTERRUPT__
| ) |  | CLEAR_BITS((__HANDLE__)->p_instance->INT_EN, (__INTERRUPT__))

Disable the specified PKC interrupts.

Parameters

  <strong>HANDLE</strong> | Specifies the PKC Handle.
  <strong>INTERRUPT</strong> | Specifies the interrupt source to disable. This parameter can be one of the following values: PKC_IT_DONE Operation Done Interrupt source PKC_IT_ERR Operation Error Interrupt source PKC_IT_OVF Big Integer Result Overflow Interrupt source

Return values

  None |

Definition at line 426 of file gr55xx_hal_pkc.h.

## ◆ __HAL_PKC_ENABLE

#define __HAL_PKC_ENABLE | ( |  | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->CTRL, PKC_CTRL_EN)

Enable the specified PKC peripheral.

Parameters

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

Return values

  None |

Definition at line 396 of file gr55xx_hal_pkc.h.

## ◆ __HAL_PKC_ENABLE_IT

#define __HAL_PKC_ENABLE_IT | ( |  | __HANDLE__,
|  |  | __INTERRUPT__
| ) |  | SET_BITS((__HANDLE__)->p_instance->INT_EN, (__INTERRUPT__))

Enable the specified PKC interrupts.

Parameters

  <strong>HANDLE</strong> | Specifies the PKC Handle.
  <strong>INTERRUPT</strong> | Specifies the interrupt source to enable. This parameter can be one of the following values: PKC_IT_DONE Operation Done Interrupt source PKC_IT_ERR Operation Error Interrupt source PKC_IT_OVF Big Integer Result Overflow Interrupt source

Return values

  None |

Definition at line 414 of file gr55xx_hal_pkc.h.

## ◆ __HAL_PKC_GET_FLAG

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

Check whether the specified PKC flag is set or not.

Parameters

  <strong>HANDLE</strong> | Specifies the PKC Handle.
  <strong>FLAG</strong> | Specifies the flag to check. This parameter can be one of the following values: PKC_FLAG_BUSY Busy flag

Return values

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

Definition at line 460 of file gr55xx_hal_pkc.h.

## ◆ __HAL_PKC_GET_FLAG_IT

#define __HAL_PKC_GET_FLAG_IT | ( |  | __HANDLE__,
|  |  | __FLAG__
| ) |  | (READ_BITS((__HANDLE__)->p_instance->INT_STAT, (__FLAG__)) == (__FLAG__))

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

Parameters

  <strong>HANDLE</strong> | Specifies the PKC Handle.
  <strong>FLAG</strong> | Specifies the interrupt flag to check. This parameter can be one of the following values: PKC_IT_DONE Operation Done Interrupt source PKC_IT_ERR Operation Error Interrupt source PKC_IT_OVF Big Integer Result Overflow Interrupt source

Return values

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

Definition at line 438 of file gr55xx_hal_pkc.h.

## ◆ __HAL_PKC_RESET

#define __HAL_PKC_RESET | ( |  | __HANDLE__ | ) |

Value:
CLEAR_BITS((__HANDLE__)->p_instance->CTRL, PKC_CTRL_RST); \
SET_BITS((__HANDLE__)->p_instance->CTRL, PKC_CTRL_RST)

Reset the specified PKC peripheral.

Parameters

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

Return values

  None |

Definition at line 389 of file gr55xx_hal_pkc.h.

## ◆ __HAL_PKC_RESET_HANDLE_STATE

#define __HAL_PKC_RESET_HANDLE_STATE | ( |  | __HANDLE__ | ) | ((__HANDLE__)->state = HAL_PKC_STATE_RESET)

Reset PKC handle states.

Parameters

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

Return values

  None |

Definition at line 382 of file gr55xx_hal_pkc.h.