STM32L443xx HAL User Manual
Data Structures | Defines | Typedefs | Enumerations
CRYP Exported Types
CRYP

Data Structures

struct  CRYP_InitTypeDef
 CRYP Configuration Structure definition. More...
struct  __CRYP_HandleTypeDef
 CRYP handle Structure definition. More...

Defines

#define HAL_CRYP_ERROR_NONE   ((uint32_t)0x00000000)
 HAL CRYP Error Codes definition.
#define HAL_CRYP_WRITE_ERROR   ((uint32_t)0x00000001)
#define HAL_CRYP_READ_ERROR   ((uint32_t)0x00000002)
#define HAL_CRYP_DMA_ERROR   ((uint32_t)0x00000004)
#define HAL_CRYP_BUSY_ERROR   ((uint32_t)0x00000008)
#define HAL_CRYP_ERROR_INVALID_CALLBACK   ((uint32_t)0x00000010U)

Typedefs

typedef struct __CRYP_HandleTypeDef CRYP_HandleTypeDef
 CRYP handle Structure definition.
typedef void(* pCRYP_CallbackTypeDef )(CRYP_HandleTypeDef *hcryp)
 HAL CRYP Callback pointer definition.

Enumerations

enum  HAL_CRYP_STATETypeDef {
  HAL_CRYP_STATE_RESET = 0x00, HAL_CRYP_STATE_READY = 0x01, HAL_CRYP_STATE_BUSY = 0x02, HAL_CRYP_STATE_TIMEOUT = 0x03,
  HAL_CRYP_STATE_ERROR = 0x04, HAL_CRYP_STATE_SUSPENDED = 0x05
}
 HAL CRYP State structures definition. More...
enum  HAL_PhaseTypeDef {
  HAL_CRYP_PHASE_READY = 0x01, HAL_CRYP_PHASE_PROCESS = 0x02, HAL_CRYP_PHASE_START = 0x03, HAL_CRYP_PHASE_INIT_OVER = 0x04,
  HAL_CRYP_PHASE_HEADER_OVER = 0x05, HAL_CRYP_PHASE_PAYLOAD_OVER = 0x06, HAL_CRYP_PHASE_FINAL_OVER = 0x07, HAL_CRYP_PHASE_HEADER_SUSPENDED = 0x08,
  HAL_CRYP_PHASE_PAYLOAD_SUSPENDED = 0x09, HAL_CRYP_PHASE_NOT_USED = 0x0a
}
 HAL CRYP phase structures definition. More...
enum  HAL_SuspendTypeDef { HAL_CRYP_SUSPEND_NONE = 0x00, HAL_CRYP_SUSPEND = 0x01 }
 HAL CRYP mode suspend definitions. More...
enum  HAL_CRYP_CallbackIDTypeDef {
  HAL_CRYP_INPUTCPLT_CB_ID = 0x01U, HAL_CRYP_OUTPUTCPLT_CB_ID = 0x02U, HAL_CRYP_COMPCPLT_CB_ID = 0x03U, HAL_CRYP_ERROR_CB_ID = 0x04U,
  HAL_CRYP_MSPINIT_CB_ID = 0x05U, HAL_CRYP_MSPDEINIT_CB_ID = 0x06U
}
 HAL CRYP common Callback ID enumeration definition. More...

Define Documentation

#define HAL_CRYP_BUSY_ERROR   ((uint32_t)0x00000008)

Busy flag error

Definition at line 129 of file stm32l4xx_hal_cryp.h.

Referenced by HAL_CRYPEx_Read_SuspendRegisters().

#define HAL_CRYP_DMA_ERROR   ((uint32_t)0x00000004)

DMA error

Definition at line 128 of file stm32l4xx_hal_cryp.h.

Referenced by CRYP_Authentication_DMAError(), and CRYP_DMAError().

#define HAL_CRYP_ERROR_INVALID_CALLBACK   ((uint32_t)0x00000010U)

Invalid Callback error

Definition at line 131 of file stm32l4xx_hal_cryp.h.

