Peripheral Control and State functions

PKC Peripheral State functions. More...

Functions

hal_pkc_state_t hal_pkc_get_state (pkc_handle_t *p_pkc)
 Return the PKC handle state. More...
 
uint32_t hal_pkc_get_error (pkc_handle_t *p_pkc)
 Return the PKC error code. More...
 

Detailed Description

PKC Peripheral State functions.

  ==============================================================================
            ##### Peripheral Control and State functions #####
  ==============================================================================
    [..]
    This subsection provides functions allowing to :
      (+) Return the PKC handle state.
      (+) Return the PKC handle error code.
      (+) Set the timeout during internal process.

Function Documentation

◆ hal_pkc_get_error()

uint32_t hal_pkc_get_error ( pkc_handle_t p_pkc)

Return the PKC error code.

Parameters
[in]p_pkcPointer to a PKC handle which contains the configuration information for the specified PKC module.
Returns
PKC error code in bitmap format

◆ hal_pkc_get_state()

hal_pkc_state_t hal_pkc_get_state ( pkc_handle_t p_pkc)

Return the PKC handle state.

Parameters
[in]p_pkcPointer to a pkc_handle_t structure that contains the configuration information for the specified PKC.
Return values
HAL_PKC_STATE_RESETPeripheral not initialized.
HAL_PKC_STATE_READYPeripheral initialized and ready for use.
HAL_PKC_STATE_BUSYPeripheral in indirect mode and busy.
::HAL_PKC_STATE_ERRORPeripheral in error.
::HAL_PKC_STATE_TIMEOUTPeripheral in timeout.