160 #define MIN_TIMER_INTERVAL_US 1u
#define TIMER21
Definition: tle985x.h:6282
#define TIMER2
Definition: tle985x.h:6281
#define SCU
Definition: tle985x.h:6277
#define TIMER2_CON1_EXF2EN_Msk
Definition: tle985x.h:10785
#define TIMER2_CON_C_T2_Msk
Definition: tle985x.h:10778
#define SCU_MODPISEL2_T21EXIS_Msk
Definition: tle985x.h:10177
#define TIMER2_CON_CP_RL2_Pos
Definition: tle985x.h:10779
#define TIMER21_ICLR_TF2CLR_Pos
Definition: tle985x.h:10839
#define SCU_MODPISEL2_T2IS_Pos
Definition: tle985x.h:10182
#define TIMER21_ICLR_TF2CLR_Msk
Definition: tle985x.h:10840
#define TIMER21_CON_CP_RL2_Pos
Definition: tle985x.h:10831
#define TIMER2_RC_RCL2_Pos
Definition: tle985x.h:10807
#define TIMER21_CON_EXEN2_Pos
Definition: tle985x.h:10825
#define TIMER21_MOD_T2PRE_Msk
Definition: tle985x.h:10853
#define TIMER21_CNT_T2L_Msk
Definition: tle985x.h:10819
#define TIMER2_MOD_T2PRE_Msk
Definition: tle985x.h:10801
#define TIMER21_MOD_PREN_Pos
Definition: tle985x.h:10850
#define TIMER2_MOD_T2PRE_Pos
Definition: tle985x.h:10800
#define TIMER21_ICLR_EXF2CLR_Msk
Definition: tle985x.h:10842
#define TIMER2_CON_EXF2_Msk
Definition: tle985x.h:10772
#define TIMER21_CON_EXEN2_Msk
Definition: tle985x.h:10826
#define TIMER21_CON_EXF2_Msk
Definition: tle985x.h:10824
#define TIMER2_MOD_EDGESEL_Msk
Definition: tle985x.h:10797
#define TIMER2_MOD_EDGESEL_Pos
Definition: tle985x.h:10796
#define TIMER2_MOD_PREN_Pos
Definition: tle985x.h:10798
#define TIMER2_CON_TR2_Pos
Definition: tle985x.h:10775
#define TIMER21_CON1_TF2EN_Msk
Definition: tle985x.h:10835
#define TIMER21_MOD_T2REGS_Pos
Definition: tle985x.h:10844
#define SCU_MODPISEL2_T21EXISCNF_Pos
Definition: tle985x.h:10172
#define TIMER2_CON_CP_RL2_Msk
Definition: tle985x.h:10780
#define TIMER2_CON_EXEN2_Pos
Definition: tle985x.h:10773
#define TIMER2_ICLR_TF2CLR_Pos
Definition: tle985x.h:10787
#define TIMER2_RC_RCL2_Msk
Definition: tle985x.h:10808
#define TIMER21_CON_TR2_Pos
Definition: tle985x.h:10827
#define TIMER21_CNT_T2L_Pos
Definition: tle985x.h:10818
#define TIMER21_MOD_T2RHEN_Msk
Definition: tle985x.h:10847
#define TIMER21_MOD_T2PRE_Pos
Definition: tle985x.h:10852
#define TIMER2_ICLR_TF2CLR_Msk
Definition: tle985x.h:10788
#define SCU_MODPISEL2_T2EXISCNF_Msk
Definition: tle985x.h:10175
#define TIMER21_RC_RCL2_Msk
Definition: tle985x.h:10860
#define TIMER21_RC_RCL2_Pos
Definition: tle985x.h:10859
#define TIMER21_CON_TF2_Msk
Definition: tle985x.h:10822
#define TIMER21_CNT_T2H_Msk
Definition: tle985x.h:10817
#define TIMER21_MOD_EDGESEL_Pos
Definition: tle985x.h:10848
#define TIMER21_MOD_DCEN_Pos
Definition: tle985x.h:10854
#define TIMER21_CON_TF2_Pos
Definition: tle985x.h:10821
#define TIMER21_MOD_T2RHEN_Pos
Definition: tle985x.h:10846
#define TIMER21_CON_EXF2_Pos
Definition: tle985x.h:10823
#define TIMER21_CON1_TF2EN_Pos
Definition: tle985x.h:10834
#define TIMER21_CON_C_T2_Msk
Definition: tle985x.h:10830
#define TIMER2_CON_TF2_Msk
Definition: tle985x.h:10770
#define TIMER2_CNT_T2L_Pos
Definition: tle985x.h:10766
#define TIMER2_MOD_PREN_Msk
Definition: tle985x.h:10799
#define SCU_MODPISEL2_T2IS_Msk
Definition: tle985x.h:10183
#define TIMER2_MOD_DCEN_Pos
Definition: tle985x.h:10802
#define TIMER21_CON_C_T2_Pos
Definition: tle985x.h:10829
#define TIMER2_MOD_T2REGS_Msk
Definition: tle985x.h:10793
#define SCU_MODPISEL2_T2EXIS_Msk
Definition: tle985x.h:10179
#define TIMER21_CON_TR2_Msk
Definition: tle985x.h:10828
#define SCU_MODPISEL2_T21IS_Pos
Definition: tle985x.h:10180
#define TIMER21_RC_RCH2_Msk
Definition: tle985x.h:10858
#define TIMER2_CON_EXEN2_Msk
Definition: tle985x.h:10774
#define TIMER2_CON1_TF2EN_Pos
Definition: tle985x.h:10782
#define TIMER2_CON_TF2_Pos
Definition: tle985x.h:10769
#define TIMER21_CON_CP_RL2_Msk
Definition: tle985x.h:10832
#define TIMER2_MOD_DCEN_Msk
Definition: tle985x.h:10803
#define SCU_MODPISEL2_T2EXISCNF_Pos
Definition: tle985x.h:10174
#define TIMER21_MOD_PREN_Msk
Definition: tle985x.h:10851
#define TIMER2_CON_C_T2_Pos
Definition: tle985x.h:10777
#define TIMER2_CON1_TF2EN_Msk
Definition: tle985x.h:10783
#define TIMER2_CON_TR2_Msk
Definition: tle985x.h:10776
#define TIMER2_MOD_T2RHEN_Msk
Definition: tle985x.h:10795
#define TIMER21_ICLR_EXF2CLR_Pos
Definition: tle985x.h:10841
#define TIMER2_MOD_T2RHEN_Pos
Definition: tle985x.h:10794
#define SCU_MODPISEL2_T21EXISCNF_Msk
Definition: tle985x.h:10173
#define SCU_MODPISEL2_T21EXIS_Pos
Definition: tle985x.h:10176
#define TIMER21_CON1_EXF2EN_Msk
Definition: tle985x.h:10837
#define SCU_MODPISEL2_T2EXIS_Pos
Definition: tle985x.h:10178
#define TIMER21_MOD_T2REGS_Msk
Definition: tle985x.h:10845
#define TIMER2_ICLR_EXF2CLR_Msk
Definition: tle985x.h:10790
#define TIMER21_MOD_EDGESEL_Msk
Definition: tle985x.h:10849
#define TIMER2_CNT_T2H_Msk
Definition: tle985x.h:10765
#define TIMER2_MOD_T2REGS_Pos
Definition: tle985x.h:10792
#define TIMER2_CON1_EXF2EN_Pos
Definition: tle985x.h:10784
#define TIMER2_CON_EXF2_Pos
Definition: tle985x.h:10771
#define SCU_MODPISEL2_T21IS_Msk
Definition: tle985x.h:10181
#define TIMER21_CON1_EXF2EN_Pos
Definition: tle985x.h:10836
#define TIMER21_MOD_DCEN_Msk
Definition: tle985x.h:10855
#define TIMER2_CNT_T2L_Msk
Definition: tle985x.h:10767
#define TIMER2_ICLR_EXF2CLR_Pos
Definition: tle985x.h:10789
#define TIMER2_RC_RCH2_Msk
Definition: tle985x.h:10806
SFR low level access library.
INLINE uint16 u16_Field_Rd32(const volatile uint32 *reg, uint8 pos, uint32 msk)
This function reads a 16-bit field of a 32-bit register.
Definition: sfr_access.h:448
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_Clr32(volatile uint32 *reg, uint32 msk)
This function clears a bit field in a 32-bit register.
Definition: sfr_access.h:408
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 uint8 u8_Field_Rd32(const volatile uint32 *reg, uint8 pos, uint32 msk)
This function reads a 8-bit field of a 32-bit register.
Definition: sfr_access.h:438
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
INLINE void TIMER21_External_Int_Dis(void)
Disables TIMER21 External Interrupt.
Definition: timer2x.h:1692
INLINE void TIMER2_Clear_Count(void)
Clears the TIMER2 count value.
Definition: timer2x.h:1727
INLINE void TIMER21_Value_Set(uint16 t21)
Sets TIMER21 Value.
Definition: timer2x.h:1657
INLINE void TIMER21_ExtStart_FallingEdge_Set(void)
Sets Falling Edge to External Start for TIMER21.
Definition: timer2x.h:1622
INLINE void TIMER2_Mode_Timer_Set(void)
Selects Mode Timer for TIMER2.
Definition: timer2x.h:1522
void TIMER2_Init(void)
Initializes the Timer2 module.
INLINE void TIMER21_Mode_Capture_Set(void)
Selects Capture Mode for TIMER21.
Definition: timer2x.h:1637
INLINE void TIMER21_Clk_Prescaler_En(void)
Enables TIMER21 clock prescaler.
Definition: timer2x.h:1567
INLINE void TIMER21_External_Int_Clr(void)
Clears TIMER21 External Interrupt.
Definition: timer2x.h:1672
INLINE void TIMER2_Clk_Prescaler_En(void)
Enables TIMER2 clock prescaler.
Definition: timer2x.h:1437
INLINE void TIMER2_ExtStart_FallingEdge_Set(void)
Sets Falling Edge to External Start for TIMER2.
Definition: timer2x.h:1492
INLINE void TIMER21_UpDownCount_Dis(void)
Disables Up/Down Counter for TIMER21.
Definition: timer2x.h:1632
INLINE void TIMER2_Overflow_Int_Dis(void)
Disables TIMER2 Overflow Interrupt.
Definition: timer2x.h:1552
TTIMER2_T2IN_Pxx
This enum lists the T2IN Inputs.
Definition: timer2x.h:82
@ TIMER2_T2IN_P23
Definition: timer2x.h:85
@ TIMER2_T2IN_P00
Definition: timer2x.h:83
@ TIMER2_T2IN_P27
Definition: timer2x.h:84
INLINE void TIMER2_UpDownCount_Dis(void)
Disables Up/Down Counter for TIMER2.
Definition: timer2x.h:1502
INLINE void TIMER21_Select_T21IN(TTIMER21_T21IN_Pxx pinsel)
Sets TIMER21 T21IN Pin.
Definition: timer2x.h:1788
INLINE void TIMER21_External_Int_En(void)
Enables TIMER21 External Interrupt.
Definition: timer2x.h:1687
INLINE void TIMER2_Clk_Prescaler_Sel(uint8 t2pre)
Sets TIMER2 clock prescaler.
Definition: timer2x.h:1447
INLINE uint8 TIMER21_Clk_Prescaler_Get(void)
Reads TIMER21 clock prescaler.
Definition: timer2x.h:1582
INLINE void TIMER2_Stop(void)
Stops the TIMER2 by software.
Definition: timer2x.h:1702
INLINE void TIMER2_Reload_Capture_RisingEdge_Set(void)
Sets Rising Edge to Capture/Reload Mode for TIMER2.
Definition: timer2x.h:1477
INLINE void TIMER21_Clear_Count(void)
Clears the TIMER21 count value.
Definition: timer2x.h:1778
INLINE void TIMER2_Reload_Value_Set(uint16 t2)
Sets TIMER2 Reload Value.
Definition: timer2x.h:1532
INLINE void TIMER21_Start(void)
Starts the TIMER21 by software.
Definition: timer2x.h:1748
INLINE void TIMER2_ExternalCtrl_Dis(void)
Disables TIMER2 External Control.
Definition: timer2x.h:1472
INLINE uint16 TIMER21_Get_Count(void)
Reads the TIMER21 count value.
Definition: timer2x.h:1768
INLINE void TIMER2_ExtStart_RisingEdge_Set(void)
Sets Rising Edge to External Start for TIMER2.
Definition: timer2x.h:1487
INLINE void TIMER2_Set_Reload(uint16 value)
Sets TIMER2 reload value.
Definition: timer2x.h:1732
INLINE void TIMER2_ExternalCtrl_En(void)
Enables TIMER2 External Control.
Definition: timer2x.h:1467
INLINE uint8 TIMER2_External_Sts(void)
Reads TIMER2 External Status.
Definition: timer2x.h:1462
bool TIMER21_Interval_Timer_Setup(uint32 timer_interval_us)
Initializes the TIMER21 in Reload Mode.
INLINE uint8 TIMER21_Overflow_Sts(void)
Reads TIMER21 Overflow Status.
Definition: timer2x.h:1587
INLINE void TIMER21_Reload_Capture_RisingEdge_Set(void)
Sets Rising Edge to Capture/Reload Mode for TIMER21.
Definition: timer2x.h:1607
INLINE void TIMER21_ExtStop(void)
Disables TIMER21 to be started externally.
Definition: timer2x.h:1763
void TIMER21_Init(void)
Initializes the Timer21 module.
INLINE void TIMER2_External_Int_En(void)
Enables TIMER2 External Interrupt.
Definition: timer2x.h:1557
INLINE uint16 TIMER21_Get_Capture(void)
Reads the TIMER21 capture value.
Definition: timer2x.h:1773
INLINE void TIMER21_Clk_Prescaler_Sel(uint8 t21pre)
Sets TIMER21 clock prescaler.
Definition: timer2x.h:1577
INLINE void TIMER2_Clk_Prescaler_Dis(void)
Disables TIMER2 clock prescaler.
Definition: timer2x.h:1442
INLINE void TIMER2_ExtStop(void)
Disables TIMER2 to be started externally.
Definition: timer2x.h:1712
INLINE void TIMER21_Select_T21EX(TTIMER21_T21EX_Pxx pinsel)
Sets TIMER21 T21EX Pin.
Definition: timer2x.h:1793
INLINE uint16 TIMER2_Get_Capture(void)
Reads the TIMER2 capture value.
Definition: timer2x.h:1722
INLINE void TIMER2_External_Int_Clr(void)
Clears TIMER2 External Interrupt flag.
Definition: timer2x.h:1542
INLINE void TIMER21_ExternalCtrl_En(void)
Enables TIMER21 External Control.
Definition: timer2x.h:1597
INLINE uint8 TIMER2_Clk_Prescaler_Get(void)
Reads TIMER2 clock prescaler.
Definition: timer2x.h:1452
INLINE uint16 TIMER2_Get_Count(void)
Reads the TIMER2 count value.
Definition: timer2x.h:1717
INLINE void TIMER2_Value_Set(uint16 t2)
Sets TIMER2 Value.
Definition: timer2x.h:1527
INLINE void TIMER2_Start(void)
Starts the TIMER2 by software.
Definition: timer2x.h:1697
INLINE void TIMER2_Select_T2EX(TTIMER2_T2EX_Pxx pinsel)
Sets TIMER2 T2EX Pin.
Definition: timer2x.h:1742
bool TIMER2_Interval_Timer_Setup(uint32 timer_interval_us)
Initializes the TIMER2 in Reload Mode.
INLINE void TIMER2_Select_T2IN(TTIMER2_T2IN_Pxx pinsel)
Sets TIMER2 T2IN Pin.
Definition: timer2x.h:1737
INLINE void TIMER21_ExternalCtrl_Dis(void)
Disables TIMER21 External Control.
Definition: timer2x.h:1602
INLINE void TIMER21_Mode_Counter_Set(void)
Selects Mode Counter for TIMER21.
Definition: timer2x.h:1647
INLINE void TIMER2_Mode_Counter_Set(void)
Selects Mode Counter for TIMER2.
Definition: timer2x.h:1517
INLINE void TIMER2_Mode_Capture_Set(void)
Selects Capture Mode for TIMER2.
Definition: timer2x.h:1507
TTIMER21_T21EX_Pxx
This enum lists the T21EX Inputs.
Definition: timer2x.h:124
@ TIMER21_T21EX_MON2
Definition: timer2x.h:130
@ TIMER21_T21EX_P11
Definition: timer2x.h:128
@ TIMER21_T21EX_CC6_COUT63
Definition: timer2x.h:139
@ TIMER21_T21EX_CC6_COUT60
Definition: timer2x.h:136
@ TIMER21_T21EX_P05
Definition: timer2x.h:127
@ TIMER21_T21EX_MON1
Definition: timer2x.h:129
@ TIMER21_T21EX_P02
Definition: timer2x.h:125
@ TIMER21_T21EX_CC6_COUT62
Definition: timer2x.h:138
@ TIMER21_T21EX_P14
Definition: timer2x.h:126
@ TIMER21_T21EX_CC6_COUT61
Definition: timer2x.h:137
@ TIMER21_T21EX_lin_rxd
Definition: timer2x.h:133
@ TIMER21_T21EX_CC6_CH1
Definition: timer2x.h:135
@ TIMER21_T21EX_CC6_CH0
Definition: timer2x.h:134
@ TIMER21_T21EX_MON4
Definition: timer2x.h:132
@ TIMER21_T21EX_MON3
Definition: timer2x.h:131
TTIMER2_T2EX_Pxx
This enum lists the T2EX Inputs.
Definition: timer2x.h:92
@ TIMER2_T2EX_MON1
Definition: timer2x.h:97
@ TIMER2_T2EX_CC6_COUT61
Definition: timer2x.h:103
@ TIMER2_T2EX_MON4
Definition: timer2x.h:100
@ TIMER2_T2EX_CC6_CH2
Definition: timer2x.h:106
@ TIMER2_T2EX_P21
Definition: timer2x.h:96
@ TIMER2_T2EX_CC6_CH0
Definition: timer2x.h:104
@ TIMER2_T2EX_P22
Definition: timer2x.h:93
@ TIMER2_T2EX_CC6_CH1
Definition: timer2x.h:105
@ TIMER2_T2EX_lin_rxd
Definition: timer2x.h:101
@ TIMER2_T2EX_P01
Definition: timer2x.h:94
@ TIMER2_T2EX_CC6_CH3
Definition: timer2x.h:107
@ TIMER2_T2EX_MON2
Definition: timer2x.h:98
@ TIMER2_T2EX_MON3
Definition: timer2x.h:99
@ TIMER2_T2EX_CC6_COUT60
Definition: timer2x.h:102
@ TIMER2_T2EX_P23
Definition: timer2x.h:95
INLINE void TIMER21_UpDownCount_En(void)
Enables Up/Down Counter for TIMER21.
Definition: timer2x.h:1627
INLINE uint8 TIMER21_External_Sts(void)
Reads TIMER21 External Status.
Definition: timer2x.h:1592
INLINE void TIMER2_Overflow_Int_Clr(void)
Clears TIMER2 Overflow Interrupt flag.
Definition: timer2x.h:1537
INLINE void TIMER21_ExtStart_RisingEdge_Set(void)
Sets Rising Edge to External Start for TIMER21.
Definition: timer2x.h:1617
INLINE void TIMER2_Overflow_Int_En(void)
Enables TIMER2 Overflow Interrupt.
Definition: timer2x.h:1547
INLINE void TIMER21_Clk_Prescaler_Dis(void)
Disables TIMER21 clock prescaler.
Definition: timer2x.h:1572
INLINE void TIMER21_Set_Reload(uint16 value)
Sets TIMER21 reload value.
Definition: timer2x.h:1783
TIMER2x_Clock_Prescaler
This enum lists TIMER2x Clock Prescaler Configuration.
Definition: timer2x.h:146
@ TIMER2x_Clk_Div_2
Definition: timer2x.h:148
@ TIMER2x_Clk_Div_64
Definition: timer2x.h:153
@ TIMER2x_Clk_Div_32
Definition: timer2x.h:152
@ TIMER2x_Clk_Div_128
Definition: timer2x.h:154
@ TIMER2x_Clk_Div_16
Definition: timer2x.h:151
@ TIMER2x_Clk_Div_8
Definition: timer2x.h:150
@ TIMER2x_Clk_Div_4
Definition: timer2x.h:149
@ TIMER2x_Clk_Div_1
Definition: timer2x.h:147
INLINE void TIMER21_Overflow_Int_Clr(void)
Clears TIMER21 Overflow Interrupt.
Definition: timer2x.h:1667
TTIMER21_T21IN_Pxx
This enum lists the T21IN Inputs.
Definition: timer2x.h:114
@ TIMER21_T21IN_P04
Definition: timer2x.h:117
@ TIMER21_T21IN_P01
Definition: timer2x.h:115
@ TIMER21_T21IN_P12
Definition: timer2x.h:116
INLINE void TIMER21_Overflow_Int_En(void)
Enables TIMER21 Overflow Interrupt.
Definition: timer2x.h:1677
INLINE void TIMER2_ExtStart(void)
Prepares TIMER2 to be started externally.
Definition: timer2x.h:1707
INLINE void TIMER21_ExtStart(void)
Prepares TIMER21 to be started externally.
Definition: timer2x.h:1758
INLINE void TIMER2_Mode_Reload_Set(void)
Selects Reload Mode for TIMER2.
Definition: timer2x.h:1512
INLINE void TIMER2_External_Int_Dis(void)
Disables TIMER2 External Interrupt.
Definition: timer2x.h:1562
INLINE void TIMER21_Mode_Timer_Set(void)
Selects Mode Timer for TIMER21.
Definition: timer2x.h:1652
INLINE uint8 TIMER2_Overflow_Sts(void)
Reads TIMER2 Overflow Status.
Definition: timer2x.h:1457
INLINE void TIMER21_Reload_Value_Set(uint16 t21)
Sets TIMER21 Reload Value.
Definition: timer2x.h:1662
INLINE void TIMER21_Overflow_Int_Dis(void)
Disables TIMER21 Overflow Interrupt.
Definition: timer2x.h:1682
INLINE void TIMER2_UpDownCount_En(void)
Enables Up/Down Counter for TIMER2.
Definition: timer2x.h:1497
INLINE void TIMER21_Mode_Reload_Set(void)
Selects Reload Mode for TIMER21.
Definition: timer2x.h:1642
INLINE void TIMER21_Reload_Capture_FallingEdge_Set(void)
Sets Falling Edge to Capture/Reload Mode for TIMER21.
Definition: timer2x.h:1612
INLINE void TIMER2_Reload_Capture_FallingEdge_Set(void)
Sets Falling Edge to Capture/Reload Mode for TIMER2.
Definition: timer2x.h:1482
INLINE void TIMER21_Stop(void)
Stops the TIMER21 by software.
Definition: timer2x.h:1753
CMSIS register HeaderFile.
General type declarations.
#define INLINE
Definition: types.h:145
uint8_t uint8
8 bit unsigned value
Definition: types.h:153
uint16_t uint16
16 bit unsigned value
Definition: types.h:154
uint32_t uint32
32 bit unsigned value
Definition: types.h:155