MCUX CLNS
MCUX Crypto Library Normal Secure
mcuxClEls_GlitchDetector.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------*/
2 /* Copyright 2020-2022 NXP */
3 /* */
4 /* NXP Confidential. This software is owned or controlled by NXP and may */
5 /* only be used strictly in accordance with the applicable license terms. */
6 /* By expressly accepting such terms or by downloading, installing, */
7 /* activating and/or otherwise using the software, you are agreeing that */
8 /* you have read, and that you agree to comply with and are bound by, such */
9 /* license terms. If you do not agree to be bound by the applicable license */
10 /* terms, then you may not retain, install, activate or otherwise use the */
11 /* software. */
12 /*--------------------------------------------------------------------------*/
13 
20 #ifndef MCUXCLELS_GLITCHDETECTOR_H_
21 #define MCUXCLELS_GLITCHDETECTOR_H_
22 
23 #include <mcuxClConfig.h> // Exported features flags header
24 #include <mcuxClEls_Common.h> // Common types & functionality
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
37 /**********************************************
38  * CONSTANTS
39  **********************************************/
47 #define MCUXCLELS_GLITCHDETECTOR_CFG_SIZE ((size_t) 0x18u)
48 
49 #define MCUXCLELS_GLITCHDETECTOR_TRIM_SIZE ((size_t) 0x04u)
50 
51  /* mcuxClEls_GlitchDetector_Macros */
54 
55 /**********************************************
56  * FUNCTIONS
57  **********************************************/
84  uint8_t const * pInput
85  );
86 
107  uint8_t * pOutput
108  );
109 
127  uint8_t * pCount
128  );
129 
143  );
144  /* mcuxClEls_GlitchDetector_Functions */
148  /* mcuxClEls_GlitchDetector */
152 
153 #ifdef __cplusplus
154 } /* extern "C" */
155 #endif
156 
157 #endif /* MCUXCLELS_GLITCHDETECTOR_H_ */
uint32_t mcuxClEls_Status_t
Type for ELS driver status codes.
Definition: mcuxClEls_Types.h:211
ELS header for common functionality.
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_ResetEventCounter(void)
Resets the glitch detector's event counter.
#define MCUX_CSSL_FP_FUNCTION_DECL(...)
Declaration of a flow protected function.
Definition: mcuxCsslFlowProtection.h:125
#define MCUXCLELS_API
Marks a function as a public API function of the mcuxClEls component.
Definition: mcuxClEls_Common.h:47
MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_GlitchDetector_Trim_Async(uint8_t *pOutput)
Calculates optimal ELS glitch detector configuration and writes it to system memory.
#define MCUX_CSSL_FP_PROTECTED_TYPE(resultType)
Based on a given base type, builds a return type with flow protection.
Definition: mcuxCsslFlowProtection.h:81
MCUXCLELS_API mcuxClEls_Status_t mcuxClEls_GlitchDetector_GetEventCounter(uint8_t *pCount)
Reads the glitch detector's event counter.