Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
gpio.h
Go to the documentation of this file.
1 /*
2  ***********************************************************************************************************************
3  *
4  * Copyright (c) Infineon Technologies AG
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without modification,are permitted provided that the
8  * following conditions are met:
9  *
10  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following
11  * disclaimer.
12  *
13  * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
14  * following disclaimer in the documentation and/or other materials provided with the distribution.
15  *
16  * Neither the name of the copyright holders nor the names of its contributors may be used to endorse or promote
17  * products derived from this software without specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
20  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24  * WHETHER IN CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
25  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  *
27  **********************************************************************************************************************/
43 /* Generated by generate_functions_02_xlsx2func.py, version 1.0.1 on 10. Feb 2021
44  * from File 'gpio.xlsx', version 0.3.0
45  */
46 
47 /*******************************************************************************
48 ** Author(s) Identity **
49 ********************************************************************************
50 ** Initials Name **
51 ** ---------------------------------------------------------------------------**
52 ** JO Julia Ott **
53 ** BG Blandine Guillot **
54 ** DM Daniel Mysliwitz **
55 *******************************************************************************/
56 
57 /*******************************************************************************
58 ** Revision Control History **
59 ********************************************************************************
60 ** V0.1.0: 2020-08-04, JO: Initial version **
61 ** V0.2.0: 2020-10-14, JO: EP-516: Added functions to configure ATLSEL of **
62 ** the GPIOS (P0.x, P1.x) **
63 ** V0.2.1: 2020-10-15, JO: EP-523: Updated parameter names **
64 ** V0.2.2: 2020-11-12, JO: EP-590: Removed \param none and \return none to **
65 ** avoid doxygen warning **
66 ** Added end of group for doxygen **
67 ** V0.2.3: 2021-02-10, JO: EP-696: Changed from anonymous to named typedefs **
68 ** to prevent MISRA warning **
69 ** V0.2.4: 2021-11-12, JO: EP-937: Updated copyright and branding **
70 ** V0.2.5: 2022-06-23, JO: EP-1150: Removed ARMCC V6.18 warnings **
71 ** V0.2.6: 2022-11-17, JO: EP-1342: Updated enum documentation to remove **
72 ** doxygen warning **
73 *******************************************************************************/
74 
75 #ifndef _GPIO_H
76 #define _GPIO_H
77 
78 /*******************************************************************************
79 ** Includes **
80 *******************************************************************************/
81 #include "tle_variants.h"
82 #include "types.h"
83 #include "gpio_defines.h"
84 #include "tle989x.h"
85 
86 /*******************************************************************************
87 ** Global Macro Declarations **
88 *******************************************************************************/
89 
90 /*******************************************************************************
91 ** Global Type Declarations **
92 *******************************************************************************/
97 typedef enum GPIO_P0_0_ALTSEL
98 {
104 
109 typedef enum GPIO_P0_1_ALTSEL
110 {
120 
125 typedef enum GPIO_P0_2_ALTSEL
126 {
135 
140 typedef enum GPIO_P0_3_ALTSEL
141 {
151 
156 typedef enum GPIO_P0_4_ALTSEL
157 {
165 
170 typedef enum GPIO_P0_5_ALTSEL
171 {
178 
183 typedef enum GPIO_P0_6_ALTSEL
184 {
194 
199 typedef enum GPIO_P0_7_ALTSEL
200 {
210 
215 typedef enum GPIO_P0_8_ALTSEL
216 {
223 
228 typedef enum GPIO_P0_9_ALTSEL
229 {
238 
243 typedef enum GPIO_P0_10_ALTSEL
244 {
254 
259 typedef enum GPIO_DIR
260 {
262  GPIO_DIR_OUTPUT = 1
264 
269 typedef enum GPIO_STATE
270 {
271  GPIO_STATE_HIGH = 0x00000001,
272  GPIO_STATE_LOW = 0x00010000,
273  GPIO_STATE_TOGGLE = 0x00010001
275 
280 typedef enum GPIO_P1_0_ALTSEL
281 {
291 
296 typedef enum GPIO_P1_1_ALTSEL
297 {
307 
312 typedef enum GPIO_P1_2_ALTSEL
313 {
323 
328 typedef enum GPIO_P1_3_ALTSEL
329 {
338 
343 typedef enum GPIO_P1_4_ALTSEL
344 {
351 
352 
353 /*******************************************************************************
354 ** Global Function Declarations **
355 *******************************************************************************/
367 INLINE void GPIO_setP00Dir(tGPIO_DIR e_value);
368 INLINE void GPIO_setP01Dir(tGPIO_DIR e_value);
369 INLINE void GPIO_setP02Dir(tGPIO_DIR e_value);
370 INLINE void GPIO_setP03Dir(tGPIO_DIR e_value);
371 INLINE void GPIO_setP04Dir(tGPIO_DIR e_value);
372 INLINE void GPIO_setP05Dir(tGPIO_DIR e_value);
373 INLINE void GPIO_setP06Dir(tGPIO_DIR e_value);
374 INLINE void GPIO_setP07Dir(tGPIO_DIR e_value);
375 INLINE void GPIO_setP08Dir(tGPIO_DIR e_value);
376 INLINE void GPIO_setP09Dir(tGPIO_DIR e_value);
377 INLINE void GPIO_setP010Dir(tGPIO_DIR e_value);
389 INLINE void GPIO_setP00State(tGPIO_STATE e_value);
390 INLINE void GPIO_setP01State(tGPIO_STATE e_value);
391 INLINE void GPIO_setP02State(tGPIO_STATE e_value);
392 INLINE void GPIO_setP03State(tGPIO_STATE e_value);
393 INLINE void GPIO_setP04State(tGPIO_STATE e_value);
394 INLINE void GPIO_setP05State(tGPIO_STATE e_value);
395 INLINE void GPIO_setP06State(tGPIO_STATE e_value);
396 INLINE void GPIO_setP07State(tGPIO_STATE e_value);
397 INLINE void GPIO_setP08State(tGPIO_STATE e_value);
398 INLINE void GPIO_setP09State(tGPIO_STATE e_value);
399 INLINE void GPIO_setP010State(tGPIO_STATE e_value);
405 INLINE void GPIO_setP10Dir(tGPIO_DIR e_value);
406 INLINE void GPIO_setP11Dir(tGPIO_DIR e_value);
407 INLINE void GPIO_setP12Dir(tGPIO_DIR e_value);
408 INLINE void GPIO_setP13Dir(tGPIO_DIR e_value);
409 INLINE void GPIO_setP14Dir(tGPIO_DIR e_value);
415 INLINE void GPIO_setP10State(tGPIO_STATE e_value);
416 INLINE void GPIO_setP11State(tGPIO_STATE e_value);
417 INLINE void GPIO_setP12State(tGPIO_STATE e_value);
418 INLINE void GPIO_setP13State(tGPIO_STATE e_value);
419 INLINE void GPIO_setP14State(tGPIO_STATE e_value);
430 INLINE void GPIO_enP20Input(void);
431 INLINE void GPIO_disP20Input(void);
432 INLINE void GPIO_enP21Input(void);
433 INLINE void GPIO_disP21Input(void);
434 INLINE void GPIO_enP22Input(void);
435 INLINE void GPIO_disP22Input(void);
436 INLINE void GPIO_enP23Input(void);
437 INLINE void GPIO_disP23Input(void);
438 INLINE void GPIO_enP24Input(void);
439 INLINE void GPIO_disP24Input(void);
440 INLINE void GPIO_enP25Input(void);
441 INLINE void GPIO_disP25Input(void);
442 INLINE void GPIO_enP26Input(void);
443 INLINE void GPIO_disP26Input(void);
444 INLINE void GPIO_enP27Input(void);
445 INLINE void GPIO_disP27Input(void);
446 INLINE void GPIO_enP28Input(void);
447 INLINE void GPIO_disP28Input(void);
448 INLINE void GPIO_enP29Input(void);
449 INLINE void GPIO_disP29Input(void);
450 void GPIO_init(void);
451 
452 /*******************************************************************************
453 ** Global Inline Function Definitions **
454 *******************************************************************************/
460 {
461  GPIO->P0_ALTSEL0.bit.ALTSEL0 = (uint8)e_value;
462 }
463 
469 {
470  GPIO->P0_ALTSEL0.bit.ALTSEL1 = (uint8)e_value;
471 }
472 
478 {
479  GPIO->P0_ALTSEL0.bit.ALTSEL2 = (uint8)e_value;
480 }
481 
487 {
488  GPIO->P0_ALTSEL0.bit.ALTSEL3 = (uint8)e_value;
489 }
490 
496 {
497  GPIO->P0_ALTSEL0.bit.ALTSEL4 = (uint8)e_value;
498 }
499 
505 {
506  GPIO->P0_ALTSEL0.bit.ALTSEL5 = (uint8)e_value;
507 }
508 
514 {
515  GPIO->P0_ALTSEL0.bit.ALTSEL6 = (uint8)e_value;
516 }
517 
523 {
524  GPIO->P0_ALTSEL0.bit.ALTSEL7 = (uint8)e_value;
525 }
526 
532 {
533  GPIO->P0_ALTSEL1.bit.ALTSEL8 = (uint8)e_value;
534 }
535 
541 {
542  GPIO->P0_ALTSEL1.bit.ALTSEL9 = (uint8)e_value;
543 }
544 
550 {
551  GPIO->P0_ALTSEL1.bit.ALTSEL10 = (uint8)e_value;
552 }
553 
559 {
560  GPIO->P0_DIR.bit.DIR0 = (uint8)e_value;
561 }
562 
568 {
569  GPIO->P0_DIR.bit.DIR1 = (uint8)e_value;
570 }
571 
577 {
578  GPIO->P0_DIR.bit.DIR2 = (uint8)e_value;
579 }
580 
586 {
587  GPIO->P0_DIR.bit.DIR3 = (uint8)e_value;
588 }
589 
595 {
596  GPIO->P0_DIR.bit.DIR4 = (uint8)e_value;
597 }
598 
604 {
605  GPIO->P0_DIR.bit.DIR5 = (uint8)e_value;
606 }
607 
613 {
614  GPIO->P0_DIR.bit.DIR6 = (uint8)e_value;
615 }
616 
622 {
623  GPIO->P0_DIR.bit.DIR7 = (uint8)e_value;
624 }
625 
631 {
632  GPIO->P0_DIR.bit.DIR8 = (uint8)e_value;
633 }
634 
640 {
641  GPIO->P0_DIR.bit.DIR9 = (uint8)e_value;
642 }
643 
649 {
650  GPIO->P0_DIR.bit.DIR10 = (uint8)e_value;
651 }
652 
658 {
659  return (uint8)GPIO->P0_IN.bit.PI0;
660 }
661 
667 {
668  return (uint8)GPIO->P0_IN.bit.PI1;
669 }
670 
676 {
677  return (uint8)GPIO->P0_IN.bit.PI2;
678 }
679 
685 {
686  return (uint8)GPIO->P0_IN.bit.PI3;
687 }
688 
694 {
695  return (uint8)GPIO->P0_IN.bit.PI4;
696 }
697 
703 {
704  return (uint8)GPIO->P0_IN.bit.PI5;
705 }
706 
712 {
713  return (uint8)GPIO->P0_IN.bit.PI6;
714 }
715 
721 {
722  return (uint8)GPIO->P0_IN.bit.PI7;
723 }
724 
730 {
731  return (uint8)GPIO->P0_IN.bit.PI8;
732 }
733 
739 {
740  return (uint8)GPIO->P0_IN.bit.PI9;
741 }
742 
748 {
749  return (uint8)GPIO->P0_IN.bit.PI10;
750 }
751 
757 {
758  GPIO->P0_OMR.reg = (uint32)e_value;
759 }
760 
766 {
767  GPIO->P0_OMR.reg = (uint32)e_value << GPIO_P0_OMR_PS1_Pos;
768 }
769 
775 {
776  GPIO->P0_OMR.reg = (uint32)e_value << GPIO_P0_OMR_PS2_Pos;
777 }
778 
784 {
785  GPIO->P0_OMR.reg = (uint32)e_value << GPIO_P0_OMR_PS3_Pos;
786 }
787 
793 {
794  GPIO->P0_OMR.reg = (uint32)e_value << GPIO_P0_OMR_PS4_Pos;
795 }
796 
802 {
803  GPIO->P0_OMR.reg = (uint32)e_value << GPIO_P0_OMR_PS5_Pos;
804 }
805 
811 {
812  GPIO->P0_OMR.reg = (uint32)e_value << GPIO_P0_OMR_PS6_Pos;
813 }
814 
820 {
821  GPIO->P0_OMR.reg = (uint32)e_value << GPIO_P0_OMR_PS7_Pos;
822 }
823 
829 {
830  GPIO->P0_OMR.reg = (uint32)e_value << GPIO_P0_OMR_PS8_Pos;
831 }
832 
838 {
839  GPIO->P0_OMR.reg = (uint32)e_value << GPIO_P0_OMR_PS9_Pos;
840 }
841 
847 {
848  GPIO->P0_OMR.reg = (uint32)e_value << GPIO_P0_OMR_PS10_Pos;
849 }
850 
856 {
857  GPIO->P1_ALTSEL0.bit.ALTSEL0 = (uint8)e_value;
858 }
859 
865 {
866  GPIO->P1_ALTSEL0.bit.ALTSEL1 = (uint8)e_value;
867 }
868 
874 {
875  GPIO->P1_ALTSEL0.bit.ALTSEL2 = (uint8)e_value;
876 }
877 
883 {
884  GPIO->P1_ALTSEL0.bit.ALTSEL3 = (uint8)e_value;
885 }
886 
892 {
893  GPIO->P1_ALTSEL0.bit.ALTSEL4 = (uint8)e_value;
894 }
895 
901 {
902  GPIO->P1_DIR.bit.DIR0 = (uint8)e_value;
903 }
904 
910 {
911  GPIO->P1_DIR.bit.DIR1 = (uint8)e_value;
912 }
913 
919 {
920  GPIO->P1_DIR.bit.DIR2 = (uint8)e_value;
921 }
922 
928 {
929  GPIO->P1_DIR.bit.DIR3 = (uint8)e_value;
930 }
931 
937 {
938  GPIO->P1_DIR.bit.DIR4 = (uint8)e_value;
939 }
940 
946 {
947  return (uint8)GPIO->P1_IN.bit.PI0;
948 }
949 
955 {
956  return (uint8)GPIO->P1_IN.bit.PI1;
957 }
958 
964 {
965  return (uint8)GPIO->P1_IN.bit.PI2;
966 }
967 
973 {
974  return (uint8)GPIO->P1_IN.bit.PI3;
975 }
976 
982 {
983  return (uint8)GPIO->P1_IN.bit.PI4;
984 }
985 
991 {
992  GPIO->P1_OMR.reg = (uint32)e_value << GPIO_P1_OMR_PS0_Pos;
993 }
994 
1000 {
1001  GPIO->P1_OMR.reg = (uint32)e_value << GPIO_P1_OMR_PS1_Pos;
1002 }
1003 
1009 {
1010  GPIO->P1_OMR.reg = (uint32)e_value << GPIO_P1_OMR_PS2_Pos;
1011 }
1012 
1018 {
1019  GPIO->P1_OMR.reg = (uint32)e_value << GPIO_P1_OMR_PS3_Pos;
1020 }
1021 
1027 {
1028  GPIO->P1_OMR.reg = (uint32)e_value << GPIO_P1_OMR_PS4_Pos;
1029 }
1030 
1036 {
1037  return (uint8)GPIO->P2_IN.bit.PI0;
1038 }
1039 
1045 {
1046  return (uint8)GPIO->P2_IN.bit.PI1;
1047 }
1048 
1054 {
1055  return (uint8)GPIO->P2_IN.bit.PI2;
1056 }
1057 
1063 {
1064  return (uint8)GPIO->P2_IN.bit.PI3;
1065 }
1066 
1072 {
1073  return (uint8)GPIO->P2_IN.bit.PI4;
1074 }
1075 
1081 {
1082  return (uint8)GPIO->P2_IN.bit.PI5;
1083 }
1084 
1090 {
1091  return (uint8)GPIO->P2_IN.bit.PI6;
1092 }
1093 
1099 {
1100  return (uint8)GPIO->P2_IN.bit.PI7;
1101 }
1102 
1108 {
1109  return (uint8)GPIO->P2_IN.bit.PI8;
1110 }
1111 
1117 {
1118  return (uint8)GPIO->P2_IN.bit.PI9;
1119 }
1120 
1124 {
1125  GPIO->P2_INDIS.bit.INDIS0 = 0u;
1126 }
1127 
1131 {
1132  GPIO->P2_INDIS.bit.INDIS0 = 1u;
1133 }
1134 
1138 {
1139  GPIO->P2_INDIS.bit.INDIS1 = 0u;
1140 }
1141 
1145 {
1146  GPIO->P2_INDIS.bit.INDIS1 = 1u;
1147 }
1148 
1152 {
1153  GPIO->P2_INDIS.bit.INDIS2 = 0u;
1154 }
1155 
1159 {
1160  GPIO->P2_INDIS.bit.INDIS2 = 1u;
1161 }
1162 
1166 {
1167  GPIO->P2_INDIS.bit.INDIS3 = 0u;
1168 }
1169 
1173 {
1174  GPIO->P2_INDIS.bit.INDIS3 = 1u;
1175 }
1176 
1180 {
1181  GPIO->P2_INDIS.bit.INDIS4 = 0u;
1182 }
1183 
1187 {
1188  GPIO->P2_INDIS.bit.INDIS4 = 1u;
1189 }
1190 
1194 {
1195  GPIO->P2_INDIS.bit.INDIS5 = 0u;
1196 }
1197 
1201 {
1202  GPIO->P2_INDIS.bit.INDIS5 = 1u;
1203 }
1204 
1208 {
1209  GPIO->P2_INDIS.bit.INDIS6 = 0u;
1210 }
1211 
1215 {
1216  GPIO->P2_INDIS.bit.INDIS6 = 1u;
1217 }
1218 
1222 {
1223  GPIO->P2_INDIS.bit.INDIS7 = 0u;
1224 }
1225 
1229 {
1230  GPIO->P2_INDIS.bit.INDIS7 = 1u;
1231 }
1232 
1236 {
1237  GPIO->P2_INDIS.bit.INDIS8 = 0u;
1238 }
1239 
1243 {
1244  GPIO->P2_INDIS.bit.INDIS8 = 1u;
1245 }
1246 
1250 {
1251  GPIO->P2_INDIS.bit.INDIS9 = 0u;
1252 }
1253 
1257 {
1258  GPIO->P2_INDIS.bit.INDIS9 = 1u;
1259 }
1260 
1263 #endif /* _GPIO_H */
1264 
#define GPIO
Definition: tle989x.h:24070
INLINE void GPIO_setP10Altsel(tGPIO_P1_0_ALTSEL e_value)
Set P1.0 Alternate Select.
Definition: gpio.h:855
INLINE void GPIO_setP12Dir(tGPIO_DIR e_value)
Set P1.2 Direction.
Definition: gpio.h:918
GPIO_STATE
Enum for the GPIO Output bit.
Definition: gpio.h:270
INLINE void GPIO_setP010Dir(tGPIO_DIR e_value)
Set P0.10 Direction.
Definition: gpio.h:648
INLINE void GPIO_enP29Input(void)
Enable P2.9 Digital Input.
Definition: gpio.h:1249
GPIO_P1_3_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:329
GPIO_P0_4_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:157
INLINE uint8 GPIO_getP11State(void)
Get P1.1 State.
Definition: gpio.h:954
enum GPIO_DIR tGPIO_DIR
INLINE void GPIO_setP05Dir(tGPIO_DIR e_value)
Set P0.5 Direction.
Definition: gpio.h:603
INLINE uint8 GPIO_getP10State(void)
Get P1.0 State.
Definition: gpio.h:945
INLINE void GPIO_setP14Altsel(tGPIO_P1_4_ALTSEL e_value)
Set P1.4 Alternate Select.
Definition: gpio.h:891
INLINE void GPIO_disP28Input(void)
Disable P2.8 Digital Input.
Definition: gpio.h:1242
INLINE void GPIO_setP07State(tGPIO_STATE e_value)
Set P0.7 State.
Definition: gpio.h:819
INLINE void GPIO_setP12Altsel(tGPIO_P1_2_ALTSEL e_value)
Set P1.2 Alternate Select.
Definition: gpio.h:873
enum GPIO_P0_3_ALTSEL tGPIO_P0_3_ALTSEL
INLINE void GPIO_setP08Dir(tGPIO_DIR e_value)
Set P0.8 Direction.
Definition: gpio.h:630
INLINE void GPIO_enP21Input(void)
Enable P2.1 Digital Input.
Definition: gpio.h:1137
INLINE uint8 GPIO_getP02State(void)
Get P0.2 State.
Definition: gpio.h:675
enum GPIO_P0_9_ALTSEL tGPIO_P0_9_ALTSEL
GPIO_DIR
Enum for the GPIO Direction control bit.
Definition: gpio.h:260
GPIO_P0_3_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:141
GPIO_P1_4_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:344
INLINE uint8 GPIO_getP08State(void)
Get P0.8 State.
Definition: gpio.h:729
INLINE void GPIO_setP13Altsel(tGPIO_P1_3_ALTSEL e_value)
Set P1.3 Alternate Select.
Definition: gpio.h:882
INLINE void GPIO_setP01Dir(tGPIO_DIR e_value)
Set P0.1 Direction.
Definition: gpio.h:567
INLINE uint8 GPIO_getP26State(void)
Get P2.6 State.
Definition: gpio.h:1089
INLINE void GPIO_setP03State(tGPIO_STATE e_value)
Set P0.3 State.
Definition: gpio.h:783
INLINE void GPIO_enP25Input(void)
Enable P2.5 Digital Input.
Definition: gpio.h:1193
INLINE uint8 GPIO_getP25State(void)
Get P2.5 State.
Definition: gpio.h:1080
INLINE void GPIO_setP02Altsel(tGPIO_P0_2_ALTSEL e_value)
Set P0.2 Alternate Select.
Definition: gpio.h:477
enum GPIO_P0_5_ALTSEL tGPIO_P0_5_ALTSEL
INLINE void GPIO_disP23Input(void)
Disable P2.3 Digital Input.
Definition: gpio.h:1172
INLINE void GPIO_disP22Input(void)
Disable P2.2 Digital Input.
Definition: gpio.h:1158
INLINE void GPIO_disP21Input(void)
Disable P2.1 Digital Input.
Definition: gpio.h:1144
GPIO_P0_9_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:229
INLINE uint8 GPIO_getP28State(void)
Get P2.8 State.
Definition: gpio.h:1107
INLINE void GPIO_enP28Input(void)
Enable P2.8 Digital Input.
Definition: gpio.h:1235
INLINE uint8 GPIO_getP09State(void)
Get P0.9 State.
Definition: gpio.h:738
INLINE void GPIO_setP04State(tGPIO_STATE e_value)
Set P0.4 State.
Definition: gpio.h:792
enum GPIO_P0_6_ALTSEL tGPIO_P0_6_ALTSEL
INLINE void GPIO_setP11State(tGPIO_STATE e_value)
Set P1.1 State.
Definition: gpio.h:999
enum GPIO_P1_0_ALTSEL tGPIO_P1_0_ALTSEL
INLINE void GPIO_enP26Input(void)
Enable P2.6 Digital Input.
Definition: gpio.h:1207
INLINE void GPIO_setP09State(tGPIO_STATE e_value)
Set P0.9 State.
Definition: gpio.h:837
INLINE void GPIO_setP08State(tGPIO_STATE e_value)
Set P0.8 State.
Definition: gpio.h:828
enum GPIO_STATE tGPIO_STATE
INLINE void GPIO_setP03Altsel(tGPIO_P0_3_ALTSEL e_value)
Set P0.3 Alternate Select.
Definition: gpio.h:486
INLINE void GPIO_enP20Input(void)
Enable P2.0 Digital Input.
Definition: gpio.h:1123
INLINE void GPIO_setP13Dir(tGPIO_DIR e_value)
Set P1.3 Direction.
Definition: gpio.h:927
enum GPIO_P0_4_ALTSEL tGPIO_P0_4_ALTSEL
INLINE void GPIO_setP06Altsel(tGPIO_P0_6_ALTSEL e_value)
Set P0.6 Alternate Select.
Definition: gpio.h:513
INLINE void GPIO_setP04Dir(tGPIO_DIR e_value)
Set P0.4 Direction.
Definition: gpio.h:594
INLINE void GPIO_setP03Dir(tGPIO_DIR e_value)
Set P0.3 Direction.
Definition: gpio.h:585
INLINE void GPIO_setP12State(tGPIO_STATE e_value)
Set P1.2 State.
Definition: gpio.h:1008
INLINE uint8 GPIO_getP23State(void)
Get P2.3 State.
Definition: gpio.h:1062
INLINE void GPIO_setP11Altsel(tGPIO_P1_1_ALTSEL e_value)
Set P1.1 Alternate Select.
Definition: gpio.h:864
INLINE void GPIO_disP29Input(void)
Disable P2.9 Digital Input.
Definition: gpio.h:1256
enum GPIO_P0_2_ALTSEL tGPIO_P0_2_ALTSEL
GPIO_P0_7_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:200
INLINE uint8 GPIO_getP27State(void)
Get P2.7 State.
Definition: gpio.h:1098
INLINE void GPIO_setP06Dir(tGPIO_DIR e_value)
Set P0.6 Direction.
Definition: gpio.h:612
INLINE void GPIO_setP13State(tGPIO_STATE e_value)
Set P1.3 State.
Definition: gpio.h:1017
INLINE uint8 GPIO_getP07State(void)
Get P0.7 State.
Definition: gpio.h:720
INLINE void GPIO_setP14Dir(tGPIO_DIR e_value)
Set P1.4 Direction.
Definition: gpio.h:936
INLINE void GPIO_setP01State(tGPIO_STATE e_value)
Set P0.1 State.
Definition: gpio.h:765
INLINE uint8 GPIO_getP20State(void)
Get P2.0 State.
Definition: gpio.h:1035
INLINE void GPIO_setP10Dir(tGPIO_DIR e_value)
Set P1.0 Direction.
Definition: gpio.h:900
INLINE uint8 GPIO_getP010State(void)
Get P0.10 State.
Definition: gpio.h:747
void GPIO_init(void)
Initialize all CW registers of the GPIO module.
Definition: gpio.c:61
INLINE void GPIO_disP25Input(void)
Disable P2.5 Digital Input.
Definition: gpio.h:1200
INLINE void GPIO_disP20Input(void)
Disable P2.0 Digital Input.
Definition: gpio.h:1130
GPIO_P0_5_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:171
INLINE uint8 GPIO_getP01State(void)
Get P0.1 State.
Definition: gpio.h:666
enum GPIO_P0_7_ALTSEL tGPIO_P0_7_ALTSEL
INLINE void GPIO_setP00State(tGPIO_STATE e_value)
Set P0.0 State.
Definition: gpio.h:756
enum GPIO_P1_3_ALTSEL tGPIO_P1_3_ALTSEL
enum GPIO_P0_1_ALTSEL tGPIO_P0_1_ALTSEL
INLINE uint8 GPIO_getP05State(void)
Get P0.5 State.
Definition: gpio.h:702
GPIO_P0_0_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:98
GPIO_P0_1_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:110
INLINE void GPIO_setP00Dir(tGPIO_DIR e_value)
Set P0.0 Direction.
Definition: gpio.h:558
GPIO_P0_10_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:244
enum GPIO_P0_0_ALTSEL tGPIO_P0_0_ALTSEL
GPIO_P0_8_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:216
INLINE void GPIO_setP02State(tGPIO_STATE e_value)
Set P0.2 State.
Definition: gpio.h:774
INLINE uint8 GPIO_getP06State(void)
Get P0.6 State.
Definition: gpio.h:711
enum GPIO_P1_4_ALTSEL tGPIO_P1_4_ALTSEL
INLINE void GPIO_disP26Input(void)
Disable P2.6 Digital Input.
Definition: gpio.h:1214
GPIO_P0_2_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:126
INLINE void GPIO_disP27Input(void)
Disable P2.7 Digital Input.
Definition: gpio.h:1228
GPIO_P0_6_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:184
GPIO_P1_1_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:297
enum GPIO_P1_1_ALTSEL tGPIO_P1_1_ALTSEL
INLINE void GPIO_enP27Input(void)
Enable P2.7 Digital Input.
Definition: gpio.h:1221
INLINE void GPIO_setP09Dir(tGPIO_DIR e_value)
Set P0.9 Direction.
Definition: gpio.h:639
INLINE uint8 GPIO_getP13State(void)
Get P1.3 State.
Definition: gpio.h:972
INLINE uint8 GPIO_getP22State(void)
Get P2.2 State.
Definition: gpio.h:1053
enum GPIO_P0_10_ALTSEL tGPIO_P0_10_ALTSEL
INLINE void GPIO_setP00Altsel(tGPIO_P0_0_ALTSEL e_value)
Set P0.0 Alternate Select.
Definition: gpio.h:459
GPIO_P1_2_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:313
enum GPIO_P1_2_ALTSEL tGPIO_P1_2_ALTSEL
INLINE void GPIO_enP24Input(void)
Enable P2.4 Digital Input.
Definition: gpio.h:1179
INLINE uint8 GPIO_getP29State(void)
Get P2.9 State.
Definition: gpio.h:1116
INLINE void GPIO_setP01Altsel(tGPIO_P0_1_ALTSEL e_value)
Set P0.1 Alternate Select.
Definition: gpio.h:468
INLINE uint8 GPIO_getP04State(void)
Get P0.4 State.
Definition: gpio.h:693
INLINE uint8 GPIO_getP03State(void)
Get P0.3 State.
Definition: gpio.h:684
INLINE uint8 GPIO_getP12State(void)
Get P1.2 State.
Definition: gpio.h:963
INLINE void GPIO_setP07Dir(tGPIO_DIR e_value)
Set P0.7 Direction.
Definition: gpio.h:621
INLINE void GPIO_setP11Dir(tGPIO_DIR e_value)
Set P1.1 Direction.
Definition: gpio.h:909
INLINE void GPIO_enP23Input(void)
Enable P2.3 Digital Input.
Definition: gpio.h:1165
enum GPIO_P0_8_ALTSEL tGPIO_P0_8_ALTSEL
GPIO_P1_0_ALTSEL
Enum for the GPIO Alternate output select.
Definition: gpio.h:281
INLINE void GPIO_setP09Altsel(tGPIO_P0_9_ALTSEL e_value)
Set P0.9 Alternate Select.
Definition: gpio.h:540
INLINE void GPIO_setP06State(tGPIO_STATE e_value)
Set P0.6 State.
Definition: gpio.h:810
INLINE void GPIO_setP05State(tGPIO_STATE e_value)
Set P0.5 State.
Definition: gpio.h:801
INLINE void GPIO_setP07Altsel(tGPIO_P0_7_ALTSEL e_value)
Set P0.7 Alternate Select.
Definition: gpio.h:522
INLINE void GPIO_setP14State(tGPIO_STATE e_value)
Set P1.4 State.
Definition: gpio.h:1026
INLINE void GPIO_setP05Altsel(tGPIO_P0_5_ALTSEL e_value)
Set P0.5 Alternate Select.
Definition: gpio.h:504
INLINE void GPIO_setP02Dir(tGPIO_DIR e_value)
Set P0.2 Direction.
Definition: gpio.h:576
INLINE void GPIO_setP010State(tGPIO_STATE e_value)
Set P0.10 State.
Definition: gpio.h:846
INLINE void GPIO_enP22Input(void)
Enable P2.2 Digital Input.
Definition: gpio.h:1151
INLINE void GPIO_setP10State(tGPIO_STATE e_value)
Set P1.0 State.
Definition: gpio.h:990
INLINE void GPIO_setP08Altsel(tGPIO_P0_8_ALTSEL e_value)
Set P0.8 Alternate Select.
Definition: gpio.h:531
INLINE uint8 GPIO_getP14State(void)
Get P1.4 State.
Definition: gpio.h:981
INLINE uint8 GPIO_getP24State(void)
Get P2.4 State.
Definition: gpio.h:1071
INLINE uint8 GPIO_getP21State(void)
Get P2.1 State.
Definition: gpio.h:1044
INLINE uint8 GPIO_getP00State(void)
Get P0.0 State.
Definition: gpio.h:657
INLINE void GPIO_setP04Altsel(tGPIO_P0_4_ALTSEL e_value)
Set P0.4 Alternate Select.
Definition: gpio.h:495
INLINE void GPIO_disP24Input(void)
Disable P2.4 Digital Input.
Definition: gpio.h:1186
INLINE void GPIO_setP010Altsel(tGPIO_P0_10_ALTSEL e_value)
Set P0.10 Alternate Select.
Definition: gpio.h:549
@ GPIO_STATE_HIGH
Definition: gpio.h:271
@ GPIO_STATE_LOW
Definition: gpio.h:272
@ GPIO_STATE_TOGGLE
Definition: gpio.h:273
@ GPIO_P1_3_ALTSEL_CCU7_COUT73
Definition: gpio.h:332
@ GPIO_P1_3_ALTSEL_GPIO
Definition: gpio.h:330
@ GPIO_P1_3_ALTSEL_UART0_TXD
Definition: gpio.h:334
@ GPIO_P1_3_ALTSEL_GPT12_T6OUT
Definition: gpio.h:335
@ GPIO_P1_3_ALTSEL_MULTICAN_TXDC
Definition: gpio.h:333
@ GPIO_P1_3_ALTSEL_BEMFC_PH1_ZC_STS
Definition: gpio.h:336
@ GPIO_P1_3_ALTSEL_SSC0_CS2
Definition: gpio.h:331
@ GPIO_P0_4_ALTSEL_GPIO
Definition: gpio.h:158
@ GPIO_P0_4_ALTSEL_UART1_TXD
Definition: gpio.h:162
@ GPIO_P0_4_ALTSEL_SSC0_MTSR
Definition: gpio.h:161
@ GPIO_P0_4_ALTSEL_CCU7_CC70
Definition: gpio.h:159
@ GPIO_P0_4_ALTSEL_GPT12_T3OUT
Definition: gpio.h:163
@ GPIO_P0_4_ALTSEL_SDADC_DOUT0
Definition: gpio.h:160
@ GPIO_DIR_OUTPUT
Definition: gpio.h:262
@ GPIO_DIR_INPUT
Definition: gpio.h:261
@ GPIO_P0_3_ALTSEL_SCU_CLKOUT
Definition: gpio.h:146
@ GPIO_P0_3_ALTSEL_ADC1_CMPLO3
Definition: gpio.h:147
@ GPIO_P0_3_ALTSEL_SDADC_CMP1
Definition: gpio.h:149
@ GPIO_P0_3_ALTSEL_BEMFC_PH3_ZC_STS
Definition: gpio.h:144
@ GPIO_P0_3_ALTSEL_SSC0_SCLK
Definition: gpio.h:143
@ GPIO_P0_3_ALTSEL_GPIO
Definition: gpio.h:142
@ GPIO_P0_3_ALTSEL_UART0_TXD
Definition: gpio.h:148
@ GPIO_P0_3_ALTSEL_CCU7_COUT70
Definition: gpio.h:145
@ GPIO_P1_4_ALTSEL_T21_EXF2
Definition: gpio.h:349
@ GPIO_P1_4_ALTSEL_BEMFC_PH2_ZC_STS
Definition: gpio.h:348
@ GPIO_P1_4_ALTSEL_SSC1_CS2
Definition: gpio.h:346
@ GPIO_P1_4_ALTSEL_GPIO
Definition: gpio.h:345
@ GPIO_P1_4_ALTSEL_SCU_CLKOUT
Definition: gpio.h:347
@ GPIO_P0_9_ALTSEL_SSC1_MTSR
Definition: gpio.h:236
@ GPIO_P0_9_ALTSEL_SSC1_MRST
Definition: gpio.h:233
@ GPIO_P0_9_ALTSEL_ADC1_CMPLO0
Definition: gpio.h:235
@ GPIO_P0_9_ALTSEL_GPIO
Definition: gpio.h:230
@ GPIO_P0_9_ALTSEL_SSC0_CS3
Definition: gpio.h:234
@ GPIO_P0_9_ALTSEL_CCU7_CC72
Definition: gpio.h:231
@ GPIO_P0_9_ALTSEL_SDADC_MCLK
Definition: gpio.h:232
@ GPIO_P0_7_ALTSEL_SDADC_DOUT1
Definition: gpio.h:203
@ GPIO_P0_7_ALTSEL_ADC2_CMPUP7
Definition: gpio.h:208
@ GPIO_P0_7_ALTSEL_GPIO
Definition: gpio.h:201
@ GPIO_P0_7_ALTSEL_CCU7_COUT71
Definition: gpio.h:202
@ GPIO_P0_7_ALTSEL_GPT12_T6OUT
Definition: gpio.h:207
@ GPIO_P0_7_ALTSEL_MULTICAN_TXDC
Definition: gpio.h:205
@ GPIO_P0_7_ALTSEL_SSC1_SCLK
Definition: gpio.h:204
@ GPIO_P0_7_ALTSEL_UART0_TXD
Definition: gpio.h:206
@ GPIO_P0_5_ALTSEL_GPIO
Definition: gpio.h:172
@ GPIO_P0_5_ALTSEL_SSC0_SCLK
Definition: gpio.h:175
@ GPIO_P0_5_ALTSEL_SDADC_DOUT0
Definition: gpio.h:174
@ GPIO_P0_5_ALTSEL_SDADC_CMP1
Definition: gpio.h:176
@ GPIO_P0_5_ALTSEL_CCU7_COUT70
Definition: gpio.h:173
@ GPIO_P0_0_ALTSEL_T21_EXF2
Definition: gpio.h:101
@ GPIO_P0_0_ALTSEL_GPIO
Definition: gpio.h:99
@ GPIO_P0_0_ALTSEL_UART0_RXDO
Definition: gpio.h:102
@ GPIO_P0_0_ALTSEL_CCU7_CC72
Definition: gpio.h:100
@ GPIO_P0_1_ALTSEL_GPIO
Definition: gpio.h:111
@ GPIO_P0_1_ALTSEL_CCU7_COUT73
Definition: gpio.h:118
@ GPIO_P0_1_ALTSEL_UART0_TXD
Definition: gpio.h:112
@ GPIO_P0_1_ALTSEL_MULTICAN_TXDC
Definition: gpio.h:114
@ GPIO_P0_1_ALTSEL_GPT12_T6OUT
Definition: gpio.h:113
@ GPIO_P0_1_ALTSEL_CANTRX_RXD
Definition: gpio.h:115
@ GPIO_P0_1_ALTSEL_SSC0_MTSR
Definition: gpio.h:116
@ GPIO_P0_1_ALTSEL_BEMFC_PH1_ZC_STS
Definition: gpio.h:117
@ GPIO_P0_10_ALTSEL_CCU7_COUT72
Definition: gpio.h:251
@ GPIO_P0_10_ALTSEL_ADC1_CMPLO2
Definition: gpio.h:249
@ GPIO_P0_10_ALTSEL_SSC1_CS1
Definition: gpio.h:247
@ GPIO_P0_10_ALTSEL_ADC2_CMPLO7
Definition: gpio.h:252
@ GPIO_P0_10_ALTSEL_SSC0_CS1
Definition: gpio.h:248
@ GPIO_P0_10_ALTSEL_SCU_RESET
Definition: gpio.h:246
@ GPIO_P0_10_ALTSEL_T20_EXF2
Definition: gpio.h:250
@ GPIO_P0_10_ALTSEL_GPIO
Definition: gpio.h:245
@ GPIO_P0_8_ALTSEL_CCU7_COUT72
Definition: gpio.h:218
@ GPIO_P0_8_ALTSEL_ADC1_CMPLO1
Definition: gpio.h:221
@ GPIO_P0_8_ALTSEL_GPIO
Definition: gpio.h:217
@ GPIO_P0_8_ALTSEL_SDADC_MCLK
Definition: gpio.h:219
@ GPIO_P0_8_ALTSEL_SSC1_MTSR
Definition: gpio.h:220
@ GPIO_P0_2_ALTSEL_SSC0_MRST
Definition: gpio.h:130
@ GPIO_P0_2_ALTSEL_GPT12_T3OUT
Definition: gpio.h:129
@ GPIO_P0_2_ALTSEL_UART1_TXD
Definition: gpio.h:128
@ GPIO_P0_2_ALTSEL_GPIO
Definition: gpio.h:127
@ GPIO_P0_2_ALTSEL_SSC1_CS0
Definition: gpio.h:131
@ GPIO_P0_2_ALTSEL_BEMFC_PH2_ZC_STS
Definition: gpio.h:132
@ GPIO_P0_2_ALTSEL_CCU7_COUT73
Definition: gpio.h:133
@ GPIO_P0_6_ALTSEL_SSC0_MTSR
Definition: gpio.h:192
@ GPIO_P0_6_ALTSEL_CCU7_CC71
Definition: gpio.h:186
@ GPIO_P0_6_ALTSEL_SSC0_MRST
Definition: gpio.h:188
@ GPIO_P0_6_ALTSEL_SDADC_CMP0
Definition: gpio.h:190
@ GPIO_P0_6_ALTSEL_ADC1_CMPUP3
Definition: gpio.h:191
@ GPIO_P0_6_ALTSEL_GPIO
Definition: gpio.h:185
@ GPIO_P0_6_ALTSEL_SDADC_DOUT1
Definition: gpio.h:187
@ GPIO_P0_6_ALTSEL_SSC1_CS3
Definition: gpio.h:189
@ GPIO_P1_1_ALTSEL_GPIO
Definition: gpio.h:298
@ GPIO_P1_1_ALTSEL_CCU7_COUT71
Definition: gpio.h:300
@ GPIO_P1_1_ALTSEL_ADC1_CMPUP1
Definition: gpio.h:304
@ GPIO_P1_1_ALTSEL_SSC1_MTSR
Definition: gpio.h:299
@ GPIO_P1_1_ALTSEL_CANTRX_RXD
Definition: gpio.h:303
@ GPIO_P1_1_ALTSEL_ADC2_CMPUP6
Definition: gpio.h:305
@ GPIO_P1_1_ALTSEL_GPT12_T3OUT
Definition: gpio.h:302
@ GPIO_P1_1_ALTSEL_UART1_TXD
Definition: gpio.h:301
@ GPIO_P1_2_ALTSEL_SSC1_MTSR
Definition: gpio.h:321
@ GPIO_P1_2_ALTSEL_ADC1_CMPUP0
Definition: gpio.h:320
@ GPIO_P1_2_ALTSEL_SSC1_MRST
Definition: gpio.h:315
@ GPIO_P1_2_ALTSEL_CCU7_CC70
Definition: gpio.h:316
@ GPIO_P1_2_ALTSEL_GPIO
Definition: gpio.h:314
@ GPIO_P1_2_ALTSEL_SSC0_CS0
Definition: gpio.h:317
@ GPIO_P1_2_ALTSEL_BEMFC_PH3_ZC_STS
Definition: gpio.h:319
@ GPIO_P1_2_ALTSEL_SCU_CLKOUT
Definition: gpio.h:318
@ GPIO_P1_0_ALTSEL_GPIO
Definition: gpio.h:282
@ GPIO_P1_0_ALTSEL_ADC2_CMPLO6
Definition: gpio.h:289
@ GPIO_P1_0_ALTSEL_CCU7_CC71
Definition: gpio.h:284
@ GPIO_P1_0_ALTSEL_ADC1_CMPUP2
Definition: gpio.h:287
@ GPIO_P1_0_ALTSEL_SDADC_CMP0
Definition: gpio.h:288
@ GPIO_P1_0_ALTSEL_SSC1_SCLK
Definition: gpio.h:283
@ GPIO_P1_0_ALTSEL_UART1_RXDO
Definition: gpio.h:286
@ GPIO_P1_0_ALTSEL_GPT12_T6OUT
Definition: gpio.h:285
#define GPIO_P0_OMR_PS3_Pos
Definition: tle989x.h:24476
#define GPIO_P0_OMR_PS9_Pos
Definition: tle989x.h:24488
#define GPIO_P1_OMR_PS1_Pos
Definition: tle989x.h:24495
#define GPIO_P0_OMR_PS2_Pos
Definition: tle989x.h:24474
#define GPIO_P1_OMR_PS3_Pos
Definition: tle989x.h:24499
#define GPIO_P0_OMR_PS6_Pos
Definition: tle989x.h:24482
#define GPIO_P0_OMR_PS10_Pos
Definition: tle989x.h:24490
#define GPIO_P1_OMR_PS0_Pos
Definition: tle989x.h:24493
#define GPIO_P1_OMR_PS2_Pos
Definition: tle989x.h:24497
#define GPIO_P0_OMR_PS8_Pos
Definition: tle989x.h:24486
#define GPIO_P0_OMR_PS7_Pos
Definition: tle989x.h:24484
#define GPIO_P0_OMR_PS4_Pos
Definition: tle989x.h:24478
#define GPIO_P0_OMR_PS5_Pos
Definition: tle989x.h:24480
#define GPIO_P0_OMR_PS1_Pos
Definition: tle989x.h:24472
#define GPIO_P1_OMR_PS4_Pos
Definition: tle989x.h:24501
Device specific memory layout defines and features.
General type declarations.
#define INLINE
Definition: types.h:167
uint8_t uint8
8 bit unsigned value
Definition: types.h:220
uint32_t uint32
32 bit unsigned value
Definition: types.h:222