92 #include "timer2x_defines.h"
93 #include "isr_defines.h"
94 #include "scu_defines.h"
145 T20->CON.bit.TR2 = 1u;
152 T20->CON.bit.TR2 = 0u;
159 T21->CON.bit.TR2 = 1u;
166 T21->CON.bit.TR2 = 0u;
211 T20->CNT.reg = u16_cntVal;
220 T21->CNT.reg = u16_cntVal;
229 T20->RC.reg = u16_relCaptVal;
238 T21->RC.reg = u16_relCaptVal;
281 T20->ICLR.bit.TF2CLR = 1u;
288 T20->ICLR.bit.EXF2CLR = 1u;
295 T21->ICLR.bit.TF2CLR = 1u;
302 T21->ICLR.bit.EXF2CLR = 1u;
#define T20
Definition: internal/tle989x.h:25617
#define T21
Definition: internal/tle989x.h:25618
INLINE uint16 T20_getCapRelVal(void)
Get T20 Capture/Reload Value T20.RC.
Definition: timer2x.h:191
INLINE void T20_stop(void)
Stop T20.
Definition: timer2x.h:150
INLINE void T21_stop(void)
Stop T21.
Definition: timer2x.h:164
INLINE void T20_setRelCaptVal(uint16 u16_relCaptVal)
Set T20 Reload/Capture Value T20.RC.
Definition: timer2x.h:227
INLINE void T21_setCntVal(uint16 u16_cntVal)
Set T21 Count Value T21.CNT.
Definition: timer2x.h:218
sint8 T21_init(void)
Initialize all CW registers of the timer 21.
Definition: timer2x.c:78
sint8 T20_setIntervalTimer(uint32 u32_timeInterval_us)
Define an interval timer with the timer T20.
Definition: timer2x.c:98
INLINE uint16 T21_getCntVal(void)
Get T21 Count Value T21.CNT.
Definition: timer2x.h:182
INLINE uint8 T20_getOverUnderflowSts(void)
Get T20 Overflow/Underflow Status T20.CON.TF2.
Definition: timer2x.h:245
INLINE void T21_clrOverUnderflowSts(void)
Clear T21 Overflow/Underflow Status T21.ICLR.TF2CLR.
Definition: timer2x.h:293
sint8 T21_setIntervalTimer(uint32 u32_timeInterval_us)
Define an interval timer with the timer T21.
Definition: timer2x.c:153
INLINE void T20_clrExternalSts(void)
Clear T20 External Status T20.ICLR.EXF2CLR.
Definition: timer2x.h:286
INLINE uint8 T21_getExternalSts(void)
Get T21 External Status T21.CON.EXF2.
Definition: timer2x.h:272
INLINE void T20_clrOverUnderflowSts(void)
Clear T20 Overflow/Underflow Status T20.ICLR.TF2CLR.
Definition: timer2x.h:279
INLINE void T20_start(void)
Start T20.
Definition: timer2x.h:143
INLINE uint16 T20_getCntVal(void)
Get T20 Count Value T20.CNT.
Definition: timer2x.h:173
INLINE void T21_setRelCaptVal(uint16 u16_relCaptVal)
Set T21 Reload/Capture Value T21.RC.
Definition: timer2x.h:236
INLINE uint16 T21_getCapRelVal(void)
Get T21 Capture/Reload Value T21.RC.
Definition: timer2x.h:200
INLINE void T20_setCntVal(uint16 u16_cntVal)
Set T20 Count Value T20.CNT.
Definition: timer2x.h:209
sint8 T20_init(void)
Initialize all CW registers of the timer 20.
Definition: timer2x.c:59
INLINE uint8 T21_getOverUnderflowSts(void)
Get T21 Overflow/Underflow Status T21.CON.TF2.
Definition: timer2x.h:263
INLINE void T21_clrExternalSts(void)
Clear T21 External Status T21.ICLR.EXF2CLR.
Definition: timer2x.h:300
INLINE void T21_start(void)
Start T21.
Definition: timer2x.h:157
INLINE uint8 T20_getExternalSts(void)
Get T20 External Status T20.CON.EXF2.
Definition: timer2x.h:254
Device specific memory layout defines and features.
General type declarations.
#define INLINE
Definition: types.h:167
uint8_t uint8
8 bit unsigned value
Definition: types.h:220
int8_t sint8
8 bit signed value
Definition: types.h:225
uint16_t uint16
16 bit unsigned value
Definition: types.h:221
uint32_t uint32
32 bit unsigned value
Definition: types.h:222