MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClEls_GlitchDetector_Functions

Defines all functions of mcuxClEls_GlitchDetector. More...

Functions

MCUXCLELS_API MCUX_CSSL_FP_PROTECTED_TYPE (mcuxClEls_Status_t) mcuxClEls_GlitchDetector_LoadConfig_Async(uint8_t const *pInput)
 Loads a glitch detector configuration. More...
 

Detailed Description

Defines all functions of mcuxClEls_GlitchDetector.

Function Documentation

◆ MCUX_CSSL_FP_PROTECTED_TYPE()

MCUXCLELS_API MCUX_CSSL_FP_PROTECTED_TYPE ( mcuxClEls_Status_t  ) const

Loads a glitch detector configuration.

Resets the glitch detector's event counter.

Reads the glitch detector's event counter.

Calculates optimal ELS glitch detector configuration and writes it to system memory.

Call #mcuxClEls_WaitForOperation to complete the operation.

Parameters
[in]Pointerto the memory area which contains the glitch detector configuration. The size is fixed at MCUXCLELS_GLITCHDETECTOR_CFG_SIZE bytes.
Return values
MCUXCLELS_STATUS_SW_INVALID_PARAMif invalid parameters were specified
MCUXCLELS_STATUS_SW_CANNOT_INTERRUPTif a running operation prevented the request
MCUXCLELS_STATUS_OK_WAITon successful request
Returns
An error code that can be any error code in MCUXCLELS_STATUS_, see individual documentation for more information

Call #mcuxClEls_WaitForOperation to complete the operation.

Parameters
[out]Pointerto the memory area which receives the glitch detector trim value. The size is fixed at MCUXCLELS_GLITCHDETECTOR_TRIM_SIZE bytes.
Return values
MCUXCLELS_STATUS_SW_INVALID_PARAMif invalid parameters were specified
MCUXCLELS_STATUS_SW_CANNOT_INTERRUPTif a running operation prevented the request
MCUXCLELS_STATUS_OK_WAITon successful request
Returns
An error code that can be any error code in MCUXCLELS_STATUS_, see individual documentation for more information

This function converts the event counter from Gray code to an unsigned number.

Parameters
[in]Pointerto the word where the counter value will be stored.
Return values
MCUXCLELS_STATUS_OKon successful request
Returns
An error code that can be any error code in MCUXCLELS_STATUS_, see individual documentation for more information
Return values
MCUXCLELS_STATUS_OKon successful request
Returns
An error code that can be any error code in MCUXCLELS_STATUS_, see individual documentation for more information