pss.h
Go to the documentation of this file.
1 #ifndef __PSS_H__
2 #define __PSS_H__
3 
4 //*****************************************************************************
5 //
8 //
9 //*****************************************************************************
10 
11 //*****************************************************************************
12 //
13 // If building with a C++ compiler, make all of the definitions in this header
14 // have a C binding.
15 //
16 //*****************************************************************************
17 #ifdef __cplusplus
18 extern "C"
19 {
20 #endif
21 
22 #include <stdint.h>
23 #include <msp.h>
24 #include <stdbool.h>
25 
26 //*****************************************************************************
27 //
28 // Control specific variables
29 //
30 //*****************************************************************************
31 #define PSS_KEY_VALUE PSS_KEY_KEY_VAL
32 
33 #define PSS_SVSMH PSS_IE_SVSMHIE
34 
35 #define PSS_FULL_PERFORMANCE_MODE 0x01
36 #define PSS_NORMAL_PERFORMANCE_MODE 0x00
37 
38 //*****************************************************************************
39 //
40 // Prototypes for the APIs.
41 //
42 //*****************************************************************************
43 
44 //*****************************************************************************
45 //
52 //
53 //*****************************************************************************
54 extern void PSS_enableHighSidePinToggle(bool activeLow);
55 
56 //*****************************************************************************
57 //
61 //
62 //*****************************************************************************
63 extern void PSS_disableHighSidePinToggle(void);
64 
65 //*****************************************************************************
66 //
70 //
71 //*****************************************************************************
72 extern void PSS_enableHighSide(void);
73 
74 //*****************************************************************************
75 //
79 //
80 //*****************************************************************************
81 extern void PSS_disableHighSide(void);
82 
83 //*****************************************************************************
84 //
95 //
96 //*****************************************************************************
97 extern void PSS_setHighSidePerformanceMode(uint_fast8_t powerMode);
98 
99 //*****************************************************************************
100 //
106 //
107 //*****************************************************************************
108 extern uint_fast8_t PSS_getHighSidePerformanceMode(void);
109 
110 //*****************************************************************************
111 //
115 //
116 //*****************************************************************************
117 extern void PSS_enableHighSideMonitor(void);
118 
119 //*****************************************************************************
120 //
125 //
126 //*****************************************************************************
127 extern void PSS_disableHighSideMonitor(void);
128 
129 //*****************************************************************************
130 //
152 //
153 //*****************************************************************************
154 extern void PSS_setHighSideVoltageTrigger(uint_fast8_t triggerVoltage);
155 
156 //*****************************************************************************
157 //
166 //
167 //*****************************************************************************
168 extern uint_fast8_t PSS_getHighSideVoltageTrigger(void);
169 
170 //*****************************************************************************
171 //
175 //
176 //*****************************************************************************
177 extern void PSS_enableInterrupt(void);
178 
179 //*****************************************************************************
180 //
184 //
185 //*****************************************************************************
186 extern void PSS_disableInterrupt(void);
187 
188 //*****************************************************************************
189 //
194 //*****************************************************************************
195 extern uint32_t PSS_getInterruptStatus(void);
196 
197 //*****************************************************************************
198 //
202 //
203 //*****************************************************************************
204 extern void PSS_clearInterruptFlag(void);
205 
206 
207 //*****************************************************************************
208 //
215 //
216 //*****************************************************************************
217 extern void PSS_enableForcedDCDCOperation(void);
218 
219 
220 //*****************************************************************************
221 //
228 //
229 //*****************************************************************************
230 extern void PSS_disableForcedDCDCOperation(void);
231 
232 //*****************************************************************************
233 //
249 //
250 //*****************************************************************************
251 extern void PSS_registerInterrupt(void (*intHandler)(void));
252 
253 //*****************************************************************************
254 //
265 //
266 //*****************************************************************************
267 extern void PSS_unregisterInterrupt(void);
268 
269 //*****************************************************************************
270 //
271 // Mark the end of the C bindings section for C++ compilers.
272 //
273 //*****************************************************************************
274 #ifdef __cplusplus
275 }
276 #endif
277 
278 //*****************************************************************************
279 //
280 // Close the Doxygen group.
282 //
283 //*****************************************************************************
284 
285 #endif // __PSS_H__
uint_fast8_t PSS_getHighSidePerformanceMode(void)
Definition: pss.c:94
void PSS_clearInterruptFlag(void)
Definition: pss.c:157
void PSS_enableForcedDCDCOperation(void)
Definition: pss.c:21
void PSS_disableHighSidePinToggle(void)
Definition: pss.c:55
void PSS_registerInterrupt(void(*intHandler)(void))
Definition: pss.c:164
void PSS_disableInterrupt(void)
Definition: pss.c:145
void PSS_disableHighSideMonitor(void)
Definition: pss.c:111
uint32_t PSS_getInterruptStatus(void)
Definition: pss.c:152
uint_fast8_t PSS_getHighSideVoltageTrigger(void)
Definition: pss.c:132
void PSS_setHighSidePerformanceMode(uint_fast8_t powerMode)
Definition: pss.c:82
void PSS_disableForcedDCDCOperation(void)
Definition: pss.c:30
void PSS_enableHighSideMonitor(void)
Definition: pss.c:102
void PSS_setHighSideVoltageTrigger(uint_fast8_t triggerVoltage)
Definition: pss.c:120
void PSS_unregisterInterrupt(void)
Definition: pss.c:177
void PSS_enableHighSidePinToggle(bool activeLow)
Definition: pss.c:40
void PSS_enableInterrupt(void)
Definition: pss.c:138
void PSS_disableHighSide(void)
Definition: pss.c:73
void PSS_enableHighSide(void)
Definition: pss.c:64

Copyright 2016, Texas Instruments Incorporated