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  * 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  **********************************************************************************************************************/
39 /*******************************************************************************
40 ** Author(s) Identity **
41 ********************************************************************************
42 ** Initials Name **
43 ** ---------------------------------------------------------------------------**
44 ** SS Steffen Storandt **
45 ** DM Daniel Mysliwitz **
46 ** TA Thomas Albersinger **
47 ** JO Julia Ott **
48 ** BG Blandine Guillot **
49 *******************************************************************************/
50 
51 /*******************************************************************************
52 ** Revision Control History **
53 ********************************************************************************
54 ** V0.1.0: 2012-11-12, SS: Initial version **
55 ** V0.2.0: 2012-12-13, SS: New SFR format **
56 ** V0.3.0: 2013-02-10, DM: Function Port_ChangePin() enhanced by Port Dir **
57 ** adjustment, ne function added PORT_ChangePinAlt **
58 ** to set the alternative settings for a Port Pin at**
59 ** runtime **
60 ** V0.4.0: 2013-10-16, DM: Port configuration changed into header file **
61 ** with Configuration Wizard **
62 ** Configuration stored into #defines **
63 ** Port_Init() modified **
64 ** V0.5.0: 2014-04-25, TA: Port_Init(): use #defines from IFX Config Wizard **
65 ** V0.5.1: 2015-02-10, DM: Individual header file added **
66 ** V0.5.2: 2017-02-16, DM: Port prefix changed to capital letters **
67 ** API extended **
68 ** V0.5.3: 2017-10-10, DM: MISRA 2012 compliance, the following PC-Lint **
69 ** rules are globally deactivated: **
70 ** - Info 793: ANSI/ISO limit of 6 'significant **
71 ** characters in an external identifier **
72 ** - Info 835: A zero has been given as right **
73 ** argument to operator **
74 ** - Info 845: The left argument to operator '&' **
75 ** is certain to be 0 **
76 ** The following MISRA rules are deactivated locally**
77 ** - Warning 572: Excessive shift value (precision 0**
78 ** shifted right by 1) [MISRA Rule 38] **
79 ** V0.5.4: 2018-03-20, DM: Double slashes removed to meet MISRA 2012 **
80 ** Replaced macros by INLINE functions **
81 ** Replaced register accesses within functions by **
82 ** function calls **
83 ** Replaced __STATIC_INLINE by INLINE **
84 ** V0.5.5: 2018-11-27, JO: Doxygen update **
85 ** Moved revision history from port.c to port.h, **
86 ** Port_Init() uses new defines at PORT_XML_VERSION **
87 ** >= 10303 **
88 ** Replaced __STATIC_INLINE by INLINE **
89 ** V0.5.6: 2020-04-15, BG: Updated revision history format **
90 ** V0.5.7: 2020-07-21, BG: EP-439: Formatted .h/.c files **
91 ** V0.5.8: 2022-02-25, JO: EP-1040: Corrected usage of CMSIS_Irq_Dis() **
92 ** V0.5.9: 2022-02-28, JO: EP-936: Updated copyright and branding **
93 ** V0.6.0: 2022-03-17, JO: EP-260: Added initialization of SCU->Px_POCONy **
94 ** to apply driver strength setting **
95 *******************************************************************************/
96 
97 #ifndef PORT_H
98 #define PORT_H
99 
100 /*******************************************************************************
101 ** Includes **
102 *******************************************************************************/
103 #include "tle987x.h"
104 #include "types.h"
105 #include "cmsis_misra.h"
106 #include "sfr_access.h"
107 
108 /*******************************************************************************
109 ** Global Macro Definitions **
110 *******************************************************************************/
111 
113 #define PORT_P0 (0U)
115 #define PORT_P1 (1U)
117 #define PORT_P2 (2U)
118 
120 #define PORT_ACTION_CLEAR (0U)
122 #define PORT_ACTION_SET (1U)
124 #define PORT_ACTION_TOGGLE (2U)
126 #define PORT_ACTION_INPUT (3U)
128 #define PORT_ACTION_OUTPUT (4U)
129 
130 /*******************************************************************************
131 ** Global Inline Function Definitions **
132 *******************************************************************************/
148 {
150 }
151 
168 {
170 }
171 
187 {
189 }
190 
207 {
209 }
210 
226 {
228 }
229 
246 {
248 }
249 
265 {
267 }
268 
285 {
287 }
288 
304 {
306 }
307 
324 {
326 }
327 
343 {
345 }
346 
362 {
364 }
365 
381 {
382  Field_Inv8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P0_Msk);
383 }
384 
400 {
402 }
403 
419 {
421 }
422 
438 {
439  Field_Inv8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P1_Msk);
440 }
441 
457 {
459 }
460 
476 {
478 }
479 
495 {
496  Field_Inv8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P2_Msk);
497 }
498 
514 {
516 }
517 
533 {
535 }
536 
552 {
553  Field_Inv8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P3_Msk);
554 }
555 
571 {
573 }
574 
590 {
592 }
593 
609 {
610  Field_Inv8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P4_Msk);
611 }
612 
631 {
632  return ( u8_Field_Rd8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P0_Pos, (uint8)PORT_P0_DATA_P0_Msk) );
633 }
634 
653 {
654  return ( u8_Field_Rd8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P1_Pos, (uint8)PORT_P0_DATA_P1_Msk) );
655 }
656 
675 {
676  return ( u8_Field_Rd8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P2_Pos, (uint8)PORT_P0_DATA_P2_Msk) );
677 }
678 
697 {
698  return ( u8_Field_Rd8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P3_Pos, (uint8)PORT_P0_DATA_P3_Msk) );
699 }
700 
719 {
720  return ( u8_Field_Rd8(&PORT->P0_DATA.reg, (uint8)PORT_P0_DATA_P4_Pos, (uint8)PORT_P0_DATA_P4_Msk) );
721 }
722 
738 {
740 }
741 
757 {
759 }
760 
776 {
778 }
779 
795 {
797 }
798 
814 {
816 }
817 
833 {
835 }
836 
852 {
854 }
855 
871 {
873 }
874 
890 {
892 }
893 
909 {
911 }
912 
926 {
928 }
929 
943 {
945 }
946 
960 {
962 }
963 
977 {
979 }
980 
994 {
996 }
997 
1011 {
1013 }
1014 
1028 {
1030 }
1031 
1045 {
1047 }
1048 
1062 {
1064 }
1065 
1079 {
1081 }
1082 
1097 {
1099 }
1100 
1115 {
1117 }
1118 
1133 {
1135 }
1136 
1151 {
1153 }
1154 
1169 {
1171 }
1172 
1187 {
1189 }
1190 
1205 {
1207 }
1208 
1223 {
1225 }
1226 
1241 {
1243 }
1244 
1259 {
1261 }
1262 
1278 {
1280 }
1281 
1298 {
1300 }
1301 
1317 {
1319 }
1320 
1337 {
1339 }
1340 
1356 {
1358 }
1359 
1376 {
1378 }
1379 
1395 {
1397 }
1398 
1415 {
1417 }
1418 
1434 {
1436 }
1437 
1454 {
1456 }
1457 
1473 {
1475 }
1476 
1492 {
1494 }
1495 
1511 {
1512  Field_Inv8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P0_Msk);
1513 }
1514 
1530 {
1532 }
1533 
1549 {
1551 }
1552 
1568 {
1569  Field_Inv8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P1_Msk);
1570 }
1571 
1587 {
1589 }
1590 
1606 {
1608 }
1609 
1625 {
1626  Field_Inv8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P2_Msk);
1627 }
1628 
1644 {
1646 }
1647 
1663 {
1665 }
1666 
1682 {
1683  Field_Inv8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P3_Msk);
1684 }
1685 
1701 {
1703 }
1704 
1720 {
1722 }
1723 
1739 {
1740  Field_Inv8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P4_Msk);
1741 }
1742 
1761 {
1762  return ( u8_Field_Rd8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P0_Pos, (uint8)PORT_P1_DATA_P0_Msk) );
1763 }
1764 
1783 {
1784  return ( u8_Field_Rd8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P1_Pos, (uint8)PORT_P1_DATA_P1_Msk) );
1785 }
1786 
1803 {
1804  return ( u8_Field_Rd8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P2_Pos, (uint8)PORT_P1_DATA_P2_Msk) );
1805 }
1806 
1823 {
1824  return ( u8_Field_Rd8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P3_Pos, (uint8)PORT_P1_DATA_P3_Msk) );
1825 }
1826 
1843 {
1844  return ( u8_Field_Rd8(&PORT->P1_DATA.reg, (uint8)PORT_P1_DATA_P4_Pos, (uint8)PORT_P1_DATA_P4_Msk) );
1845 }
1846 
1862 {
1864 }
1865 
1881 {
1883 }
1884 
1900 {
1902 }
1903 
1919 {
1921 }
1922 
1938 {
1940 }
1941 
1957 {
1959 }
1960 
1976 {
1978 }
1979 
1995 {
1997 }
1998 
2012 {
2014 }
2015 
2029 {
2031 }
2032 
2046 {
2048 }
2049 
2063 {
2065 }
2066 
2080 {
2082 }
2083 
2097 {
2099 }
2100 
2114 {
2116 }
2117 
2131 {
2133 }
2134 
2148 {
2150 }
2151 
2165 {
2167 }
2168 
2183 {
2185 }
2186 
2201 {
2203 }
2204 
2219 {
2221 }
2222 
2237 {
2239 }
2240 
2255 {
2257 }
2258 
2273 {
2275 }
2276 
2291 {
2293 }
2294 
2309 {
2311 }
2312 
2327 {
2329 }
2330 
2345 {
2347 }
2348 
2362 {
2364 }
2365 
2382 {
2384 }
2385 
2399 {
2401 }
2402 
2419 {
2421 }
2422 
2436 {
2438 }
2439 
2456 {
2458 }
2459 
2473 {
2475 }
2476 
2493 {
2495 }
2496 
2510 {
2512 }
2513 
2530 {
2532 }
2533 
2552 {
2553  return ( u8_Field_Rd8(&PORT->P2_DATA.reg, (uint8)PORT_P2_DATA_P0_Pos, (uint8)PORT_P2_DATA_P0_Msk) );
2554 }
2555 
2574 {
2575  return ( u8_Field_Rd8(&PORT->P2_DATA.reg, (uint8)PORT_P2_DATA_P2_Pos, (uint8)PORT_P2_DATA_P2_Msk) );
2576 }
2577 
2596 {
2597  return ( u8_Field_Rd8(&PORT->P2_DATA.reg, (uint8)PORT_P2_DATA_P3_Pos, (uint8)PORT_P2_DATA_P3_Msk) );
2598 }
2599 
2618 {
2619  return ( u8_Field_Rd8(&PORT->P2_DATA.reg, (uint8)PORT_P2_DATA_P4_Pos, (uint8)PORT_P2_DATA_P4_Msk) );
2620 }
2621 
2640 {
2641  return ( u8_Field_Rd8(&PORT->P2_DATA.reg, (uint8)PORT_P2_DATA_P5_Pos, (uint8)PORT_P2_DATA_P5_Msk) );
2642 }
2643 
2657 {
2659 }
2660 
2674 {
2676 }
2677 
2691 {
2693 }
2694 
2708 {
2710 }
2711 
2725 {
2727 }
2728 
2742 {
2744 }
2745 
2759 {
2761 }
2762 
2776 {
2778 }
2779 
2793 {
2795 }
2796 
2810 {
2812 }
2813 
2828 {
2830 }
2831 
2846 {
2848 }
2849 
2864 {
2866 }
2867 
2882 {
2884 }
2885 
2900 {
2902 }
2903 
2918 {
2920 }
2921 
2936 {
2938 }
2939 
2954 {
2956 }
2957 
2972 {
2974 }
2975 
2990 {
2992 }
2993 
2994 
2995 /*******************************************************************************
2996 ** Global Function Declarations **
2997 *******************************************************************************/
3003 void PORT_Init(void);
3004 
3021 void PORT_ChangePin(uint32 PortPin, uint32 Action);
3022 
3042 
3062 
3063 
3081 void PORT_ChangePinAlt(uint32 PortPin, uint8 AltSel);
3082 
3083 
3084 #endif /* PORT_H */
CMSIS Intrinsics access.
#define PORT
Definition: tle987x.h:6096
#define PORT_P0_OD_P0_Msk
Definition: tle987x.h:8564
#define PORT_P1_PUDSEL_P1_Msk
Definition: tle987x.h:8663
#define PORT_P1_DIR_P1_Pos
Definition: tle987x.h:8631
#define PORT_P0_PUDEN_P2_Msk
Definition: tle987x.h:8579
#define PORT_P2_DIR_P3_Pos
Definition: tle987x.h:8686
#define PORT_P1_DIR_P3_Msk
Definition: tle987x.h:8636
#define PORT_P1_DATA_P3_Pos
Definition: tle987x.h:8624
#define PORT_P0_OD_P4_Msk
Definition: tle987x.h:8572
#define PORT_P1_OD_P4_Msk
Definition: tle987x.h:8647
#define PORT_P1_OD_P4_Pos
Definition: tle987x.h:8646
#define PORT_P0_PUDSEL_P4_Msk
Definition: tle987x.h:8594
#define PORT_P1_PUDSEL_P1_Pos
Definition: tle987x.h:8662
#define PORT_P0_DIR_P0_Pos
Definition: tle987x.h:8552
#define PORT_P2_PUDSEL_P2_Msk
Definition: tle987x.h:8707
#define PORT_P0_DIR_P0_Msk
Definition: tle987x.h:8553
#define PORT_P2_DATA_P2_Pos
Definition: tle987x.h:8673
#define PORT_P0_PUDEN_P0_Msk
Definition: tle987x.h:8575
#define PORT_P2_DIR_P2_Pos
Definition: tle987x.h:8684
#define PORT_P1_OD_P0_Msk
Definition: tle987x.h:8641
#define PORT_P1_DATA_P1_Msk
Definition: tle987x.h:8621
#define PORT_P1_PUDEN_P4_Pos
Definition: tle987x.h:8657
#define PORT_P0_PUDSEL_P0_Msk
Definition: tle987x.h:8586
#define PORT_P1_PUDEN_P1_Msk
Definition: tle987x.h:8652
#define PORT_P0_DATA_P1_Msk
Definition: tle987x.h:8544
#define PORT_P0_DATA_P4_Msk
Definition: tle987x.h:8550
#define PORT_P0_DIR_P2_Pos
Definition: tle987x.h:8556
#define PORT_P2_DATA_P0_Msk
Definition: tle987x.h:8672
#define PORT_P0_OD_P1_Msk
Definition: tle987x.h:8566
#define PORT_P0_DIR_P1_Msk
Definition: tle987x.h:8555
#define PORT_P2_DIR_P4_Pos
Definition: tle987x.h:8688
#define PORT_P1_PUDEN_P4_Msk
Definition: tle987x.h:8658
#define PORT_P0_PUDEN_P4_Pos
Definition: tle987x.h:8582
#define PORT_P2_DATA_P5_Pos
Definition: tle987x.h:8679
#define PORT_P0_PUDSEL_P0_Pos
Definition: tle987x.h:8585
#define PORT_P2_DATA_P3_Msk
Definition: tle987x.h:8676
#define PORT_P0_PUDSEL_P3_Pos
Definition: tle987x.h:8591
#define PORT_P2_PUDSEL_P4_Pos
Definition: tle987x.h:8710
#define PORT_P1_DATA_P2_Msk
Definition: tle987x.h:8623
#define PORT_P0_PUDSEL_P2_Msk
Definition: tle987x.h:8590
#define PORT_P2_PUDSEL_P0_Pos
Definition: tle987x.h:8704
#define PORT_P1_DIR_P4_Pos
Definition: tle987x.h:8637
#define PORT_P0_PUDSEL_P1_Pos
Definition: tle987x.h:8587
#define PORT_P2_PUDEN_P4_Pos
Definition: tle987x.h:8699
#define PORT_P0_DIR_P2_Msk
Definition: tle987x.h:8557
#define PORT_P2_PUDEN_P3_Msk
Definition: tle987x.h:8698
#define PORT_P1_OD_P3_P2_Pos
Definition: tle987x.h:8644
#define PORT_P1_PUDEN_P0_Pos
Definition: tle987x.h:8649
#define PORT_P1_PUDSEL_P4_Pos
Definition: tle987x.h:8668
#define PORT_P0_OD_P3_Msk
Definition: tle987x.h:8570
#define PORT_P0_OD_P1_Pos
Definition: tle987x.h:8565
#define PORT_P1_DIR_P4_Msk
Definition: tle987x.h:8638
#define PORT_P1_DIR_P3_Pos
Definition: tle987x.h:8635
#define PORT_P2_PUDSEL_P0_Msk
Definition: tle987x.h:8705
#define PORT_P0_PUDEN_P1_Pos
Definition: tle987x.h:8576
#define PORT_P2_DIR_P5_Pos
Definition: tle987x.h:8690
#define PORT_P1_PUDEN_P2_Msk
Definition: tle987x.h:8654
#define PORT_P0_DIR_P4_Msk
Definition: tle987x.h:8561
#define PORT_P2_PUDSEL_P4_Msk
Definition: tle987x.h:8711
#define PORT_P1_PUDSEL_P2_Msk
Definition: tle987x.h:8665
#define PORT_P0_OD_P4_Pos
Definition: tle987x.h:8571
#define PORT_P2_DIR_P0_Msk
Definition: tle987x.h:8683
#define PORT_P2_DATA_P0_Pos
Definition: tle987x.h:8671
#define PORT_P0_DATA_P3_Pos
Definition: tle987x.h:8547
#define PORT_P0_DIR_P1_Pos
Definition: tle987x.h:8554
#define PORT_P1_DATA_P0_Pos
Definition: tle987x.h:8618
#define PORT_P1_PUDSEL_P4_Msk
Definition: tle987x.h:8669
#define PORT_P2_DIR_P2_Msk
Definition: tle987x.h:8685
#define PORT_P0_PUDSEL_P1_Msk
Definition: tle987x.h:8588
#define PORT_P1_OD_P3_P2_Msk
Definition: tle987x.h:8645
#define PORT_P2_DIR_P0_Pos
Definition: tle987x.h:8682
#define PORT_P0_DATA_P0_Pos
Definition: tle987x.h:8541
#define PORT_P1_DATA_P4_Pos
Definition: tle987x.h:8626
#define PORT_P0_PUDEN_P2_Pos
Definition: tle987x.h:8578
#define PORT_P2_PUDEN_P0_Pos
Definition: tle987x.h:8693
#define PORT_P0_DATA_P2_Pos
Definition: tle987x.h:8545
#define PORT_P1_PUDSEL_P0_Pos
Definition: tle987x.h:8660
#define PORT_P0_PUDEN_P0_Pos
Definition: tle987x.h:8574
#define PORT_P1_PUDEN_P1_Pos
Definition: tle987x.h:8651
#define PORT_P0_PUDSEL_P2_Pos
Definition: tle987x.h:8589
#define PORT_P1_PUDEN_P3_Msk
Definition: tle987x.h:8656
#define PORT_P1_OD_P1_Pos
Definition: tle987x.h:8642
#define PORT_P2_PUDEN_P4_Msk
Definition: tle987x.h:8700
#define PORT_P1_DIR_P2_Pos
Definition: tle987x.h:8633
#define PORT_P0_DATA_P1_Pos
Definition: tle987x.h:8543
#define PORT_P0_OD_P0_Pos
Definition: tle987x.h:8563
#define PORT_P1_PUDSEL_P3_Msk
Definition: tle987x.h:8667
#define PORT_P0_OD_P3_Pos
Definition: tle987x.h:8569
#define PORT_P0_PUDEN_P3_Msk
Definition: tle987x.h:8581
#define PORT_P2_DATA_P4_Msk
Definition: tle987x.h:8678
#define PORT_P2_DATA_P3_Pos
Definition: tle987x.h:8675
#define PORT_P2_PUDSEL_P5_Msk
Definition: tle987x.h:8713
#define PORT_P1_PUDEN_P0_Msk
Definition: tle987x.h:8650
#define PORT_P2_PUDEN_P5_Msk
Definition: tle987x.h:8702
#define PORT_P2_DATA_P4_Pos
Definition: tle987x.h:8677
#define PORT_P1_PUDEN_P2_Pos
Definition: tle987x.h:8653
#define PORT_P2_PUDEN_P2_Msk
Definition: tle987x.h:8696
#define PORT_P1_DIR_P2_Msk
Definition: tle987x.h:8634
#define PORT_P1_OD_P0_Pos
Definition: tle987x.h:8640
#define PORT_P1_DATA_P2_Pos
Definition: tle987x.h:8622
#define PORT_P1_DATA_P3_Msk
Definition: tle987x.h:8625
#define PORT_P0_DATA_P2_Msk
Definition: tle987x.h:8546
#define PORT_P0_OD_P2_Msk
Definition: tle987x.h:8568
#define PORT_P1_PUDSEL_P2_Pos
Definition: tle987x.h:8664
#define PORT_P0_OD_P2_Pos
Definition: tle987x.h:8567
#define PORT_P1_DIR_P0_Msk
Definition: tle987x.h:8630
#define PORT_P0_DIR_P3_Msk
Definition: tle987x.h:8559
#define PORT_P2_PUDEN_P3_Pos
Definition: tle987x.h:8697
#define PORT_P2_DIR_P3_Msk
Definition: tle987x.h:8687
#define PORT_P1_PUDSEL_P3_Pos
Definition: tle987x.h:8666
#define PORT_P2_PUDEN_P2_Pos
Definition: tle987x.h:8695
#define PORT_P1_DATA_P1_Pos
Definition: tle987x.h:8620
#define PORT_P0_DIR_P3_Pos
Definition: tle987x.h:8558
#define PORT_P0_PUDEN_P3_Pos
Definition: tle987x.h:8580
#define PORT_P1_DATA_P4_Msk
Definition: tle987x.h:8627
#define PORT_P0_DATA_P4_Pos
Definition: tle987x.h:8549
#define PORT_P0_PUDSEL_P4_Pos
Definition: tle987x.h:8593
#define PORT_P0_DATA_P3_Msk
Definition: tle987x.h:8548
#define PORT_P1_PUDEN_P3_Pos
Definition: tle987x.h:8655
#define PORT_P2_DATA_P2_Msk
Definition: tle987x.h:8674
#define PORT_P0_PUDSEL_P3_Msk
Definition: tle987x.h:8592
#define PORT_P0_DATA_P0_Msk
Definition: tle987x.h:8542
#define PORT_P2_DATA_P5_Msk
Definition: tle987x.h:8680
#define PORT_P2_PUDEN_P0_Msk
Definition: tle987x.h:8694
#define PORT_P0_DIR_P4_Pos
Definition: tle987x.h:8560
#define PORT_P1_DATA_P0_Msk
Definition: tle987x.h:8619
#define PORT_P2_PUDSEL_P3_Pos
Definition: tle987x.h:8708
#define PORT_P0_PUDEN_P4_Msk
Definition: tle987x.h:8583
#define PORT_P1_PUDSEL_P0_Msk
Definition: tle987x.h:8661
#define PORT_P2_DIR_P5_Msk
Definition: tle987x.h:8691
#define PORT_P2_DIR_P4_Msk
Definition: tle987x.h:8689
#define PORT_P2_PUDSEL_P2_Pos
Definition: tle987x.h:8706
#define PORT_P1_OD_P1_Msk
Definition: tle987x.h:8643
#define PORT_P1_DIR_P0_Pos
Definition: tle987x.h:8629
#define PORT_P2_PUDEN_P5_Pos
Definition: tle987x.h:8701
#define PORT_P0_PUDEN_P1_Msk
Definition: tle987x.h:8577
#define PORT_P2_PUDSEL_P3_Msk
Definition: tle987x.h:8709
#define PORT_P2_PUDSEL_P5_Pos
Definition: tle987x.h:8712
#define PORT_P1_DIR_P1_Msk
Definition: tle987x.h:8632
INLINE void PORT_P00_Output_High_Set(void)
sets Port P00 to High Status.
Definition: port.h:342
INLINE void PORT_P24_PullUpDown_En(void)
enables PullUpDown for Port P24.
Definition: port.h:2758
INLINE void PORT_P04_PullUp_Set(void)
sets PullUp for Port P04.
Definition: port.h:1240
INLINE void PORT_P11_Output_Low_Set(void)
sets Port P11 to Low Status.
Definition: port.h:1548
INLINE void PORT_P12_P13_OpenDrain_Dis(void)
disables Output OpenDrain for Port P12/P13.
Definition: port.h:1956
INLINE void PORT_P11_Output_High_Set(void)
sets Port P11 to High Status.
Definition: port.h:1529
INLINE void PORT_P02_PullUpDown_Dis(void)
disables PullUpDown for Port P02.
Definition: port.h:1010
INLINE void PORT_P04_OpenDrain_En(void)
enables Output OpenDrain for Port P04.
Definition: port.h:889
INLINE void PORT_P10_Output_Set(void)
sets Port P10 to Output.
Definition: port.h:1277
INLINE void PORT_P25_PullUpDown_Dis(void)
disables PullUpDown for Port P25.
Definition: port.h:2809
INLINE void PORT_P24_Dis(void)
sets Port P24 to Disable.
Definition: port.h:2472
INLINE void PORT_P03_Output_Set(void)
sets Port P03 to Output.
Definition: port.h:264
INLINE void PORT_P03_PullUpDown_Dis(void)
disables PullUpDown for Port P03.
Definition: port.h:1044
INLINE void PORT_P11_PullUpDown_Dis(void)
disables PullUpDown for Port P11.
Definition: port.h:2062
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:1586
INLINE void PORT_P01_Output_Toggle_Set(void)
sets Port P01 to Toggle Status.
Definition: port.h:437
INLINE void PORT_P14_OpenDrain_Dis(void)
disables Output OpenDrain for Port P14.
Definition: port.h:1994
INLINE void PORT_P00_PullUp_Set(void)
sets PullUp for Port P00.
Definition: port.h:1096
INLINE void PORT_P00_OpenDrain_Dis(void)
disables Output OpenDrain for Port P00.
Definition: port.h:756
INLINE void PORT_P14_Output_High_Set(void)
sets Port P14 to High Status.
Definition: port.h:1700
INLINE void PORT_P20_Dis(void)
sets Port P20 to Disable.
Definition: port.h:2361
INLINE void PORT_P00_PullDown_Set(void)
sets PullDown for Port P00.
Definition: port.h:1114
INLINE void PORT_P02_OpenDrain_Dis(void)
disables Output OpenDrain for Port P02.
Definition: port.h:832
INLINE void PORT_P13_PullUpDown_Dis(void)
disables PullUpDown for Port P13.
Definition: port.h:2130
INLINE void PORT_P20_PullUpDown_Dis(void)
disables PullUpDown for Port P20.
Definition: port.h:2673
INLINE void PORT_P14_PullUpDown_En(void)
enables PullUpDown for Port P14.
Definition: port.h:2147
INLINE void PORT_P12_PullDown_Set(void)
sets PullDown for Port P12.
Definition: port.h:2272
INLINE void PORT_P01_Output_High_Set(void)
sets Port P01 to High Status.
Definition: port.h:399
INLINE void PORT_P04_PullUpDown_En(void)
enables PullUpDown for Port P04.
Definition: port.h:1061
INLINE void PORT_P13_Output_High_Set(void)
sets Port P13 to High Status.
Definition: port.h:1643
INLINE void PORT_P14_Input_Set(void)
sets Port P14 to Input.
Definition: port.h:1453
INLINE void PORT_P14_PullUpDown_Dis(void)
disables PullUpDown for Port P14.
Definition: port.h:2164
INLINE void PORT_P03_OpenDrain_En(void)
enables Output OpenDrain for Port P03.
Definition: port.h:851
INLINE void PORT_P01_PullUp_Set(void)
sets PullUp for Port P01.
Definition: port.h:1132
INLINE void PORT_P00_Output_Toggle_Set(void)
sets Port P00 to Toggle Status.
Definition: port.h:380
INLINE void PORT_P14_PullDown_Set(void)
sets PullDown for Port P14.
Definition: port.h:2344
INLINE void PORT_P23_PullDown_Set(void)
sets PullDown for Port P23.
Definition: port.h:2917
INLINE void PORT_P02_Output_Low_Set(void)
sets Port P02 to Low Status.
Definition: port.h:475
INLINE void PORT_P22_PullUpDown_Dis(void)
disables PullUpDown for Port P22.
Definition: port.h:2707
uint8 PORT_ReadPort(uint32 Port)
Reads a port.
INLINE void PORT_P10_OpenDrain_En(void)
enables Output OpenDrain for Port P10.
Definition: port.h:1861
INLINE void PORT_P24_Input_Set(void)
sets Port P24 to Input.
Definition: port.h:2492
INLINE void PORT_P03_Output_High_Set(void)
sets Port P03 to High Status.
Definition: port.h:513
INLINE void PORT_P13_PullDown_Set(void)
sets PullDown for Port P13.
Definition: port.h:2308
INLINE void PORT_P04_PullDown_Set(void)
sets PullDown for Port P04.
Definition: port.h:1258
INLINE void PORT_P14_OpenDrain_En(void)
enables Output OpenDrain for Port P14.
Definition: port.h:1975
INLINE void PORT_P00_PullUpDown_En(void)
enables PullUpDown for Port P00.
Definition: port.h:925
INLINE void PORT_P03_OpenDrain_Dis(void)
disables Output OpenDrain for Port P03.
Definition: port.h:870
INLINE void PORT_P10_Input_Set(void)
sets Port P10 to Input.
Definition: port.h:1297
INLINE void PORT_P12_PullUpDown_Dis(void)
disables PullUpDown for Port P12.
Definition: port.h:2096
INLINE void PORT_P22_PullUp_Set(void)
sets PullUp for Port P22.
Definition: port.h:2863
INLINE void PORT_P00_OpenDrain_En(void)
enables Output OpenDrain for Port P00.
Definition: port.h:737
INLINE void PORT_P24_PullUpDown_Dis(void)
disables PullUpDown for Port P24.
Definition: port.h:2775
INLINE void PORT_P03_Input_Set(void)
sets Port P03 to Input.
Definition: port.h:284
INLINE void PORT_P23_PullUpDown_Dis(void)
disables PullUpDown for Port P23.
Definition: port.h:2741
INLINE void PORT_P22_Input_Set(void)
sets Port P22 to Input.
Definition: port.h:2418
INLINE void PORT_P20_Input_Set(void)
sets Port P20 to Input.
Definition: port.h:2381
INLINE uint8 PORT_P10_Get(void)
reads Port P10 Status.
Definition: port.h:1760
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:794
INLINE void PORT_P11_OpenDrain_En(void)
enables Output OpenDrain for Port P11.
Definition: port.h:1899
INLINE void PORT_P11_PullUp_Set(void)
sets PullUp for Port P11.
Definition: port.h:2218
INLINE void PORT_P13_PullUpDown_En(void)
enables PullUpDown for Port P13.
Definition: port.h:2113
INLINE void PORT_P01_Output_Set(void)
sets Port P01 to Output.
Definition: port.h:186
INLINE void PORT_P25_PullUpDown_En(void)
enables PullUpDown for Port P25.
Definition: port.h:2792
INLINE void PORT_P04_Input_Set(void)
sets Port P04 to Input.
Definition: port.h:323
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:1336
INLINE void PORT_P25_Dis(void)
sets Port P25 to Disable.
Definition: port.h:2509
INLINE uint8 PORT_P24_Get(void)
reads Port P24 Status.
Definition: port.h:2617
INLINE void PORT_P04_Output_High_Set(void)
sets Port P04 to High Status.
Definition: port.h:570
INLINE void PORT_P12_Input_Set(void)
sets Port P12 to Input.
Definition: port.h:1375
INLINE void PORT_P11_PullUpDown_En(void)
enables PullUpDown for Port P11.
Definition: port.h:2045
INLINE void PORT_P14_Output_Set(void)
sets Port P14 to Output.
Definition: port.h:1433
INLINE void PORT_P13_Output_Low_Set(void)
sets Port P13 to Low Status.
Definition: port.h:1662
INLINE void PORT_P01_Input_Set(void)
sets Port P01 to Input.
Definition: port.h:206
INLINE void PORT_P24_PullDown_Set(void)
sets PullDown for Port P24.
Definition: port.h:2953
INLINE void PORT_P02_PullDown_Set(void)
sets PullDown for Port P02.
Definition: port.h:1186
INLINE void PORT_P13_Output_Set(void)
sets Port P13 to Output.
Definition: port.h:1394
INLINE uint8 PORT_P25_Get(void)
reads Port P25 Status.
Definition: port.h:2639
INLINE void PORT_P11_OpenDrain_Dis(void)
disables Output OpenDrain for Port P11.
Definition: port.h:1918
INLINE void PORT_P03_Output_Toggle_Set(void)
sets Port P03 to Toggle Status.
Definition: port.h:551
INLINE void PORT_P00_Output_Set(void)
sets Port P00 to Output.
Definition: port.h:147
INLINE void PORT_P02_Output_Set(void)
sets Port P02 to Output.
Definition: port.h:225
INLINE void PORT_P03_PullUp_Set(void)
sets PullUp for Port P03.
Definition: port.h:1204
INLINE void PORT_P00_Output_Low_Set(void)
sets Port P00 to Low Status.
Definition: port.h:361
INLINE uint8 PORT_P04_Get(void)
reads Port P04 Status.
Definition: port.h:718
INLINE uint8 PORT_P11_Get(void)
reads Port P11 Status.
Definition: port.h:1782
INLINE void PORT_P12_PullUpDown_En(void)
enables PullUpDown for Port P12.
Definition: port.h:2079
INLINE void PORT_P14_PullUp_Set(void)
sets PullUp for Port P14.
Definition: port.h:2326
INLINE void PORT_P02_OpenDrain_En(void)
enables Output OpenDrain for Port P02.
Definition: port.h:813
INLINE uint8 PORT_P12_Get(void)
reads Port P12 Status.
Definition: port.h:1802
INLINE void PORT_P00_PullUpDown_Dis(void)
disables PullUpDown for Port P00.
Definition: port.h:942
INLINE void PORT_P00_Input_Set(void)
sets Port P00 to Input.
Definition: port.h:167
INLINE void PORT_P23_Dis(void)
sets Port P23 to Disable.
Definition: port.h:2435
INLINE void PORT_P04_PullUpDown_Dis(void)
disables PullUpDown for Port P04.
Definition: port.h:1078
INLINE uint8 PORT_P01_Get(void)
reads Port P01 Status.
Definition: port.h:652
INLINE void PORT_P04_Output_Low_Set(void)
sets Port P04 to Low Status.
Definition: port.h:589
INLINE void PORT_P24_PullUp_Set(void)
sets PullUp for Port P24.
Definition: port.h:2935
INLINE void PORT_P13_Input_Set(void)
sets Port P13 to Input.
Definition: port.h:1414
INLINE void PORT_P10_PullUpDown_Dis(void)
disables PullUpDown for Port P10.
Definition: port.h:2028
INLINE void PORT_P22_Dis(void)
sets Port P22 to Disable.
Definition: port.h:2398
INLINE void PORT_P02_PullUp_Set(void)
sets PullUp for Port P02.
Definition: port.h:1168
INLINE void PORT_P10_PullUpDown_En(void)
enables PullUpDown for Port P10.
Definition: port.h:2011
INLINE void PORT_P03_Output_Low_Set(void)
sets Port P03 to Low Status.
Definition: port.h:532
INLINE uint8 PORT_P23_Get(void)
reads Port P23 Status.
Definition: port.h:2595
INLINE void PORT_P23_PullUpDown_En(void)
enables PullUpDown for Port P23.
Definition: port.h:2724
INLINE void PORT_P14_Output_Low_Set(void)
sets Port P14 to Low Status.
Definition: port.h:1719
INLINE uint8 PORT_P03_Get(void)
reads Port P03 Status.
Definition: port.h:696
INLINE void PORT_P04_Output_Toggle_Set(void)
sets Port P04 to Toggle Status.
Definition: port.h:608
INLINE void PORT_P12_Output_Set(void)
sets Port P12 to Output.
Definition: port.h:1355
INLINE void PORT_P04_OpenDrain_Dis(void)
disables Output OpenDrain for Port P04.
Definition: port.h:908
INLINE void PORT_P01_OpenDrain_En(void)
enables Output OpenDrain for Port P01.
Definition: port.h:775
INLINE uint8 PORT_P02_Get(void)
reads Port P02 Status.
Definition: port.h:674
INLINE uint8 PORT_P13_Get(void)
reads Port P13 Status.
Definition: port.h:1822
INLINE void PORT_P01_Output_Low_Set(void)
sets Port P01 to Low Status.
Definition: port.h:418
INLINE void PORT_P11_Output_Toggle_Set(void)
sets Port P11 to Toggle Status.
Definition: port.h:1567
INLINE void PORT_P10_PullUp_Set(void)
sets PullUp for Port P10.
Definition: port.h:2182
INLINE void PORT_P02_PullUpDown_En(void)
enables PullUpDown for Port P02.
Definition: port.h:993
INLINE void PORT_P12_Output_Toggle_Set(void)
sets Port P12 to Toggle Status.
Definition: port.h:1624
INLINE void PORT_P01_PullDown_Set(void)
sets PullDown for Port P01.
Definition: port.h:1150
INLINE void PORT_P10_OpenDrain_Dis(void)
disables Output OpenDrain for Port P10.
Definition: port.h:1880
INLINE void PORT_P01_PullUpDown_Dis(void)
disables PullUpDown for Port P01.
Definition: port.h:976
INLINE void PORT_P13_Output_Toggle_Set(void)
sets Port P13 to Toggle Status.
Definition: port.h:1681
INLINE void PORT_P20_PullUp_Set(void)
sets PullUp for Port P20.
Definition: port.h:2827
INLINE void PORT_P11_PullDown_Set(void)
sets PullDown for Port P11.
Definition: port.h:2236
INLINE uint8 PORT_P00_Get(void)
reads Port P00 Status.
Definition: port.h:630
INLINE void PORT_P20_PullUpDown_En(void)
enables PullUpDown for Port P20.
Definition: port.h:2656
INLINE void PORT_P04_Output_Set(void)
sets Port P04 to Output.
Definition: port.h:303
INLINE void PORT_P03_PullDown_Set(void)
sets PullDown for Port P03.
Definition: port.h:1222
INLINE void PORT_P02_Input_Set(void)
sets Port P02 to Input.
Definition: port.h:245
INLINE void PORT_P02_Output_High_Set(void)
sets Port P02 to High Status.
Definition: port.h:456
INLINE void PORT_P22_PullUpDown_En(void)
enables PullUpDown for Port P22.
Definition: port.h:2690
INLINE void PORT_P03_PullUpDown_En(void)
enables PullUpDown for Port P03.
Definition: port.h:1027
INLINE void PORT_P20_PullDown_Set(void)
sets PullDown for Port P20.
Definition: port.h:2845
INLINE void PORT_P25_PullDown_Set(void)
sets PullDown for Port P25.
Definition: port.h:2989
INLINE uint8 PORT_P20_Get(void)
reads Port P20 Status.
Definition: port.h:2551
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:1491
INLINE void PORT_P23_Input_Set(void)
sets Port P23 to Input.
Definition: port.h:2455
INLINE void PORT_P25_PullUp_Set(void)
sets PullUp for Port P25.
Definition: port.h:2971
INLINE void PORT_P12_P13_OpenDrain_En(void)
enables Output OpenDrain for Port P12/P13.
Definition: port.h:1937
INLINE void PORT_P25_Input_Set(void)
sets Port P25 to Input.
Definition: port.h:2529
INLINE void PORT_P10_Output_High_Set(void)
sets Port P10 to High Status.
Definition: port.h:1472
INLINE uint8 PORT_P14_Get(void)
reads Port P14 Status.
Definition: port.h:1842
INLINE void PORT_P13_PullUp_Set(void)
sets PullUp for Port P13.
Definition: port.h:2290
INLINE void PORT_P22_PullDown_Set(void)
sets PullDown for Port P22.
Definition: port.h:2881
INLINE void PORT_P12_PullUp_Set(void)
sets PullUp for Port P12.
Definition: port.h:2254
INLINE uint8 PORT_P22_Get(void)
reads Port P22 Status.
Definition: port.h:2573
INLINE void PORT_P10_PullDown_Set(void)
sets PullDown for Port P10.
Definition: port.h:2200
INLINE void PORT_P02_Output_Toggle_Set(void)
sets Port P02 to Toggle Status.
Definition: port.h:494
INLINE void PORT_P14_Output_Toggle_Set(void)
sets Port P14 to Toggle Status.
Definition: port.h:1738
INLINE void PORT_P10_Output_Toggle_Set(void)
sets Port P10 to Toggle Status.
Definition: port.h:1510
INLINE void PORT_P23_PullUp_Set(void)
sets PullUp for Port P23.
Definition: port.h:2899
INLINE void PORT_P12_Output_Low_Set(void)
sets Port P12 to Low Status.
Definition: port.h:1605
INLINE void PORT_P01_PullUpDown_En(void)
enables PullUpDown for Port P01.
Definition: port.h:959
INLINE void PORT_P11_Output_Set(void)
sets Port P11 to Output.
Definition: port.h:1316
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:367
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:412
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:352
CMSIS register HeaderFile.
General type declarations.
#define INLINE
Definition: types.h:148
uint8_t uint8
8 bit unsigned value
Definition: types.h:153
uint32_t uint32
32 bit unsigned value
Definition: types.h:155