EFR32 Blue Gecko 1 Software Documentation  efr32bg1-doc-5.1.2
displaypal.h
Go to the documentation of this file.
1 /**************************************************************************/
19 #ifndef _DISPLAY_PAL_H_
20 #define _DISPLAY_PAL_H_
21 
22 #include "emstatus.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 
29 /*******************************************************************************
30  ******************************** DEFINES ************************************
31  ******************************************************************************/
32 
34 #define PAL_EMSTATUS_OK (0)
35 #define PAL_EMSTATUS_INVALID_PARAM (PAL_EMSTATUS_BASE | 1)
36 #define PAL_EMSTATUS_REPEAT_FAILED (PAL_EMSTATUS_BASE | 2)
41 /*******************************************************************************
42  ******************************** ENUMS ************************************
43  ******************************************************************************/
44 
46 typedef enum
47 {
49  palGpioModePushPull
50 } PAL_GpioMode_t;
51 
52 
53 /*******************************************************************************
54  ************************** FUNCTION PROTOTYPES **************************
55  ******************************************************************************/
56 
57 /**************************************************************************/
65 EMSTATUS PAL_GpioInit (void);
66 
67 
68 /**************************************************************************/
76 EMSTATUS PAL_GpioShutdown (void);
77 
78 
79 /***************************************************************************/
98 EMSTATUS PAL_GpioPinModeSet(unsigned int port,
99  unsigned int pin,
100  PAL_GpioMode_t mode,
101  unsigned int platformSpecific);
102 
103 
104 /***************************************************************************/
119 EMSTATUS PAL_GpioPinOutSet(unsigned int port, unsigned int pin);
120 
121 
122 /***************************************************************************/
137 EMSTATUS PAL_GpioPinOutClear(unsigned int port, unsigned int pin);
138 
139 
140 /***************************************************************************/
155 EMSTATUS PAL_GpioPinOutToggle(unsigned int port, unsigned int pin);
156 
157 
158 /**************************************************************************/
166 EMSTATUS PAL_GpioPinAutoToggle (unsigned int gpioPort,
167  unsigned int gpioPin,
168  unsigned int frequency);
169 
170 
171 /**************************************************************************/
179 EMSTATUS PAL_SpiInit (void);
180 
181 
182 /**************************************************************************/
190 EMSTATUS PAL_SpiShutdown (void);
191 
192 
193 /**************************************************************************/
201 EMSTATUS PAL_SpiTransmit (uint8_t* data, unsigned int len);
202 
203 
204 /**************************************************************************/
212 EMSTATUS PAL_TimerInit (void);
213 
214 
215 /**************************************************************************/
223 EMSTATUS PAL_TimerShutdown (void);
224 
225 
226 /**************************************************************************/
233 EMSTATUS PAL_TimerMicroSecondsDelay(unsigned int usecs);
234 
235 
236 #ifdef PAL_TIMER_REPEAT_FUNCTION
237 /**************************************************************************/
247 EMSTATUS PAL_TimerRepeat (void(*pFunction)(void*),
248  void* argument,
249  unsigned int frequency);
250 #endif
251 
252 #ifdef __cplusplus
253 }
254 #endif
255 
258 #endif /* _DISPLAY_PAL_H_ */
EMSTATUS definitions.