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

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

  <strong>BITS</strong> | PKC Big Number Multiplication Bits Length.

Return values

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

Definition at line 479 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

  <strong>BITS</strong> | PKC Bits Length.

Return values

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

Definition at line 473 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

  <strong>MODE</strong> | PKC Operation Mode.

Return values

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

Definition at line 492 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

  <strong>MODE</strong> | PKC Secure Mode.

Return values

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

Definition at line 485 of file gr55xx_hal_pkc.h.

PKC_OPERATION_MODE_BIGADD
#define PKC_OPERATION_MODE_BIGADD
Big Number Addition operation mode
Definition: gr55xx_hal_pkc.h:340
PKC_OPERATION_MODE_ADD
#define PKC_OPERATION_MODE_ADD
Addition operation mode
Definition: gr55xx_hal_pkc.h:335
PKC_OPERATION_MODE_MULTI
#define PKC_OPERATION_MODE_MULTI
Multiplication operation mode
Definition: gr55xx_hal_pkc.h:333
PKC_OPERATION_MODE_LSHIFT
#define PKC_OPERATION_MODE_LSHIFT
Left Shift operation mode
Definition: gr55xx_hal_pkc.h:338
PKC_OPERATION_MODE_INVER
#define PKC_OPERATION_MODE_INVER
Inversion operation mode
Definition: gr55xx_hal_pkc.h:334
PKC_OPERATION_MODE_CMP
#define PKC_OPERATION_MODE_CMP
Comparison operation mode
Definition: gr55xx_hal_pkc.h:337
PKC_OPERATION_MODE_BIGMULTI
#define PKC_OPERATION_MODE_BIGMULTI
Big Number Multiplication operation mode
Definition: gr55xx_hal_pkc.h:339
PKC_OPERATION_MODE_SUB
#define PKC_OPERATION_MODE_SUB
Subtraction operation mode
Definition: gr55xx_hal_pkc.h:336
PKC_SECURE_MODE_ENABLE
#define PKC_SECURE_MODE_ENABLE
Secure mode enable
Definition: gr55xx_hal_pkc.h:327
PKC_SECURE_MODE_DISABLE
#define PKC_SECURE_MODE_DISABLE
Secure mode disable.
Definition: gr55xx_hal_pkc.h:326