MCUX CLNS
MCUX Crypto Library Normal Secure
 
Loading...
Searching...
No Matches
mcuxClEls_GlitchDetector_Functions

Defines all functions of mcuxClEls_GlitchDetector. More...

Functions

MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_GlitchDetector_LoadConfig_Async (uint8_t const *pInput)
 Loads a glitch detector configuration.
 
MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_GlitchDetector_Trim_Async (uint8_t *pOutput)
 Calculates optimal ELS glitch detector configuration and writes it to system memory.
 
MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_GlitchDetector_GetEventCounter (uint8_t *pCount)
 Reads the glitch detector's event counter.
 
MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_GlitchDetector_ResetEventCounter (void)
 Resets the glitch detector's event counter.
 

Detailed Description

Defines all functions of mcuxClEls_GlitchDetector.

Function Documentation

◆ mcuxClEls_GlitchDetector_LoadConfig_Async()

MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_GlitchDetector_LoadConfig_Async ( uint8_t const *  pInput)

Loads a glitch detector configuration.

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

◆ mcuxClEls_GlitchDetector_Trim_Async()

MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_GlitchDetector_Trim_Async ( uint8_t *  pOutput)

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

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

◆ mcuxClEls_GlitchDetector_GetEventCounter()

MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_GlitchDetector_GetEventCounter ( uint8_t *  pCount)

Reads the glitch detector's event counter.

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

◆ mcuxClEls_GlitchDetector_ResetEventCounter()

MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_GlitchDetector_ResetEventCounter ( void  )

Resets the glitch detector's event counter.

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