143 #define MIN_TIMER_INTERVAL_US 1u
144 #define T2_REG_MAX_UPCOUNT_TICKS 0u
145 #define T2_REG_MIN_UPCOUNT_TICKS 0xFFFFu
#define TIMER21
Definition: tle987x.h:6076
#define TIMER2
Definition: tle987x.h:6075
#define SCU
Definition: tle987x.h:6071
#define TIMER2_T2H_T2H_Pos
Definition: tle987x.h:9937
#define TIMER21_T2CON1_EXF2EN_Msk
Definition: tle987x.h:9987
#define SCU_MODPISEL2_T21EXIS_Msk
Definition: tle987x.h:9160
#define SCU_MODPISEL2_T2IS_Pos
Definition: tle987x.h:9165
#define TIMER21_T2L_T2L_Msk
Definition: tle987x.h:10000
#define TIMER21_T2CON_TF2_Msk
Definition: tle987x.h:9984
#define TIMER2_T2MOD_PREN_Pos
Definition: tle987x.h:9952
#define TIMER2_T2ICLR_EXF2CLR_Pos
Definition: tle987x.h:9940
#define TIMER21_T2MOD_T2RHEN_Pos
Definition: tle987x.h:10010
#define TIMER2_RC2L_RC2_Pos
Definition: tle987x.h:9916
#define TIMER21_T2MOD_PREN_Msk
Definition: tle987x.h:10007
#define TIMER21_RC2L_RC2_Msk
Definition: tle987x.h:9971
#define TIMER2_RC2L_RC2_Msk
Definition: tle987x.h:9917
#define TIMER2_T2CON_TF2_Msk
Definition: tle987x.h:9930
#define TIMER21_T2CON_EXF2_Msk
Definition: tle987x.h:9982
#define TIMER2_RC2H_RC2_Pos
Definition: tle987x.h:9913
#define TIMER21_T2ICLR_TF2CLR_Pos
Definition: tle987x.h:9996
#define TIMER2_T2CON1_EXF2EN_Pos
Definition: tle987x.h:9932
#define TIMER2_T2MOD_T2PRE_Pos
Definition: tle987x.h:9950
#define TIMER21_T2CON_EXEN2_Pos
Definition: tle987x.h:9979
#define TIMER2_T2MOD_EDGESEL_Pos
Definition: tle987x.h:9954
#define TIMER2_T2MOD_DCEN_Msk
Definition: tle987x.h:9949
#define TIMER2_RC2H_RC2_Msk
Definition: tle987x.h:9914
#define SCU_MODPISEL1_T21EXCON_Pos
Definition: tle987x.h:9152
#define TIMER2_T2CON_EXF2_Pos
Definition: tle987x.h:9927
#define TIMER21_T2ICLR_EXF2CLR_Pos
Definition: tle987x.h:9994
#define TIMER2_T2MOD_T2REGS_Msk
Definition: tle987x.h:9959
#define TIMER21_T2CON_TR2_Pos
Definition: tle987x.h:9977
#define TIMER21_T2CON1_TF2EN_Msk
Definition: tle987x.h:9989
#define TIMER21_T2MOD_EDGESEL_Pos
Definition: tle987x.h:10008
#define TIMER21_T2MOD_DCEN_Pos
Definition: tle987x.h:10002
#define TIMER2_T2CON1_TF2EN_Msk
Definition: tle987x.h:9935
#define TIMER2_T2CON_CP_RL2_Msk
Definition: tle987x.h:9920
#define TIMER2_T2CON_C_T2_Pos
Definition: tle987x.h:9921
#define TIMER2_T2H_T2H_Msk
Definition: tle987x.h:9938
#define TIMER2_T2CON_EXF2_Msk
Definition: tle987x.h:9928
#define TIMER2_T2ICLR_EXF2CLR_Msk
Definition: tle987x.h:9941
#define SCU_MODPISEL1_T2EXCON_Msk
Definition: tle987x.h:9155
#define TIMER21_T2CON_EXF2_Pos
Definition: tle987x.h:9981
#define TIMER21_T2MOD_DCEN_Msk
Definition: tle987x.h:10003
#define SCU_MODPISEL1_T2EXCON_Pos
Definition: tle987x.h:9154
#define TIMER2_T2CON_TF2_Pos
Definition: tle987x.h:9929
#define TIMER2_T2ICLR_TF2CLR_Msk
Definition: tle987x.h:9943
#define TIMER2_T2MOD_DCEN_Pos
Definition: tle987x.h:9948
#define TIMER21_T2CON_C_T2_Pos
Definition: tle987x.h:9975
#define TIMER2_T2MOD_T2RHEN_Pos
Definition: tle987x.h:9956
#define TIMER2_T2CON1_EXF2EN_Msk
Definition: tle987x.h:9933
#define SCU_MODPISEL1_T21EXCON_Msk
Definition: tle987x.h:9153
#define TIMER2_T2ICLR_TF2CLR_Pos
Definition: tle987x.h:9942
#define TIMER21_T2MOD_PREN_Pos
Definition: tle987x.h:10006
#define SCU_MODPISEL2_T2IS_Msk
Definition: tle987x.h:9166
#define TIMER21_T2H_T2H_Pos
Definition: tle987x.h:9991
#define TIMER2_T2MOD_T2RHEN_Msk
Definition: tle987x.h:9957
#define TIMER21_T2L_T2L_Pos
Definition: tle987x.h:9999
#define TIMER21_T2MOD_T2REGS_Pos
Definition: tle987x.h:10012
#define TIMER21_T2CON_C_T2_Msk
Definition: tle987x.h:9976
#define TIMER21_T2CON1_TF2EN_Pos
Definition: tle987x.h:9988
#define SCU_MODPISEL2_T2EXIS_Msk
Definition: tle987x.h:9162
#define SCU_MODPISEL2_T21IS_Pos
Definition: tle987x.h:9163
#define TIMER2_T2MOD_PREN_Msk
Definition: tle987x.h:9953
#define TIMER21_T2MOD_T2PRE_Pos
Definition: tle987x.h:10004
#define TIMER21_T2MOD_T2PRE_Msk
Definition: tle987x.h:10005
#define TIMER21_RC2H_RC2_Msk
Definition: tle987x.h:9968
#define TIMER21_T2MOD_T2RHEN_Msk
Definition: tle987x.h:10011
#define TIMER21_RC2L_RC2_Pos
Definition: tle987x.h:9970
#define TIMER21_T2CON_CP_RL2_Pos
Definition: tle987x.h:9973
#define TIMER21_T2MOD_EDGESEL_Msk
Definition: tle987x.h:10009
#define TIMER21_T2MOD_T2REGS_Msk
Definition: tle987x.h:10013
#define TIMER21_T2CON1_EXF2EN_Pos
Definition: tle987x.h:9986
#define TIMER2_T2MOD_EDGESEL_Msk
Definition: tle987x.h:9955
#define TIMER2_T2CON_EXEN2_Msk
Definition: tle987x.h:9926
#define TIMER2_T2CON_TR2_Pos
Definition: tle987x.h:9923
#define TIMER21_T2ICLR_EXF2CLR_Msk
Definition: tle987x.h:9995
#define SCU_MODPISEL2_T21EXIS_Pos
Definition: tle987x.h:9159
#define TIMER21_T2CON_TR2_Msk
Definition: tle987x.h:9978
#define TIMER2_T2L_T2L_Pos
Definition: tle987x.h:9945
#define TIMER2_T2CON1_TF2EN_Pos
Definition: tle987x.h:9934
#define TIMER21_T2CON_TF2_Pos
Definition: tle987x.h:9983
#define TIMER2_T2MOD_T2PRE_Msk
Definition: tle987x.h:9951
#define TIMER2_T2CON_EXEN2_Pos
Definition: tle987x.h:9925
#define TIMER21_T2ICLR_TF2CLR_Msk
Definition: tle987x.h:9997
#define SCU_MODPISEL2_T2EXIS_Pos
Definition: tle987x.h:9161
#define TIMER2_T2MOD_T2REGS_Pos
Definition: tle987x.h:9958
#define SCU_MODPISEL2_T21IS_Msk
Definition: tle987x.h:9164
#define TIMER2_T2CON_C_T2_Msk
Definition: tle987x.h:9922
#define TIMER21_T2CON_EXEN2_Msk
Definition: tle987x.h:9980
#define TIMER21_RC2H_RC2_Pos
Definition: tle987x.h:9967
#define TIMER21_T2CON_CP_RL2_Msk
Definition: tle987x.h:9974
#define TIMER21_T2H_T2H_Msk
Definition: tle987x.h:9992
#define TIMER2_T2L_T2L_Msk
Definition: tle987x.h:9946
#define TIMER2_T2CON_TR2_Msk
Definition: tle987x.h:9924
#define TIMER2_T2CON_CP_RL2_Pos
Definition: tle987x.h:9919
SFR low level access library.
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:322
INLINE uint8 u8_Field_Rd8(const volatile uint8 *reg, uint8 pos, uint8 msk)
This function reads a 8-bit field of a 8-bit register.
Definition: sfr_access.h:397
INLINE 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:382
INLINE void Field_Mod8(volatile uint8 *reg, uint8 pos, uint8 msk, uint8 val)
This function writes a bit field in a 8-bit register.
Definition: sfr_access.h:337
INLINE void TIMER21_External_Int_Dis(void)
Disables TIMER21 External Interrupt.
Definition: timer2x.h:1114
INLINE void TIMER2_Clear_Count(void)
clears the TIMER2 count value
Definition: timer2x.h:1382
enum TIMER2_T2IN_Pxx TTIMER2_T2IN_Pxx
enum TIMER21_T2IN_Pxx TTIMER21_T2IN_Pxx
INLINE void TIMER21_Value_Set(uint16 t21)
Sets TIMER21 Value.
Definition: timer2x.h:1765
INLINE void TIMER21_ExtStart_FallingEdge_Set(void)
sets Falling Edge to External Start for TIMER21.
Definition: timer2x.h:870
INLINE void TIMER2_Mode_Timer_Set(void)
Selects Mode Timer for TIMER2.
Definition: timer2x.h:493
TIMER2_T2EX_Pxx
Definition: timer2x.h:97
@ TIMER2_T2EX_LIN
Definition: timer2x.h:98
@ TIMER2_T2EX_P12
Definition: timer2x.h:99
@ TIMER2_T2EX_CCU6_CC60
Definition: timer2x.h:100
void TIMER2_Init(void)
Initializes the Timer2 module based on the Config Wizard for MOTIX MCU configuration.
enum TIMER21_T2EX_Pxx TTIMER21_T2EX_Pxx
INLINE void TIMER21_Mode_Capture_Set(void)
Selects Capture Mode for TIMER21.
Definition: timer2x.h:924
INLINE void TIMER21_Clk_Prescaler_En(void)
enables TIMER21 clock prescaler.
Definition: timer2x.h:648
INLINE void TIMER21_External_Int_Clr(void)
Clears TIMER21 External Interrupt status.
Definition: timer2x.h:1021
INLINE void TIMER2_Clk_Prescaler_En(void)
enables TIMER2 clock prescaler.
Definition: timer2x.h:164
INLINE void TIMER2_ExtStart_FallingEdge_Set(void)
sets Falling Edge to External Start for TIMER2.
Definition: timer2x.h:388
INLINE uint16 TIMER21_Capture_Value_Get(void)
reads the TIMER21 capture value
Definition: timer2x.h:1616
IMER2x_Clock_Prescaler
Definition: timer2x.h:129
@ TIMER2x_Clk_Div_2
Definition: timer2x.h:131
@ TIMER2x_Clk_Div_64
Definition: timer2x.h:136
@ TIMER2x_Clk_Div_32
Definition: timer2x.h:135
@ TIMER2x_Clk_Div_128
Definition: timer2x.h:137
@ TIMER2x_Clk_Div_16
Definition: timer2x.h:134
@ TIMER2x_Clk_Div_8
Definition: timer2x.h:133
@ TIMER2x_Clk_Div_4
Definition: timer2x.h:132
@ TIMER2x_Clk_Div_1
Definition: timer2x.h:130
INLINE void TIMER21_UpDownCount_Dis(void)
Disables Up/Down Counter for TIMER21.
Definition: timer2x.h:906
INLINE void TIMER2_Overflow_Int_Dis(void)
Disables TIMER2 Overflow Interrupt.
Definition: timer2x.h:585
INLINE void TIMER2_UpDownCount_Dis(void)
Disables Up/Down Counter for TIMER2.
Definition: timer2x.h:424
INLINE uint16 TIMER2_Capture_Value_Get(void)
reads the TIMER2 capture value
Definition: timer2x.h:1361
enum TIMER2_T2EX_Pxx TTIMER2_T2EX_Pxx
INLINE void TIMER21_External_Int_En(void)
Enables TIMER21 External Interrupt.
Definition: timer2x.h:1090
INLINE void TIMER2_Clk_Prescaler_Sel(uint8 t2pre)
sets TIMER2 clock prescaler.
Definition: timer2x.h:199
INLINE uint8 TIMER21_Clk_Prescaler_Get(void)
reads TIMER21 clock prescaler.
Definition: timer2x.h:707
INLINE void TIMER2_Stop(void)
stops the TIMER2 by software
Definition: timer2x.h:1231
INLINE void TIMER2_Reload_Capture_RisingEdge_Set(void)
sets Rising Edge to Capture/Reload Mode for TIMER2.
Definition: timer2x.h:333
INLINE void TIMER21_Clear_Count(void)
clears the TIMER21 count value
Definition: timer2x.h:1637
INLINE void TIMER2_Reload_Value_Set(uint16 t2)
Sets TIMER2 Reload Value.
Definition: timer2x.h:1745
INLINE void TIMER21_Start(void)
starts the TIMER21 by software
Definition: timer2x.h:1467
INLINE void TIMER2_ExternalCtrl_Dis(void)
disables TIMER2 External Control.
Definition: timer2x.h:316
INLINE uint16 TIMER21_Get_Count(void)
reads the TIMER21 count value
Definition: timer2x.h:1544
INLINE void TIMER2_ExtStart_RisingEdge_Set(void)
sets Rising Edge to External Start for TIMER2.
Definition: timer2x.h:369
INLINE void TIMER2_Set_Reload(uint16 value)
sets TIMER2 reload value
Definition: timer2x.h:1403
INLINE void TIMER2_ExternalCtrl_En(void)
enables TIMER2 External Control.
Definition: timer2x.h:295
INLINE uint8 TIMER2_External_Sts(void)
reads TIMER2 External Status.
Definition: timer2x.h:270
TIMER2_T2IN_Pxx
Definition: timer2x.h:88
@ TIMER2_T2IN_P00
Definition: timer2x.h:89
@ TIMER2_T2IN_P25
Definition: timer2x.h:90
bool TIMER21_Interval_Timer_Setup(uint32 timer_interval_us)
Initializes the TIMER21 in Reload Mode.
INLINE uint16 TIMER2_Value_Get(void)
reads the TIMER2 count value
Definition: timer2x.h:1313
INLINE uint8 TIMER21_Overflow_Sts(void)
reads TIMER21 Overflow Status.
Definition: timer2x.h:732
INLINE void TIMER21_Reload_Capture_RisingEdge_Set(void)
sets Rising Edge to Capture/Reload Mode for TIMER21.
Definition: timer2x.h:819
INLINE void TIMER21_Select_T2EX(TTIMER21_T2EX_Pxx pinsel)
sets TIMER21 T2EX Pin
Definition: timer2x.h:1697
INLINE void TIMER21_ExtStop(void)
disable TIMER21 to be started externally
Definition: timer2x.h:1523
void TIMER21_Init(void)
Initializes the Timer21 module based on the Config Wizard for MOTIX MCU configuration.
INLINE void TIMER2_External_Int_En(void)
Enables TIMER2 External Interrupt.
Definition: timer2x.h:608
INLINE uint16 TIMER21_Get_Capture(void)
reads the TIMER21 capture value
Definition: timer2x.h:1592
INLINE void TIMER2_Clk_Prescaler_Dis(void)
disables TIMER2 clock prescaler.
Definition: timer2x.h:181
INLINE void TIMER2_ExtStop(void)
disable TIMER2 to be started externally
Definition: timer2x.h:1269
INLINE uint16 TIMER2_Get_Capture(void)
reads the TIMER2 capture value
Definition: timer2x.h:1337
INLINE void TIMER2_External_Int_Clr(void)
Clears TIMER2 External Interrupt flag.
Definition: timer2x.h:539
INLINE void TIMER21_ExternalCtrl_En(void)
enables TIMER21 External Control.
Definition: timer2x.h:781
INLINE uint8 TIMER2_Clk_Prescaler_Get(void)
reads TIMER2 clock prescaler.
Definition: timer2x.h:221
INLINE uint16 TIMER2_Get_Count(void)
reads the TIMER2 count value
Definition: timer2x.h:1289
INLINE void TIMER2_Value_Set(uint16 t2)
Sets TIMER2 Value.
Definition: timer2x.h:1724
INLINE void TIMER2_Start(void)
starts the TIMER2 by software
Definition: timer2x.h:1213
INLINE void TIMER2_Select_T2EX(TTIMER2_T2EX_Pxx pinsel)
sets TIMER2 T2EX Pin
Definition: timer2x.h:1442
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:1423
INLINE void TIMER21_ExternalCtrl_Dis(void)
disables TIMER21 External Control.
Definition: timer2x.h:802
INLINE void TIMER21_Mode_Counter_Set(void)
Selects Mode Counter for TIMER21.
Definition: timer2x.h:958
INLINE void TIMER2_Mode_Counter_Set(void)
Selects Mode Counter for TIMER2.
Definition: timer2x.h:476
INLINE void TIMER2_Mode_Capture_Set(void)
Selects Capture Mode for TIMER2.
Definition: timer2x.h:442
INLINE void TIMER21_UpDownCount_En(void)
enables Up/Down Counter for TIMER21.
Definition: timer2x.h:887
INLINE uint8 TIMER21_External_Sts(void)
reads TIMER21 External Status.
Definition: timer2x.h:756
INLINE void TIMER2_Overflow_Int_Clr(void)
Clears TIMER2 Overflow Interrupt flag.
Definition: timer2x.h:516
INLINE void TIMER21_ExtStart_RisingEdge_Set(void)
sets Rising Edge to External Start for TIMER21.
Definition: timer2x.h:853
INLINE void TIMER21_Select_T2IN(TTIMER21_T2IN_Pxx pinsel)
sets TIMER21 T2IN Pin
Definition: timer2x.h:1678
INLINE void TIMER2_Overflow_Int_En(void)
Enables TIMER2 Overflow Interrupt.
Definition: timer2x.h:562
INLINE void TIMER21_Clk_Prescaler_Dis(void)
disables TIMER21 clock prescaler.
Definition: timer2x.h:665
INLINE void TIMER21_Clk_Prescaler_Sel(uint8 t2pre)
sets TIMER21 clock prescaler.
Definition: timer2x.h:685
INLINE void TIMER21_Set_Reload(uint16 value)
sets TIMER21 reload value
Definition: timer2x.h:1658
INLINE void TIMER21_Overflow_Int_Clr(void)
Clears TIMER21 Overflow Interrupt status.
Definition: timer2x.h:998
INLINE void TIMER21_Overflow_Int_En(void)
Enables TIMER21 Overflow Interrupt.
Definition: timer2x.h:1044
INLINE uint16 TIMER21_Value_Get(void)
reads the TIMER21 count value
Definition: timer2x.h:1568
INLINE void TIMER2_ExtStart(void)
prepares TIMER2 to be started externally
Definition: timer2x.h:1250
INLINE void TIMER21_ExtStart(void)
prepares TIMER21 to be started externally
Definition: timer2x.h:1504
INLINE void TIMER2_Mode_Reload_Set(void)
Selects Reload Mode for TIMER2.
Definition: timer2x.h:459
INLINE void TIMER2_External_Int_Dis(void)
Disables TIMER2 External Interrupt.
Definition: timer2x.h:631
TIMER21_T2IN_Pxx
Definition: timer2x.h:107
@ TIMER21_T2IN_P04
Definition: timer2x.h:110
@ TIMER21_T2IN_P11
Definition: timer2x.h:109
@ TIMER21_T2IN_P01
Definition: timer2x.h:108
enum IMER2x_Clock_Prescaler TIMER2x_Clock_Prescaler
INLINE void TIMER21_Mode_Timer_Set(void)
Selects Mode Timer for TIMER21.
Definition: timer2x.h:975
INLINE uint8 TIMER2_Overflow_Sts(void)
reads TIMER2 Overflow Status.
Definition: timer2x.h:246
INLINE void TIMER21_Reload_Value_Set(uint16 t21)
Sets TIMER21 Reload Value.
Definition: timer2x.h:1786
INLINE void TIMER21_Overflow_Int_Dis(void)
Disables TIMER21 Overflow Interrupt.
Definition: timer2x.h:1067
INLINE void TIMER2_UpDownCount_En(void)
enables Up/Down Counter for TIMER2.
Definition: timer2x.h:405
INLINE void TIMER21_Mode_Reload_Set(void)
Selects Reload Mode for TIMER21.
Definition: timer2x.h:941
INLINE void TIMER21_Reload_Capture_FallingEdge_Set(void)
sets Falling Edge to Capture/Reload Mode for TIMER21.
Definition: timer2x.h:836
TIMER21_T2EX_Pxx
Definition: timer2x.h:117
@ TIMER21_T2EX_P02
Definition: timer2x.h:118
@ TIMER21_T2EX_P14
Definition: timer2x.h:119
@ TIMER21_T2EX_CCU6_COUT60
Definition: timer2x.h:122
@ TIMER21_T2EX_P12
Definition: timer2x.h:121
@ TIMER21_T2EX_P23
Definition: timer2x.h:120
INLINE void TIMER2_Reload_Capture_FallingEdge_Set(void)
sets Falling Edge to Capture/Reload Mode for TIMER2.
Definition: timer2x.h:350
INLINE void TIMER21_Stop(void)
stops the TIMER21 by software
Definition: timer2x.h:1485
CMSIS register HeaderFile.
General type declarations.
#define INLINE
Definition: types.h:132
uint8_t uint8
8 bit unsigned value
Definition: types.h:137
uint16_t uint16
16 bit unsigned value
Definition: types.h:138
uint32_t uint32
32 bit unsigned value
Definition: types.h:139