 |
TLE986x Device Family SDK
|
Go to the documentation of this file.
154 #define MIN_TIMER_INTERVAL_US 1u
155 #define T2_REG_MAX_UPCOUNT_TICKS 0u
156 #define T2_REG_MIN_UPCOUNT_TICKS 0xFFFFu
#define TIMER2_RC2L_RC2_Pos
Definition: tle986x.h:9703
INLINE void TIMER2_External_Int_Dis(void)
Disables TIMER2 External Interrupt.
Definition: timer2x.h:635
INLINE void TIMER2_ExtStop(void)
disable TIMER2 to be started externally
Definition: timer2x.h:1270
Definition: timer2x.h:139
Definition: timer2x.h:138
#define TIMER21_T2MOD_T2PRE_Msk
Definition: tle986x.h:9792
INLINE void TIMER21_UpDownCount_Dis(void)
Disables Up/Down Counter for TIMER21.
Definition: timer2x.h:910
INLINE void TIMER2_Reload_Capture_RisingEdge_Set(void)
sets Rising Edge to Capture/Reload Mode for TIMER2.
Definition: timer2x.h:337
INLINE void TIMER21_Clk_Prescaler_Sel(uint8 t2pre)
sets TIMER21 clock prescaler.
Definition: timer2x.h:689
#define SCU_MODPISEL2_T2EXIS_Msk
Definition: tle986x.h:9033
#define TIMER21_T2CON_EXEN2_Msk
Definition: tle986x.h:9767
#define TIMER2_T2MOD_EDGESEL_Pos
Definition: tle986x.h:9741
#define TIMER21_T2MOD_PREN_Msk
Definition: tle986x.h:9794
Definition: timer2x.h:143
#define TIMER21_T2L_T2L_Pos
Definition: tle986x.h:9786
#define TIMER2_T2CON1_TF2EN_Msk
Definition: tle986x.h:9722
INLINE uint8 TIMER2_External_Sts(void)
reads TIMER2 External Status.
Definition: timer2x.h:274
Definition: timer2x.h:115
INLINE void TIMER21_Overflow_Int_En(void)
Enables TIMER21 Overflow Interrupt.
Definition: timer2x.h:1048
#define TIMER2_RC2H_RC2_Msk
Definition: tle986x.h:9701
INLINE void TIMER21_Clk_Prescaler_En(void)
enables TIMER21 clock prescaler.
Definition: timer2x.h:652
General type declarations.
INLINE void TIMER2_Reload_Capture_FallingEdge_Set(void)
sets Falling Edge to Capture/Reload Mode for TIMER2.
Definition: timer2x.h:354
INLINE void TIMER2_Clk_Prescaler_En(void)
enables TIMER2 clock prescaler.
Definition: timer2x.h:168
#define TIMER21_T2CON_TR2_Msk
Definition: tle986x.h:9765
#define TIMER21_T2CON_C_T2_Pos
Definition: tle986x.h:9762
#define TIMER2
Definition: tle986x.h:6008
INLINE void TIMER2_ExternalCtrl_Dis(void)
disables TIMER2 External Control.
Definition: timer2x.h:320
INLINE void TIMER2_Overflow_Int_Dis(void)
Disables TIMER2 Overflow Interrupt.
Definition: timer2x.h:589
INLINE uint16 TIMER21_Capture_Value_Get(void)
reads the TIMER21 capture value
Definition: timer2x.h:1617
INLINE void TIMER2_Overflow_Int_Clr(void)
Clears TIMER2 Overflow Interrupt flag.
Definition: timer2x.h:520
TTIMER21_T2IN_Pxx
This enum lists the T21IN Inputs.
Definition: timer2x.h:113
#define TIMER21_T2L_T2L_Msk
Definition: tle986x.h:9787
TTIMER21_T2EX_Pxx
This enum lists the T21EX Inputs.
Definition: timer2x.h:123
INLINE void TIMER21_UpDownCount_En(void)
enables Up/Down Counter for TIMER21.
Definition: timer2x.h:891
INLINE void TIMER21_ExtStart(void)
prepares TIMER21 to be started externally
Definition: timer2x.h:1505
INLINE uint8 TIMER21_External_Sts(void)
reads TIMER21 External Status.
Definition: timer2x.h:760
INLINE uint8 TIMER2_Clk_Prescaler_Get(void)
reads TIMER2 clock prescaler.
Definition: timer2x.h:225
#define TIMER2_T2MOD_T2REGS_Pos
Definition: tle986x.h:9745
Definition: timer2x.h:128
#define TIMER2_T2CON_EXEN2_Msk
Definition: tle986x.h:9713
INLINE uint16 TIMER2_Get_Capture(void)
reads the TIMER2 capture value
Definition: timer2x.h:1338
INLINE uint16 TIMER2_Capture_Value_Get(void)
reads the TIMER2 capture value
Definition: timer2x.h:1362
INLINE void TIMER2_Select_T2IN(TTIMER2_T2IN_Pxx pinsel)
sets TIMER2 T2IN Pin
Definition: timer2x.h:1424
INLINE void TIMER2_Set_Reload(uint16 value)
sets TIMER2 reload value
Definition: timer2x.h:1404
Definition: timer2x.h:144
#define TIMER2_T2CON1_EXF2EN_Pos
Definition: tle986x.h:9719
#define TIMER21_T2MOD_EDGESEL_Msk
Definition: tle986x.h:9796
#define TIMER21_T2MOD_DCEN_Msk
Definition: tle986x.h:9790
INLINE void TIMER2_Clk_Prescaler_Dis(void)
disables TIMER2 clock prescaler.
Definition: timer2x.h:185
INLINE void TIMER2_UpDownCount_En(void)
enables Up/Down Counter for TIMER2.
Definition: timer2x.h:409
Definition: timer2x.h:116
#define TIMER2_RC2H_RC2_Pos
Definition: tle986x.h:9700
INLINE void TIMER2_Mode_Reload_Set(void)
Selects Reload Mode for TIMER2.
Definition: timer2x.h:463
SFR low level access library.
#define TIMER21_T2CON_EXEN2_Pos
Definition: tle986x.h:9766
#define TIMER2_T2H_T2H_Msk
Definition: tle986x.h:9725
#define SCU_MODPISEL1_T2EXCON_Pos
Definition: tle986x.h:9025
#define INLINE
Definition: types.h:134
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:346
Definition: timer2x.h:127
INLINE uint8 u1_Field_Rd8(const volatile uint8 *reg, uint8 pos, uint8 msk)
This function reads a 1-bit field of a 8-bit register.
Definition: sfr_access.h:391
#define TIMER2_T2CON_TR2_Pos
Definition: tle986x.h:9710
INLINE uint16 TIMER2_Value_Get(void)
reads the TIMER2 count value
Definition: timer2x.h:1314
INLINE void TIMER2_Mode_Counter_Set(void)
Selects Mode Counter for TIMER2.
Definition: timer2x.h:480
INLINE void TIMER2_Stop(void)
stops the TIMER2 by software
Definition: timer2x.h:1232
INLINE void TIMER21_Overflow_Int_Dis(void)
Disables TIMER21 Overflow Interrupt.
Definition: timer2x.h:1071
INLINE void TIMER2_External_Int_Clr(void)
Clears TIMER2 External Interrupt flag.
Definition: timer2x.h:543
INLINE uint8 TIMER21_Clk_Prescaler_Get(void)
reads TIMER21 clock prescaler.
Definition: timer2x.h:711
TTIMER2_T2IN_Pxx
This enum lists the T2IN Inputs.
Definition: timer2x.h:94
INLINE void TIMER2_ExtStart_FallingEdge_Set(void)
sets Falling Edge to External Start for TIMER2.
Definition: timer2x.h:392
INLINE void TIMER21_Reload_Value_Set(uint16 t21)
Sets TIMER21 Reload Value.
Definition: timer2x.h:1787
#define TIMER21
Definition: tle986x.h:6009
Definition: timer2x.h:137
#define TIMER2_T2CON_CP_RL2_Msk
Definition: tle986x.h:9707
unsigned short uint16
16 bit unsigned value
Definition: types.h:140
INLINE void TIMER2_Mode_Timer_Set(void)
Selects Mode Timer for TIMER2.
Definition: timer2x.h:497
TIMER2x_Clock_Prescaler
This enum lists TIMER2x Clock Prescaler Configuration.
Definition: timer2x.h:135
INLINE void TIMER2_UpDownCount_Dis(void)
Disables Up/Down Counter for TIMER2.
Definition: timer2x.h:428
INLINE void TIMER21_Value_Set(uint16 t21)
Sets TIMER21 Value.
Definition: timer2x.h:1766
#define TIMER21_T2H_T2H_Pos
Definition: tle986x.h:9778
INLINE void TIMER2_Mode_Capture_Set(void)
Selects Capture Mode for TIMER2.
Definition: timer2x.h:446
#define TIMER21_T2MOD_T2RHEN_Msk
Definition: tle986x.h:9798
INLINE void TIMER21_Reload_Capture_FallingEdge_Set(void)
sets Falling Edge to Capture/Reload Mode for TIMER21.
Definition: timer2x.h:840
INLINE void TIMER21_Overflow_Int_Clr(void)
Clears TIMER21 Overflow Interrupt status.
Definition: timer2x.h:1002
#define SCU_MODPISEL2_T2EXIS_Pos
Definition: tle986x.h:9032
Definition: timer2x.h:129
Definition: timer2x.h:105
INLINE void TIMER21_Clear_Count(void)
clears the TIMER21 count value
Definition: timer2x.h:1638
INLINE void TIMER21_External_Int_Dis(void)
Disables TIMER21 External Interrupt.
Definition: timer2x.h:1118
#define TIMER21_RC2H_RC2_Msk
Definition: tle986x.h:9755
Definition: timer2x.h:126
INLINE void TIMER21_ExternalCtrl_En(void)
enables TIMER21 External Control.
Definition: timer2x.h:785
#define TIMER2_T2CON_C_T2_Pos
Definition: tle986x.h:9708
Definition: timer2x.h:142
#define TIMER21_T2MOD_T2RHEN_Pos
Definition: tle986x.h:9797
#define TIMER2_T2CON_TF2_Msk
Definition: tle986x.h:9717
bool TIMER21_Interval_Timer_Setup(uint32 timer_interval_us)
Initializes the TIMER21 in Reload Mode.
#define SCU_MODPISEL2_T21IS_Msk
Definition: tle986x.h:9035
Definition: timer2x.h:117
bool TIMER2_Interval_Timer_Setup(uint32 timer_interval_us)
Initializes the TIMER2 in Reload Mode.
Definition: timer2x.h:125
Definition: timer2x.h:106
#define TIMER2_T2H_T2H_Pos
Definition: tle986x.h:9724
#define TIMER21_RC2L_RC2_Pos
Definition: tle986x.h:9757
Definition: timer2x.h:107
unsigned char uint8
8 bit unsigned value
Definition: types.h:139
#define TIMER21_T2CON_CP_RL2_Pos
Definition: tle986x.h:9760
#define TIMER2_T2MOD_T2RHEN_Msk
Definition: tle986x.h:9744
void TIMER2_Init(void)
Initializes the Timer2 module.
#define TIMER2_T2ICLR_TF2CLR_Pos
Definition: tle986x.h:9729
#define SCU_MODPISEL1_T2EXCON_Msk
Definition: tle986x.h:9026
void TIMER21_Init(void)
Initializes the Timer21 module.
INLINE void TIMER21_Mode_Reload_Set(void)
Selects Reload Mode for TIMER21.
Definition: timer2x.h:945
#define TIMER21_T2MOD_PREN_Pos
Definition: tle986x.h:9793
#define TIMER2_T2CON_C_T2_Msk
Definition: tle986x.h:9709
#define TIMER2_T2MOD_PREN_Msk
Definition: tle986x.h:9740
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:406
INLINE void TIMER21_ExternalCtrl_Dis(void)
disables TIMER21 External Control.
Definition: timer2x.h:806
#define TIMER2_T2ICLR_EXF2CLR_Msk
Definition: tle986x.h:9728
#define TIMER2_T2L_T2L_Msk
Definition: tle986x.h:9733
INLINE void TIMER21_Stop(void)
stops the TIMER21 by software
Definition: timer2x.h:1486
INLINE void TIMER2_ExtStart(void)
prepares TIMER2 to be started externally
Definition: timer2x.h:1251
unsigned int uint32
32 bit unsigned value
Definition: types.h:141
#define TIMER21_T2ICLR_TF2CLR_Pos
Definition: tle986x.h:9783
INLINE void TIMER2_Reload_Value_Set(uint16 t2)
Sets TIMER2 Reload Value.
Definition: timer2x.h:1746
#define TIMER2_T2CON_EXF2_Pos
Definition: tle986x.h:9714
#define TIMER2_T2MOD_T2RHEN_Pos
Definition: tle986x.h:9743
INLINE void TIMER21_Clk_Prescaler_Dis(void)
disables TIMER21 clock prescaler.
Definition: timer2x.h:669
#define TIMER2_T2CON_TR2_Msk
Definition: tle986x.h:9711
INLINE void TIMER21_External_Int_En(void)
Enables TIMER21 External Interrupt.
Definition: timer2x.h:1094
INLINE void TIMER2_Clear_Count(void)
clears the TIMER2 count value
Definition: timer2x.h:1383
#define TIMER21_T2MOD_EDGESEL_Pos
Definition: tle986x.h:9795
INLINE void TIMER2_External_Int_En(void)
Enables TIMER2 External Interrupt.
Definition: timer2x.h:612
Definition: timer2x.h:140
#define TIMER21_T2CON1_TF2EN_Msk
Definition: tle986x.h:9776
#define TIMER2_T2MOD_T2REGS_Msk
Definition: tle986x.h:9746
INLINE void TIMER2_ExternalCtrl_En(void)
enables TIMER2 External Control.
Definition: timer2x.h:299
#define TIMER21_T2CON1_TF2EN_Pos
Definition: tle986x.h:9775
INLINE void TIMER2_Clk_Prescaler_Sel(uint8 t2pre)
sets TIMER2 clock prescaler.
Definition: timer2x.h:203
#define TIMER21_T2MOD_T2PRE_Pos
Definition: tle986x.h:9791
#define TIMER2_T2MOD_DCEN_Pos
Definition: tle986x.h:9735
#define TIMER21_T2CON1_EXF2EN_Pos
Definition: tle986x.h:9773
INLINE void TIMER2_Start(void)
starts the TIMER2 by software
Definition: timer2x.h:1214
INLINE void TIMER2_Value_Set(uint16 t2)
Sets TIMER2 Value.
Definition: timer2x.h:1725
INLINE void TIMER2_ExtStart_RisingEdge_Set(void)
sets Rising Edge to External Start for TIMER2.
Definition: timer2x.h:373
#define TIMER21_T2CON_CP_RL2_Msk
Definition: tle986x.h:9761
#define TIMER21_T2MOD_T2REGS_Msk
Definition: tle986x.h:9800
#define TIMER21_T2CON1_EXF2EN_Msk
Definition: tle986x.h:9774
CMSIS register HeaderFile.
#define SCU
Definition: tle986x.h:6004
INLINE uint8 TIMER21_Overflow_Sts(void)
reads TIMER21 Overflow Status.
Definition: timer2x.h:736
#define TIMER2_T2CON_EXF2_Msk
Definition: tle986x.h:9715
#define TIMER21_RC2L_RC2_Msk
Definition: tle986x.h:9758
#define TIMER21_RC2H_RC2_Pos
Definition: tle986x.h:9754
#define TIMER2_T2ICLR_TF2CLR_Msk
Definition: tle986x.h:9730
INLINE void TIMER21_Mode_Counter_Set(void)
Selects Mode Counter for TIMER21.
Definition: timer2x.h:962
TTIMER2_T2EX_Pxx
This enum lists the T2EX Inputs.
Definition: timer2x.h:103
#define SCU_MODPISEL1_T21EXCON_Msk
Definition: tle986x.h:9024
#define TIMER2_T2CON_CP_RL2_Pos
Definition: tle986x.h:9706
INLINE void TIMER21_Select_T2EX(TTIMER21_T2EX_Pxx pinsel)
sets TIMER21 T2EX Pin
Definition: timer2x.h:1698
#define TIMER2_T2ICLR_EXF2CLR_Pos
Definition: tle986x.h:9727
#define TIMER21_T2CON_EXF2_Pos
Definition: tle986x.h:9768
#define SCU_MODPISEL1_T21EXCON_Pos
Definition: tle986x.h:9023
#define TIMER2_T2CON_EXEN2_Pos
Definition: tle986x.h:9712
#define TIMER2_T2MOD_DCEN_Msk
Definition: tle986x.h:9736
INLINE void TIMER21_Mode_Capture_Set(void)
Selects Capture Mode for TIMER21.
Definition: timer2x.h:928
#define SCU_MODPISEL2_T2IS_Pos
Definition: tle986x.h:9036
#define TIMER21_T2CON_TR2_Pos
Definition: tle986x.h:9764
#define TIMER2_T2L_T2L_Pos
Definition: tle986x.h:9732
#define TIMER21_T2ICLR_EXF2CLR_Msk
Definition: tle986x.h:9782
#define TIMER2_T2MOD_T2PRE_Msk
Definition: tle986x.h:9738
#define TIMER21_T2ICLR_EXF2CLR_Pos
Definition: tle986x.h:9781
#define TIMER21_T2ICLR_TF2CLR_Msk
Definition: tle986x.h:9784
#define TIMER21_T2CON_C_T2_Msk
Definition: tle986x.h:9763
#define TIMER2_T2MOD_PREN_Pos
Definition: tle986x.h:9739
INLINE uint16 TIMER2_Get_Count(void)
reads the TIMER2 count value
Definition: timer2x.h:1290
INLINE void TIMER21_Select_T2IN(TTIMER21_T2IN_Pxx pinsel)
sets TIMER21 T2IN Pin
Definition: timer2x.h:1679
INLINE void TIMER21_Mode_Timer_Set(void)
Selects Mode Timer for TIMER21.
Definition: timer2x.h:979
INLINE void TIMER2_Select_T2EX(TTIMER2_T2EX_Pxx pinsel)
sets TIMER2 T2EX Pin
Definition: timer2x.h:1443
#define TIMER21_T2CON_TF2_Msk
Definition: tle986x.h:9771
#define SCU_MODPISEL2_T21EXIS_Msk
Definition: tle986x.h:9031
#define TIMER2_RC2L_RC2_Msk
Definition: tle986x.h:9704
INLINE uint16 TIMER21_Value_Get(void)
reads the TIMER21 count value
Definition: timer2x.h:1569
INLINE uint16 TIMER21_Get_Capture(void)
reads the TIMER21 capture value
Definition: timer2x.h:1593
INLINE void TIMER2_Overflow_Int_En(void)
Enables TIMER2 Overflow Interrupt.
Definition: timer2x.h:566
#define TIMER21_T2CON_TF2_Pos
Definition: tle986x.h:9770
#define SCU_MODPISEL2_T21IS_Pos
Definition: tle986x.h:9034
#define TIMER21_T2CON_EXF2_Msk
Definition: tle986x.h:9769
#define TIMER21_T2H_T2H_Msk
Definition: tle986x.h:9779
INLINE void TIMER21_Start(void)
starts the TIMER21 by software
Definition: timer2x.h:1468
#define TIMER2_T2CON1_EXF2EN_Msk
Definition: tle986x.h:9720
INLINE void Field_Wrt8(volatile uint8 *reg, uint8 pos, uint8 msk, uint8 val)
This function writes a bit field in a 8-bit register.
Definition: sfr_access.h:331
#define TIMER2_T2MOD_T2PRE_Pos
Definition: tle986x.h:9737
INLINE void TIMER21_External_Int_Clr(void)
Clears TIMER21 External Interrupt status.
Definition: timer2x.h:1025
INLINE void TIMER21_ExtStart_RisingEdge_Set(void)
sets Rising Edge to External Start for TIMER21.
Definition: timer2x.h:857
#define SCU_MODPISEL2_T21EXIS_Pos
Definition: tle986x.h:9030
INLINE void TIMER21_Set_Reload(uint16 value)
sets TIMER21 reload value
Definition: timer2x.h:1659
Definition: timer2x.h:141
INLINE void TIMER21_Reload_Capture_RisingEdge_Set(void)
sets Rising Edge to Capture/Reload Mode for TIMER21.
Definition: timer2x.h:823
#define SCU_MODPISEL2_T2IS_Msk
Definition: tle986x.h:9037
INLINE uint8 TIMER2_Overflow_Sts(void)
reads TIMER2 Overflow Status.
Definition: timer2x.h:250
#define TIMER21_T2MOD_T2REGS_Pos
Definition: tle986x.h:9799
INLINE void TIMER21_ExtStart_FallingEdge_Set(void)
sets Falling Edge to External Start for TIMER21.
Definition: timer2x.h:874
#define TIMER2_T2CON_TF2_Pos
Definition: tle986x.h:9716
#define TIMER2_T2CON1_TF2EN_Pos
Definition: tle986x.h:9721
INLINE void TIMER21_ExtStop(void)
disable TIMER21 to be started externally
Definition: timer2x.h:1524
INLINE uint16 TIMER21_Get_Count(void)
reads the TIMER21 count value
Definition: timer2x.h:1545
#define TIMER2_T2MOD_EDGESEL_Msk
Definition: tle986x.h:9742
#define TIMER21_T2MOD_DCEN_Pos
Definition: tle986x.h:9789