76 #include "timer2x_defines.h"
77 #include "isr_defines.h"
78 #include "scu_defines.h"
129 T20->CON.bit.TR2 = 1u;
136 T20->CON.bit.TR2 = 0u;
143 T21->CON.bit.TR2 = 1u;
150 T21->CON.bit.TR2 = 0u;
195 T20->CNT.reg = u16_cntVal;
204 T21->CNT.reg = u16_cntVal;
213 T20->RC.reg = u16_relCaptVal;
222 T21->RC.reg = u16_relCaptVal;
265 T20->ICLR.bit.TF2CLR = 1u;
272 T20->ICLR.bit.EXF2CLR = 1u;
279 T21->ICLR.bit.TF2CLR = 1u;
286 T21->ICLR.bit.EXF2CLR = 1u;
#define T20
Definition: tle989x.h:24079
#define T21
Definition: tle989x.h:24080
INLINE uint16 T20_getCapRelVal(void)
Get T20 Capture/Reload Value T20.RC.
Definition: timer2x.h:175
INLINE void T20_stop(void)
Stop T20.
Definition: timer2x.h:134
INLINE void T21_stop(void)
Stop T21.
Definition: timer2x.h:148
INLINE void T20_setRelCaptVal(uint16 u16_relCaptVal)
Set T20 Reload/Capture Value T20.RC.
Definition: timer2x.h:211
INLINE void T21_setCntVal(uint16 u16_cntVal)
Set T21 Count Value T21.CNT.
Definition: timer2x.h:202
sint8 T21_init(void)
Initialize all CW registers of the timer 21.
Definition: timer2x.c:61
sint8 T20_setIntervalTimer(uint32 u32_timeInterval_us)
Define an interval timer with the timer T20.
Definition: timer2x.c:81
INLINE uint16 T21_getCntVal(void)
Get T21 Count Value T21.CNT.
Definition: timer2x.h:166
INLINE uint8 T20_getOverUnderflowSts(void)
Get T20 Overflow/Underflow Status T20.CON.TF2.
Definition: timer2x.h:229
INLINE void T21_clrOverUnderflowSts(void)
Clear T21 Overflow/Underflow Status T21.ICLR.TF2CLR.
Definition: timer2x.h:277
sint8 T21_setIntervalTimer(uint32 u32_timeInterval_us)
Define an interval timer with the timer T21.
Definition: timer2x.c:136
INLINE void T20_clrExternalSts(void)
Clear T20 External Status T20.ICLR.EXF2CLR.
Definition: timer2x.h:270
INLINE uint8 T21_getExternalSts(void)
Get T21 External Status T21.CON.EXF2.
Definition: timer2x.h:256
INLINE void T20_clrOverUnderflowSts(void)
Clear T20 Overflow/Underflow Status T20.ICLR.TF2CLR.
Definition: timer2x.h:263
INLINE void T20_start(void)
Start T20.
Definition: timer2x.h:127
INLINE uint16 T20_getCntVal(void)
Get T20 Count Value T20.CNT.
Definition: timer2x.h:157
INLINE void T21_setRelCaptVal(uint16 u16_relCaptVal)
Set T21 Reload/Capture Value T21.RC.
Definition: timer2x.h:220
INLINE uint16 T21_getCapRelVal(void)
Get T21 Capture/Reload Value T21.RC.
Definition: timer2x.h:184
INLINE void T20_setCntVal(uint16 u16_cntVal)
Set T20 Count Value T20.CNT.
Definition: timer2x.h:193
sint8 T20_init(void)
Initialize all CW registers of the timer 20.
Definition: timer2x.c:42
INLINE uint8 T21_getOverUnderflowSts(void)
Get T21 Overflow/Underflow Status T21.CON.TF2.
Definition: timer2x.h:247
INLINE void T21_clrExternalSts(void)
Clear T21 External Status T21.ICLR.EXF2CLR.
Definition: timer2x.h:284
INLINE void T21_start(void)
Start T21.
Definition: timer2x.h:141
INLINE uint8 T20_getExternalSts(void)
Get T20 External Status T20.CON.EXF2.
Definition: timer2x.h:238
Device specific memory layout defines and features.
General type declarations.
#define INLINE
Definition: types.h:151
uint8_t uint8
8 bit unsigned value
Definition: types.h:204
int8_t sint8
8 bit signed value
Definition: types.h:209
uint16_t uint16
16 bit unsigned value
Definition: types.h:205
uint32_t uint32
32 bit unsigned value
Definition: types.h:206