Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
mon.h
Go to the documentation of this file.
1 /*
2  ***********************************************************************************************************************
3  *
4  * Copyright (c) Infineon Technologies AG
5  * All rights reserved.
6  *
7  * The applicable license agreement can be found at this pack's installation directory in the file
8  * license/IFX_SW_Licence_MOTIX_LITIX.txt
9  *
10  **********************************************************************************************************************/
22 /*******************************************************************************
23 ** Author(s) Identity **
24 ********************************************************************************
25 ** Initials Name **
26 ** ---------------------------------------------------------------------------**
27 ** DM Daniel Mysliwitz **
28 ** BG Blandine Guillot **
29 ** JO Julia Ott **
30 *******************************************************************************/
31 
32 /*******************************************************************************
33 ** Revision Control History **
34 ********************************************************************************
35 ** V0.1.0: 2019-10-28, DM: Initial version **
36 ** V0.2.0: 2020-04-28, BG: Updated revision history format **
37 ** V0.3.0: 2020-09-16, DM: MON_en/disMONx() renamed to MON_en/disMONxInt() **
38 ** V0.3.1: 2020-10-06, BG: EP-492: Removed MISRA 2012 errors **
39 ** V0.3.2: 2020-11-12, JO: EP-590: Removed \param none and \return none to **
40 ** avoid doxygen warning **
41 ** V0.3.3: 2021-07-30, BG: EP-877: Updated return type for MON_init to void **
42 ** V0.3.4: 2021-11-12, JO: EP-937: Updated copyright and branding **
43 ** V0.3.5: 2024-11-05, JO: EP-1494: Updated license **
44 *******************************************************************************/
45 
46 #ifndef _MON_H
47 #define _MON_H
48 
49 /*******************************************************************************
50 ** Includes **
51 *******************************************************************************/
52 
53 #include "types.h"
54 #include "tle989x.h"
55 #include "tle_variants.h"
56 #include "pmu_defines.h"
57 
58 /*******************************************************************************
59 ** Global Constant Declarations **
60 *******************************************************************************/
61 
62 /*******************************************************************************
63 ** Global Type Declarations **
64 *******************************************************************************/
65 
66 /*******************************************************************************
67 ** Global Macro Declarations **
68 *******************************************************************************/
69 
70 /*******************************************************************************
71 ** Global Function Declarations **
72 *******************************************************************************/
73 
74 void MON_init(void);
75 INLINE void MON_enMON1Int(void);
76 INLINE void MON_disMON1Int(void);
77 INLINE void MON_enMON2Int(void);
78 INLINE void MON_disMON2Int(void);
79 INLINE void MON_enMON3Int(void);
80 INLINE void MON_disMON3Int(void);
87 INLINE void MON_clrMON1RiseIntSts(void);
88 INLINE void MON_clrMON1FallIntSts(void);
89 INLINE void MON_clrMON2RiseIntSts(void);
90 INLINE void MON_clrMON2FallIntSts(void);
91 INLINE void MON_clrMON3RiseIntSts(void);
92 INLINE void MON_clrMON3FallIntSts(void);
93 
94 /*******************************************************************************
95 ** Deprecated Function Declarations **
96 *******************************************************************************/
97 
101 void MON_setMON1IntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
102 
106 void MON_setMON2IntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
107 
111 void MON_setMON3IntNodePtr(void) __attribute__((deprecated("Do not change this at runtime, use the ConfigWizard to configure this feature!")));
112 
113 /*******************************************************************************
114 ** Global Inline Function Definitions **
115 *******************************************************************************/
116 
120 {
121  SCU->MONIEN.bit.MON1EN = 1u;
122 }
123 
127 {
128  SCU->MONIEN.bit.MON1EN = 0u;
129 }
130 
134 {
135  SCU->MONIEN.bit.MON2EN = 1u;
136 }
137 
141 {
142  SCU->MONIEN.bit.MON2EN = 0u;
143 }
144 
148 {
149  SCU->MONIEN.bit.MON3EN = 1u;
150 }
151 
155 {
156  SCU->MONIEN.bit.MON3EN = 0u;
157 }
158 
164 {
165  return SCU->MONIS.bit.MON1R;
166 }
167 
173 {
174  return SCU->MONIS.bit.MON1F;
175 }
176 
182 {
183  return SCU->MONIS.bit.MON2R;
184 }
185 
191 {
192  return SCU->MONIS.bit.MON2F;
193 }
194 
200 {
201  return SCU->MONIS.bit.MON3R;
202 }
203 
209 {
210  return SCU->MONIS.bit.MON3F;
211 }
212 
216 {
217  SCU->MONISC.bit.MON1RCLR = 1u;
218 }
219 
223 {
224  SCU->MONISC.bit.MON1FCLR = 1u;
225 }
226 
230 {
231  SCU->MONISC.bit.MON2RCLR = 1u;
232 }
233 
237 {
238  SCU->MONISC.bit.MON2FCLR = 1u;
239 }
240 
244 {
245  SCU->MONISC.bit.MON3RCLR = 1u;
246 }
247 
251 {
252  SCU->MONISC.bit.MON3FCLR = 1u;
253 }
254 
255 #endif /* _MON_H */
#define SCU
Definition: tle989x.h:24075
void MON_setMON3IntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set MON3 Interrupt Node Pointer.
INLINE void MON_clrMON1FallIntSts(void)
Clear MON1 Falling Edge Interrupt Status.
Definition: mon.h:222
INLINE void MON_enMON2Int(void)
Enable MON2 Interrupt.
Definition: mon.h:133
void MON_init(void)
Initialize all CW registers of the MON module.
Definition: mon.c:41
INLINE void MON_disMON2Int(void)
Disable MON2 Interrupt.
Definition: mon.h:140
INLINE void MON_clrMON3RiseIntSts(void)
Clear MON3 Rising Edge Interrupt Status.
Definition: mon.h:243
INLINE uint8 MON_getMON2RiseIntSts(void)
Get MON2 Rising Edge Interrupt Status.
Definition: mon.h:181
INLINE uint8 MON_getMON3RiseIntSts(void)
Get MON3 Rising Edge Interrupt Status.
Definition: mon.h:199
INLINE void MON_clrMON2RiseIntSts(void)
Clear MON2 Rising Edge Interrupt Status.
Definition: mon.h:229
INLINE void MON_disMON1Int(void)
Disable MON1 Interrupt.
Definition: mon.h:126
INLINE uint8 MON_getMON3FallIntSts(void)
Get MON3 Falling Edge Interrupt Status.
Definition: mon.h:208
INLINE uint8 MON_getMON2FallIntSts(void)
Get MON2 Falling Edge Interrupt Status.
Definition: mon.h:190
void MON_setMON1IntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set MON1 Interrupt Node Pointer.
INLINE uint8 MON_getMON1RiseIntSts(void)
Get MON1 Rising Edge Interrupt Status.
Definition: mon.h:163
INLINE void MON_clrMON1RiseIntSts(void)
Clear MON1 Rising Edge Interrupt Status.
Definition: mon.h:215
INLINE void MON_clrMON2FallIntSts(void)
Clear MON2 Falling Edge Interrupt Status.
Definition: mon.h:236
INLINE void MON_enMON1Int(void)
Enable MON1 Interrupt.
Definition: mon.h:119
INLINE uint8 MON_getMON1FallIntSts(void)
Get MON1 Falling Edge Interrupt Status.
Definition: mon.h:172
void MON_setMON2IntNodePtr(void) __attribute__((deprecated("Do not change this at runtime
Set MON2 Interrupt Node Pointer.
INLINE void MON_disMON3Int(void)
Disable MON3 Interrupt.
Definition: mon.h:154
INLINE void MON_enMON3Int(void)
Enable MON3 Interrupt.
Definition: mon.h:147
INLINE void MON_clrMON3FallIntSts(void)
Clear MON3 Falling Edge Interrupt Status.
Definition: mon.h:250
__attribute__((noreturn))
Definition: startup_tle989x.c:193
Device specific memory layout defines and features.
General type declarations.
#define INLINE
Definition: types.h:151
uint8_t uint8
8 bit unsigned value
Definition: types.h:204