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

## 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->INTEN, (__INTERRUPT__))
| Enable the specified PKC interrupts. More...
#define | __HAL_PKC_DISABLE_IT(__HANDLE__, __INTERRUPT__) CLEAR_BITS((__HANDLE__)->p_instance->INTEN, (__INTERRUPT__))
| Disable the specified PKC interrupts. More...
#define | __HAL_PKC_GET_FLAG_IT(__HANDLE__, __FLAG__) (READ_BITS((__HANDLE__)->p_instance->INTSTAT, (__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->INTSTAT, (__FLAG__))
| Clear the specified PKC interrupt flag. More...
#define | __HAL_PKC_GET_FLAG(__HANDLE__, __FLAG__) ((READ_BITS((__HANDLE__)->p_instance->WORKSTAT, (__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->INTSTAT, (__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 |

## ◆ __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 |

## ◆ __HAL_PKC_DISABLE_IT

#define __HAL_PKC_DISABLE_IT | ( |  | __HANDLE__,
|  |  | __INTERRUPT__
| ) |  | CLEAR_BITS((__HANDLE__)->p_instance->INTEN, (__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 |

## ◆ __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 |

## ◆ __HAL_PKC_ENABLE_IT

#define __HAL_PKC_ENABLE_IT | ( |  | __HANDLE__,
|  |  | __INTERRUPT__
| ) |  | SET_BITS((__HANDLE__)->p_instance->INTEN, (__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 |

## ◆ __HAL_PKC_GET_FLAG

#define __HAL_PKC_GET_FLAG | ( |  | __HANDLE__,
|  |  | __FLAG__
| ) |  | ((READ_BITS((__HANDLE__)->p_instance->WORKSTAT, (__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).

## ◆ __HAL_PKC_GET_FLAG_IT

#define __HAL_PKC_GET_FLAG_IT | ( |  | __HANDLE__,
|  |  | __FLAG__
| ) |  | (READ_BITS((__HANDLE__)->p_instance->INTSTAT, (__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).

## ◆ __HAL_PKC_RESET

#define __HAL_PKC_RESET | ( |  | __HANDLE__ | ) |

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

Reset the specified PKC peripheral.

Parameters

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

Return values

  None |

## ◆ __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 |