Macros
PKC Private Macros
Peripheral Driver » HAL Driver » PKC » Defines

## Macros
#define | IS_PKC_BITS_LENGTH(__BITS__) (((__BITS__) >= PKC_BITS_LENGTH_MIN) && ((__BITS__) <= PKC_BITS_LENGTH_MAX))
| Check if PKC Bits Length is valid. More...
#define | IS_PKC_BIGMULTI_BITS_LENGTH(__BITS__) (((__BITS__) >= PKC_BITS_LENGTH_MIN) && ((__BITS__) <= PKC_BIGMULTI_BITS_LENGTH_MAX))
| Check if PKC Big Number Multiplication Bits Length is valid. More...
#define | IS_PKC_SECURE_MODE(__MODE__)
| Check if PKC Secure Mode is valid. More...
#define | IS_PKC_OPERATION_MODE(__MODE__)
| Check if PKC Operation Mode is valid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_PKC_BIGMULTI_BITS_LENGTH

#define IS_PKC_BIGMULTI_BITS_LENGTH | ( |  | __BITS__ | ) | (((__BITS__) >= PKC_BITS_LENGTH_MIN) && ((__BITS__) <= PKC_BIGMULTI_BITS_LENGTH_MAX))

Check if PKC Big Number Multiplication Bits Length is valid.

Parameters

  __BITS__ | PKC Big Number Multiplication Bits Length.

Return values

  SET | (__BITS__ is valid) or RESET (__BITS__ is invalid)

Definition at line 474 of file gr55xx_hal_pkc.h.

## ◆ IS_PKC_BITS_LENGTH

#define IS_PKC_BITS_LENGTH | ( |  | __BITS__ | ) | (((__BITS__) >= PKC_BITS_LENGTH_MIN) && ((__BITS__) <= PKC_BITS_LENGTH_MAX))

Check if PKC Bits Length is valid.

Parameters

  __BITS__ | PKC Bits Length.

Return values

  SET | (__BITS__ is valid) or RESET (__BITS__ is invalid)

Definition at line 468 of file gr55xx_hal_pkc.h.

## ◆ IS_PKC_OPERATION_MODE

#define IS_PKC_OPERATION_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == PKC_OPERATION_MODE_MULTI) || \
((__MODE__) == PKC_OPERATION_MODE_INVER) || \
((__MODE__) == PKC_OPERATION_MODE_ADD) || \
((__MODE__) == PKC_OPERATION_MODE_SUB) || \
((__MODE__) == PKC_OPERATION_MODE_CMP) || \
((__MODE__) == PKC_OPERATION_MODE_LSHIFT) || \
((__MODE__) == PKC_OPERATION_MODE_BIGMULTI) || \
((__MODE__) == PKC_OPERATION_MODE_BIGADD))

Check if PKC Operation Mode is valid.

Parameters

  __MODE__ | PKC Operation Mode.

Return values

  SET | (__MODE__ is valid) or RESET (__MODE__ is invalid)

Definition at line 487 of file gr55xx_hal_pkc.h.

## ◆ IS_PKC_SECURE_MODE

#define IS_PKC_SECURE_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == PKC_SECURE_MODE_DISABLE) || \
((__MODE__) == PKC_SECURE_MODE_ENABLE))

Check if PKC Secure Mode is valid.

Parameters

  __MODE__ | PKC Secure Mode.

Return values

  SET | (__MODE__ is valid) or RESET (__MODE__ is invalid)

Definition at line 480 of file gr55xx_hal_pkc.h.

PKC_OPERATION_MODE_BIGADD
#define PKC_OPERATION_MODE_BIGADD
Definition: gr55xx_hal_pkc.h:341
PKC_OPERATION_MODE_ADD
#define PKC_OPERATION_MODE_ADD
Definition: gr55xx_hal_pkc.h:336
PKC_OPERATION_MODE_MULTI
#define PKC_OPERATION_MODE_MULTI
Definition: gr55xx_hal_pkc.h:334
PKC_OPERATION_MODE_LSHIFT
#define PKC_OPERATION_MODE_LSHIFT
Definition: gr55xx_hal_pkc.h:339
PKC_OPERATION_MODE_INVER
#define PKC_OPERATION_MODE_INVER
Definition: gr55xx_hal_pkc.h:335
PKC_OPERATION_MODE_CMP
#define PKC_OPERATION_MODE_CMP
Definition: gr55xx_hal_pkc.h:338
PKC_OPERATION_MODE_BIGMULTI
#define PKC_OPERATION_MODE_BIGMULTI
Definition: gr55xx_hal_pkc.h:340
PKC_OPERATION_MODE_SUB
#define PKC_OPERATION_MODE_SUB
Definition: gr55xx_hal_pkc.h:337
PKC_SECURE_MODE_ENABLE
#define PKC_SECURE_MODE_ENABLE
Definition: gr55xx_hal_pkc.h:328
PKC_SECURE_MODE_DISABLE
#define PKC_SECURE_MODE_DISABLE
Definition: gr55xx_hal_pkc.h:327