Infineon MOTIX™ MCU TLE987x Device Family SDK
port.h
Go to the documentation of this file.
1 /*
2  ***********************************************************************************************************************
3  *
4  * Copyright (c) Infineon Technologies AG
5  * All rights reserved.
6  *
7  * The applicable license agreement can be found at this pack's installation directory in the file
8  * license/IFX_SW_Licence_MOTIX_LITIX.txt
9  *
10  **********************************************************************************************************************/
22 /*******************************************************************************
23 ** Author(s) Identity **
24 ********************************************************************************
25 ** Initials Name **
26 ** ---------------------------------------------------------------------------**
27 ** SS Steffen Storandt **
28 ** DM Daniel Mysliwitz **
29 ** TA Thomas Albersinger **
30 ** JO Julia Ott **
31 ** BG Blandine Guillot **
32 *******************************************************************************/
33 
34 /*******************************************************************************
35 ** Revision Control History **
36 ********************************************************************************
37 ** V0.1.0: 2012-11-12, SS: Initial version **
38 ** V0.2.0: 2012-12-13, SS: New SFR format **
39 ** V0.3.0: 2013-02-10, DM: Function Port_ChangePin() enhanced by Port Dir **
40 ** adjustment, ne function added PORT_ChangePinAlt **
41 ** to set the alternative settings for a Port Pin at**
42 ** runtime **
43 ** V0.4.0: 2013-10-16, DM: Port configuration changed into header file **
44 ** with Configuration Wizard **
45 ** Configuration stored into #defines **
46 ** Port_Init() modified **
47 ** V0.5.0: 2014-04-25, TA: Port_Init(): use #defines from IFX Config Wizard **
48 ** V0.5.1: 2015-02-10, DM: Individual header file added **
49 ** V0.5.2: 2017-02-16, DM: Port prefix changed to capital letters **
50 ** API extended **
51 ** V0.5.3: 2017-10-10, DM: MISRA 2012 compliance, the following PC-Lint **
52 ** rules are globally deactivated: **
53 ** - Info 793: ANSI/ISO limit of 6 'significant **
54 ** characters in an external identifier **
55 ** - Info 835: A zero has been given as right **
56 ** argument to operator **
57 ** - Info 845: The left argument to operator '&' **
58 ** is certain to be 0 **
59 ** The following MISRA rules are deactivated locally**
60 ** - Warning 572: Excessive shift value (precision 0**
61 ** shifted right by 1) [MISRA Rule 38] **
62 ** V0.5.4: 2018-03-20, DM: Double slashes removed to meet MISRA 2012 **
63 ** Replaced macros by INLINE functions **
64 ** Replaced register accesses within functions by **
65 ** function calls **
66 ** Replaced __STATIC_INLINE by INLINE **
67 ** V0.5.5: 2018-11-27, JO: Doxygen update **
68 ** Moved revision history from port.c to port.h, **
69 ** Port_Init() uses new defines at PORT_XML_VERSION **
70 ** >= 10303 **
71 ** Replaced __STATIC_INLINE by INLINE **
72 ** V0.5.6: 2020-04-15, BG: Updated revision history format **
73 ** V0.5.7: 2020-07-21, BG: EP-439: Formatted .h/.c files **
74 ** V0.5.8: 2022-02-25, JO: EP-1040: Corrected usage of CMSIS_Irq_Dis() **
75 ** V0.5.9: 2022-02-28, JO: EP-936: Updated copyright and branding **
76 ** V0.6.0: 2022-03-17, JO: EP-260: Added initialization of SCU->Px_POCONy **
77 ** to apply driver strength setting **
78 ** V0.6.1: 2025-01-02, JO: EP-1493: Updated license **
79 *******************************************************************************/
80 
81 #ifndef PORT_H
82 #define PORT_H
83 
84 /*******************************************************************************
85 ** Includes **
86 *******************************************************************************/
87 #include "tle987x.h"
88 #include "types.h"
89 #include "cmsis_misra.h"
90 #include "sfr_access.h"
91 
92 /*******************************************************************************
93 ** Global Macro Definitions **
94 *******************************************************************************/
95 
97 #define PORT_P0 (0U)
99 #define PORT_P1 (1U)
101 #define PORT_P2 (2U)
102 
104 #define PORT_ACTION_CLEAR (0U)
106 #define PORT_ACTION_SET (1U)
108 #define PORT_ACTION_TOGGLE (2U)
110 #define PORT_ACTION_INPUT (3U)
112 #define PORT_ACTION_OUTPUT (4U)
113 
114 /*******************************************************************************
115 ** Global Inline Function Definitions **
116 *******************************************************************************/
132 {
134 }
135 
152 {
154 }
155 
171 {
173 }
174 
191 {
193 }
194 
210 {
212 }
213 
230 {
232 }
233 
249 {
251 }
252 
269 {
271 }
272 
288 {
290 }
291 
308 {
310 }
311 
327 {
329 }
330 
346 {
348 }
349 
365 {
366  Field_Inv8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P0_Msk);
367 }
368 
384 {
386 }
387 
403 {
405 }
406 
422 {
423  Field_Inv8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P1_Msk);
424 }
425 
441 {
443 }
444 
460 {
462 }
463 
479 {
480  Field_Inv8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P2_Msk);
481 }
482 
498 {
500 }
501 
517 {
519 }
520 
536 {
537  Field_Inv8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P3_Msk);
538 }
539 
555 {
557 }
558 
574 {
576 }
577 
593 {
594  Field_Inv8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P4_Msk);
595 }
596 
615 {
616  return ( u8_Field_Rd8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P0_Pos, (uint8)PORT_P0_DATA_P0_Msk) );
617 }
618 
637 {
638  return ( u8_Field_Rd8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P1_Pos, (uint8)PORT_P0_DATA_P1_Msk) );
639 }
640 
659 {
660  return ( u8_Field_Rd8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P2_Pos, (uint8)PORT_P0_DATA_P2_Msk) );
661 }
662 
681 {
682  return ( u8_Field_Rd8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P3_Pos, (uint8)PORT_P0_DATA_P3_Msk) );
683 }
684 
703 {
704  return ( u8_Field_Rd8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P4_Pos, (uint8)PORT_P0_DATA_P4_Msk) );
705 }
706 
722 {
724 }
725 
741 {
743 }
744 
760 {
762 }
763 
779 {
781 }
782 
798 {
800 }
801 
817 {
819 }
820 
836 {
838 }
839 
855 {
857 }
858 
874 {
876 }
877 
893 {
895 }
896 
910 {
912 }
913 
927 {
929 }
930 
944 {
946 }
947 
961 {
963 }
964 
978 {
980 }
981 
995 {
997 }
998 
1012 {
1014 }
1015 
1029 {
1031 }
1032 
1046 {
1048 }
1049 
1063 {
1065 }
1066 
1081 {
1083 }
1084 
1099 {
1101 }
1102 
1117 {
1119 }
1120 
1135 {
1137 }
1138 
1153 {
1155 }
1156 
1171 {
1173 }
1174 
1189 {
1191 }
1192 
1207 {
1209 }
1210 
1225 {
1227 }
1228 
1243 {
1245 }
1246 
1262 {
1264 }
1265 
1282 {
1284 }
1285 
1301 {
1303 }
1304 
1321 {
1323 }
1324 
1340 {
1342 }
1343 
1360 {
1362 }
1363 
1379 {
1381 }
1382 
1399 {
1401 }
1402 
1418 {
1420 }
1421 
1438 {
1440 }
1441 
1457 {
1459 }
1460 
1476 {
1478 }
1479 
1495 {
1496  Field_Inv8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P0_Msk);
1497 }
1498 
1514 {
1516 }
1517 
1533 {
1535 }
1536 
1552 {
1553  Field_Inv8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P1_Msk);
1554 }
1555 
1571 {
1573 }
1574 
1590 {
1592 }
1593 
1609 {
1610  Field_Inv8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P2_Msk);
1611 }
1612 
1628 {
1630 }
1631 
1647 {
1649 }
1650 
1666 {
1667  Field_Inv8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P3_Msk);
1668 }
1669 
1685 {
1687 }
1688 
1704 {
1706 }
1707 
1723 {
1724  Field_Inv8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P4_Msk);
1725 }
1726 
1745 {
1746  return ( u8_Field_Rd8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P0_Pos, (uint8)PORT_P1_DATA_P0_Msk) );
1747 }
1748 
1767 {
1768  return ( u8_Field_Rd8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P1_Pos, (uint8)PORT_P1_DATA_P1_Msk) );
1769 }
1770 
1787 {
1788  return ( u8_Field_Rd8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P2_Pos, (uint8)PORT_P1_DATA_P2_Msk) );
1789 }
1790 
1807 {
1808  return ( u8_Field_Rd8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P3_Pos, (uint8)PORT_P1_DATA_P3_Msk) );
1809 }
1810 
1827 {
1828  return ( u8_Field_Rd8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P4_Pos, (uint8)PORT_P1_DATA_P4_Msk) );
1829 }
1830 
1846 {
1848 }
1849 
1865 {
1867 }
1868 
1884 {
1886 }
1887 
1903 {
1905 }
1906 
1922 {
1924 }
1925 
1941 {
1943 }
1944 
1960 {
1962 }
1963 
1979 {
1981 }
1982 
1996 {
1998 }
1999 
2013 {
2015 }
2016 
2030 {
2032 }
2033 
2047 {
2049 }
2050 
2064 {
2066 }
2067 
2081 {
2083 }
2084 
2098 {
2100 }
2101 
2115 {
2117 }
2118 
2132 {
2134 }
2135 
2149 {
2151 }
2152 
2167 {
2169 }
2170 
2185 {
2187 }
2188 
2203 {
2205 }
2206 
2221 {
2223 }
2224 
2239 {
2241 }
2242 
2257 {
2259 }
2260 
2275 {
2277 }
2278 
2293 {
2295 }
2296 
2311 {
2313 }
2314 
2329 {
2331 }
2332 
2346 {
2348 }
2349 
2366 {
2368 }
2369 
2383 {
2385 }
2386 
2403 {
2405 }
2406 
2420 {
2422 }
2423 
2440 {
2442 }
2443 
2457 {
2459 }
2460 
2477 {
2479 }
2480 
2494 {
2496 }
2497 
2514 {
2516 }
2517 
2536 {
2537  return ( u8_Field_Rd8(&PORT->P2_DATA.reg, (uint8)PORT_P2_DATA_P0_Pos, (uint8)PORT_P2_DATA_P0_Msk) );
2538 }
2539 
2558 {
2559  return ( u8_Field_Rd8(&PORT->P2_DATA.reg, (uint8)PORT_P2_DATA_P2_Pos, (uint8)PORT_P2_DATA_P2_Msk) );
2560 }
2561 
2580 {
2581  return ( u8_Field_Rd8(&PORT->P2_DATA.reg, (uint8)PORT_P2_DATA_P3_Pos, (uint8)PORT_P2_DATA_P3_Msk) );
2582 }
2583 
2602 {
2603  return ( u8_Field_Rd8(&PORT->P2_DATA.reg, (uint8)PORT_P2_DATA_P4_Pos, (uint8)PORT_P2_DATA_P4_Msk) );
2604 }
2605 
2624 {
2625  return ( u8_Field_Rd8(&PORT->P2_DATA.reg, (uint8)PORT_P2_DATA_P5_Pos, (uint8)PORT_P2_DATA_P5_Msk) );
2626 }
2627 
2641 {
2643 }
2644 
2658 {
2660 }
2661 
2675 {
2677 }
2678 
2692 {
2694 }
2695 
2709 {
2711 }
2712 
2726 {
2728 }
2729 
2743 {
2745 }
2746 
2760 {
2762 }
2763 
2777 {
2779 }
2780 
2794 {
2796 }
2797 
2812 {
2814 }
2815 
2830 {
2832 }
2833 
2848 {
2850 }
2851 
2866 {
2868 }
2869 
2884 {
2886 }
2887 
2902 {
2904 }
2905 
2920 {
2922 }
2923 
2938 {
2940 }
2941 
2956 {
2958 }
2959 
2974 {
2976 }
2977 
2978 
2979 /*******************************************************************************
2980 ** Global Function Declarations **
2981 *******************************************************************************/
2987 void PORT_Init(void);
2988 
3005 void PORT_ChangePin(uint32 PortPin, uint32 Action);
3006 
3026 
3046 
3047 
3065 void PORT_ChangePinAlt(uint32 PortPin, uint8 AltSel);
3066 
3067 
3068 #endif /* PORT_H */
CMSIS Intrinsics access.
#define PORT
Definition: tle987x.h:6070
#define PORT_P0_OD_P0_Msk
Definition: tle987x.h:8538
#define PORT_P1_PUDSEL_P1_Msk
Definition: tle987x.h:8637
#define PORT_P1_DIR_P1_Pos
Definition: tle987x.h:8605
#define PORT_P0_PUDEN_P2_Msk
Definition: tle987x.h:8553
#define PORT_P2_DIR_P3_Pos
Definition: tle987x.h:8660
#define PORT_P1_DIR_P3_Msk
Definition: tle987x.h:8610
#define PORT_P1_DATA_P3_Pos
Definition: tle987x.h:8598
#define PORT_P0_OD_P4_Msk
Definition: tle987x.h:8546
#define PORT_P1_OD_P4_Msk
Definition: tle987x.h:8621
#define PORT_P1_OD_P4_Pos
Definition: tle987x.h:8620
#define PORT_P0_PUDSEL_P4_Msk
Definition: tle987x.h:8568
#define PORT_P1_PUDSEL_P1_Pos
Definition: tle987x.h:8636
#define PORT_P0_DIR_P0_Pos
Definition: tle987x.h:8526
#define PORT_P2_PUDSEL_P2_Msk
Definition: tle987x.h:8681
#define PORT_P0_DIR_P0_Msk
Definition: tle987x.h:8527
#define PORT_P2_DATA_P2_Pos
Definition: tle987x.h:8647
#define PORT_P0_PUDEN_P0_Msk
Definition: tle987x.h:8549
#define PORT_P2_DIR_P2_Pos
Definition: tle987x.h:8658
#define PORT_P1_OD_P0_Msk
Definition: tle987x.h:8615
#define PORT_P1_DATA_P1_Msk
Definition: tle987x.h:8595
#define PORT_P1_PUDEN_P4_Pos
Definition: tle987x.h:8631
#define PORT_P0_PUDSEL_P0_Msk
Definition: tle987x.h:8560
#define PORT_P1_PUDEN_P1_Msk
Definition: tle987x.h:8626
#define PORT_P0_DATA_P1_Msk
Definition: tle987x.h:8518
#define PORT_P0_DATA_P4_Msk
Definition: tle987x.h:8524
#define PORT_P0_DIR_P2_Pos
Definition: tle987x.h:8530
#define PORT_P2_DATA_P0_Msk
Definition: tle987x.h:8646
#define PORT_P0_OD_P1_Msk
Definition: tle987x.h:8540
#define PORT_P0_DIR_P1_Msk
Definition: tle987x.h:8529
#define PORT_P2_DIR_P4_Pos
Definition: tle987x.h:8662
#define PORT_P1_PUDEN_P4_Msk
Definition: tle987x.h:8632
#define PORT_P0_PUDEN_P4_Pos
Definition: tle987x.h:8556
#define PORT_P2_DATA_P5_Pos
Definition: tle987x.h:8653
#define PORT_P0_PUDSEL_P0_Pos
Definition: tle987x.h:8559
#define PORT_P2_DATA_P3_Msk
Definition: tle987x.h:8650
#define PORT_P0_PUDSEL_P3_Pos
Definition: tle987x.h:8565
#define PORT_P2_PUDSEL_P4_Pos
Definition: tle987x.h:8684
#define PORT_P1_DATA_P2_Msk
Definition: tle987x.h:8597
#define PORT_P0_PUDSEL_P2_Msk
Definition: tle987x.h:8564
#define PORT_P2_PUDSEL_P0_Pos
Definition: tle987x.h:8678
#define PORT_P1_DIR_P4_Pos
Definition: tle987x.h:8611
#define PORT_P0_PUDSEL_P1_Pos
Definition: tle987x.h:8561
#define PORT_P2_PUDEN_P4_Pos
Definition: tle987x.h:8673
#define PORT_P0_DIR_P2_Msk
Definition: tle987x.h:8531
#define PORT_P2_PUDEN_P3_Msk
Definition: tle987x.h:8672
#define PORT_P1_OD_P3_P2_Pos
Definition: tle987x.h:8618
#define PORT_P1_PUDEN_P0_Pos
Definition: tle987x.h:8623
#define PORT_P1_PUDSEL_P4_Pos
Definition: tle987x.h:8642
#define PORT_P0_OD_P3_Msk
Definition: tle987x.h:8544
#define PORT_P0_OD_P1_Pos
Definition: tle987x.h:8539
#define PORT_P1_DIR_P4_Msk
Definition: tle987x.h:8612
#define PORT_P1_DIR_P3_Pos
Definition: tle987x.h:8609
#define PORT_P2_PUDSEL_P0_Msk
Definition: tle987x.h:8679
#define PORT_P0_PUDEN_P1_Pos
Definition: tle987x.h:8550
#define PORT_P2_DIR_P5_Pos
Definition: tle987x.h:8664
#define PORT_P1_PUDEN_P2_Msk
Definition: tle987x.h:8628
#define PORT_P0_DIR_P4_Msk
Definition: tle987x.h:8535
#define PORT_P2_PUDSEL_P4_Msk
Definition: tle987x.h:8685
#define PORT_P1_PUDSEL_P2_Msk
Definition: tle987x.h:8639
#define PORT_P0_OD_P4_Pos
Definition: tle987x.h:8545
#define PORT_P2_DIR_P0_Msk
Definition: tle987x.h:8657
#define PORT_P2_DATA_P0_Pos
Definition: tle987x.h:8645
#define PORT_P0_DATA_P3_Pos
Definition: tle987x.h:8521
#define PORT_P0_DIR_P1_Pos
Definition: tle987x.h:8528
#define PORT_P1_DATA_P0_Pos
Definition: tle987x.h:8592
#define PORT_P1_PUDSEL_P4_Msk
Definition: tle987x.h:8643
#define PORT_P2_DIR_P2_Msk
Definition: tle987x.h:8659
#define PORT_P0_PUDSEL_P1_Msk
Definition: tle987x.h:8562
#define PORT_P1_OD_P3_P2_Msk
Definition: tle987x.h:8619
#define PORT_P2_DIR_P0_Pos
Definition: tle987x.h:8656
#define PORT_P0_DATA_P0_Pos
Definition: tle987x.h:8515
#define PORT_P1_DATA_P4_Pos
Definition: tle987x.h:8600
#define PORT_P0_PUDEN_P2_Pos
Definition: tle987x.h:8552
#define PORT_P2_PUDEN_P0_Pos
Definition: tle987x.h:8667
#define PORT_P0_DATA_P2_Pos
Definition: tle987x.h:8519
#define PORT_P1_PUDSEL_P0_Pos
Definition: tle987x.h:8634
#define PORT_P0_PUDEN_P0_Pos
Definition: tle987x.h:8548
#define PORT_P1_PUDEN_P1_Pos
Definition: tle987x.h:8625
#define PORT_P0_PUDSEL_P2_Pos
Definition: tle987x.h:8563
#define PORT_P1_PUDEN_P3_Msk
Definition: tle987x.h:8630
#define PORT_P1_OD_P1_Pos
Definition: tle987x.h:8616
#define PORT_P2_PUDEN_P4_Msk
Definition: tle987x.h:8674
#define PORT_P1_DIR_P2_Pos
Definition: tle987x.h:8607
#define PORT_P0_DATA_P1_Pos
Definition: tle987x.h:8517
#define PORT_P0_OD_P0_Pos
Definition: tle987x.h:8537
#define PORT_P1_PUDSEL_P3_Msk
Definition: tle987x.h:8641
#define PORT_P0_OD_P3_Pos
Definition: tle987x.h:8543
#define PORT_P0_PUDEN_P3_Msk
Definition: tle987x.h:8555
#define PORT_P2_DATA_P4_Msk
Definition: tle987x.h:8652
#define PORT_P2_DATA_P3_Pos
Definition: tle987x.h:8649
#define PORT_P2_PUDSEL_P5_Msk
Definition: tle987x.h:8687
#define PORT_P1_PUDEN_P0_Msk
Definition: tle987x.h:8624
#define PORT_P2_PUDEN_P5_Msk
Definition: tle987x.h:8676
#define PORT_P2_DATA_P4_Pos
Definition: tle987x.h:8651
#define PORT_P1_PUDEN_P2_Pos
Definition: tle987x.h:8627
#define PORT_P2_PUDEN_P2_Msk
Definition: tle987x.h:8670
#define PORT_P1_DIR_P2_Msk
Definition: tle987x.h:8608
#define PORT_P1_OD_P0_Pos
Definition: tle987x.h:8614
#define PORT_P1_DATA_P2_Pos
Definition: tle987x.h:8596
#define PORT_P1_DATA_P3_Msk
Definition: tle987x.h:8599
#define PORT_P0_DATA_P2_Msk
Definition: tle987x.h:8520
#define PORT_P0_OD_P2_Msk
Definition: tle987x.h:8542
#define PORT_P1_PUDSEL_P2_Pos
Definition: tle987x.h:8638
#define PORT_P0_OD_P2_Pos
Definition: tle987x.h:8541
#define PORT_P1_DIR_P0_Msk
Definition: tle987x.h:8604
#define PORT_P0_DIR_P3_Msk
Definition: tle987x.h:8533
#define PORT_P2_PUDEN_P3_Pos
Definition: tle987x.h:8671
#define PORT_P2_DIR_P3_Msk
Definition: tle987x.h:8661
#define PORT_P1_PUDSEL_P3_Pos
Definition: tle987x.h:8640
#define PORT_P2_PUDEN_P2_Pos
Definition: tle987x.h:8669
#define PORT_P1_DATA_P1_Pos
Definition: tle987x.h:8594
#define PORT_P0_DIR_P3_Pos
Definition: tle987x.h:8532
#define PORT_P0_PUDEN_P3_Pos
Definition: tle987x.h:8554
#define PORT_P1_DATA_P4_Msk
Definition: tle987x.h:8601
#define PORT_P0_DATA_P4_Pos
Definition: tle987x.h:8523
#define PORT_P0_PUDSEL_P4_Pos
Definition: tle987x.h:8567
#define PORT_P0_DATA_P3_Msk
Definition: tle987x.h:8522
#define PORT_P1_PUDEN_P3_Pos
Definition: tle987x.h:8629
#define PORT_P2_DATA_P2_Msk
Definition: tle987x.h:8648
#define PORT_P0_PUDSEL_P3_Msk
Definition: tle987x.h:8566
#define PORT_P0_DATA_P0_Msk
Definition: tle987x.h:8516
#define PORT_P2_DATA_P5_Msk
Definition: tle987x.h:8654
#define PORT_P2_PUDEN_P0_Msk
Definition: tle987x.h:8668
#define PORT_P0_DIR_P4_Pos
Definition: tle987x.h:8534
#define PORT_P1_DATA_P0_Msk
Definition: tle987x.h:8593
#define PORT_P2_PUDSEL_P3_Pos
Definition: tle987x.h:8682
#define PORT_P0_PUDEN_P4_Msk
Definition: tle987x.h:8557
#define PORT_P1_PUDSEL_P0_Msk
Definition: tle987x.h:8635
#define PORT_P2_DIR_P5_Msk
Definition: tle987x.h:8665
#define PORT_P2_DIR_P4_Msk
Definition: tle987x.h:8663
#define PORT_P2_PUDSEL_P2_Pos
Definition: tle987x.h:8680
#define PORT_P1_OD_P1_Msk
Definition: tle987x.h:8617
#define PORT_P1_DIR_P0_Pos
Definition: tle987x.h:8603
#define PORT_P2_PUDEN_P5_Pos
Definition: tle987x.h:8675
#define PORT_P0_PUDEN_P1_Msk
Definition: tle987x.h:8551
#define PORT_P2_PUDSEL_P3_Msk
Definition: tle987x.h:8683
#define PORT_P2_PUDSEL_P5_Pos
Definition: tle987x.h:8686
#define PORT_P1_DIR_P1_Msk
Definition: tle987x.h:8606
INLINE void PORT_P00_Output_High_Set(void)
sets Port P00 to High Status.
Definition: port.h:326
INLINE void PORT_P24_PullUpDown_En(void)
enables PullUpDown for Port P24.
Definition: port.h:2742
INLINE void PORT_P04_PullUp_Set(void)
sets PullUp for Port P04.
Definition: port.h:1224
INLINE void PORT_P11_Output_Low_Set(void)
sets Port P11 to Low Status.
Definition: port.h:1532
INLINE void PORT_P12_P13_OpenDrain_Dis(void)
disables Output OpenDrain for Port P12/P13.
Definition: port.h:1940
INLINE void PORT_P11_Output_High_Set(void)
sets Port P11 to High Status.
Definition: port.h:1513
INLINE void PORT_P02_PullUpDown_Dis(void)
disables PullUpDown for Port P02.
Definition: port.h:994
INLINE void PORT_P04_OpenDrain_En(void)
enables Output OpenDrain for Port P04.
Definition: port.h:873
INLINE void PORT_P10_Output_Set(void)
sets Port P10 to Output.
Definition: port.h:1261
INLINE void PORT_P25_PullUpDown_Dis(void)
disables PullUpDown for Port P25.
Definition: port.h:2793
INLINE void PORT_P24_Dis(void)
sets Port P24 to Disable.
Definition: port.h:2456
INLINE void PORT_P03_Output_Set(void)
sets Port P03 to Output.
Definition: port.h:248
INLINE void PORT_P03_PullUpDown_Dis(void)
disables PullUpDown for Port P03.
Definition: port.h:1028
INLINE void PORT_P11_PullUpDown_Dis(void)
disables PullUpDown for Port P11.
Definition: port.h:2046
uint8 PORT_ReadPin(uint32 PortPin)
Reads a port pin.
INLINE void PORT_P12_Output_High_Set(void)
sets Port P12 to High Status.
Definition: port.h:1570
INLINE void PORT_P01_Output_Toggle_Set(void)
sets Port P01 to Toggle Status.
Definition: port.h:421
INLINE void PORT_P14_OpenDrain_Dis(void)
disables Output OpenDrain for Port P14.
Definition: port.h:1978
INLINE void PORT_P00_PullUp_Set(void)
sets PullUp for Port P00.
Definition: port.h:1080
INLINE void PORT_P00_OpenDrain_Dis(void)
disables Output OpenDrain for Port P00.
Definition: port.h:740
INLINE void PORT_P14_Output_High_Set(void)
sets Port P14 to High Status.
Definition: port.h:1684
INLINE void PORT_P20_Dis(void)
sets Port P20 to Disable.
Definition: port.h:2345
INLINE void PORT_P00_PullDown_Set(void)
sets PullDown for Port P00.
Definition: port.h:1098
INLINE void PORT_P02_OpenDrain_Dis(void)
disables Output OpenDrain for Port P02.
Definition: port.h:816
INLINE void PORT_P13_PullUpDown_Dis(void)
disables PullUpDown for Port P13.
Definition: port.h:2114
INLINE void PORT_P20_PullUpDown_Dis(void)
disables PullUpDown for Port P20.
Definition: port.h:2657
INLINE void PORT_P14_PullUpDown_En(void)
enables PullUpDown for Port P14.
Definition: port.h:2131
INLINE void PORT_P12_PullDown_Set(void)
sets PullDown for Port P12.
Definition: port.h:2256
INLINE void PORT_P01_Output_High_Set(void)
sets Port P01 to High Status.
Definition: port.h:383
INLINE void PORT_P04_PullUpDown_En(void)
enables PullUpDown for Port P04.
Definition: port.h:1045
INLINE void PORT_P13_Output_High_Set(void)
sets Port P13 to High Status.
Definition: port.h:1627
INLINE void PORT_P14_Input_Set(void)
sets Port P14 to Input.
Definition: port.h:1437
INLINE void PORT_P14_PullUpDown_Dis(void)
disables PullUpDown for Port P14.
Definition: port.h:2148
INLINE void PORT_P03_OpenDrain_En(void)
enables Output OpenDrain for Port P03.
Definition: port.h:835
INLINE void PORT_P01_PullUp_Set(void)
sets PullUp for Port P01.
Definition: port.h:1116
INLINE void PORT_P00_Output_Toggle_Set(void)
sets Port P00 to Toggle Status.
Definition: port.h:364
INLINE void PORT_P14_PullDown_Set(void)
sets PullDown for Port P14.
Definition: port.h:2328
INLINE void PORT_P23_PullDown_Set(void)
sets PullDown for Port P23.
Definition: port.h:2901
INLINE void PORT_P02_Output_Low_Set(void)
sets Port P02 to Low Status.
Definition: port.h:459
INLINE void PORT_P22_PullUpDown_Dis(void)
disables PullUpDown for Port P22.
Definition: port.h:2691
uint8 PORT_ReadPort(uint32 Port)
Reads a port.
INLINE void PORT_P10_OpenDrain_En(void)
enables Output OpenDrain for Port P10.
Definition: port.h:1845
INLINE void PORT_P24_Input_Set(void)
sets Port P24 to Input.
Definition: port.h:2476
INLINE void PORT_P03_Output_High_Set(void)
sets Port P03 to High Status.
Definition: port.h:497
INLINE void PORT_P13_PullDown_Set(void)
sets PullDown for Port P13.
Definition: port.h:2292
INLINE void PORT_P04_PullDown_Set(void)
sets PullDown for Port P04.
Definition: port.h:1242
INLINE void PORT_P14_OpenDrain_En(void)
enables Output OpenDrain for Port P14.
Definition: port.h:1959
INLINE void PORT_P00_PullUpDown_En(void)
enables PullUpDown for Port P00.
Definition: port.h:909
INLINE void PORT_P03_OpenDrain_Dis(void)
disables Output OpenDrain for Port P03.
Definition: port.h:854
INLINE void PORT_P10_Input_Set(void)
sets Port P10 to Input.
Definition: port.h:1281
INLINE void PORT_P12_PullUpDown_Dis(void)
disables PullUpDown for Port P12.
Definition: port.h:2080
INLINE void PORT_P22_PullUp_Set(void)
sets PullUp for Port P22.
Definition: port.h:2847
INLINE void PORT_P00_OpenDrain_En(void)
enables Output OpenDrain for Port P00.
Definition: port.h:721
INLINE void PORT_P24_PullUpDown_Dis(void)
disables PullUpDown for Port P24.
Definition: port.h:2759
INLINE void PORT_P03_Input_Set(void)
sets Port P03 to Input.
Definition: port.h:268
INLINE void PORT_P23_PullUpDown_Dis(void)
disables PullUpDown for Port P23.
Definition: port.h:2725
INLINE void PORT_P22_Input_Set(void)
sets Port P22 to Input.
Definition: port.h:2402
INLINE void PORT_P20_Input_Set(void)
sets Port P20 to Input.
Definition: port.h:2365
INLINE uint8 PORT_P10_Get(void)
reads Port P10 Status.
Definition: port.h:1744
void PORT_ChangePin(uint32 PortPin, uint32 Action)
Sets/clears/toggles a port pin in a safe way, i.e. with interrupt disable.
INLINE void PORT_P01_OpenDrain_Dis(void)
disables Output OpenDrain for Port P01.
Definition: port.h:778
INLINE void PORT_P11_OpenDrain_En(void)
enables Output OpenDrain for Port P11.
Definition: port.h:1883
INLINE void PORT_P11_PullUp_Set(void)
sets PullUp for Port P11.
Definition: port.h:2202
INLINE void PORT_P13_PullUpDown_En(void)
enables PullUpDown for Port P13.
Definition: port.h:2097
INLINE void PORT_P01_Output_Set(void)
sets Port P01 to Output.
Definition: port.h:170
INLINE void PORT_P25_PullUpDown_En(void)
enables PullUpDown for Port P25.
Definition: port.h:2776
INLINE void PORT_P04_Input_Set(void)
sets Port P04 to Input.
Definition: port.h:307
void PORT_Init(void)
Initializes the PORT module based on the Config Wizard for MOTIX MCU configuration.
INLINE void PORT_P11_Input_Set(void)
sets Port P11 to Input.
Definition: port.h:1320
INLINE void PORT_P25_Dis(void)
sets Port P25 to Disable.
Definition: port.h:2493
INLINE uint8 PORT_P24_Get(void)
reads Port P24 Status.
Definition: port.h:2601
INLINE void PORT_P04_Output_High_Set(void)
sets Port P04 to High Status.
Definition: port.h:554
INLINE void PORT_P12_Input_Set(void)
sets Port P12 to Input.
Definition: port.h:1359
INLINE void PORT_P11_PullUpDown_En(void)
enables PullUpDown for Port P11.
Definition: port.h:2029
INLINE void PORT_P14_Output_Set(void)
sets Port P14 to Output.
Definition: port.h:1417
INLINE void PORT_P13_Output_Low_Set(void)
sets Port P13 to Low Status.
Definition: port.h:1646
INLINE void PORT_P01_Input_Set(void)
sets Port P01 to Input.
Definition: port.h:190
INLINE void PORT_P24_PullDown_Set(void)
sets PullDown for Port P24.
Definition: port.h:2937
INLINE void PORT_P02_PullDown_Set(void)
sets PullDown for Port P02.
Definition: port.h:1170
INLINE void PORT_P13_Output_Set(void)
sets Port P13 to Output.
Definition: port.h:1378
INLINE uint8 PORT_P25_Get(void)
reads Port P25 Status.
Definition: port.h:2623
INLINE void PORT_P11_OpenDrain_Dis(void)
disables Output OpenDrain for Port P11.
Definition: port.h:1902
INLINE void PORT_P03_Output_Toggle_Set(void)
sets Port P03 to Toggle Status.
Definition: port.h:535
INLINE void PORT_P00_Output_Set(void)
sets Port P00 to Output.
Definition: port.h:131
INLINE void PORT_P02_Output_Set(void)
sets Port P02 to Output.
Definition: port.h:209
INLINE void PORT_P03_PullUp_Set(void)
sets PullUp for Port P03.
Definition: port.h:1188
INLINE void PORT_P00_Output_Low_Set(void)
sets Port P00 to Low Status.
Definition: port.h:345
INLINE uint8 PORT_P04_Get(void)
reads Port P04 Status.
Definition: port.h:702
INLINE uint8 PORT_P11_Get(void)
reads Port P11 Status.
Definition: port.h:1766
INLINE void PORT_P12_PullUpDown_En(void)
enables PullUpDown for Port P12.
Definition: port.h:2063
INLINE void PORT_P14_PullUp_Set(void)
sets PullUp for Port P14.
Definition: port.h:2310
INLINE void PORT_P02_OpenDrain_En(void)
enables Output OpenDrain for Port P02.
Definition: port.h:797
INLINE uint8 PORT_P12_Get(void)
reads Port P12 Status.
Definition: port.h:1786
INLINE void PORT_P00_PullUpDown_Dis(void)
disables PullUpDown for Port P00.
Definition: port.h:926
INLINE void PORT_P00_Input_Set(void)
sets Port P00 to Input.
Definition: port.h:151
INLINE void PORT_P23_Dis(void)
sets Port P23 to Disable.
Definition: port.h:2419
INLINE void PORT_P04_PullUpDown_Dis(void)
disables PullUpDown for Port P04.
Definition: port.h:1062
INLINE uint8 PORT_P01_Get(void)
reads Port P01 Status.
Definition: port.h:636
INLINE void PORT_P04_Output_Low_Set(void)
sets Port P04 to Low Status.
Definition: port.h:573
INLINE void PORT_P24_PullUp_Set(void)
sets PullUp for Port P24.
Definition: port.h:2919
INLINE void PORT_P13_Input_Set(void)
sets Port P13 to Input.
Definition: port.h:1398
INLINE void PORT_P10_PullUpDown_Dis(void)
disables PullUpDown for Port P10.
Definition: port.h:2012
INLINE void PORT_P22_Dis(void)
sets Port P22 to Disable.
Definition: port.h:2382
INLINE void PORT_P02_PullUp_Set(void)
sets PullUp for Port P02.
Definition: port.h:1152
INLINE void PORT_P10_PullUpDown_En(void)
enables PullUpDown for Port P10.
Definition: port.h:1995
INLINE void PORT_P03_Output_Low_Set(void)
sets Port P03 to Low Status.
Definition: port.h:516
INLINE uint8 PORT_P23_Get(void)
reads Port P23 Status.
Definition: port.h:2579
INLINE void PORT_P23_PullUpDown_En(void)
enables PullUpDown for Port P23.
Definition: port.h:2708
INLINE void PORT_P14_Output_Low_Set(void)
sets Port P14 to Low Status.
Definition: port.h:1703
INLINE uint8 PORT_P03_Get(void)
reads Port P03 Status.
Definition: port.h:680
INLINE void PORT_P04_Output_Toggle_Set(void)
sets Port P04 to Toggle Status.
Definition: port.h:592
INLINE void PORT_P12_Output_Set(void)
sets Port P12 to Output.
Definition: port.h:1339
INLINE void PORT_P04_OpenDrain_Dis(void)
disables Output OpenDrain for Port P04.
Definition: port.h:892
INLINE void PORT_P01_OpenDrain_En(void)
enables Output OpenDrain for Port P01.
Definition: port.h:759
INLINE uint8 PORT_P02_Get(void)
reads Port P02 Status.
Definition: port.h:658
INLINE uint8 PORT_P13_Get(void)
reads Port P13 Status.
Definition: port.h:1806
INLINE void PORT_P01_Output_Low_Set(void)
sets Port P01 to Low Status.
Definition: port.h:402
INLINE void PORT_P11_Output_Toggle_Set(void)
sets Port P11 to Toggle Status.
Definition: port.h:1551
INLINE void PORT_P10_PullUp_Set(void)
sets PullUp for Port P10.
Definition: port.h:2166
INLINE void PORT_P02_PullUpDown_En(void)
enables PullUpDown for Port P02.
Definition: port.h:977
INLINE void PORT_P12_Output_Toggle_Set(void)
sets Port P12 to Toggle Status.
Definition: port.h:1608
INLINE void PORT_P01_PullDown_Set(void)
sets PullDown for Port P01.
Definition: port.h:1134
INLINE void PORT_P10_OpenDrain_Dis(void)
disables Output OpenDrain for Port P10.
Definition: port.h:1864
INLINE void PORT_P01_PullUpDown_Dis(void)
disables PullUpDown for Port P01.
Definition: port.h:960
INLINE void PORT_P13_Output_Toggle_Set(void)
sets Port P13 to Toggle Status.
Definition: port.h:1665
INLINE void PORT_P20_PullUp_Set(void)
sets PullUp for Port P20.
Definition: port.h:2811
INLINE void PORT_P11_PullDown_Set(void)
sets PullDown for Port P11.
Definition: port.h:2220
INLINE uint8 PORT_P00_Get(void)
reads Port P00 Status.
Definition: port.h:614
INLINE void PORT_P20_PullUpDown_En(void)
enables PullUpDown for Port P20.
Definition: port.h:2640
INLINE void PORT_P04_Output_Set(void)
sets Port P04 to Output.
Definition: port.h:287
INLINE void PORT_P03_PullDown_Set(void)
sets PullDown for Port P03.
Definition: port.h:1206
INLINE void PORT_P02_Input_Set(void)
sets Port P02 to Input.
Definition: port.h:229
INLINE void PORT_P02_Output_High_Set(void)
sets Port P02 to High Status.
Definition: port.h:440
INLINE void PORT_P22_PullUpDown_En(void)
enables PullUpDown for Port P22.
Definition: port.h:2674
INLINE void PORT_P03_PullUpDown_En(void)
enables PullUpDown for Port P03.
Definition: port.h:1011
INLINE void PORT_P20_PullDown_Set(void)
sets PullDown for Port P20.
Definition: port.h:2829
INLINE void PORT_P25_PullDown_Set(void)
sets PullDown for Port P25.
Definition: port.h:2973
INLINE uint8 PORT_P20_Get(void)
reads Port P20 Status.
Definition: port.h:2535
void PORT_ChangePinAlt(uint32 PortPin, uint8 AltSel)
Change Alternate Settings.
INLINE void PORT_P10_Output_Low_Set(void)
sets Port P10 to Low Status.
Definition: port.h:1475
INLINE void PORT_P23_Input_Set(void)
sets Port P23 to Input.
Definition: port.h:2439
INLINE void PORT_P25_PullUp_Set(void)
sets PullUp for Port P25.
Definition: port.h:2955
INLINE void PORT_P12_P13_OpenDrain_En(void)
enables Output OpenDrain for Port P12/P13.
Definition: port.h:1921
INLINE void PORT_P25_Input_Set(void)
sets Port P25 to Input.
Definition: port.h:2513
INLINE void PORT_P10_Output_High_Set(void)
sets Port P10 to High Status.
Definition: port.h:1456
INLINE uint8 PORT_P14_Get(void)
reads Port P14 Status.
Definition: port.h:1826
INLINE void PORT_P13_PullUp_Set(void)
sets PullUp for Port P13.
Definition: port.h:2274
INLINE void PORT_P22_PullDown_Set(void)
sets PullDown for Port P22.
Definition: port.h:2865
INLINE void PORT_P12_PullUp_Set(void)
sets PullUp for Port P12.
Definition: port.h:2238
INLINE uint8 PORT_P22_Get(void)
reads Port P22 Status.
Definition: port.h:2557
INLINE void PORT_P10_PullDown_Set(void)
sets PullDown for Port P10.
Definition: port.h:2184
INLINE void PORT_P02_Output_Toggle_Set(void)
sets Port P02 to Toggle Status.
Definition: port.h:478
INLINE void PORT_P14_Output_Toggle_Set(void)
sets Port P14 to Toggle Status.
Definition: port.h:1722
INLINE void PORT_P10_Output_Toggle_Set(void)
sets Port P10 to Toggle Status.
Definition: port.h:1494
INLINE void PORT_P23_PullUp_Set(void)
sets PullUp for Port P23.
Definition: port.h:2883
INLINE void PORT_P12_Output_Low_Set(void)
sets Port P12 to Low Status.
Definition: port.h:1589
INLINE void PORT_P01_PullUpDown_En(void)
enables PullUpDown for Port P01.
Definition: port.h:943
INLINE void PORT_P11_Output_Set(void)
sets Port P11 to Output.
Definition: port.h:1300
SFR low level access library.
INLINE void Field_Inv8(volatile uint8 *reg, uint8 msk)
This function inverts a bit field in a 8-bit register.
Definition: sfr_access.h:352
INLINE uint8 u8_Field_Rd8(const volatile uint8 *reg, uint8 pos, uint8 msk)
This function reads a 8-bit field of a 8-bit register.
Definition: sfr_access.h:397
INLINE void Field_Mod8(volatile uint8 *reg, uint8 pos, uint8 msk, uint8 val)
This function writes a bit field in a 8-bit register.
Definition: sfr_access.h:337
CMSIS register HeaderFile.
General type declarations.
#define INLINE
Definition: types.h:132
uint8_t uint8
8 bit unsigned value
Definition: types.h:137
uint32_t uint32
32 bit unsigned value
Definition: types.h:139