AES control functions.
More...
AES control functions.
===============================================================================
##### Peripheral State and Errors functions #####
===============================================================================
[..]
This subsection provides a set of functions allowing to control the AES.
(+) hal_aes_get_state() API can be helpful to check in run-time the state of the AES peripheral.
(+) hal_aes_get_error() check in run-time Errors occurring during communication.
(+) hal_aes_set_timeout() set the timeout during internal process.
◆ hal_aes_get_error()
Return the AES error code.
- Parameters
-
[in] | p_aes | Pointer to an AES handle which contains the configuration information for the specified AES module. |
- Returns
- AES error code in bitmap format
◆ hal_aes_get_state()
Return the AES handle state.
- Parameters
-
[in] | p_aes | Pointer to an AES handle which contains the configuration information for the specified AES module. |
- Return values
-
◆ hal_aes_resume_reg()
Restore some registers related to AES configuration after sleep. This function must be used in conjunction with the hal_aes_suspend_reg().
- Parameters
-
[in] | p_aes | Pointer to a AES handle which contains the configuration information for the specified AES module. |
- Return values
-
◆ hal_aes_set_timeout()
void hal_aes_set_timeout |
( |
aes_handle_t * |
p_aes, |
|
|
uint32_t |
timeout |
|
) |
| |
Set the AES internal process timeout value.
- Parameters
-
[in] | p_aes | Pointer to an AES handle which contains the configuration information for the specified AES module. |
[in] | timeout | Internal process timeout value. |
◆ hal_aes_suspend_reg()
Suspend some registers related to AES configuration before sleep.
- Parameters
-
[in] | p_aes | Pointer to a AES handle which contains the configuration information for the specified AES module. |
- Return values
-