HMAC State and Errors functions

HMAC control functions. More...

Functions

hal_hmac_state_t hal_hmac_get_state (hmac_handle_t *p_hmac)
 Return the HMAC handle state. More...
 
uint32_t hal_hmac_get_error (hmac_handle_t *p_hmac)
 Return the HMAC error code. More...
 

Detailed Description

HMAC control functions.

 ===============================================================================
                      ##### HMAC State and Errors functions #####
 ===============================================================================
    [..]
    This subsection provides a set of functions allowing to control the HMAC.
     (+) hal_hmac_get_state() API can be helpful to check in run-time the state of the HMAC peripheral.
     (+) hal_hmac_get_error() check in run-time Errors occurring during communication.

Function Documentation

◆ hal_hmac_get_error()

uint32_t hal_hmac_get_error ( hmac_handle_t p_hmac)

Return the HMAC error code.

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

◆ hal_hmac_get_state()

hal_hmac_state_t hal_hmac_get_state ( hmac_handle_t p_hmac)

Return the HMAC handle state.

Parameters
[in]p_hmacPointer to a HMAC handle which contains the configuration information for the specified HMAC module.
Return values
HAL_HMAC_STATE_RESETPeripheral not initialized.
HAL_HMAC_STATE_READYPeripheral initialized and ready for use.
HAL_HMAC_STATE_BUSYPeripheral in indirect mode and busy.