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 "register_remap.h"
24 #include <msp432.h>
25 #include <stdbool.h>
26 
27 //*****************************************************************************
28 //
29 // Control specific variables
30 //
31 //*****************************************************************************
32 #define PSS_KEY_VALUE 0x0000695A
33 
34 #define PSS_SVSMH PSS_IE_SVSMHIE
35 
36 #define PSS_FULL_PERFORMANCE_MODE 0x01
37 #define PSS_NORMAL_PERFORMANCE_MODE 0x00
38 
39 //*****************************************************************************
40 //
41 // Prototypes for the APIs.
42 //
43 //*****************************************************************************
44 
45 //*****************************************************************************
46 //
53 //
54 //*****************************************************************************
55 extern void PSS_enableHighSidePinToggle(bool activeLow);
56 
57 //*****************************************************************************
58 //
62 //
63 //*****************************************************************************
64 extern void PSS_disableHighSidePinToggle(void);
65 
66 //*****************************************************************************
67 //
71 //
72 //*****************************************************************************
73 extern void PSS_enableHighSide(void);
74 
75 //*****************************************************************************
76 //
80 //
81 //*****************************************************************************
82 extern void PSS_disableHighSide(void);
83 
84 //*****************************************************************************
85 //
96 //
97 //*****************************************************************************
98 extern void PSS_setHighSidePerformanceMode(uint_fast8_t powerMode);
99 
100 //*****************************************************************************
101 //
107 //
108 //*****************************************************************************
109 extern uint_fast8_t PSS_getHighSidePerformanceMode(void);
110 
111 //*****************************************************************************
112 //
116 //
117 //*****************************************************************************
118 extern void PSS_enableHighSideMonitor(void);
119 
120 //*****************************************************************************
121 //
126 //
127 //*****************************************************************************
128 extern void PSS_disableHighSideMonitor(void);
129 
130 //*****************************************************************************
131 //
153 //
154 //*****************************************************************************
155 extern void PSS_setHighSideVoltageTrigger(uint_fast8_t triggerVoltage);
156 
157 //*****************************************************************************
158 //
167 //
168 //*****************************************************************************
169 extern uint_fast8_t PSS_getHighSideVoltageTrigger(void);
170 
171 //*****************************************************************************
172 //
176 //
177 //*****************************************************************************
178 extern void PSS_enableInterrupt(void);
179 
180 //*****************************************************************************
181 //
185 //
186 //*****************************************************************************
187 extern void PSS_disableInterrupt(void);
188 
189 //*****************************************************************************
190 //
195 //*****************************************************************************
196 extern uint32_t PSS_getInterruptStatus(void);
197 
198 //*****************************************************************************
199 //
203 //
204 //*****************************************************************************
205 extern void PSS_clearInterruptFlag(void);
206 
207 //*****************************************************************************
208 //
224 //
225 //*****************************************************************************
226 extern void PSS_registerInterrupt(void (*intHandler)(void));
227 
228 //*****************************************************************************
229 //
240 //
241 //*****************************************************************************
242 extern void PSS_unregisterInterrupt(void);
243 
244 //*****************************************************************************
245 //
246 // Mark the end of the C bindings section for C++ compilers.
247 //
248 //*****************************************************************************
249 #ifdef __cplusplus
250 }
251 #endif
252 
253 //*****************************************************************************
254 //
255 // Close the Doxygen group.
257 //
258 //*****************************************************************************
259 
260 #endif // __PSS_H__
uint_fast8_t PSS_getHighSidePerformanceMode(void)
Definition: pss.c:75
void PSS_clearInterruptFlag(void)
Definition: pss.c:136
void PSS_disableHighSidePinToggle(void)
Definition: pss.c:36
void PSS_registerInterrupt(void(*intHandler)(void))
Definition: pss.c:143
void PSS_disableInterrupt(void)
Definition: pss.c:124
void PSS_disableHighSideMonitor(void)
Definition: pss.c:92
uint32_t PSS_getInterruptStatus(void)
Definition: pss.c:131
uint_fast8_t PSS_getHighSideVoltageTrigger(void)
Definition: pss.c:112
void PSS_setHighSidePerformanceMode(uint_fast8_t powerMode)
Definition: pss.c:63
void PSS_enableHighSideMonitor(void)
Definition: pss.c:83
void PSS_setHighSideVoltageTrigger(uint_fast8_t triggerVoltage)
Definition: pss.c:101
void PSS_unregisterInterrupt(void)
Definition: pss.c:156
void PSS_enableHighSidePinToggle(bool activeLow)
Definition: pss.c:21
void PSS_enableInterrupt(void)
Definition: pss.c:117
void PSS_disableHighSide(void)
Definition: pss.c:54
void PSS_enableHighSide(void)
Definition: pss.c:45

Copyright 2014, Texas Instruments Incorporated