Infineon MOTIX™ MCU TLE985x Device Family SDK
mon.h
Go to the documentation of this file.
1 /*
2  ***********************************************************************************************************************
3  *
4  * Copyright (c) 2018-2023, 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 ** TS T&S **
45 ** BG Blandine Guillot **
46 *******************************************************************************/
47 
48 /*******************************************************************************
49 ** Revision Control History **
50 ********************************************************************************
51 ** V0.2.0: 2018-02-13, TS: Initial version of revision history **
52 ** V0.2.2: 2019-01-28, TS: __STATIC_INLINE changed to INLINE **
53 ** Doxygen update **
54 ** Revision history moved from mon.c to mon.h **
55 ** EXINT MONx Pos and Mask macros added **
56 ** V0.2.3: 2020-03-02, BG: Updated revision history format **
57 ** V0.2.4: 2022-01-21, JO: EP-934: Updated copyright and branding **
58 ** V0.2.5: 2023-08-28, JO: EP-435: Removed ARMCC v6 compiler warnings **
59 *******************************************************************************/
60 
61 #ifndef MON_H
62 #define MON_H
63 
64 /*******************************************************************************
65 ** Includes **
66 *******************************************************************************/
67 #include "tle985x.h"
68 #include "types.h"
69 #include "sfr_access.h"
70 
71 /*******************************************************************************
72 ** Global Macro Definitions **
73 *******************************************************************************/
75 #define MON1_STATUS_LOW (0U)
77 #define MON1_STATUS_HIGH (1U)
79 #define MON2_STATUS_LOW (0U)
81 #define MON2_STATUS_HIGH (1U)
83 #define MON3_STATUS_LOW (0U)
85 #define MON3_STATUS_HIGH (1U)
87 #define MON4_STATUS_LOW (0U)
89 #define MON4_STATUS_HIGH (1U)
90 
92 #define SCU_EXICON1_MON1_RE_Pos (0UL)
94 #define SCU_EXICON1_MON1_RE_Msk (0x01UL)
96 #define SCU_EXICON1_MON1_FE_Pos (1UL)
98 #define SCU_EXICON1_MON1_FE_Msk (0x02UL)
100 #define SCU_EXICON1_MON2_RE_Pos (2UL)
102 #define SCU_EXICON1_MON2_RE_Msk (0x04UL)
104 #define SCU_EXICON1_MON2_FE_Pos (3UL)
106 #define SCU_EXICON1_MON2_FE_Msk (0x08UL)
108 #define SCU_EXICON1_MON3_RE_Pos (4UL)
110 #define SCU_EXICON1_MON3_RE_Msk (0x10UL)
112 #define SCU_EXICON1_MON3_FE_Pos (5UL)
114 #define SCU_EXICON1_MON3_FE_Msk (0x20UL)
116 #define SCU_EXICON1_MON4_RE_Pos (6UL)
118 #define SCU_EXICON1_MON4_RE_Msk (0x40UL)
120 #define SCU_EXICON1_MON4_FE_Pos (7UL)
122 #define SCU_EXICON1_MON4_FE_Msk (0x80UL)
123 
124 /*******************************************************************************
125 ** Global Function Declarations **
126 *******************************************************************************/
131 void MONx_Init(void);
132 
151 
172 uint8 MONx_Debounce(uint8 Monx,uint8 MonActiveState);
173 
174 /*******************************************************************************
175 ** Inline Function Declarations **
176 *******************************************************************************/
196 
216 
236 
256 
276 
296 
316 
336 
356 
377 
397 
418 
438 
459 
479 
500 
520 
541 
561 
581 
601 
622 
642 
663 
680 INLINE uint8 MON1_Sts(void);
681 
695 INLINE void MON1_PullUp_En(void);
696 
710 INLINE void MON1_PullUp_Dis(void);
711 
725 INLINE void MON1_PullDown_En(void);
726 
740 INLINE void MON1_PullDown_Dis(void);
741 
755 INLINE void MON1_CycSense_En(void);
756 
770 INLINE void MON1_CycSense_Dis(void);
771 
785 INLINE void MON1_WakeOnRise_En(void);
786 
800 INLINE void MON1_WakeOnRise_Dis(void);
801 
815 INLINE void MON1_WakeOnFall_En(void);
816 
830 INLINE void MON1_WakeOnFall_Dis(void);
831 
845 INLINE void MON1_En(void);
846 
859 INLINE void MON1_Dis(void);
860 
877 INLINE uint8 MON2_Sts(void);
878 
892 INLINE void MON2_PullUp_En(void);
893 
907 INLINE void MON2_PullUp_Dis(void);
908 
922 INLINE void MON2_PullDown_En(void);
923 
937 INLINE void MON2_PullDown_Dis(void);
938 
952 INLINE void MON2_CycSense_En(void);
953 
967 INLINE void MON2_CycSense_Dis(void);
968 
982 INLINE void MON2_WakeOnRise_En(void);
983 
997 INLINE void MON2_WakeOnRise_Dis(void);
998 
1012 INLINE void MON2_WakeOnFall_En(void);
1013 
1027 INLINE void MON2_WakeOnFall_Dis(void);
1028 
1042 INLINE void MON2_En(void);
1043 
1056 INLINE void MON2_Dis(void);
1057 
1074 INLINE uint8 MON3_Sts(void);
1075 
1089 INLINE void MON3_PullUp_En(void);
1090 
1104 INLINE void MON3_PullUp_Dis(void);
1105 
1119 INLINE void MON3_PullDown_En(void);
1120 
1134 INLINE void MON3_PullDown_Dis(void);
1135 
1149 INLINE void MON3_CycSense_En(void);
1150 
1164 INLINE void MON3_CycSense_Dis(void);
1165 
1179 INLINE void MON3_WakeOnRise_En(void);
1180 
1194 INLINE void MON3_WakeOnRise_Dis(void);
1195 
1209 INLINE void MON3_WakeOnFall_En(void);
1210 
1224 INLINE void MON3_WakeOnFall_Dis(void);
1225 
1239 INLINE void MON3_En(void);
1240 
1253 INLINE void MON3_Dis(void);
1254 
1271 INLINE uint8 MON4_Sts(void);
1272 
1286 INLINE void MON4_PullUp_En(void);
1287 
1301 INLINE void MON4_PullUp_Dis(void);
1302 
1316 INLINE void MON4_PullDown_En(void);
1317 
1331 INLINE void MON4_PullDown_Dis(void);
1332 
1346 INLINE void MON4_CycSense_En(void);
1347 
1361 INLINE void MON4_CycSense_Dis(void);
1362 
1376 INLINE void MON4_WakeOnRise_En(void);
1377 
1391 INLINE void MON4_WakeOnRise_Dis(void);
1392 
1406 INLINE void MON4_WakeOnFall_En(void);
1407 
1421 INLINE void MON4_WakeOnFall_Dis(void);
1422 
1436 INLINE void MON4_En(void);
1437 
1450 INLINE void MON4_Dis(void);
1451 
1470 INLINE void MON1_Int_En(void);
1471 
1490 INLINE void MON2_Int_En(void);
1491 
1510 INLINE void MON3_Int_En(void);
1511 
1530 INLINE void MON4_Int_En(void);
1531 
1551 INLINE void MON1_Int_Dis(void);
1552 
1572 INLINE void MON2_Int_Dis(void);
1573 
1593 INLINE void MON3_Int_Dis(void);
1594 
1614 INLINE void MON4_Int_Dis(void);
1615 
1616 /*******************************************************************************
1617 ** Inline Function Definitions **
1618 *******************************************************************************/
1620 {
1622 }
1623 
1625 {
1627 }
1628 
1630 {
1632 }
1633 
1635 {
1637 }
1638 
1640 {
1642 }
1643 
1645 {
1647 }
1648 
1650 {
1652 }
1653 
1655 {
1657 }
1658 
1660 {
1662 }
1663 
1665 {
1667 }
1668 
1670 {
1672 }
1673 
1675 {
1677 }
1678 
1680 {
1682 }
1683 
1685 {
1687 }
1688 
1690 {
1692 }
1693 
1695 {
1697 }
1698 
1700 {
1702 }
1703 
1705 {
1707 }
1708 
1710 {
1712 }
1713 
1715 {
1717 }
1718 
1720 {
1722 }
1723 
1725 {
1727 }
1728 
1730 {
1732 }
1733 
1735 {
1737 }
1738 
1740 {
1742 }
1743 
1745 {
1747 }
1748 
1750 {
1752 }
1753 
1755 {
1757 }
1758 
1760 {
1762 }
1763 
1765 {
1767 }
1768 
1770 {
1772 }
1773 
1775 {
1777 }
1778 
1780 {
1782 }
1783 
1785 {
1787 }
1788 
1790 {
1792 }
1793 
1794 INLINE void MON1_En(void)
1795 {
1797 }
1798 
1799 INLINE void MON1_Dis(void)
1800 {
1802 }
1803 
1805 {
1807 }
1808 
1810 {
1812 }
1813 
1815 {
1817 }
1818 
1820 {
1822 }
1823 
1825 {
1827 }
1828 
1830 {
1832 }
1833 
1835 {
1837 }
1838 
1840 {
1842 }
1843 
1845 {
1847 }
1848 
1850 {
1852 }
1853 
1855 {
1857 }
1858 
1859 INLINE void MON2_En(void)
1860 {
1862 }
1863 
1864 INLINE void MON2_Dis(void)
1865 {
1867 }
1868 
1870 {
1872 }
1873 
1875 {
1877 }
1878 
1880 {
1882 }
1883 
1885 {
1887 }
1888 
1890 {
1892 }
1893 
1895 {
1897 }
1898 
1900 {
1902 }
1903 
1905 {
1907 }
1908 
1910 {
1912 }
1913 
1915 {
1917 }
1918 
1920 {
1922 }
1923 
1924 INLINE void MON3_En(void)
1925 {
1927 }
1928 
1929 INLINE void MON3_Dis(void)
1930 {
1932 }
1933 
1935 {
1937 }
1938 
1940 {
1942 }
1943 
1945 {
1947 }
1948 
1950 {
1952 }
1953 
1955 {
1957 }
1958 
1960 {
1962 }
1963 
1965 {
1967 }
1968 
1970 {
1972 }
1973 
1975 {
1977 }
1978 
1980 {
1982 }
1983 
1985 {
1987 }
1988 
1989 INLINE void MON4_En(void)
1990 {
1992 }
1993 
1994 INLINE void MON4_Dis(void)
1995 {
1997 }
1998 
2000 {
2002 }
2003 
2005 {
2007 }
2008 
2010 {
2012 }
2013 
2015 {
2017 }
2018 
2020 {
2022 }
2023 
2025 {
2027 }
2028 
2030 {
2032 }
2033 
2035 {
2037 }
2038 
2039 #endif
#define PMU
Definition: tle985x.h:6275
#define SCU
Definition: tle985x.h:6277
#define PMU_MON_CNF1_MON2_CYC_Pos
Definition: tle985x.h:9283
#define PMU_MON_CNF1_MON1_FALL_Pos
Definition: tle985x.h:9303
#define SCU_IRCON1CLR_MON2FC_Pos
Definition: tle985x.h:10015
#define PMU_MON_CNF1_MON3_PD_Pos
Definition: tle985x.h:9265
#define PMU_MON_CNF1_MON1_PD_Pos
Definition: tle985x.h:9297
#define PMU_MON_CNF1_MON2_PD_Pos
Definition: tle985x.h:9281
#define PMU_MON_CNF1_MON4_PD_Pos
Definition: tle985x.h:9249
#define PMU_MON_CNF1_MON2_EN_Msk
Definition: tle985x.h:9290
#define PMU_MON_CNF1_MON4_FALL_Pos
Definition: tle985x.h:9255
#define PMU_MON_CNF1_MON1_PU_Msk
Definition: tle985x.h:9296
#define PMU_MON_CNF1_MON2_PD_Msk
Definition: tle985x.h:9282
#define SCU_IRCON1CLR_MON4FC_Msk
Definition: tle985x.h:10008
#define PMU_MON_CNF1_MON3_PU_Msk
Definition: tle985x.h:9264
#define PMU_MON_CNF1_MON1_CYC_Msk
Definition: tle985x.h:9300
#define PMU_MON_CNF1_MON1_STS_Msk
Definition: tle985x.h:9292
#define PMU_MON_CNF1_MON2_FALL_Msk
Definition: tle985x.h:9288
#define PMU_MON_CNF1_MON4_PU_Msk
Definition: tle985x.h:9248
#define PMU_MON_CNF1_MON3_PU_Pos
Definition: tle985x.h:9263
#define SCU_IRCON1CLR_MON2FC_Msk
Definition: tle985x.h:10016
#define PMU_MON_CNF1_MON4_CYC_Msk
Definition: tle985x.h:9252
#define PMU_MON_CNF1_MON4_STS_Pos
Definition: tle985x.h:9243
#define SCU_IRCON1CLR_MON2RC_Msk
Definition: tle985x.h:10018
#define PMU_MON_CNF1_MON2_PU_Msk
Definition: tle985x.h:9280
#define PMU_MON_CNF1_MON1_EN_Pos
Definition: tle985x.h:9305
#define SCU_IRCON1CLR_MON3FC_Msk
Definition: tle985x.h:10012
#define SCU_IRCON1CLR_MON3FC_Pos
Definition: tle985x.h:10011
#define PMU_MON_CNF1_MON2_STS_Pos
Definition: tle985x.h:9275
#define PMU_MON_CNF1_MON1_PU_Pos
Definition: tle985x.h:9295
#define PMU_MON_CNF1_MON4_PU_Pos
Definition: tle985x.h:9247
#define PMU_MON_CNF1_MON2_CYC_Msk
Definition: tle985x.h:9284
#define SCU_IRCON1CLR_MON4RC_Pos
Definition: tle985x.h:10009
#define PMU_MON_CNF1_MON4_PD_Msk
Definition: tle985x.h:9250
#define SCU_MONIEN_MON2IE_Pos
Definition: tle985x.h:10220
#define PMU_MON_CNF1_MON2_FALL_Pos
Definition: tle985x.h:9287
#define SCU_IRCON1CLR_MON1RC_Pos
Definition: tle985x.h:10021
#define PMU_MON_CNF1_MON3_CYC_Pos
Definition: tle985x.h:9267
#define PMU_MON_CNF1_MON1_CYC_Pos
Definition: tle985x.h:9299
#define PMU_MON_CNF1_MON4_STS_Msk
Definition: tle985x.h:9244
#define PMU_MON_CNF1_MON2_RISE_Pos
Definition: tle985x.h:9285
#define PMU_MON_CNF1_MON1_FALL_Msk
Definition: tle985x.h:9304
#define PMU_MON_CNF1_MON2_RISE_Msk
Definition: tle985x.h:9286
#define SCU_MONIEN_MON1IE_Pos
Definition: tle985x.h:10222
#define PMU_MON_CNF1_MON3_CYC_Msk
Definition: tle985x.h:9268
#define PMU_MON_CNF1_MON4_CYC_Pos
Definition: tle985x.h:9251
#define SCU_MONIEN_MON4IE_Pos
Definition: tle985x.h:10216
#define SCU_IRCON1CLR_MON1FC_Pos
Definition: tle985x.h:10019
#define PMU_MON_CNF1_MON4_RISE_Pos
Definition: tle985x.h:9253
#define SCU_MONIEN_MON3IE_Msk
Definition: tle985x.h:10219
#define PMU_MON_CNF1_MON3_EN_Pos
Definition: tle985x.h:9273
#define SCU_IRCON1CLR_MON3RC_Msk
Definition: tle985x.h:10014
#define SCU_IRCON1CLR_MON1FC_Msk
Definition: tle985x.h:10020
#define PMU_MON_CNF1_MON2_PU_Pos
Definition: tle985x.h:9279
#define SCU_IRCON1CLR_MON4FC_Pos
Definition: tle985x.h:10007
#define PMU_MON_CNF1_MON1_PD_Msk
Definition: tle985x.h:9298
#define PMU_MON_CNF1_MON4_EN_Msk
Definition: tle985x.h:9258
#define PMU_MON_CNF1_MON4_FALL_Msk
Definition: tle985x.h:9256
#define PMU_MON_CNF1_MON3_FALL_Msk
Definition: tle985x.h:9272
#define PMU_MON_CNF1_MON1_RISE_Pos
Definition: tle985x.h:9301
#define SCU_IRCON1CLR_MON2RC_Pos
Definition: tle985x.h:10017
#define PMU_MON_CNF1_MON2_STS_Msk
Definition: tle985x.h:9276
#define SCU_IRCON1CLR_MON3RC_Pos
Definition: tle985x.h:10013
#define PMU_MON_CNF1_MON1_RISE_Msk
Definition: tle985x.h:9302
#define SCU_IRCON1CLR_MON1RC_Msk
Definition: tle985x.h:10022
#define PMU_MON_CNF1_MON3_STS_Msk
Definition: tle985x.h:9260
#define PMU_MON_CNF1_MON3_PD_Msk
Definition: tle985x.h:9266
#define PMU_MON_CNF1_MON1_EN_Msk
Definition: tle985x.h:9306
#define SCU_MONIEN_MON3IE_Pos
Definition: tle985x.h:10218
#define PMU_MON_CNF1_MON4_EN_Pos
Definition: tle985x.h:9257
#define PMU_MON_CNF1_MON3_EN_Msk
Definition: tle985x.h:9274
#define PMU_MON_CNF1_MON3_FALL_Pos
Definition: tle985x.h:9271
#define SCU_MONIEN_MON2IE_Msk
Definition: tle985x.h:10221
#define PMU_MON_CNF1_MON3_STS_Pos
Definition: tle985x.h:9259
#define PMU_MON_CNF1_MON4_RISE_Msk
Definition: tle985x.h:9254
#define PMU_MON_CNF1_MON3_RISE_Pos
Definition: tle985x.h:9269
#define PMU_MON_CNF1_MON2_EN_Pos
Definition: tle985x.h:9289
#define PMU_MON_CNF1_MON1_STS_Pos
Definition: tle985x.h:9291
#define PMU_MON_CNF1_MON3_RISE_Msk
Definition: tle985x.h:9270
#define SCU_MONIEN_MON1IE_Msk
Definition: tle985x.h:10223
#define SCU_IRCON1CLR_MON4RC_Msk
Definition: tle985x.h:10010
#define SCU_MONIEN_MON4IE_Msk
Definition: tle985x.h:10217
INLINE void MON3_PullUp_Dis(void)
Disables PullUp for MON3.
Definition: mon.h:1879
INLINE void MON1_WakeOnFall_Dis(void)
Disables Wake-up on Falling Edge for MON1.
Definition: mon.h:1789
INLINE void MON2_Rising_Edge_Int_Clr(void)
Clears MON2 on rising edge interrupt flag.
Definition: mon.h:1629
#define SCU_EXICON1_MON2_RE_Msk
External Interrupt MON2 Rising Edge Bit Mask.
Definition: mon.h:102
INLINE void MON1_Rising_Edge_Int_Clr(void)
Clears MON1 on rising edge interrupt flag.
Definition: mon.h:1619
INLINE uint8 MON2_Sts(void)
Reads MON2 Status.
Definition: mon.h:1804
INLINE void MON1_Rising_Edge_Int_En(void)
Enables MON1 on rising edge interrupt.
Definition: mon.h:1659
INLINE void MON1_Falling_Edge_Int_En(void)
Enables MON1 on falling edge interrupt.
Definition: mon.h:1669
uint8 MONx_Debounce(uint8 Monx, uint8 MonActiveState)
Debounces the MONx input and reads the logical input value.
INLINE void MON2_Falling_Edge_Int_Dis(void)
Disables MON2 on falling edge interrupt.
Definition: mon.h:1694
#define SCU_EXICON1_MON1_FE_Pos
External Interrupt MON1 Falling Edge Bit Position.
Definition: mon.h:96
INLINE void MON2_PullUp_Dis(void)
Disables PullUp for MON2.
Definition: mon.h:1814
INLINE void MON3_Dis(void)
Disables MON3.
Definition: mon.h:1929
INLINE void MON1_WakeOnFall_En(void)
Enables Wake-up on Falling Edge for MON1.
Definition: mon.h:1784
INLINE void MON4_Int_Dis(void)
Disables MON4 interrupt.
Definition: mon.h:2034
INLINE void MON4_WakeOnRise_En(void)
Enables Wake-up on Rising Edge for MON4.
Definition: mon.h:1969
INLINE void MON3_WakeOnRise_En(void)
Enables Wake-up on Rising Edge for MON3.
Definition: mon.h:1904
INLINE void MON4_WakeOnRise_Dis(void)
Disables Wake-up on Rising Edge for MON4.
Definition: mon.h:1974
INLINE void MON4_Rising_Edge_Int_Dis(void)
Disables MON4 on rising edge interrupt.
Definition: mon.h:1724
INLINE void MON1_En(void)
Enables MON1.
Definition: mon.h:1794
#define SCU_EXICON1_MON4_FE_Msk
External Interrupt MON4 Falling Edge Bit Mask.
Definition: mon.h:122
INLINE void MON2_WakeOnFall_En(void)
Enables Wake-up on Falling Edge for MON2.
Definition: mon.h:1849
INLINE void MON4_Falling_Edge_Int_En(void)
Enables MON4 on falling edge interrupt.
Definition: mon.h:1729
INLINE void MON1_Falling_Edge_Int_Dis(void)
Disables MON1 on falling edge interrupt.
Definition: mon.h:1674
INLINE void MON2_WakeOnRise_Dis(void)
Disables Wake-up on Rising Edge for MON2.
Definition: mon.h:1844
INLINE void MON4_PullUp_En(void)
Enables PullUp for MON4.
Definition: mon.h:1939
INLINE void MON2_WakeOnFall_Dis(void)
Disables Wake-up on Falling Edge for MON2.
Definition: mon.h:1854
INLINE void MON1_PullUp_En(void)
Enables PullUp for MON1.
Definition: mon.h:1744
#define SCU_EXICON1_MON4_RE_Msk
External Interrupt MON4 Rising Edge Bit Mask.
Definition: mon.h:118
INLINE void MON4_En(void)
Enables MON4.
Definition: mon.h:1989
#define SCU_EXICON1_MON2_FE_Msk
External Interrupt MON2 Falling Edge Bit Mask.
Definition: mon.h:106
INLINE void MON4_WakeOnFall_Dis(void)
Disables Wake-up on Falling Edge for MON4.
Definition: mon.h:1984
#define SCU_EXICON1_MON3_RE_Msk
External Interrupt MON3 Rising Edge Bit Mask.
Definition: mon.h:110
INLINE void MON1_Falling_Edge_Int_Clr(void)
Clears MON1 on falling edge interrupt flag.
Definition: mon.h:1624
#define SCU_EXICON1_MON2_RE_Pos
External Interrupt MON2 Rising Edge Bit Position.
Definition: mon.h:100
INLINE void MON1_CycSense_Dis(void)
Disables Cycle Sense for MON1.
Definition: mon.h:1769
INLINE void MON2_En(void)
Enables MON2.
Definition: mon.h:1859
INLINE void MON3_PullUp_En(void)
Enables PullUp for MON3.
Definition: mon.h:1874
INLINE void MON2_PullDown_En(void)
Enables PullDown for MON2.
Definition: mon.h:1819
#define SCU_EXICON1_MON1_RE_Msk
External Interrupt MON1 Rising Edge Bit Mask.
Definition: mon.h:94
INLINE void MON3_PullDown_Dis(void)
Disables PullDown for MON3.
Definition: mon.h:1889
INLINE void MON3_CycSense_Dis(void)
Disables Cycle Sense for MON3.
Definition: mon.h:1899
INLINE void MON4_Rising_Edge_Int_En(void)
Enables MON4 on rising edge interrupt.
Definition: mon.h:1719
INLINE void MON4_PullUp_Dis(void)
Disables PullUp for MON4.
Definition: mon.h:1944
INLINE void MON2_PullUp_En(void)
Enables PullUp for MON2.
Definition: mon.h:1809
INLINE void MON2_WakeOnRise_En(void)
Enables Wake-up on Rising Edge for MON2.
Definition: mon.h:1839
INLINE void MON3_WakeOnFall_En(void)
Enables Wake-up on Falling Edge for MON3.
Definition: mon.h:1914
INLINE void MON1_WakeOnRise_Dis(void)
Disables Wake-up on Rising Edge for MON1.
Definition: mon.h:1779
INLINE void MON1_PullUp_Dis(void)
Disables PullUp for MON1.
Definition: mon.h:1749
INLINE void MON3_Rising_Edge_Int_En(void)
Enables MON3 on rising edge interrupt.
Definition: mon.h:1699
INLINE void MON2_CycSense_Dis(void)
Disables Cycle Sense for MON2.
Definition: mon.h:1834
#define SCU_EXICON1_MON2_FE_Pos
External Interrupt MON2 Falling Edge Bit Position.
Definition: mon.h:104
INLINE void MON3_WakeOnRise_Dis(void)
Disables Wake-up on Rising Edge for MON3.
Definition: mon.h:1909
#define SCU_EXICON1_MON3_RE_Pos
External Interrupt MON3 Rising Edge Bit Position.
Definition: mon.h:108
INLINE void MON3_Rising_Edge_Int_Dis(void)
Disables MON3 on rising edge interrupt.
Definition: mon.h:1704
INLINE void MON3_Falling_Edge_Int_En(void)
Enables MON3 on falling edge interrupt.
Definition: mon.h:1709
INLINE void MON3_En(void)
Enables MON3.
Definition: mon.h:1924
#define SCU_EXICON1_MON4_RE_Pos
External Interrupt MON4 Rising Edge Bit Position.
Definition: mon.h:116
INLINE void MON2_Rising_Edge_Int_Dis(void)
Disables MON2 on rising edge interrupt.
Definition: mon.h:1684
INLINE void MON1_WakeOnRise_En(void)
Enables Wake-up on Rising Edge for MON1.
Definition: mon.h:1774
INLINE void MON4_WakeOnFall_En(void)
Enables Wake-up on Falling Edge for MON4.
Definition: mon.h:1979
#define SCU_EXICON1_MON3_FE_Msk
External Interrupt MON3 Falling Edge Bit Mask.
Definition: mon.h:114
INLINE void MON2_Falling_Edge_Int_Clr(void)
Clears MON2 on falling edge interrupt flag.
Definition: mon.h:1634
void MONx_Init(void)
Initializes the MONx module.
INLINE void MON2_PullDown_Dis(void)
Disables PullDown for MON2.
Definition: mon.h:1824
uint8 MONx_Get_Status(uint8 Monx)
Reads out the MONx Status.
INLINE void MON3_Int_En(void)
Enables MON3 interrupt.
Definition: mon.h:2009
INLINE void MON1_Int_Dis(void)
Disables MON1 interrupt.
Definition: mon.h:2019
INLINE void MON2_Dis(void)
Disables MON2.
Definition: mon.h:1864
INLINE void MON3_WakeOnFall_Dis(void)
Disables Wake-up on Falling Edge for MON3.
Definition: mon.h:1919
INLINE void MON1_CycSense_En(void)
Enables Cycle Sense for MON1.
Definition: mon.h:1764
INLINE void MON4_PullDown_Dis(void)
Disables PullDown for MON4.
Definition: mon.h:1954
INLINE uint8 MON1_Sts(void)
Reads MON1 Status.
Definition: mon.h:1739
INLINE void MON1_Dis(void)
Disables MON1.
Definition: mon.h:1799
INLINE void MON2_Int_En(void)
Enables MON2 interrupt.
Definition: mon.h:2004
INLINE void MON3_CycSense_En(void)
Enables Cycle Sense for MON3.
Definition: mon.h:1894
INLINE uint8 MON4_Sts(void)
Reads MON4 Status.
Definition: mon.h:1934
INLINE void MON4_Falling_Edge_Int_Dis(void)
Disables MON4 on falling edge interrupt.
Definition: mon.h:1734
INLINE void MON4_PullDown_En(void)
Enables PullDown for MON4.
Definition: mon.h:1949
#define SCU_EXICON1_MON3_FE_Pos
External Interrupt MON3 Falling Edge Bit Position.
Definition: mon.h:112
INLINE void MON2_Falling_Edge_Int_En(void)
Enables MON2 on falling edge interrupt.
Definition: mon.h:1689
INLINE void MON2_CycSense_En(void)
Enables Cycle Sense for MON2.
Definition: mon.h:1829
#define SCU_EXICON1_MON4_FE_Pos
External Interrupt MON4 Falling Edge Bit Position.
Definition: mon.h:120
INLINE void MON3_Int_Dis(void)
Disables MON3 interrupt.
Definition: mon.h:2029
INLINE void MON2_Rising_Edge_Int_En(void)
Enables MON2 on rising edge interrupt.
Definition: mon.h:1679
INLINE uint8 MON3_Sts(void)
Reads MON3 Status.
Definition: mon.h:1869
INLINE void MON1_Int_En(void)
Enables MON1 interrupt.
Definition: mon.h:1999
INLINE void MON3_PullDown_En(void)
Enables PullDown for MON3.
Definition: mon.h:1884
INLINE void MON4_Dis(void)
Disables MON4.
Definition: mon.h:1994
INLINE void MON2_Int_Dis(void)
Disables MON2 interrupt.
Definition: mon.h:2024
INLINE void MON3_Falling_Edge_Int_Clr(void)
Clears MON3 on falling edge interrupt flag.
Definition: mon.h:1644
INLINE void MON4_Int_En(void)
Enables MON4 interrupt.
Definition: mon.h:2014
#define SCU_EXICON1_MON1_FE_Msk
External Interrupt MON1 Falling Edge Bit Mask.
Definition: mon.h:98
#define SCU_EXICON1_MON1_RE_Pos
External Interrupt MON1 Rising Edge Bit Position.
Definition: mon.h:92
INLINE void MON4_CycSense_Dis(void)
Disables Cycle Sense for MON4.
Definition: mon.h:1964
INLINE void MON1_Rising_Edge_Int_Dis(void)
Disables MON1 on rising edge interrupt.
Definition: mon.h:1664
INLINE void MON4_Falling_Edge_Int_Clr(void)
Clears MON4 on falling edge interrupt flag.
Definition: mon.h:1654
INLINE void MON1_PullDown_Dis(void)
Disables PullDown for MON1.
Definition: mon.h:1759
INLINE void MON4_Rising_Edge_Int_Clr(void)
Clears MON4 on rising edge interrupt flag.
Definition: mon.h:1649
INLINE void MON3_Falling_Edge_Int_Dis(void)
Disables MON3 on falling edge interrupt.
Definition: mon.h:1714
INLINE void MON1_PullDown_En(void)
Enables PullDown for MON1.
Definition: mon.h:1754
INLINE void MON4_CycSense_En(void)
Enables Cycle Sense for MON4.
Definition: mon.h:1959
INLINE void MON3_Rising_Edge_Int_Clr(void)
Clears MON3 on rising edge interrupt flag.
Definition: mon.h:1639
SFR low level access library.
INLINE uint8 u1_Field_Rd32(const volatile uint32 *reg, uint8 pos, uint32 msk)
This function reads a 1-bit field of a 32-bit register.
Definition: sfr_access.h:423
INLINE void Field_Wrt32(volatile uint32 *reg, uint8 pos, uint32 msk, uint32 val)
This function writes a bit field in a 32-bit register.
Definition: sfr_access.h:358
INLINE void Field_Mod32(volatile uint32 *reg, uint8 pos, uint32 msk, uint32 val)
This function writes a bit field in a 32-bit register.
Definition: sfr_access.h:378
CMSIS register HeaderFile.
General type declarations.
#define INLINE
Definition: types.h:145
uint8_t uint8
8 bit unsigned value
Definition: types.h:153