Macros
PKC Exported Macros
Peripheral Driver » HAL Driver » PKC » Defines

## Macros
#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__)) != 0U) ? 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

  __HANDLE__ | Specifies the PKC Handle.
  __FLAG__ | 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 432 of file 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

  __HANDLE__ | Specifies the PKC Handle.

Return values

  None |

Definition at line 384 of file 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

  __HANDLE__ | Specifies the PKC Handle.
  __INTERRUPT__ | 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 408 of file 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

  __HANDLE__ | Specifies the PKC Handle.

Return values

  None |

Definition at line 378 of file 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

  __HANDLE__ | Specifies the PKC Handle.
  __INTERRUPT__ | 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 396 of file hal_pkc.h.

## ◆ __HAL_PKC_GET_FLAG

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

Check whether the specified PKC flag is set or not.

Parameters

  __HANDLE__ | Specifies the PKC Handle.
  __FLAG__ | 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 442 of file 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

  __HANDLE__ | Specifies the PKC Handle.
  __FLAG__ | 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 420 of file 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

  __HANDLE__ | PKC handle.

Return values

  None |

Definition at line 371 of file hal_pkc.h.