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  **********************************************/
82 MCUX_CSSL_FP_FUNCTION_DECL(mcuxClEls_GlitchDetector_LoadConfig_Async)
83 MCUXCLELS_API MCUX_CSSL_FP_PROTECTED_TYPE(mcuxClEls_Status_t) mcuxClEls_GlitchDetector_LoadConfig_Async(
84  uint8_t const * pInput
85  );
86 
105 MCUX_CSSL_FP_FUNCTION_DECL(mcuxClEls_GlitchDetector_Trim_Async)
106 MCUXCLELS_API MCUX_CSSL_FP_PROTECTED_TYPE(mcuxClEls_Status_t) mcuxClEls_GlitchDetector_Trim_Async(
107  uint8_t * pOutput
108  );
109 
125 MCUX_CSSL_FP_FUNCTION_DECL(mcuxClEls_GlitchDetector_GetEventCounter)
126 MCUXCLELS_API MCUX_CSSL_FP_PROTECTED_TYPE(mcuxClEls_Status_t) mcuxClEls_GlitchDetector_GetEventCounter(
127  uint8_t * pCount
128  );
129 
141 MCUX_CSSL_FP_FUNCTION_DECL(mcuxClEls_GlitchDetector_ResetEventCounter)
142 MCUXCLELS_API MCUX_CSSL_FP_PROTECTED_TYPE(mcuxClEls_Status_t) mcuxClEls_GlitchDetector_ResetEventCounter( void
143  );
144  /* mcuxClEls_GlitchDetector_Functions */
148  /* mcuxClEls_GlitchDetector */
152 
153 #ifdef __cplusplus
154 } /* extern "C" */
155 #endif
156 
157 #endif /* MCUXCLELS_GLITCHDETECTOR_H_ */
#define MCUX_CSSL_FP_FUNCTION_DECL(...)
Declaration of a flow protected function.
Definition: mcuxCsslFlowProtection.h:125
MCUXCLELS_API mcuxClEls_KeyIndex_t uint8_t * pOutput
< [out] The memory address of the exported key
Definition: mcuxClEls_KeyManagement.h:295
ELS header for common functionality.
uint32_t mcuxClEls_Status_t
Type for ELS driver status codes.
Definition: mcuxClEls_Types.h:211
MCUXCLELS_API MCUX_CSSL_FP_PROTECTED_TYPE(mcuxClEls_Status_t) mcuxClEls_GlitchDetector_LoadConfig_Async(uint8_t const *pInput)
Loads a glitch detector configuration.
#define MCUXCLELS_API
Marks a function as a public API function of the mcuxClEls component.
Definition: mcuxClEls_Common.h:47