MotorWare f2806x Driver API Documentation

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

gpio.h
Go to the documentation of this file.
1 /* --COPYRIGHT--,BSD
2 * Copyright (c) 2015, Texas Instruments Incorporated
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * * Neither the name of Texas Instruments Incorporated nor the names of
17 * its contributors may be used to endorse or promote products derived
18 * from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 * --/COPYRIGHT--*/
32 #ifndef _GPIO_H_
33 #define _GPIO_H_
34
39
40
41 // **************************************************************************
42 // the includes
43
44 #include "sw/modules/types/src/types.h"
45
46 #include "sw/drivers/cpu/src/32b/f28x/f2806x/cpu.h"
47
48
53
54
55
56 #ifdef __cplusplus
57 extern "C" {
58 #endif
59
60
61 // **************************************************************************
62 // the defines
63
66 #define GPIO_BASE_ADDR (0x00006F80)
67
68
71 #define GPIO_GPMUX_CONFIG_BITS (3 << 0)
72 #define GPIO_GPMUX_NUMGPIOS_PER_REG 16
75
76
79 #define GPIO_GPxQSELy_GPIOx_BITS 3
80
83 #define GPIO_GPxQSELx_NUMGPIOS_PER_REG 16
84
85
88 #define GPIO_GPxCTRL_QUALPRDx_BITS 0xFF
89
92 #define GPIO_GPxCTRL_QUALPRDx_NUMBITS_PER_REG 8
93
94
95 // **************************************************************************
96 // the typedefs
97
100 typedef enum
101 {
102 GPIO_0_Mode_GeneralPurpose=0,
103 GPIO_0_Mode_EPWM1A,
104 GPIO_0_Mode_Rsvd_2,
105 GPIO_0_Mode_Rsvd_3,
106 GPIO_1_Mode_GeneralPurpose=0,
107 GPIO_1_Mode_EPWM1B,
108 GPIO_1_Mode_Rsvd_2,
109 GPIO_1_Mode_COMP1OUT,
110 GPIO_2_Mode_GeneralPurpose=0,
111 GPIO_2_Mode_EPWM2A,
112 GPIO_2_Mode_Rsvd_2,
113 GPIO_2_Mode_Rsvd_3,
114 GPIO_3_Mode_GeneralPurpose=0,
115 GPIO_3_Mode_EPWM2B,
116 GPIO_3_Mode_SPISOMIA,
117 GPIO_3_Mode_COMP2OUT,
118 GPIO_4_Mode_GeneralPurpose=0,
119 GPIO_4_Mode_EPWM3A,
120 GPIO_4_Mode_Rsvd_2,
121 GPIO_4_Mode_Rsvd_3,
122 GPIO_5_Mode_GeneralPurpose=0,
123 GPIO_5_Mode_EPWM3B,
124 GPIO_5_Mode_SPISIMOA,
125 GPIO_5_Mode_ECAP1,
126 GPIO_6_Mode_GeneralPurpose=0,
127 GPIO_6_Mode_EPWM4A,
128 GPIO_6_Mode_EPWMSYNCI,
129 GPIO_6_Mode_EPWMSYNCO,
130 GPIO_7_Mode_GeneralPurpose=0,
131 GPIO_7_Mode_EPWM4B,
132 GPIO_7_Mode_SCIRXDA,
133 GPIO_7_Mode_ECAP2,
134 GPIO_8_Mode_GeneralPurpose=0,
135 GPIO_8_Mode_EPWM5A,
136 GPIO_8_Mode_Rsvd_2,
137 GPIO_8_Mode_ADCSOCAO_NOT,
138 GPIO_9_Mode_GeneralPurpose=0,
139 GPIO_9_Mode_EPWM5B,
140 GPIO_9_Mode_SCITXDB,
141 GPIO_9_Mode_ECAP3,
142 GPIO_10_Mode_GeneralPurpose=0,
143 GPIO_10_Mode_EPWM6A,
144 GPIO_10_Mode_Rsvd_2,
145 GPIO_10_Mode_ADCSOCBO_NOT,
146 GPIO_11_Mode_GeneralPurpose=0,
147 GPIO_11_Mode_EPWM6B,
148 GPIO_11_Mode_SCIRXDB,
149 GPIO_11_Mode_ECAP1,
150 GPIO_12_Mode_GeneralPurpose=0,
151 GPIO_12_Mode_TZ1_NOT,
152 GPIO_12_Mode_SCITXDA,
153 GPIO_12_Mode_SPISIMOB,
154 GPIO_13_Mode_GeneralPurpose=0,
155 GPIO_13_Mode_TZ2_NOT,
156 GPIO_13_Mode_Rsvd_2,
157 GPIO_13_Mode_SPISOMIB,
158 GPIO_14_Mode_GeneralPurpose=0,
159 GPIO_14_Mode_TZ3_NOT,
160 GPIO_14_Mode_SCITXDB,
161 GPIO_14_Mode_SPICLKB,
162 GPIO_15_Mode_GeneralPurpose=0,
163 GPIO_15_Mode_ECAP2,
164 GPIO_15_Mode_SCIRXDB,
165 GPIO_15_Mode_SPISTEB_NOT,
166 GPIO_16_Mode_GeneralPurpose=0,
167 GPIO_16_Mode_SPISIMOA,
168 GPIO_16_Mode_Rsvd_2,
169 GPIO_16_Mode_TZ2_NOT,
170 GPIO_17_Mode_GeneralPurpose=0,
171 GPIO_17_Mode_SPISOMIA,
172 GPIO_17_Mode_Rsvd_2,
173 GPIO_17_Mode_TZ3_NOT,
174 GPIO_18_Mode_GeneralPurpose=0,
175 GPIO_18_Mode_SPICLKA,
176 GPIO_18_Mode_SCITXDB,
177 GPIO_18_Mode_XCLKOUT,
178 GPIO_19_Mode_GeneralPurpose=0,
179 GPIO_19_Mode_SPISTEA_NOT,
180 GPIO_19_Mode_SCIRXDB,
181 GPIO_19_Mode_ECAP1,
182 GPIO_20_Mode_GeneralPurpose=0,
183 GPIO_20_Mode_EQEP1A,
184 GPIO_20_Mode_MDXA,
185 GPIO_20_Mode_COMP1OUT,
186 GPIO_21_Mode_GeneralPurpose=0,
187 GPIO_21_Mode_EQEP1B,
188 GPIO_21_Mode_MDRA,
189 GPIO_21_Mode_COMP2OUT,
190 GPIO_22_Mode_GeneralPurpose=0,
191 GPIO_22_Mode_EQEP1S,
192 GPIO_22_Mode_MCLKXA,
193 GPIO_22_Mode_SCITXDB,
194 GPIO_23_Mode_GeneralPurpose=0,
195 GPIO_23_Mode_EQEP1I,
196 GPIO_23_Mode_MFSXA,
197 GPIO_23_Mode_SCIRXDB,
198 GPIO_24_Mode_GeneralPurpose=0,
199 GPIO_24_Mode_ECAP1,
200 GPIO_24_Mode_EQEP2A,
201 GPIO_24_Mode_SPISIMOB,
202 GPIO_25_Mode_GeneralPurpose=0,
203 GPIO_25_Mode_ECAP2,
204 GPIO_25_Mode_EQEP2B,
205 GPIO_25_Mode_SPISOMIB,
206 GPIO_26_Mode_GeneralPurpose=0,
207 GPIO_26_Mode_ECAP3,
208 GPIO_26_Mode_EQEP2I,
209 GPIO_26_Mode_SPICLKB,
210 GPIO_27_Mode_GeneralPurpose=0,
211 GPIO_27_Mode_HRCAP2,
212 GPIO_27_Mode_EQEP2S,
213 GPIO_27_Mode_SPISTEB_NOT,
214 GPIO_28_Mode_GeneralPurpose=0,
215 GPIO_28_Mode_SCIRXDA,
216 GPIO_28_Mode_SDDA,
217 GPIO_28_Mode_TZ2_NOT,
218 GPIO_29_Mode_GeneralPurpose=0,
219 GPIO_29_Mode_SCITXDA,
220 GPIO_29_Mode_SCLA,
221 GPIO_29_Mode_TZ3_NOT,
222 GPIO_30_Mode_GeneralPurpose=0,
223 GPIO_30_Mode_CANRXA,
224 GPIO_30_Mode_EQEP2I,
225 GPIO_30_Mode_EPWM7A,
226 GPIO_31_Mode_GeneralPurpose=0,
227 GPIO_31_Mode_CANTXA,
228 GPIO_31_Mode_EQEP2S,
229 GPIO_31_Mode_EPWM8A,
230 GPIO_32_Mode_GeneralPurpose=0,
231 GPIO_32_Mode_SDAA,
232 GPIO_32_Mode_EPWMSYNCI,
233 GPIO_32_Mode_ADCSOCAO_NOT,
234 GPIO_33_Mode_GeneralPurpose=0,
235 GPIO_33_Mode_SCLA,
236 GPIO_33_Mode_EPWMSYNCO,
237 GPIO_33_Mode_ADCSOCBO_NOT,
238 GPIO_34_Mode_GeneralPurpose=0,
239 GPIO_34_Mode_COMP2OUT,
240 GPIO_34_Mode_Rsvd_2,
241 GPIO_34_Mode_COMP3OUT,
242 GPIO_35_Mode_JTAG_TDI=0,
243 GPIO_35_Mode_Rsvd_1,
244 GPIO_35_Mode_Rsvd_2,
245 GPIO_35_Mode_Rsvd_3,
246 GPIO_36_Mode_JTAG_TMS=0,
247 GPIO_36_Mode_Rsvd_1,
248 GPIO_36_Mode_Rsvd_2,
249 GPIO_36_Mode_Rsvd_3,
250 GPIO_37_Mode_JTAG_TDO=0,
251 GPIO_37_Mode_Rsvd_1,
252 GPIO_37_Mode_Rsvd_2,
253 GPIO_37_Mode_Rsvd_3,
254 GPIO_38_Mode_JTAG_TCK=0,
255 GPIO_38_Mode_Rsvd_1,
256 GPIO_38_Mode_Rsvd_2,
257 GPIO_38_Mode_Rsvd_3,
258 GPIO_39_Mode_GeneralPurpose=0,
259 GPIO_39_Mode_Rsvd_1,
260 GPIO_39_Mode_Rsvd_2,
261 GPIO_39_Mode_Rsvd_3,
262 GPIO_40_Mode_GeneralPurpose=0,
263 GPIO_40_Mode_EPWM7A,
264 GPIO_40_Mode_SCITXDB,
265 GPIO_40_Mode_Rsvd_3,
266 GPIO_41_Mode_GeneralPurpose=0,
267 GPIO_41_Mode_EPWM7B,
268 GPIO_41_Mode_SCIRXDB,
269 GPIO_41_Mode_Rsvd_3,
270 GPIO_42_Mode_GeneralPurpose=0,
271 GPIO_42_Mode_EPWM8A,
272 GPIO_42_Mode_TZ1_NOT,
273 GPIO_42_Mode_COMP1OUT,
274 GPIO_43_Mode_GeneralPurpose=0,
275 GPIO_43_Mode_EPWM8B,
276 GPIO_43_Mode_TZ2_NOT,
277 GPIO_43_Mode_COMP2OUT,
278 GPIO_44_Mode_GeneralPurpose=0,
279 GPIO_44_Mode_MFSRA,
280 GPIO_44_Mode_SCIRXDB,
281 GPIO_44_Mode_EPWM7B,
282 GPIO_50_Mode_GeneralPurpose=0,
283 GPIO_50_Mode_EQEP1A,
284 GPIO_50_Mode_MDXA,
285 GPIO_50_Mode_TZ1_NOT,
286 GPIO_51_Mode_GeneralPurpose=0,
287 GPIO_51_Mode_EQEP1B,
288 GPIO_51_Mode_MDRA,
289 GPIO_51_Mode_TZ2_NOT,
290 GPIO_52_Mode_GeneralPurpose=0,
291 GPIO_52_Mode_EQEP1S,
292 GPIO_52_Mode_MCLKXA,
293 GPIO_52_Mode_TZ3_NOT,
294 GPIO_53_Mode_GeneralPurpose=0,
295 GPIO_53_Mode_EQEP1I,
296 GPIO_53_Mode_MFSXA,
297 GPIO_53_Mode_Rsvd_1,
298 GPIO_54_Mode_GeneralPurpose=0,
299 GPIO_54_Mode_SPISIMOA,
300 GPIO_54_Mode_EQEP2A,
301 GPIO_54_Mode_HRCAP1,
302 GPIO_55_Mode_GeneralPurpose=0,
303 GPIO_55_Mode_SPISOMIA,
304 GPIO_55_Mode_EQEP2B,
305 GPIO_55_Mode_HRCAP2,
306 GPIO_56_Mode_GeneralPurpose=0,
307 GPIO_56_Mode_SPICLKA,
308 GPIO_56_Mode_EQEP2I,
309 GPIO_56_Mode_HRCAP3,
310 GPIO_57_Mode_GeneralPurpose=0,
311 GPIO_57_Mode_SPISTEA_NOT,
312 GPIO_57_Mode_EQEP2S,
313 GPIO_57_Mode_HRCAP4,
314 GPIO_58_Mode_GeneralPurpose=0,
315 GPIO_58_Mode_MCLKRA,
316 GPIO_58_Mode_SCITXDB,
317 GPIO_58_Mode_EPWM7A
318 } GPIO_Mode_e;
319
320
323 typedef enum
324 {
325 GPIO_Direction_Input=0,
326 GPIO_Direction_Output
327 } GPIO_Direction_e;
328
329
332 typedef enum
333 {
334 GPIO_Pullup_Enable=0,
335 GPIO_Pullup_Disable
336 } GPIO_Pullup_e;
337
338
341 typedef enum
342 {
343 GPIO_Qual_Sync = 0,
344 GPIO_Qual_Sample_3,
345 GPIO_Qual_Sample_6,
346 GPIO_Qual_ASync
347 } GPIO_Qual_e;
348
349
352 typedef enum
353 {
354 GPIO_Port_A = 0,
355 GPIO_Port_B
356 } GPIO_Port_e;
357
358
361 typedef enum
362 {
363 GPIO_Number_0=0,
364 GPIO_Number_1,
365 GPIO_Number_2,
366 GPIO_Number_3,
367 GPIO_Number_4,
368 GPIO_Number_5,
369 GPIO_Number_6,
370 GPIO_Number_7,
371 GPIO_Number_8,
372 GPIO_Number_9,
373 GPIO_Number_10,
374 GPIO_Number_11,
375 GPIO_Number_12,
376 GPIO_Number_13,
377 GPIO_Number_14,
378 GPIO_Number_15,
379 GPIO_Number_16,
380 GPIO_Number_17,
381 GPIO_Number_18,
382 GPIO_Number_19,
383 GPIO_Number_20,
384 GPIO_Number_21,
385 GPIO_Number_22,
386 GPIO_Number_23,
387 GPIO_Number_24,
388 GPIO_Number_25,
389 GPIO_Number_26,
390 GPIO_Number_27,
391 GPIO_Number_28,
392 GPIO_Number_29,
393 GPIO_Number_30,
394 GPIO_Number_31,
395 GPIO_Number_32,
396 GPIO_Number_33,
397 GPIO_Number_34,
398 GPIO_Number_35,
399 GPIO_Number_36,
400 GPIO_Number_37,
401 GPIO_Number_38,
402 GPIO_Number_39,
403 GPIO_Number_40,
404 GPIO_Number_41,
405 GPIO_Number_42,
406 GPIO_Number_43,
407 GPIO_Number_44,
408 GPIO_Number_50=50,
409 GPIO_Number_51,
410 GPIO_Number_52,
411 GPIO_Number_53,
412 GPIO_Number_54,
413 GPIO_Number_55,
414 GPIO_Number_56,
415 GPIO_Number_57,
416 GPIO_Number_58,
417 GPIO_numGpios
418 } GPIO_Number_e;
419
420
423 typedef struct _GPIO_Obj_
424 {
425 volatile uint32_t GPACTRL;
426 volatile uint32_t GPAQSEL1;
427 volatile uint32_t GPAQSEL2;
428 volatile uint32_t GPAMUX1;
429 volatile uint32_t GPAMUX2;
430 volatile uint32_t GPADIR;
431 volatile uint32_t GPAPUD;
432 volatile uint16_t rsvd_1[2];
433 volatile uint32_t GPBCTRL;
434 volatile uint32_t GPBQSEL1;
435 volatile uint32_t GPBQSEL2;
436 volatile uint32_t GPBMUX1;
437 volatile uint32_t GPBMUX2;
438 volatile uint32_t GPBDIR;
439 volatile uint32_t GPBPUD;
440 volatile uint16_t rsvd_4[24];
441 volatile uint32_t AIOMUX1;
442 volatile uint16_t rsvd_5[2];
443 volatile uint32_t AIODIR;
444 volatile uint16_t rsvd_6[4];
445 volatile uint32_t GPADAT;
446 volatile uint32_t GPASET;
447 volatile uint32_t GPACLEAR;
448 volatile uint32_t GPATOGGLE;
449 volatile uint32_t GPBDAT;
450 volatile uint32_t GPBSET;
451 volatile uint32_t GPBCLEAR;
452 volatile uint32_t GPBTOGGLE;
453 volatile uint16_t rsvd_7[8];
454 volatile uint32_t AIODAT;
455 volatile uint32_t AIOSET;
456 volatile uint32_t AIOCLEAR;
457 volatile uint32_t AIOTOGGLE;
458 volatile uint16_t GPIOXINTnSEL[3];
459 volatile uint16_t rsvd_8[5];
460 volatile uint32_t GPIOLPMSEL;
461 } GPIO_Obj;
462
463
466 typedef struct _GPIO_Obj_ *GPIO_Handle;
467
468
469 // **************************************************************************
470 // the globals
471
472
473 // **************************************************************************
474 // the function prototypes
475
480 extern bool GPIO_getData(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber);
481
482
487 extern uint16_t GPIO_getPortData(GPIO_Handle gpioHandle, const GPIO_Port_e gpioPort);
488
489
494 extern GPIO_Handle GPIO_init(void *pMemory,const size_t numBytes);
495
496
501 extern void GPIO_setDirection(GPIO_Handle gpioHandle,const GPIO_Number_e gpioNumber,const GPIO_Direction_e direction);
502
503
508 extern void GPIO_setPullup(GPIO_Handle gpioHandle,const GPIO_Number_e gpioNumber,const GPIO_Pullup_e pullup);
509
510
515 extern void GPIO_setExtInt(GPIO_Handle gpioHandle,const GPIO_Number_e gpioNumber,const CPU_ExtIntNumber_e intNumber);
516
517
521 extern void GPIO_setLow(GPIO_Handle gpioHandle,const GPIO_Number_e gpioNumber);
522
523
528 extern void GPIO_setMode(GPIO_Handle gpioHandle,const GPIO_Number_e gpioNumber,const GPIO_Mode_e mode);
529
530
535 extern bool GPIO_read(GPIO_Handle gpioHandle,const GPIO_Number_e gpioNumber);
536
537
541 extern void GPIO_setHigh(GPIO_Handle gpioHandle,const GPIO_Number_e gpioNumber);
542
543
548 extern void GPIO_setPortData(GPIO_Handle gpioHandle, const GPIO_Port_e gpioPort, const uint16_t data);
549
550
555 extern void GPIO_setQualification(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber, const GPIO_Qual_e qualification);
556
557
562 extern void GPIO_setQualificationPeriod(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber, const uint_least8_t period);
563
564
568 extern void GPIO_toggle(GPIO_Handle gpioHandle,const GPIO_Number_e gpioNumber);
569
570
574 extern void GPIO_lpmSelect(GPIO_Handle gpioHandle,const GPIO_Number_e gpioNumber);
575
576
577 #ifdef __cplusplus
578 }
579 #endif // extern "C"
580
582 #endif // end of _GPIO_H_ definition
583
584
585
GPIO_setQualification
void GPIO_setQualification(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber, const GPIO_Qual_e qualification)
Sets the qualification for the specified general purpose I/O (GPIO)
Definition: gpio.c:341
GPIO_12_Mode_SPISIMOB
Denotes a SPISIMOB function.
Definition: gpio.h:153
GPIO_7_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:130
GPIO_25_Mode_SPISOMIB
Denotes a SPISOMIB function.
Definition: gpio.h:205
GPIO_26_Mode_EQEP2I
Denotes a EQEP2I function.
Definition: gpio.h:208
GPIO_50_Mode_EQEP1A
Denotes a EQEP1A function.
Definition: gpio.h:283
GPIO_4_Mode_EPWM3A
Denotes a EPWM3A function.
Definition: gpio.h:119
GPIO_40_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:262
GPIO_5_Mode_EPWM3B
Denotes a EPWM3B function.
Definition: gpio.h:123
GPIO_17_Mode_SPISOMIA
Denotes a SPISOMIA function.
Definition: gpio.h:171
GPIO_Mode_e
GPIO_Mode_e
Enumeration to define the general purpose I/O (GPIO) modes for each pin.
Definition: gpio.h:100
GPIO_43_Mode_COMP2OUT
Denotes a COMP2OUT function.
Definition: gpio.h:277
GPIO_43_Mode_EPWM8B
Denotes a EPWM8B function.
Definition: gpio.h:275
GPIO_39_Mode_Rsvd_3
Denotes a reserved function.
Definition: gpio.h:261
_GPIO_Obj_::AIOCLEAR
volatile uint32_t AIOCLEAR
Analog I/O Clear Register.
Definition: gpio.h:456
GPIO_23_Mode_MFSXA
Denotes a MFSXA function.
Definition: gpio.h:196
GPIO_getData
bool GPIO_getData(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber)
Returns the data value present on a pin (either input or output)
Definition: gpio.c:57
GPIO_19_Mode_SPISTEA_NOT
Denotes a SPISTEA_NOT function.
Definition: gpio.h:179
GPIO_Number_28
Denotes GPIO number 28.
Definition: gpio.h:391
GPIO_56_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:306
GPIO_14_Mode_SPICLKB
Denotes a SPICLKB function.
Definition: gpio.h:161
GPIO_34_Mode_Rsvd_2
Denotes a reserved function.
Definition: gpio.h:240
GPIO_35_Mode_Rsvd_1
Denotes a reserved function.
Definition: gpio.h:243
GPIO_35_Mode_Rsvd_3
Denotes a reserved function.
Definition: gpio.h:245
GPIO_31_Mode_EQEP2S
Denotes a EQEP2S function.
Definition: gpio.h:228
GPIO_Number_31
Denotes GPIO number 31.
Definition: gpio.h:394
_GPIO_Obj_::GPAQSEL1
volatile uint32_t GPAQSEL1
GPIO A Qualifier Select 1 Register.
Definition: gpio.h:426
GPIO_52_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:290
GPIO_27_Mode_EQEP2S
Denotes a EQEP2S function.
Definition: gpio.h:212
GPIO_Number_38
Denotes GPIO number 38.
Definition: gpio.h:401
GPIO_0_Mode_Rsvd_3
Denotes a reserved function.
Definition: gpio.h:105
GPIO_24_Mode_EQEP2A
Denotes a EQEP2A function.
Definition: gpio.h:200
GPIO_15_Mode_ECAP2
Denotes a ECAP2 function.
Definition: gpio.h:163
GPIO_52_Mode_TZ3_NOT
Denotes a TZ3_NOT function.
Definition: gpio.h:293
GPIO_3_Mode_EPWM2B
Denotes a EPWM2B function.
Definition: gpio.h:115
GPIO_Number_34
Denotes GPIO number 34.
Definition: gpio.h:397
GPIO_20_Mode_COMP1OUT
Denotes a COMP1OUT function.
Definition: gpio.h:185
GPIO_18_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:174
GPIO_8_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:134
GPIO_Number_58
Denotes GPIO number 58.
Definition: gpio.h:416
_GPIO_Obj_::rsvd_5
volatile uint16_t rsvd_5[2]
Reserved.
Definition: gpio.h:442
GPIO_31_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:226
GPIO_18_Mode_SPICLKA
Denotes a SPICLKA function.
Definition: gpio.h:175
GPIO_20_Mode_MDXA
Denotes a MDXA function.
Definition: gpio.h:184
GPIO_58_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:314
GPIO_51_Mode_MDRA
Denotes a MDRA function.
Definition: gpio.h:288
GPIO_11_Mode_ECAP1
Denotes a ECAP1 function.
Definition: gpio.h:149
GPIO_12_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:150
_GPIO_Obj_::rsvd_8
volatile uint16_t rsvd_8[5]
Reserved.
Definition: gpio.h:459
GPIO_setHigh
void GPIO_setHigh(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber)
Sets the specified general purpose I/O (GPIO) signal high.
Definition: gpio.c:215
GPIO_numGpios
Definition: gpio.h:417
GPIO_21_Mode_COMP2OUT
Denotes a COMP2OUT function.
Definition: gpio.h:189
GPIO_29_Mode_SCLA
Denotes a SCLA function.
Definition: gpio.h:220
_GPIO_Obj_::GPADIR
volatile uint32_t GPADIR
GPIO A Direction Register.
Definition: gpio.h:430
GPIO_58_Mode_EPWM7A
Denotes a EPWM7A function.
Definition: gpio.h:317
GPIO_Obj
struct _GPIO_Obj_ GPIO_Obj
Defines the General Purpose I/O (GPIO) object.
GPIO_Port_B
GPIO Port B.
Definition: gpio.h:355
_GPIO_Obj_::GPASET
volatile uint32_t GPASET
GPIO A Set Register.
Definition: gpio.h:446
GPIO_25_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:202
GPIO_Direction_Input
Denotes an input direction.
Definition: gpio.h:325
GPIO_Number_5
Denotes GPIO number 5.
Definition: gpio.h:368
GPIO_24_Mode_ECAP1
Denotes a ECAP1 function.
Definition: gpio.h:199
_GPIO_Obj_::GPBDIR
volatile uint32_t GPBDIR
GPIO B Direction Register.
Definition: gpio.h:438
GPIO_20_Mode_EQEP1A
Denotes a EQEP1A function.
Definition: gpio.h:183
GPIO_22_Mode_SCITXDB
Denotes a SCITXDB function.
Definition: gpio.h:193
GPIO_14_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:158
GPIO_Number_30
Denotes GPIO number 30.
Definition: gpio.h:393
GPIO_Number_3
Denotes GPIO number 3.
Definition: gpio.h:366
GPIO_36_Mode_Rsvd_1
Denotes a reserved function.
Definition: gpio.h:247
GPIO_Number_43
Denotes GPIO number 43.
Definition: gpio.h:406
GPIO_39_Mode_Rsvd_2
Denotes a reserved function.
Definition: gpio.h:260
GPIO_8_Mode_Rsvd_2
Denotes a reserved function.
Definition: gpio.h:136
GPIO_42_Mode_TZ1_NOT
Denotes a TZ1_NOT function.
Definition: gpio.h:272
GPIO_Number_57
Denotes GPIO number 57.
Definition: gpio.h:415
GPIO_34_Mode_COMP3OUT
Denotes a COMP3OUT function.
Definition: gpio.h:241
GPIO_2_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:110
GPIO_Number_24
Denotes GPIO number 24.
Definition: gpio.h:387
GPIO_Number_21
Denotes GPIO number 21.
Definition: gpio.h:384
GPIO_14_Mode_SCITXDB
Denotes a SCITXDB function.
Definition: gpio.h:160
GPIO_26_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:206
GPIO_50_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:282
GPIO_init
GPIO_Handle GPIO_init(void *pMemory, const size_t numBytes)
Initializes the general purpose I/O (GPIO) object handle.
Definition: gpio.c:92
GPIO_3_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:114
GPIO_5_Mode_SPISIMOA
Denotes a SPISOMIA function.
Definition: gpio.h:124
GPIO_Port_A
GPIO Port A.
Definition: gpio.h:354
GPIO_57_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:310
_GPIO_Obj_::AIODIR
volatile uint32_t AIODIR
Analog, I/O Direction Register.
Definition: gpio.h:443
GPIO_32_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:230
GPIO_Pullup_Disable
Denotes a pullup disabled.
Definition: gpio.h:335
GPIO_9_Mode_ECAP3
Denotes a ECAP3 function.
Definition: gpio.h:141
_GPIO_Obj_::AIODAT
volatile uint32_t AIODAT
Analog I/O Data Register.
Definition: gpio.h:454
GPIO_Number_32
Denotes GPIO number 32.
Definition: gpio.h:395
GPIO_38_Mode_Rsvd_3
Denotes a reserved function.
Definition: gpio.h:257
_GPIO_Obj_::rsvd_6
volatile uint16_t rsvd_6[4]
Reserved.
Definition: gpio.h:444
GPIO_53_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:294
GPIO_19_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:178
GPIO_38_Mode_Rsvd_2
Denotes a reserved function.
Definition: gpio.h:256
GPIO_setQualificationPeriod
void GPIO_setQualificationPeriod(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber, const uint_least8_t period)
Sets the qualification period for the specified general purpose I/O block (8 I/O's per block) ...
Definition: gpio.c:378
GPIO_Number_44
Denotes GPIO number 44.
Definition: gpio.h:407
GPIO_1_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:106
GPIO_56_Mode_EQEP2I
Denotes a EQEP2I function.
Definition: gpio.h:308
GPIO_51_Mode_TZ2_NOT
Denotes a TZ2_NOT function.
Definition: gpio.h:289
GPIO_16_Mode_SPISIMOA
Denotes a SPISIMOA function.
Definition: gpio.h:167
GPIO_Number_51
Denotes GPIO number 51.
Definition: gpio.h:409
GPIO_Number_29
Denotes GPIO number 29.
Definition: gpio.h:392
GPIO_40_Mode_EPWM7A
Denotes a EPWM7A function.
Definition: gpio.h:263
GPIO_38_Mode_Rsvd_1
Denotes a reserved function.
Definition: gpio.h:255
GPIO_10_Mode_Rsvd_2
Denotes a reserved function.
Definition: gpio.h:144
GPIO_23_Mode_SCIRXDB
Denotes a SCIRXDB function.
Definition: gpio.h:197
GPIO_25_Mode_ECAP2
Denotes a ECAP2 function.
Definition: gpio.h:203
GPIO_21_Mode_EQEP1B
Denotes a EQEP1B function.
Definition: gpio.h:187
GPIO_Direction_Output
Denotes an output direction.
Definition: gpio.h:326
GPIO_16_Mode_TZ2_NOT
Denotes a TZ2_NOT function.
Definition: gpio.h:169
GPIO_11_Mode_EPWM6B
Denotes a EPWM6B function.
Definition: gpio.h:147
GPIO_5_Mode_ECAP1
Denotes a ECAP1 function.
Definition: gpio.h:125
GPIO_Number_8
Denotes GPIO number 8.
Definition: gpio.h:371
_GPIO_Obj_::GPBQSEL2
volatile uint32_t GPBQSEL2
GPIO B Qualifier Select 2 Register.
Definition: gpio.h:435
GPIO_Number_53
Denotes GPIO number 53.
Definition: gpio.h:411
GPIO_21_Mode_MDRA
Denotes a MDRA function.
Definition: gpio.h:188
GPIO_26_Mode_SPICLKB
Denotes a SPICLKB function.
Definition: gpio.h:209
GPIO_2_Mode_Rsvd_2
Denotes a reserved function.
Definition: gpio.h:112
GPIO_12_Mode_SCITXDA
Denotes a SCITXDA function.
Definition: gpio.h:152
GPIO_13_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:154
GPIO_0_Mode_Rsvd_2
Denotes a reserved function.
Definition: gpio.h:104
GPIO_44_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:278
GPIO_13_Mode_Rsvd_2
Denotes a reserved function.
Definition: gpio.h:156
GPIO_Number_56
Denotes GPIO number 56.
Definition: gpio.h:414
GPIO_43_Mode_TZ2_NOT
Denotes a TZ2_NOT function.
Definition: gpio.h:276
GPIO_25_Mode_EQEP2B
Denotes a EQEP2B function.
Definition: gpio.h:204
GPIO_Number_17
Denotes GPIO number 17.
Definition: gpio.h:380
GPIO_8_Mode_ADCSOCAO_NOT
Denotes a ADCSICAO_NOT function.
Definition: gpio.h:137
GPIO_36_Mode_Rsvd_3
Denotes a reserved function.
Definition: gpio.h:249
GPIO_Qual_ASync
Denotes input is asynchronous.
Definition: gpio.h:346
GPIO_Qual_Sample_6
Denotes input is qualified with 6 samples.
Definition: gpio.h:345
GPIO_2_Mode_EPWM2A
Denotes a EPWM2A function.
Definition: gpio.h:111
GPIO_55_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:302
GPIO_10_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:142
GPIO_Direction_e
GPIO_Direction_e
Enumeration to define the general purpose I/O (GPIO) directions.
Definition: gpio.h:323
_GPIO_Obj_::GPBSET
volatile uint32_t GPBSET
GPIO B Set Register.
Definition: gpio.h:450
GPIO_29_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:218
GPIO_15_Mode_SPISTEB_NOT
Denotes a SPISTEB_NOT function.
Definition: gpio.h:165
GPIO_Qual_Sample_3
Denotes input is qualified with 3 samples.
Definition: gpio.h:344
GPIO_38_Mode_JTAG_TCK
Denotes a JTAG_TCK function.
Definition: gpio.h:254
GPIO_54_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:298
GPIO_37_Mode_Rsvd_1
Denotes a reserved function.
Definition: gpio.h:251
_GPIO_Obj_::GPBCLEAR
volatile uint32_t GPBCLEAR
GPIO B Clear Register.
Definition: gpio.h:451
GPIO_24_Mode_SPISIMOB
Denotes a SPISIMOB function.
Definition: gpio.h:201
GPIO_41_Mode_SCIRXDB
Denotes a SCIRXDB function.
Definition: gpio.h:268
GPIO_28_Mode_SCIRXDA
Denotes a SCIRXDA function.
Definition: gpio.h:215
_GPIO_Obj_::GPAPUD
volatile uint32_t GPAPUD
GPIO A Pull Up Disable Register.
Definition: gpio.h:431
GPIO_Number_23
Denotes GPIO number 23.
Definition: gpio.h:386
_GPIO_Obj_::GPACTRL
volatile uint32_t GPACTRL
GPIO A Control Register.
Definition: gpio.h:425
GPIO_29_Mode_SCITXDA
Denotes a SCITXDA function.
Definition: gpio.h:219
GPIO_16_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:166
GPIO_24_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:198
GPIO_11_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:146
_GPIO_Obj_::GPIOLPMSEL
volatile uint32_t GPIOLPMSEL
GPIO Low Power Mode Wakeup Select Register.
Definition: gpio.h:460
_GPIO_Obj_::GPBTOGGLE
volatile uint32_t GPBTOGGLE
GPIO B Toggle Register.
Definition: gpio.h:452
GPIO_20_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:182
GPIO_Number_18
Denotes GPIO number 18.
Definition: gpio.h:381
GPIO_42_Mode_EPWM8A
Denotes a EPWM8A function.
Definition: gpio.h:271
GPIO_23_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:194
GPIO_5_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:122
GPIO_Number_27
Denotes GPIO number 27.
Definition: gpio.h:390
GPIO_21_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:186
GPIO_Pullup_e
GPIO_Pullup_e
Enumeration to define the general purpose I/O (GPIO) pullups.
Definition: gpio.h:332
GPIO_30_Mode_EQEP2I
Denotes a EQEP2I function.
Definition: gpio.h:224
GPIO_read
bool GPIO_read(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber)
Reads the specified general purpose I/O (GPIO)
Definition: gpio.c:185
GPIO_31_Mode_CANTXA
Denotes a CANTXA function.
Definition: gpio.h:227
_GPIO_Obj_
Defines the General Purpose I/O (GPIO) object.
Definition: gpio.h:423
GPIO_10_Mode_EPWM6A
Denotes a EPWM6A function.
Definition: gpio.h:143
GPIO_Number_7
Denotes GPIO number 7.
Definition: gpio.h:370
GPIO_57_Mode_SPISTEA_NOT
Denotes a SPISTEA_NOT function.
Definition: gpio.h:311
GPIO_18_Mode_SCITXDB
Denotes a SCITXDB function.
Definition: gpio.h:176
GPIO_32_Mode_SDAA
Denotes a SDDA function.
Definition: gpio.h:231
GPIO_0_Mode_EPWM1A
Denotes a EPWM1A function.
Definition: gpio.h:103
GPIO_37_Mode_Rsvd_2
Denotes a reserved function.
Definition: gpio.h:252
GPIO_40_Mode_Rsvd_3
Denotes a reserved function.
Definition: gpio.h:265
GPIO_Number_15
Denotes GPIO number 15.
Definition: gpio.h:378
GPIO_6_Mode_EPWMSYNCI
Denotes a EPWMSYNCI function.
Definition: gpio.h:128
GPIO_27_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:210
_GPIO_Obj_::AIOTOGGLE
volatile uint32_t AIOTOGGLE
Analog I/O Toggle Register.
Definition: gpio.h:457
GPIO_Number_0
Denotes GPIO number 0.
Definition: gpio.h:363
_GPIO_Obj_::GPBQSEL1
volatile uint32_t GPBQSEL1
GPIO B Qualifier Select 1 Register.
Definition: gpio.h:434
GPIO_57_Mode_EQEP2S
Denotes a EQEP2S function.
Definition: gpio.h:312
GPIO_Number_2
Denotes GPIO number 2.
Definition: gpio.h:365
GPIO_setPullup
void GPIO_setPullup(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber, const GPIO_Pullup_e pullup)
Sets the general purpose I/O (GPIO) pullup disable.
Definition: gpio.c:109
GPIO_setDirection
void GPIO_setDirection(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber, const GPIO_Direction_e direction)
Sets the general purpose I/O (GPIO) signal direction.
Definition: gpio.c:139
GPIO_8_Mode_EPWM5A
Denotes a EPWM5A function.
Definition: gpio.h:135
GPIO_52_Mode_EQEP1S
Denotes a EQEP1S function.
Definition: gpio.h:291
GPIO_Number_14
Denotes GPIO number 14.
Definition: gpio.h:377
_GPIO_Obj_::GPBDAT
volatile uint32_t GPBDAT
GPIO B Data Register.
Definition: gpio.h:449
_GPIO_Obj_::GPBMUX1
volatile uint32_t GPBMUX1
GPIO B MUX 1 Register.
Definition: gpio.h:436
GPIO_11_Mode_SCIRXDB
Denotes a SCIRXDB function.
Definition: gpio.h:148
GPIO_53_Mode_EQEP1I
Denotes a EQEP1I function.
Definition: gpio.h:295
GPIO_28_Mode_TZ2_NOT
Denotes a TZ2_NOT function.
Definition: gpio.h:217
GPIO_16_Mode_Rsvd_2
Denotes a reserved function.
Definition: gpio.h:168
GPIO_1_Mode_COMP1OUT
Denotes a COMP1OUT function.
Definition: gpio.h:109
GPIO_Number_26
Denotes GPIO number 26.
Definition: gpio.h:389
GPIO_36_Mode_Rsvd_2
Denotes a reserved function.
Definition: gpio.h:248
GPIO_39_Mode_Rsvd_1
Denotes a reserved function.
Definition: gpio.h:259
GPIO_Number_11
Denotes GPIO number 11.
Definition: gpio.h:374
GPIO_42_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:270
GPIO_Number_40
Denotes GPIO number 40.
Definition: gpio.h:403
GPIO_27_Mode_SPISTEB_NOT
Denotes a SPISTEB function.
Definition: gpio.h:213
GPIO_Number_50
Denotes GPIO number 50.
Definition: gpio.h:408
GPIO_9_Mode_SCITXDB
Denotes a SCITXDB function.
Definition: gpio.h:140
GPIO_55_Mode_SPISOMIA
Denotes a SPISOMIA function.
Definition: gpio.h:303
GPIO_37_Mode_Rsvd_3
Denotes a reserved function.
Definition: gpio.h:253
GPIO_41_Mode_Rsvd_3
Denotes a reserved function.
Definition: gpio.h:269
GPIO_Number_41
Denotes GPIO number 41.
Definition: gpio.h:404
GPIO_17_Mode_TZ3_NOT
Denotes a TZ3_NOT function.
Definition: gpio.h:173
GPIO_setLow
void GPIO_setLow(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber)
Sets the specified general purpose I/O (GPIO) signal low.
Definition: gpio.c:237
GPIO_13_Mode_TZ2_NOT
Denotes a TZ2_NOT function.
Definition: gpio.h:155
GPIO_Number_20
Denotes GPIO number 20.
Definition: gpio.h:383
GPIO_19_Mode_ECAP1
Denotes a ECAP1 function.
Definition: gpio.h:181
GPIO_Number_22
Denotes GPIO number 22.
Definition: gpio.h:385
GPIO_Number_12
Denotes GPIO number 12.
Definition: gpio.h:375
GPIO_33_Mode_SCLA
Denotes a SCLA function.
Definition: gpio.h:235
GPIO_getPortData
uint16_t GPIO_getPortData(GPIO_Handle gpioHandle, const GPIO_Port_e gpioPort)
Returns the data value present on a GPIO port.
Definition: gpio.c:74
_GPIO_Obj_::rsvd_4
volatile uint16_t rsvd_4[24]
Reserved.
Definition: gpio.h:440
GPIO_18_Mode_XCLKOUT
Denotes a XCLKOUT function.
Definition: gpio.h:177
GPIO_28_Mode_SDDA
Denotes a SDDA function.
Definition: gpio.h:216
GPIO_41_Mode_EPWM7B
Denotes a EPWM7B function.
Definition: gpio.h:267
GPIO_53_Mode_MFSXA
Denotes a MFSXA function.
Definition: gpio.h:296
_GPIO_Obj_::GPBCTRL
volatile uint32_t GPBCTRL
GPIO B Control Register.
Definition: gpio.h:433
GPIO_50_Mode_TZ1_NOT
Denotes a TZ1_NOT function.
Definition: gpio.h:285
cpu.h
Contains public interface to various functions related to the central processing unit (CPU) object...
GPIO_23_Mode_EQEP1I
Denotes a EQEP1I function.
Definition: gpio.h:195
GPIO_Number_42
Denotes GPIO number 42.
Definition: gpio.h:405
GPIO_Number_1
Denotes GPIO number 1.
Definition: gpio.h:364
GPIO_32_Mode_EPWMSYNCI
Denotes a EPWMSYNCI function.
Definition: gpio.h:232
GPIO_9_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:138
GPIO_34_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:238
_GPIO_Obj_::GPAMUX1
volatile uint32_t GPAMUX1
GPIO A MUX 1 Register.
Definition: gpio.h:428
GPIO_Number_19
Denotes GPIO number 19.
Definition: gpio.h:382
GPIO_7_Mode_SCIRXDA
Denotes a SCIRXDA function.
Definition: gpio.h:132
GPIO_Number_4
Denotes GPIO number 4.
Definition: gpio.h:367
GPIO_Number_6
Denotes GPIO number 6.
Definition: gpio.h:369
GPIO_42_Mode_COMP1OUT
Denotes a COMP1OUT function.
Definition: gpio.h:273
GPIO_33_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:234
GPIO_Number_54
Denotes GPIO number 54.
Definition: gpio.h:412
GPIO_29_Mode_TZ3_NOT
Denotes a TZ3_NOT function.
Definition: gpio.h:221
GPIO_setPortData
void GPIO_setPortData(GPIO_Handle gpioHandle, const GPIO_Port_e gpioPort, const uint16_t data)
Sets data output on a given GPIO port.
Definition: gpio.c:321
GPIO_30_Mode_EPWM7A
Denotes a EPWM7A function.
Definition: gpio.h:225
GPIO_6_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:126
GPIO_54_Mode_HRCAP1
Denotes a HRCAP1 function.
Definition: gpio.h:301
_GPIO_Obj_::rsvd_7
volatile uint16_t rsvd_7[8]
Reserved.
Definition: gpio.h:453
GPIO_30_Mode_CANRXA
Denotes a CANRXA function.
Definition: gpio.h:223
GPIO_28_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:214
GPIO_43_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:274
_GPIO_Obj_::GPATOGGLE
volatile uint32_t GPATOGGLE
GPIO A Toggle Register.
Definition: gpio.h:448
GPIO_22_Mode_EQEP1S
Denotes a EQEP1S function.
Definition: gpio.h:191
GPIO_Qual_Sync
Denotes input will be synchronized to SYSCLK.
Definition: gpio.h:343
GPIO_4_Mode_Rsvd_2
Denotes a reserved function.
Definition: gpio.h:120
GPIO_55_Mode_EQEP2B
Denotes a EQEP2B function.
Definition: gpio.h:304
GPIO_toggle
void GPIO_toggle(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber)
Toggles the specified general purpose I/O (GPIO) signal.
Definition: gpio.c:439
GPIO_Number_39
Denotes GPIO number 39.
Definition: gpio.h:402
GPIO_31_Mode_EPWM8A
Denotes a EPWM8A function.
Definition: gpio.h:229
GPIO_55_Mode_HRCAP2
Denotes a HRCAP2 function.
Definition: gpio.h:305
CPU_ExtIntNumber_e
CPU_ExtIntNumber_e
Enumeration to define the external interrupt numbers.
Definition: cpu.h:404
GPIO_Number_16
Denotes GPIO number 16.
Definition: gpio.h:379
GPIO_7_Mode_ECAP2
Denotes a ECAP2 function.
Definition: gpio.h:133
GPIO_Number_33
Denotes GPIO number 33.
Definition: gpio.h:396
GPIO_Number_10
Denotes GPIO number 10.
Definition: gpio.h:373
GPIO_50_Mode_MDXA
Denotes a MDXA function.
Definition: gpio.h:284
_GPIO_Obj_::GPBMUX2
volatile uint32_t GPBMUX2
GPIO B MUX 2 Register.
Definition: gpio.h:437
GPIO_Pullup_Enable
Denotes a pullup enabled.
Definition: gpio.h:334
GPIO_58_Mode_SCITXDB
Denotes a SCITXDB function.
Definition: gpio.h:316
GPIO_33_Mode_EPWMSYNCO
Denotes a EPWMSYNCO function.
Definition: gpio.h:236
GPIO_53_Mode_Rsvd_1
Denotes a reserved function.
Definition: gpio.h:297
GPIO_Number_13
Denotes GPIO number 13.
Definition: gpio.h:376
GPIO_Handle
struct _GPIO_Obj_ * GPIO_Handle
Defines the general purpose I/O (GPIO) handle.
Definition: gpio.h:466
GPIO_54_Mode_EQEP2A
Denotes a EQEP2A function.
Definition: gpio.h:300
_GPIO_Obj_::GPBPUD
volatile uint32_t GPBPUD
GPIO B Pull Up Disable Register.
Definition: gpio.h:439
_GPIO_Obj_::GPACLEAR
volatile uint32_t GPACLEAR
GPIO A Clear Register.
Definition: gpio.h:447
GPIO_17_Mode_Rsvd_2
Denotes a reserved function.
Definition: gpio.h:172
GPIO_4_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:118
GPIO_Number_9
Denotes GPIO number 9.
Definition: gpio.h:372
GPIO_22_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:190
GPIO_27_Mode_HRCAP2
Denotes a HRCAP2 function.
Definition: gpio.h:211
GPIO_30_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:222
GPIO_Qual_e
GPIO_Qual_e
Enumeration to define the general purpose I/O (GPIO) qualification.
Definition: gpio.h:341
GPIO_6_Mode_EPWM4A
Denotes a EPWM4A function.
Definition: gpio.h:127
_GPIO_Obj_::GPAMUX2
volatile uint32_t GPAMUX2
GPIO A MUX 2 Register.
Definition: gpio.h:429
GPIO_6_Mode_EPWMSYNCO
Denotes a EPWMSYNCO function.
Definition: gpio.h:129
GPIO_44_Mode_SCIRXDB
Denotes a SCIRXDB function.
Definition: gpio.h:280
GPIO_56_Mode_HRCAP3
Denotes a HRCAP3 function.
Definition: gpio.h:309
GPIO_36_Mode_JTAG_TMS
Denotes a JTAG_TMS function.
Definition: gpio.h:246
GPIO_58_Mode_MCLKRA
Denotes a MCLKRA function.
Definition: gpio.h:315
GPIO_0_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:102
GPIO_15_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:162
GPIO_Number_35
Denotes GPIO number 35.
Definition: gpio.h:398
_GPIO_Obj_::AIOSET
volatile uint32_t AIOSET
Analog I/O Data Set Register.
Definition: gpio.h:455
_GPIO_Obj_::GPADAT
volatile uint32_t GPADAT
GPIO A Data Register.
Definition: gpio.h:445
_GPIO_Obj_::GPAQSEL2
volatile uint32_t GPAQSEL2
GPIO A Qualifier Select 2 Register.
Definition: gpio.h:427
GPIO_setMode
void GPIO_setMode(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber, const GPIO_Mode_e mode)
Sets the mode for the specified general purpose I/O (GPIO) signal.
Definition: gpio.c:259
GPIO_Number_36
Denotes GPIO number 36.
Definition: gpio.h:399
GPIO_37_Mode_JTAG_TDO
Denotes a JTAG_TDO function.
Definition: gpio.h:250
GPIO_26_Mode_ECAP3
Denotes a ECAP3 function.
Definition: gpio.h:207
GPIO_17_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:170
GPIO_22_Mode_MCLKXA
Denotes a MCLKXA function.
Definition: gpio.h:192
GPIO_3_Mode_COMP2OUT
Denotes a COMP2OUT function.
Definition: gpio.h:117
GPIO_54_Mode_SPISIMOA
Denotes a SPISIMOA function.
Definition: gpio.h:299
GPIO_44_Mode_MFSRA
Denotes a MFSRA function.
Definition: gpio.h:279
GPIO_2_Mode_Rsvd_3
Denotes a reserved function.
Definition: gpio.h:113
GPIO_9_Mode_EPWM5B
Denotes a EPWM5B function.
Definition: gpio.h:139
GPIO_4_Mode_Rsvd_3
Denotes a reserved function.
Definition: gpio.h:121
GPIO_51_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:286
GPIO_40_Mode_SCITXDB
Denotes a SCITXDB function.
Definition: gpio.h:264
GPIO_Number_25
Denotes GPIO number 25.
Definition: gpio.h:388
GPIO_Number_37
Denotes GPIO number 37.
Definition: gpio.h:400
GPIO_51_Mode_EQEP1B
Denotes a EQEP1B function.
Definition: gpio.h:287
GPIO_41_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:266
GPIO_34_Mode_COMP2OUT
Denotes a COMP2OUT function.
Definition: gpio.h:239
GPIO_7_Mode_EPWM4B
Denotes a EPWM4B function.
Definition: gpio.h:131
GPIO_39_Mode_GeneralPurpose
Denotes a general purpose function.
Definition: gpio.h:258
GPIO_56_Mode_SPICLKA
Denotes a SPICLKA function.
Definition: gpio.h:307
GPIO_52_Mode_MCLKXA
Denotes a MCLKXA function.
Definition: gpio.h:292
GPIO_Number_52
Denotes GPIO number 52.
Definition: gpio.h:410
GPIO_35_Mode_Rsvd_2
Denotes a reserved function.
Definition: gpio.h:244
GPIO_12_Mode_TZ1_NOT
Denotes a TZ1_NOT function.
Definition: gpio.h:151
GPIO_lpmSelect
void GPIO_lpmSelect(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber)
Selects a gpio pin to wake up device from STANDBY and HALT LPM.
Definition: gpio.c:461
GPIO_3_Mode_SPISOMIA
Denotes a SPISOMIA function.
Definition: gpio.h:116
GPIO_33_Mode_ADCSOCBO_NOT
Denotes a ADCSOCBO_NOT function.
Definition: gpio.h:237
GPIO_setExtInt
void GPIO_setExtInt(GPIO_Handle gpioHandle, const GPIO_Number_e gpioNumber, const CPU_ExtIntNumber_e intNumber)
Sets the general purpose I/O (GPIO) external interrupt number.
Definition: gpio.c:169
_GPIO_Obj_::GPIOXINTnSEL
volatile uint16_t GPIOXINTnSEL[3]
XINT1-3 Source Select Registers.
Definition: gpio.h:458
GPIO_Number_e
GPIO_Number_e
Enumeration to define the general purpose I/O (GPIO) numbers.
Definition: gpio.h:361
GPIO_1_Mode_Rsvd_2
Denotes a reserved function.
Definition: gpio.h:108
GPIO_19_Mode_SCIRXDB
Denotes a SCIRXDB function.
Definition: gpio.h:180
GPIO_13_Mode_SPISOMIB
Denotes a SPISOMIB function.
Definition: gpio.h:157
GPIO_10_Mode_ADCSOCBO_NOT
Denotes a ADCSOCBO_NOT function.
Definition: gpio.h:145
GPIO_Port_e
GPIO_Port_e
Enumeration to define the general purpose I/O (GPIO) ports.
Definition: gpio.h:352
GPIO_14_Mode_TZ3_NOT
Denotes a TZ3_NOT function.
Definition: gpio.h:159
_GPIO_Obj_::rsvd_1
volatile uint16_t rsvd_1[2]
Reserved.
Definition: gpio.h:432
GPIO_1_Mode_EPWM1B
Denotes a EPWM1B function.
Definition: gpio.h:107
GPIO_35_Mode_JTAG_TDI
Denotes a JTAG_TDI function.
Definition: gpio.h:242
GPIO_15_Mode_SCIRXDB
Denotes a SCIRXDB function.
Definition: gpio.h:164
_GPIO_Obj_::AIOMUX1
volatile uint32_t AIOMUX1
Analog, I/O Mux 1 Register.
Definition: gpio.h:441
GPIO_Number_55
Denotes GPIO number 55.
Definition: gpio.h:413
GPIO_32_Mode_ADCSOCAO_NOT
Denotes a ADCSOCAO_NOT function.
Definition: gpio.h:233
GPIO_44_Mode_EPWM7B
Denotes a EPWM7B function.
Definition: gpio.h:281
GPIO_57_Mode_HRCAP4
Denotes a HRCAP4 function.
Definition: gpio.h:313