NHS31xx SW API
diag.h
1 /*
2  * Copyright 2018-2020 NXP
3  * This software is owned or controlled by NXP and may only be used strictly
4  * in accordance with the applicable license terms. By expressly accepting
5  * such terms or by downloading, installing, activating and/or otherwise using
6  * the software, you are agreeing that you have read, and that you agree to
7  * comply with and are bound by, such license terms. If you do not agree to
8  * be bound by the applicable license terms, then you may not retain, install,
9  * activate or otherwise use the software.
10  */
11 
12 #ifndef __DIAG_H_
13 #define __DIAG_H_
14 
98 #include "diag_dft.h"
99 
100 /* ------------------------------------------------------------------------- */
101 
102 #pragma pack(push, 1)
103 
104 typedef struct DIAG_DATA_S {
105  uint32_t coldBootCount;
106  uint32_t wakeUpCount;
107  int32_t activeTime;
109  uint32_t nfcTapCount;
110 } DIAG_DATA_T;
111 #pragma pack(pop)
112 
113 /* ------------------------------------------------------------------------- */
114 
115 #if ENABLE_DIAG_MODULE
116 
128 void Diag_Init(void);
129 
139 void Diag_DeInit(void);
140 
148 void Diag_TrackRtcUpdate(int new);
149 
151 const DIAG_DATA_T* Diag_Get(void);
152 
153 /* ------------------------------------------------------------------------- */
154 
161 void Diag_NFC_IRQHandler(void);
162 
163 #else
164  #define Diag_Init(x) /* void */
165  #define Diag_DeInit(x) /* void */
166  #define Diag_TrackRtcUpdate(x) /* void */
167  #define Diag_Get(x) NULL
168  #define Diag_NFC_IRQHandler NFC_IRQHandler
169 #endif
170 
171 #endif
uint32_t coldBootCount
Definition: diag.h:105
void Diag_DeInit(void)
uint32_t nfcTapCount
Definition: diag.h:109
Definition: diag.h:104
void Diag_Init(void)
void Diag_TrackRtcUpdate(int new)
void Diag_NFC_IRQHandler(void)
int32_t deepPowerDownTime
Definition: diag.h:108
uint32_t wakeUpCount
Definition: diag.h:106
int32_t activeTime
Definition: diag.h:107
const DIAG_DATA_T * Diag_Get(void)