Referenced by HAL_CRYP_RegisterCallback(), and HAL_CRYP_UnRegisterCallback().

#define HAL_CRYP_ERROR_NONE   ((uint32_t)0x00000000)

HAL CRYP Error Codes definition.

No error

Definition at line 125 of file stm32l4xx_hal_cryp.h.

Referenced by HAL_CRYP_Init().

#define HAL_CRYP_READ_ERROR   ((uint32_t)0x00000002)

Read error

Definition at line 127 of file stm32l4xx_hal_cryp.h.

Referenced by HAL_CRYP_IRQHandler().

#define HAL_CRYP_WRITE_ERROR   ((uint32_t)0x00000001)

Write error

Definition at line 126 of file stm32l4xx_hal_cryp.h.

Referenced by HAL_CRYP_IRQHandler().


Typedef Documentation

CRYP handle Structure definition.

typedef void(* pCRYP_CallbackTypeDef)(CRYP_HandleTypeDef *hcryp)

HAL CRYP Callback pointer definition.

pointer to a CRYP common callback functions

Definition at line 205 of file stm32l4xx_hal_cryp.h.


Enumeration Type Documentation

HAL CRYP common Callback ID enumeration definition.

Enumerator:
HAL_CRYP_INPUTCPLT_CB_ID 

CRYP input DMA transfer completion callback ID

HAL_CRYP_OUTPUTCPLT_CB_ID 

CRYP output DMA transfer completion callback ID

HAL_CRYP_COMPCPLT_CB_ID 

CRYP computation completion callback ID

HAL_CRYP_ERROR_CB_ID 

CRYP error callback ID

HAL_CRYP_MSPINIT_CB_ID 

CRYP MspInit callback ID

HAL_CRYP_MSPDEINIT_CB_ID 

CRYP MspDeInit callback ID

Definition at line 138 of file stm32l4xx_hal_cryp.h.

HAL CRYP State structures definition.

Enumerator:
HAL_CRYP_STATE_RESET 

CRYP not yet initialized or disabled

HAL_CRYP_STATE_READY 

CRYP initialized and ready for use

HAL_CRYP_STATE_BUSY 

CRYP internal processing is ongoing

HAL_CRYP_STATE_TIMEOUT 

CRYP timeout state

HAL_CRYP_STATE_ERROR 

CRYP error state

HAL_CRYP_STATE_SUSPENDED 

CRYP suspended

Definition at line 84 of file stm32l4xx_hal_cryp.h.

HAL CRYP phase structures definition.

Enumerator:
HAL_CRYP_PHASE_READY 

CRYP peripheral is ready for initialization.

HAL_CRYP_PHASE_PROCESS 

CRYP peripheral is in processing phase

HAL_CRYP_PHASE_START 

CRYP peripheral has been initialized but GCM/GMAC(/CMAC)(/CCM) initialization phase has not started

HAL_CRYP_PHASE_INIT_OVER 

GCM/GMAC(/CMAC)(/CCM) init phase has been carried out

HAL_CRYP_PHASE_HEADER_OVER 

GCM/GMAC(/CMAC)(/CCM) header phase has been carried out

HAL_CRYP_PHASE_PAYLOAD_OVER 

GCM(/CCM) payload phase has been carried out

HAL_CRYP_PHASE_FINAL_OVER 

GCM/GMAC(/CMAC)(/CCM) final phase has been carried out

HAL_CRYP_PHASE_HEADER_SUSPENDED 

GCM/GMAC(/CMAC)(/CCM) header phase has been suspended

HAL_CRYP_PHASE_PAYLOAD_SUSPENDED 

GCM(/CCM) payload phase has been suspended

HAL_CRYP_PHASE_NOT_USED 

Phase is irrelevant to the current chaining mode

Definition at line 97 of file stm32l4xx_hal_cryp.h.

HAL CRYP mode suspend definitions.

Enumerator:
HAL_CRYP_SUSPEND_NONE 

CRYP peripheral suspension not requested

HAL_CRYP_SUSPEND 

CRYP peripheral suspension requested

Definition at line 115 of file stm32l4xx_hal_cryp.h.