TLE986x Device Family SDK
Macros | Enumerations | Functions
timer2x.h File Reference

Go to the source code of this file.

Detailed Description

Timer2/Timer21 low level access library.

Version
V0.1.9
Date
12. Oct 2020

Include Graph

Include dependency graph for timer2x.h:

Macros

#define MIN_TIMER_INTERVAL_US   1u
 
#define T2_REG_MAX_UPCOUNT_TICKS   0u
 
#define T2_REG_MIN_UPCOUNT_TICKS   0xFFFFu
 

Enumerations

enum  TTIMER2_T2IN_Pxx { TIMER2_T2IN_P00 = 0u, TIMER2_T2IN_P25 = 1u }
 This enum lists the T2IN Inputs. More...
 
enum  TTIMER2_T2EX_Pxx { TIMER2_T2EX_LIN = 0u, TIMER2_T2EX_P12 = 1u, TIMER2_T2EX_CCU6_CC60 = 2u }
 This enum lists the T2EX Inputs. More...
 
enum  TTIMER21_T2IN_Pxx { TIMER21_T2IN_P01 = 0u, TIMER21_T2IN_P11 = 1u, TIMER21_T2IN_P04 = 2u }
 This enum lists the T21IN Inputs. More...
 
enum  TTIMER21_T2EX_Pxx {
  TIMER21_T2EX_P02 = 0u, TIMER21_T2EX_P14 = 1u, TIMER21_T2EX_P23 = 2u, TIMER21_T2EX_P12 = 3u,
  TIMER21_T2EX_CCU6_COUT60 = 4u
}
 This enum lists the T21EX Inputs. More...
 
enum  TIMER2x_Clock_Prescaler {
  TIMER2x_Clk_Div_1 = 0u, TIMER2x_Clk_Div_2 = 1u, TIMER2x_Clk_Div_4 = 2u, TIMER2x_Clk_Div_8 = 3u,
  TIMER2x_Clk_Div_16 = 4u, TIMER2x_Clk_Div_32 = 5u, TIMER2x_Clk_Div_64 = 6u, TIMER2x_Clk_Div_128 = 7u
}
 This enum lists TIMER2x Clock Prescaler Configuration. More...
 

Functions

INLINE void TIMER2_Clk_Prescaler_En (void)
 enables TIMER2 clock prescaler. More...
 
INLINE void TIMER2_Clk_Prescaler_Dis (void)
 disables TIMER2 clock prescaler. More...
 
INLINE void TIMER2_Clk_Prescaler_Sel (uint8 t2pre)
 sets TIMER2 clock prescaler. More...
 
INLINE uint8 TIMER2_Clk_Prescaler_Get (void)
 reads TIMER2 clock prescaler. More...
 
INLINE uint8 TIMER2_Overflow_Sts (void)
 reads TIMER2 Overflow Status. More...
 
INLINE uint8 TIMER2_External_Sts (void)
 reads TIMER2 External Status. More...
 
INLINE void TIMER2_ExternalCtrl_En (void)
 enables TIMER2 External Control. More...
 
INLINE void TIMER2_ExternalCtrl_Dis (void)
 disables TIMER2 External Control. More...
 
INLINE void TIMER2_Reload_Capture_RisingEdge_Set (void)
 sets Rising Edge to Capture/Reload Mode for TIMER2. More...
 
INLINE void TIMER2_Reload_Capture_FallingEdge_Set (void)
 sets Falling Edge to Capture/Reload Mode for TIMER2. More...
 
INLINE void TIMER2_ExtStart_RisingEdge_Set (void)
 sets Rising Edge to External Start for TIMER2. More...
 
INLINE void TIMER2_ExtStart_FallingEdge_Set (void)
 sets Falling Edge to External Start for TIMER2. More...
 
INLINE void TIMER2_UpDownCount_En (void)
 enables Up/Down Counter for TIMER2. More...
 
INLINE void TIMER2_UpDownCount_Dis (void)
 Disables Up/Down Counter for TIMER2. More...
 
INLINE void TIMER2_Mode_Capture_Set (void)
 Selects Capture Mode for TIMER2. More...
 
INLINE void TIMER2_Mode_Reload_Set (void)
 Selects Reload Mode for TIMER2. More...
 
INLINE void TIMER2_Mode_Counter_Set (void)
 Selects Mode Counter for TIMER2. More...
 
INLINE void TIMER2_Mode_Timer_Set (void)
 Selects Mode Timer for TIMER2. More...
 
INLINE void TIMER2_Overflow_Int_Clr (void)
 Clears TIMER2 Overflow Interrupt flag. More...
 
INLINE void TIMER2_External_Int_Clr (void)
 Clears TIMER2 External Interrupt flag. More...
 
INLINE void TIMER2_Overflow_Int_En (void)
 Enables TIMER2 Overflow Interrupt. More...
 
INLINE void TIMER2_Overflow_Int_Dis (void)
 Disables TIMER2 Overflow Interrupt. More...
 
INLINE void TIMER2_External_Int_En (void)
 Enables TIMER2 External Interrupt. More...
 
INLINE void TIMER2_External_Int_Dis (void)
 Disables TIMER2 External Interrupt. More...
 
INLINE void TIMER21_Clk_Prescaler_En (void)
 enables TIMER21 clock prescaler. More...
 
INLINE void TIMER21_Clk_Prescaler_Dis (void)
 disables TIMER21 clock prescaler. More...
 
INLINE void TIMER21_Clk_Prescaler_Sel (uint8 t2pre)
 sets TIMER21 clock prescaler. More...
 
INLINE uint8 TIMER21_Clk_Prescaler_Get (void)
 reads TIMER21 clock prescaler. More...
 
INLINE uint8 TIMER21_Overflow_Sts (void)
 reads TIMER21 Overflow Status. More...
 
INLINE uint8 TIMER21_External_Sts (void)
 reads TIMER21 External Status. More...
 
INLINE void TIMER21_ExternalCtrl_En (void)
 enables TIMER21 External Control. More...
 
INLINE void TIMER21_ExternalCtrl_Dis (void)
 disables TIMER21 External Control. More...
 
INLINE void TIMER21_Reload_Capture_RisingEdge_Set (void)
 sets Rising Edge to Capture/Reload Mode for TIMER21. More...
 
INLINE void TIMER21_Reload_Capture_FallingEdge_Set (void)
 sets Falling Edge to Capture/Reload Mode for TIMER21. More...
 
INLINE void TIMER21_ExtStart_RisingEdge_Set (void)
 sets Rising Edge to External Start for TIMER21. More...
 
INLINE void TIMER21_ExtStart_FallingEdge_Set (void)
 sets Falling Edge to External Start for TIMER21. More...
 
INLINE void TIMER21_UpDownCount_En (void)
 enables Up/Down Counter for TIMER21. More...
 
INLINE void TIMER21_UpDownCount_Dis (void)
 Disables Up/Down Counter for TIMER21. More...
 
INLINE void TIMER21_Mode_Capture_Set (void)
 Selects Capture Mode for TIMER21. More...
 
INLINE void TIMER21_Mode_Reload_Set (void)
 Selects Reload Mode for TIMER21. More...
 
INLINE void TIMER21_Mode_Counter_Set (void)
 Selects Mode Counter for TIMER21. More...
 
INLINE void TIMER21_Mode_Timer_Set (void)
 Selects Mode Timer for TIMER21. More...
 
INLINE void TIMER21_Overflow_Int_Clr (void)
 Clears TIMER21 Overflow Interrupt status. More...
 
INLINE void TIMER21_External_Int_Clr (void)
 Clears TIMER21 External Interrupt status. More...
 
INLINE void TIMER21_Overflow_Int_En (void)
 Enables TIMER21 Overflow Interrupt. More...
 
INLINE void TIMER21_Overflow_Int_Dis (void)
 Disables TIMER21 Overflow Interrupt. More...
 
INLINE void TIMER21_External_Int_En (void)
 Enables TIMER21 External Interrupt. More...
 
INLINE void TIMER21_External_Int_Dis (void)
 Disables TIMER21 External Interrupt. More...
 
void TIMER2_Init (void)
 Initializes the Timer2 module. More...
 
void TIMER21_Init (void)
 Initializes the Timer21 module. More...
 
bool TIMER2_Interval_Timer_Setup (uint32 timer_interval_us)
 Initializes the TIMER2 in Reload Mode. More...
 
bool TIMER21_Interval_Timer_Setup (uint32 timer_interval_us)
 Initializes the TIMER21 in Reload Mode. More...
 
INLINE void TIMER2_Start (void)
 starts the TIMER2 by software More...
 
INLINE void TIMER2_Stop (void)
 stops the TIMER2 by software More...
 
INLINE void TIMER2_ExtStart (void)
 prepares TIMER2 to be started externally More...
 
INLINE void TIMER2_ExtStop (void)
 disable TIMER2 to be started externally More...
 
INLINE uint16 TIMER2_Value_Get (void)
 reads the TIMER2 count value More...
 
INLINE uint16 TIMER2_Get_Count (void)
 reads the TIMER2 count value More...
 
INLINE uint16 TIMER2_Capture_Value_Get (void)
 reads the TIMER2 capture value More...
 
INLINE uint16 TIMER2_Get_Capture (void)
 reads the TIMER2 capture value More...
 
INLINE void TIMER2_Clear_Count (void)
 clears the TIMER2 count value More...
 
INLINE void TIMER2_Set_Reload (uint16 value)
 sets TIMER2 reload value More...
 
INLINE void TIMER2_Select_T2IN (TTIMER2_T2IN_Pxx pinsel)
 sets TIMER2 T2IN Pin More...
 
INLINE void TIMER2_Select_T2EX (TTIMER2_T2EX_Pxx pinsel)
 sets TIMER2 T2EX Pin More...
 
INLINE void TIMER21_Start (void)
 starts the TIMER21 by software More...
 
INLINE void TIMER21_Stop (void)
 stops the TIMER21 by software More...
 
INLINE void TIMER21_ExtStart (void)
 prepares TIMER21 to be started externally More...
 
INLINE void TIMER21_ExtStop (void)
 disable TIMER21 to be started externally More...
 
INLINE uint16 TIMER21_Value_Get (void)
 reads the TIMER21 count value More...
 
INLINE uint16 TIMER21_Get_Count (void)
 reads the TIMER21 count value More...
 
INLINE uint16 TIMER21_Capture_Value_Get (void)
 reads the TIMER21 capture value More...
 
INLINE uint16 TIMER21_Get_Capture (void)
 reads the TIMER21 capture value More...
 
INLINE void TIMER21_Clear_Count (void)
 clears the TIMER21 count value More...
 
INLINE void TIMER21_Set_Reload (uint16 value)
 sets TIMER21 reload value More...
 
INLINE void TIMER21_Select_T2IN (TTIMER21_T2IN_Pxx pinsel)
 sets TIMER21 T2IN Pin More...
 
INLINE void TIMER21_Select_T2EX (TTIMER21_T2EX_Pxx pinsel)
 sets TIMER21 T2EX Pin More...
 
INLINE void TIMER2_Value_Set (uint16 t2)
 Sets TIMER2 Value. More...
 
INLINE void TIMER2_Reload_Value_Set (uint16 t2)
 Sets TIMER2 Reload Value. More...
 
INLINE void TIMER21_Value_Set (uint16 t21)
 Sets TIMER21 Value. More...
 
INLINE void TIMER21_Reload_Value_Set (uint16 t21)
 Sets TIMER21 Reload Value. More...
 

Macro Definition Documentation

◆ MIN_TIMER_INTERVAL_US

#define MIN_TIMER_INTERVAL_US   1u

◆ T2_REG_MAX_UPCOUNT_TICKS

#define T2_REG_MAX_UPCOUNT_TICKS   0u

◆ T2_REG_MIN_UPCOUNT_TICKS

#define T2_REG_MIN_UPCOUNT_TICKS   0xFFFFu

Enumeration Type Documentation

◆ TIMER2x_Clock_Prescaler

This enum lists TIMER2x Clock Prescaler Configuration.

Enumerator
TIMER2x_Clk_Div_1 

Timer2x Input Clock Select: fsys

TIMER2x_Clk_Div_2 

Timer2x Input Clock Select: fsys/2

TIMER2x_Clk_Div_4 

Timer2x Input Clock Select: fsys/4

TIMER2x_Clk_Div_8 

Timer2x Input Clock Select: fsys/8

TIMER2x_Clk_Div_16 

Timer2x Input Clock Select: fsys/16

TIMER2x_Clk_Div_32 

Timer2x Input Clock Select: fsys/32

TIMER2x_Clk_Div_64 

Timer2x Input Clock Select: fsys/64

TIMER2x_Clk_Div_128 

Timer2x Input Clock Select: fsys/128

◆ TTIMER21_T2EX_Pxx

This enum lists the T21EX Inputs.

Enumerator
TIMER21_T2EX_P02 

The input pin for T21EX_0

TIMER21_T2EX_P14 

The input pin for T21EX_1

TIMER21_T2EX_P23 

The input pin for T21EX_2

TIMER21_T2EX_P12 

The input pin for T21EX_3

TIMER21_T2EX_CCU6_COUT60 

The input pin for t21_ext_trigger

◆ TTIMER21_T2IN_Pxx

This enum lists the T21IN Inputs.

Enumerator
TIMER21_T2IN_P01 

The input pin for T21_0

TIMER21_T2IN_P11 

The input pin for T21_1

TIMER21_T2IN_P04 

The input pin for T21_2

◆ TTIMER2_T2EX_Pxx

This enum lists the T2EX Inputs.

Enumerator
TIMER2_T2EX_LIN 

The input pin for T2EX_0

TIMER2_T2EX_P12 

The input pin for T2EX_1

TIMER2_T2EX_CCU6_CC60 

The input pin for t2_ext_trigger

◆ TTIMER2_T2IN_Pxx

This enum lists the T2IN Inputs.

Enumerator
TIMER2_T2IN_P00 

The input pin for T2_0

TIMER2_T2IN_P25 

The input pin for T2_1

Function Documentation

◆ TIMER21_Capture_Value_Get()

INLINE uint16 TIMER21_Capture_Value_Get ( void  )

reads the TIMER21 capture value

Returns
TIMER21 capture value

Example

This example reads the TIMER21 capture value.

void Example_Function(void)
{
uint16 timer_ticks;
timer_ticks = TIMER21_Capture_Value_Get();
}

◆ TIMER21_Clear_Count()

INLINE void TIMER21_Clear_Count ( void  )

clears the TIMER21 count value

Example

This example stops and reset TIMER21 by software.

void Example_Function(void)
{
}

◆ TIMER21_Clk_Prescaler_Dis()

INLINE void TIMER21_Clk_Prescaler_Dis ( void  )

disables TIMER21 clock prescaler.

Example

This example disables TIMER21 clock prescaler.

void Example_Function(void)
{
}

◆ TIMER21_Clk_Prescaler_En()

INLINE void TIMER21_Clk_Prescaler_En ( void  )

enables TIMER21 clock prescaler.

Example

This example enables TIMER21 clock prescaler.

void Example_Function(void)
{
}

◆ TIMER21_Clk_Prescaler_Get()

INLINE uint8 TIMER21_Clk_Prescaler_Get ( void  )

reads TIMER21 clock prescaler.

Returns
TIMER21 clock prescaler

Example

This example reads TIMER21 clock prescaler.

void Example_Function(void)
{
uint8 pre;
}

◆ TIMER21_Clk_Prescaler_Sel()

INLINE void TIMER21_Clk_Prescaler_Sel ( uint8  t2pre)

sets TIMER21 clock prescaler.

Parameters
t2preTIMER21 clock prescaler

Example

This example sets TIMER21 clock prescaler to DIV2.

void Example_Function(void)
{
}

◆ TIMER21_External_Int_Clr()

INLINE void TIMER21_External_Int_Clr ( void  )

Clears TIMER21 External Interrupt status.

Example

This example treats the TIMER21 External Interrupt.

void Example_Function(void)
{
{
TIMER21_EXF2_CALLBACK();
}
}

◆ TIMER21_External_Int_Dis()

INLINE void TIMER21_External_Int_Dis ( void  )

Disables TIMER21 External Interrupt.

Example

This example treats the TIMER21 External Interrupt.

void Example_Function(void)
{
{
TIMER21_EXF2_CALLBACK();
}
}

◆ TIMER21_External_Int_En()

INLINE void TIMER21_External_Int_En ( void  )

Enables TIMER21 External Interrupt.

Example

This example treats the TIMER21 External Interrupt.

void Example_Function(void)
{
{
TIMER21_EXF2_CALLBACK();
}
}

◆ TIMER21_External_Sts()

INLINE uint8 TIMER21_External_Sts ( void  )

reads TIMER21 External Status.

Returns
TIMER21 External Status

Example

This example checks the TIMER21 External Status.

void Example_Function(void)
{
{
TIMER21_EXF2_CALLBACK();
}
}

◆ TIMER21_ExternalCtrl_Dis()

INLINE void TIMER21_ExternalCtrl_Dis ( void  )

disables TIMER21 External Control.

Example

This example reads TIMER21 External Status.

void Example_Function(void)
{
uint8 sts;
}

◆ TIMER21_ExternalCtrl_En()

INLINE void TIMER21_ExternalCtrl_En ( void  )

enables TIMER21 External Control.

Example

This example checks the TIMER21 External Status.

void Example_Function(void)
{
{
TIMER21_EXF2_CALLBACK();
}
}

◆ TIMER21_ExtStart()

INLINE void TIMER21_ExtStart ( void  )

prepares TIMER21 to be started externally

Example

This example sets Rising Edge to External Start.

void Example_Function(void)
{
}

◆ TIMER21_ExtStart_FallingEdge_Set()

INLINE void TIMER21_ExtStart_FallingEdge_Set ( void  )

sets Falling Edge to External Start for TIMER21.

Example

This example sets Falling Edge to External Start.

void Example_Function(void)
{
}

◆ TIMER21_ExtStart_RisingEdge_Set()

INLINE void TIMER21_ExtStart_RisingEdge_Set ( void  )

sets Rising Edge to External Start for TIMER21.

Example

This example sets Rising Edge to External Start.

void Example_Function(void)
{
}

◆ TIMER21_ExtStop()

INLINE void TIMER21_ExtStop ( void  )

disable TIMER21 to be started externally

Example

This example sets Rising Edge to External Start.

void Example_Function(void)
{
}

◆ TIMER21_Get_Capture()

INLINE uint16 TIMER21_Get_Capture ( void  )

reads the TIMER21 capture value

Returns
TIMER21 capture value

Example

This example reads the TIMER21 capture value.

void Example_Function(void)
{
uint16 timer_ticks;
timer_ticks = TIMER21_Get_Capture();
}

◆ TIMER21_Get_Count()

INLINE uint16 TIMER21_Get_Count ( void  )

reads the TIMER21 count value

Returns
TIMER21 count value

Example

This example reads the TIMER21 count value.

void Example_Function(void)
{
uint16 timer_ticks;
timer_ticks = TIMER21_Get_Count();
}

◆ TIMER21_Init()

void TIMER21_Init ( void  )

Initializes the Timer21 module.

◆ TIMER21_Interval_Timer_Setup()

bool TIMER21_Interval_Timer_Setup ( uint32  timer_interval_us)

Initializes the TIMER21 in Reload Mode.

Parameters
timer_interval_ustimer interval in microseconds
Return values
TRUEsetup done
FALSEsetup failed

Example

This example Initializes the TIMER21 in Reload Mode with timer equals to 5000 us.

void Example_Function(void)
{
}

◆ TIMER21_Mode_Capture_Set()

INLINE void TIMER21_Mode_Capture_Set ( void  )

Selects Capture Mode for TIMER21.

Example

This example enters 16-bit Capture Mode.

void Example_Function(void)
{
}

◆ TIMER21_Mode_Counter_Set()

INLINE void TIMER21_Mode_Counter_Set ( void  )

Selects Mode Counter for TIMER21.

Example

This example sets the Mode Counter.

void Example_Function(void)
{
}

◆ TIMER21_Mode_Reload_Set()

INLINE void TIMER21_Mode_Reload_Set ( void  )

Selects Reload Mode for TIMER21.

Example

This example enters Auto-Reload Mode.

void Example_Function(void)
{
}

◆ TIMER21_Mode_Timer_Set()

INLINE void TIMER21_Mode_Timer_Set ( void  )

Selects Mode Timer for TIMER21.

Example

This example sets the Mode Timer.

void Example_Function(void)
{
}

◆ TIMER21_Overflow_Int_Clr()

INLINE void TIMER21_Overflow_Int_Clr ( void  )

Clears TIMER21 Overflow Interrupt status.

Example

This example treats the TIMER21 Overflow Interrupt.

void Example_Function(void)
{
{
TIMER21_TF2_CALLBACK();
}
}

◆ TIMER21_Overflow_Int_Dis()

INLINE void TIMER21_Overflow_Int_Dis ( void  )

Disables TIMER21 Overflow Interrupt.

Example

This example treats the TIMER21 Overflow Interrupt.

void Example_Function(void)
{
{
TIMER21_TF2_CALLBACK();
}
}

◆ TIMER21_Overflow_Int_En()

INLINE void TIMER21_Overflow_Int_En ( void  )

Enables TIMER21 Overflow Interrupt.

Example

This example treats the TIMER21 Overflow Interrupt.

void Example_Function(void)
{
{
TIMER21_TF2_CALLBACK();
}
}

◆ TIMER21_Overflow_Sts()

INLINE uint8 TIMER21_Overflow_Sts ( void  )

reads TIMER21 Overflow Status.

Returns
TIMER21 Overflow Status

Example

This example checks the TIMER21 Overflow Status.

void Example_Function(void)
{
{
TIMER21_TF2_CALLBACK();
}
}

◆ TIMER21_Reload_Capture_FallingEdge_Set()

INLINE void TIMER21_Reload_Capture_FallingEdge_Set ( void  )

sets Falling Edge to Capture/Reload Mode for TIMER21.

Example

This example sets Falling Edge to Capture/Reload Mode.

void Example_Function(void)
{
}

◆ TIMER21_Reload_Capture_RisingEdge_Set()

INLINE void TIMER21_Reload_Capture_RisingEdge_Set ( void  )

sets Rising Edge to Capture/Reload Mode for TIMER21.

Example

This example sets Rising Edge to Capture/Reload Mode.

void Example_Function(void)
{
}

◆ TIMER21_Reload_Value_Set()

INLINE void TIMER21_Reload_Value_Set ( uint16  t21)

Sets TIMER21 Reload Value.

Parameters
t21TIMER21 Reload Value

Example

This example sets TIMER21 Reload Value to 5000.

void Example_Function(void)
{
}

◆ TIMER21_Select_T2EX()

INLINE void TIMER21_Select_T2EX ( TTIMER21_T2EX_Pxx  pinsel)

sets TIMER21 T2EX Pin

Parameters
pinselPin select, (uint8)TIMER21_T2EX_Pxy

Example

This example sets TIMER2 External Input to T21EX_0(P0.2).

void Example_Function(void)
{
}

◆ TIMER21_Select_T2IN()

INLINE void TIMER21_Select_T2IN ( TTIMER21_T2IN_Pxx  pinsel)

sets TIMER21 T2IN Pin

Parameters
pinselPin select, (uint8)TIMER21_T2IN_Pxy

Example

This example sets TIMER2 Input to T21_1(P1.1).

void Example_Function(void)
{
}

◆ TIMER21_Set_Reload()

INLINE void TIMER21_Set_Reload ( uint16  value)

sets TIMER21 reload value

Parameters
valuereload value in ticks

Example

This example sets TIMER21 Reload Value to 5000 ticks.

void Example_Function(void)
{
}

◆ TIMER21_Start()

INLINE void TIMER21_Start ( void  )

starts the TIMER21 by software

Example

This example starts the TIMER21 by software.

void Example_Function(void)
{
}

◆ TIMER21_Stop()

INLINE void TIMER21_Stop ( void  )

stops the TIMER21 by software

Example

This example stops and reset TIMER21 by software.

void Example_Function(void)
{
}

◆ TIMER21_UpDownCount_Dis()

INLINE void TIMER21_UpDownCount_Dis ( void  )

Disables Up/Down Counter for TIMER21.

Example

This example starts Up Counter once TR2 is set and External Control was disabled.

void Example_Function(void)
{
}

◆ TIMER21_UpDownCount_En()

INLINE void TIMER21_UpDownCount_En ( void  )

enables Up/Down Counter for TIMER21.

Example

This example enables Up/Down Counter for TIMER21.

void Example_Function(void)
{
}

◆ TIMER21_Value_Get()

INLINE uint16 TIMER21_Value_Get ( void  )

reads the TIMER21 count value

Returns
TIMER21 count value

Example

This example reads the TIMER21 count value.

void Example_Function(void)
{
uint16 timer_ticks;
timer_ticks = TIMER21_Value_Get();
}

◆ TIMER21_Value_Set()

INLINE void TIMER21_Value_Set ( uint16  t21)

Sets TIMER21 Value.

Parameters
t21TIMER21 Value

Example

This example sets TIMER21 Value to 5000.

void Example_Function(void)
{
}

◆ TIMER2_Capture_Value_Get()

INLINE uint16 TIMER2_Capture_Value_Get ( void  )

reads the TIMER2 capture value

Returns
TIMER2 capture value

Example

This example reads the TIMER2 capture value.

void Example_Function(void)
{
uint16 timer_ticks;
timer_ticks = TIMER2_Capture_Value_Get();
}

◆ TIMER2_Clear_Count()

INLINE void TIMER2_Clear_Count ( void  )

clears the TIMER2 count value

Example

This example stops and reset TIMER2 by software.

void Example_Function(void)
{
}

◆ TIMER2_Clk_Prescaler_Dis()

INLINE void TIMER2_Clk_Prescaler_Dis ( void  )

disables TIMER2 clock prescaler.

Example

This example disables TIMER2 clock prescaler.

void Example_Function(void)
{
}

◆ TIMER2_Clk_Prescaler_En()

INLINE void TIMER2_Clk_Prescaler_En ( void  )

enables TIMER2 clock prescaler.

Example

This example enables TIMER2 clock prescaler.

void Example_Function(void)
{
}

◆ TIMER2_Clk_Prescaler_Get()

INLINE uint8 TIMER2_Clk_Prescaler_Get ( void  )

reads TIMER2 clock prescaler.

Returns
TIMER2 clock prescaler

Example

This example reads TIMER2 clock prescaler.

void Example_Function(void)
{
uint8 pre;
}

◆ TIMER2_Clk_Prescaler_Sel()

INLINE void TIMER2_Clk_Prescaler_Sel ( uint8  t2pre)

sets TIMER2 clock prescaler.

Example

This example sets TIMER2 clock prescaler to DIV2.

void Example_Function(void)
{
}

◆ TIMER2_External_Int_Clr()

INLINE void TIMER2_External_Int_Clr ( void  )

Clears TIMER2 External Interrupt flag.

Example

This example treats the TIMER2 External Interrupt.

void Example_Function(void)
{
if (TIMER2_External_Sts() == 1)
{
TIMER2_EXF2_CALLBACK();
}
}

◆ TIMER2_External_Int_Dis()

INLINE void TIMER2_External_Int_Dis ( void  )

Disables TIMER2 External Interrupt.

Example

This example treats the TIMER2 External Interrupt.

void Example_Function(void)
{
if (TIMER2_External_Sts() == 1)
{
TIMER2_EXF2_CALLBACK();
}
}

◆ TIMER2_External_Int_En()

INLINE void TIMER2_External_Int_En ( void  )

Enables TIMER2 External Interrupt.

Example

This example treats the TIMER2 External Interrupt.

void Example_Function(void)
{
if (TIMER2_External_Sts() == 1)
{
TIMER2_EXF2_CALLBACK();
}
}

◆ TIMER2_External_Sts()

INLINE uint8 TIMER2_External_Sts ( void  )

reads TIMER2 External Status.

Returns
TIMER2 External Status

Example

This example checks the TIMER2 External Status.

void Example_Function(void)
{
{
TIMER2_EXF2_CALLBACK();
}
}

◆ TIMER2_ExternalCtrl_Dis()

INLINE void TIMER2_ExternalCtrl_Dis ( void  )

disables TIMER2 External Control.

Example

This example reads TIMER2 External Status.

void Example_Function(void)
{
uint8 sts;
}

◆ TIMER2_ExternalCtrl_En()

INLINE void TIMER2_ExternalCtrl_En ( void  )

enables TIMER2 External Control.

Example

This example checks the TIMER2 External Status.

void Example_Function(void)
{
{
TIMER2_EXF2_CALLBACK();
}
}

◆ TIMER2_ExtStart()

INLINE void TIMER2_ExtStart ( void  )

prepares TIMER2 to be started externally

Example

This example sets Rising Edge to External Start.

void Example_Function(void)
{
}

◆ TIMER2_ExtStart_FallingEdge_Set()

INLINE void TIMER2_ExtStart_FallingEdge_Set ( void  )

sets Falling Edge to External Start for TIMER2.

Example

This example sets Falling Edge to External Start.

void Example_Function(void)
{
}

◆ TIMER2_ExtStart_RisingEdge_Set()

INLINE void TIMER2_ExtStart_RisingEdge_Set ( void  )

sets Rising Edge to External Start for TIMER2.

Example

This example sets Rising Edge to External Start.

void Example_Function(void)
{
}

◆ TIMER2_ExtStop()

INLINE void TIMER2_ExtStop ( void  )

disable TIMER2 to be started externally

Example

This example sets Rising Edge to External Start.

void Example_Function(void)
{
}

◆ TIMER2_Get_Capture()

INLINE uint16 TIMER2_Get_Capture ( void  )

reads the TIMER2 capture value

Returns
TIMER2 capture value

Example

This example reads the TIMER2 capture value.

void Example_Function(void)
{
uint16 timer_ticks;
timer_ticks = TIMER2_Get_Capture();
}

◆ TIMER2_Get_Count()

INLINE uint16 TIMER2_Get_Count ( void  )

reads the TIMER2 count value

Returns
TIMER2 count value

Example

This example reads the TIMER2 count value.

void Example_Function(void)
{
uint16 timer_ticks;
timer_ticks = TIMER2_Get_Count();
}

◆ TIMER2_Init()

void TIMER2_Init ( void  )

Initializes the Timer2 module.

◆ TIMER2_Interval_Timer_Setup()

bool TIMER2_Interval_Timer_Setup ( uint32  timer_interval_us)

Initializes the TIMER2 in Reload Mode.

Parameters
timer_interval_ustimer interval in microseconds
Return values
TRUEsetup done
FALSEsetup failed

Example

This example Initializes the TIMER2 in Reload Mode with timer equals to 5000 us.

void Example_Function(void)
{
}

◆ TIMER2_Mode_Capture_Set()

INLINE void TIMER2_Mode_Capture_Set ( void  )

Selects Capture Mode for TIMER2.

Example

This example enters 16-bit Capture Mode.

void Example_Function(void)
{
}

◆ TIMER2_Mode_Counter_Set()

INLINE void TIMER2_Mode_Counter_Set ( void  )

Selects Mode Counter for TIMER2.

Example

This example sets the Mode Counter.

void Example_Function(void)
{
}

◆ TIMER2_Mode_Reload_Set()

INLINE void TIMER2_Mode_Reload_Set ( void  )

Selects Reload Mode for TIMER2.

Example

This example enters Auto-Reload Mode.

void Example_Function(void)
{
}

◆ TIMER2_Mode_Timer_Set()

INLINE void TIMER2_Mode_Timer_Set ( void  )

Selects Mode Timer for TIMER2.

Example

This example sets the Mode Timer.

void Example_Function(void)
{
}

◆ TIMER2_Overflow_Int_Clr()

INLINE void TIMER2_Overflow_Int_Clr ( void  )

Clears TIMER2 Overflow Interrupt flag.

Example

This example treats the TIMER2 Overflow Interrupt.

void Example_Function(void)
{
{
TIMER2_TF2_CALLBACK();
}
}

◆ TIMER2_Overflow_Int_Dis()

INLINE void TIMER2_Overflow_Int_Dis ( void  )

Disables TIMER2 Overflow Interrupt.

Example

This example treats the TIMER2 Overflow Interrupt.

void Example_Function(void)
{
{
TIMER2_TF2_CALLBACK();
}
}

◆ TIMER2_Overflow_Int_En()

INLINE void TIMER2_Overflow_Int_En ( void  )

Enables TIMER2 Overflow Interrupt.

Example

This example treats the TIMER2 Overflow Interrupt.

void Example_Function(void)
{
{
TIMER2_TF2_CALLBACK();
}
}

◆ TIMER2_Overflow_Sts()

INLINE uint8 TIMER2_Overflow_Sts ( void  )

reads TIMER2 Overflow Status.

Returns
TIMER2 Overflow Status

Example

This example checks the TIMER2 Overflow Status.

void Example_Function(void)
{
{
TIMER2_TF2_CALLBACK();
}
}

◆ TIMER2_Reload_Capture_FallingEdge_Set()

INLINE void TIMER2_Reload_Capture_FallingEdge_Set ( void  )

sets Falling Edge to Capture/Reload Mode for TIMER2.

Example

This example sets Falling Edge to Capture/Reload Mode.

void Example_Function(void)
{
}

◆ TIMER2_Reload_Capture_RisingEdge_Set()

INLINE void TIMER2_Reload_Capture_RisingEdge_Set ( void  )

sets Rising Edge to Capture/Reload Mode for TIMER2.

Example

This example sets Rising Edge to Capture/Reload Mode.

void Example_Function(void)
{
}

◆ TIMER2_Reload_Value_Set()

INLINE void TIMER2_Reload_Value_Set ( uint16  t2)

Sets TIMER2 Reload Value.

Parameters
t2TIMER2 Reload Value

Example

This example sets TIMER2 Reload Value to 5000.

void Example_Function(void)
{
}

◆ TIMER2_Select_T2EX()

INLINE void TIMER2_Select_T2EX ( TTIMER2_T2EX_Pxx  pinsel)

sets TIMER2 T2EX Pin

Parameters
pinselPin select, (uint8)TIMER2_T2EX_Pxy

Example

This example sets TIMER2 External Input to T2EX_1(P1.2).

void Example_Function(void)
{
}

◆ TIMER2_Select_T2IN()

INLINE void TIMER2_Select_T2IN ( TTIMER2_T2IN_Pxx  pinsel)

sets TIMER2 T2IN Pin

Parameters
pinselPin select, (uint8)TIMER2_T2IN_Pxy

Example

This example sets TIMER2 Input to T2_1(P2.5).

void Example_Function(void)
{
}

◆ TIMER2_Set_Reload()

INLINE void TIMER2_Set_Reload ( uint16  value)

sets TIMER2 reload value

Parameters
valuereload value in ticks

Example

This example sets TIMER2 Reload Value to 5000 ticks.

void Example_Function(void)
{
}

◆ TIMER2_Start()

INLINE void TIMER2_Start ( void  )

starts the TIMER2 by software

Example

This example starts the TIMER2 by software.

void Example_Function(void)
{
}

◆ TIMER2_Stop()

INLINE void TIMER2_Stop ( void  )

stops the TIMER2 by software

Example

This example stops and reset TIMER2 by software.

void Example_Function(void)
{
}

◆ TIMER2_UpDownCount_Dis()

INLINE void TIMER2_UpDownCount_Dis ( void  )

Disables Up/Down Counter for TIMER2.

Example

This example starts Up Counter once TR2 is set and External Control was disabled.

void Example_Function(void)
{
}

◆ TIMER2_UpDownCount_En()

INLINE void TIMER2_UpDownCount_En ( void  )

enables Up/Down Counter for TIMER2.

Example

This example enables Up/Down Counter for TIMER2.

void Example_Function(void)
{
}

◆ TIMER2_Value_Get()

INLINE uint16 TIMER2_Value_Get ( void  )

reads the TIMER2 count value

Returns
TIMER2 count value

Example

This example reads the TIMER2 count value.

void Example_Function(void)
{
uint16 timer_ticks;
timer_ticks = TIMER2_Value_Get();
}

◆ TIMER2_Value_Set()

INLINE void TIMER2_Value_Set ( uint16  t2)

Sets TIMER2 Value.

Parameters
t2TIMER2 Value

Example

This example sets TIMER2 Value to 5000 ticks.

void Example_Function(void)
{
}
TIMER2_External_Int_Dis
INLINE void TIMER2_External_Int_Dis(void)
Disables TIMER2 External Interrupt.
Definition: timer2x.h:635
TIMER2_ExtStop
INLINE void TIMER2_ExtStop(void)
disable TIMER2 to be started externally
Definition: timer2x.h:1270
TIMER21_UpDownCount_Dis
INLINE void TIMER21_UpDownCount_Dis(void)
Disables Up/Down Counter for TIMER21.
Definition: timer2x.h:910
TIMER2_Reload_Capture_RisingEdge_Set
INLINE void TIMER2_Reload_Capture_RisingEdge_Set(void)
sets Rising Edge to Capture/Reload Mode for TIMER2.
Definition: timer2x.h:337
TIMER21_Clk_Prescaler_Sel
INLINE void TIMER21_Clk_Prescaler_Sel(uint8 t2pre)
sets TIMER21 clock prescaler.
Definition: timer2x.h:689
TIMER2_External_Sts
INLINE uint8 TIMER2_External_Sts(void)
reads TIMER2 External Status.
Definition: timer2x.h:274
TIMER21_Overflow_Int_En
INLINE void TIMER21_Overflow_Int_En(void)
Enables TIMER21 Overflow Interrupt.
Definition: timer2x.h:1048
TIMER21_Clk_Prescaler_En
INLINE void TIMER21_Clk_Prescaler_En(void)
enables TIMER21 clock prescaler.
Definition: timer2x.h:652
TIMER2_Reload_Capture_FallingEdge_Set
INLINE void TIMER2_Reload_Capture_FallingEdge_Set(void)
sets Falling Edge to Capture/Reload Mode for TIMER2.
Definition: timer2x.h:354
TIMER2_Clk_Prescaler_En
INLINE void TIMER2_Clk_Prescaler_En(void)
enables TIMER2 clock prescaler.
Definition: timer2x.h:168
TIMER2_ExternalCtrl_Dis
INLINE void TIMER2_ExternalCtrl_Dis(void)
disables TIMER2 External Control.
Definition: timer2x.h:320
TIMER2_Overflow_Int_Dis
INLINE void TIMER2_Overflow_Int_Dis(void)
Disables TIMER2 Overflow Interrupt.
Definition: timer2x.h:589
TIMER21_Capture_Value_Get
INLINE uint16 TIMER21_Capture_Value_Get(void)
reads the TIMER21 capture value
Definition: timer2x.h:1617
TIMER2_Overflow_Int_Clr
INLINE void TIMER2_Overflow_Int_Clr(void)
Clears TIMER2 Overflow Interrupt flag.
Definition: timer2x.h:520
TIMER21_UpDownCount_En
INLINE void TIMER21_UpDownCount_En(void)
enables Up/Down Counter for TIMER21.
Definition: timer2x.h:891
TIMER21_ExtStart
INLINE void TIMER21_ExtStart(void)
prepares TIMER21 to be started externally
Definition: timer2x.h:1505
TIMER21_External_Sts
INLINE uint8 TIMER21_External_Sts(void)
reads TIMER21 External Status.
Definition: timer2x.h:760
TIMER2_Clk_Prescaler_Get
INLINE uint8 TIMER2_Clk_Prescaler_Get(void)
reads TIMER2 clock prescaler.
Definition: timer2x.h:225
TIMER2_Get_Capture
INLINE uint16 TIMER2_Get_Capture(void)
reads the TIMER2 capture value
Definition: timer2x.h:1338
TIMER2_Capture_Value_Get
INLINE uint16 TIMER2_Capture_Value_Get(void)
reads the TIMER2 capture value
Definition: timer2x.h:1362
TIMER2_Select_T2IN
INLINE void TIMER2_Select_T2IN(TTIMER2_T2IN_Pxx pinsel)
sets TIMER2 T2IN Pin
Definition: timer2x.h:1424
TIMER2_Set_Reload
INLINE void TIMER2_Set_Reload(uint16 value)
sets TIMER2 reload value
Definition: timer2x.h:1404
TIMER2_Clk_Prescaler_Dis
INLINE void TIMER2_Clk_Prescaler_Dis(void)
disables TIMER2 clock prescaler.
Definition: timer2x.h:185
TIMER2_UpDownCount_En
INLINE void TIMER2_UpDownCount_En(void)
enables Up/Down Counter for TIMER2.
Definition: timer2x.h:409
TIMER21_T2IN_P11
Definition: timer2x.h:116
TIMER2_Mode_Reload_Set
INLINE void TIMER2_Mode_Reload_Set(void)
Selects Reload Mode for TIMER2.
Definition: timer2x.h:463
TIMER2_T2IN_P25
Definition: timer2x.h:97
TIMER2_Value_Get
INLINE uint16 TIMER2_Value_Get(void)
reads the TIMER2 count value
Definition: timer2x.h:1314
TIMER2_Mode_Counter_Set
INLINE void TIMER2_Mode_Counter_Set(void)
Selects Mode Counter for TIMER2.
Definition: timer2x.h:480
TIMER2_Stop
INLINE void TIMER2_Stop(void)
stops the TIMER2 by software
Definition: timer2x.h:1232
TIMER21_Overflow_Int_Dis
INLINE void TIMER21_Overflow_Int_Dis(void)
Disables TIMER21 Overflow Interrupt.
Definition: timer2x.h:1071
TIMER2_External_Int_Clr
INLINE void TIMER2_External_Int_Clr(void)
Clears TIMER2 External Interrupt flag.
Definition: timer2x.h:543
TIMER21_Clk_Prescaler_Get
INLINE uint8 TIMER21_Clk_Prescaler_Get(void)
reads TIMER21 clock prescaler.
Definition: timer2x.h:711
TIMER2_ExtStart_FallingEdge_Set
INLINE void TIMER2_ExtStart_FallingEdge_Set(void)
sets Falling Edge to External Start for TIMER2.
Definition: timer2x.h:392
TIMER21_Reload_Value_Set
INLINE void TIMER21_Reload_Value_Set(uint16 t21)
Sets TIMER21 Reload Value.
Definition: timer2x.h:1787
uint16
unsigned short uint16
16 bit unsigned value
Definition: types.h:140
TIMER2_Mode_Timer_Set
INLINE void TIMER2_Mode_Timer_Set(void)
Selects Mode Timer for TIMER2.
Definition: timer2x.h:497
TIMER2_UpDownCount_Dis
INLINE void TIMER2_UpDownCount_Dis(void)
Disables Up/Down Counter for TIMER2.
Definition: timer2x.h:428
TIMER21_Value_Set
INLINE void TIMER21_Value_Set(uint16 t21)
Sets TIMER21 Value.
Definition: timer2x.h:1766
TIMER2_Mode_Capture_Set
INLINE void TIMER2_Mode_Capture_Set(void)
Selects Capture Mode for TIMER2.
Definition: timer2x.h:446
TIMER21_Reload_Capture_FallingEdge_Set
INLINE void TIMER21_Reload_Capture_FallingEdge_Set(void)
sets Falling Edge to Capture/Reload Mode for TIMER21.
Definition: timer2x.h:840
TIMER21_Overflow_Int_Clr
INLINE void TIMER21_Overflow_Int_Clr(void)
Clears TIMER21 Overflow Interrupt status.
Definition: timer2x.h:1002
TIMER21_Clear_Count
INLINE void TIMER21_Clear_Count(void)
clears the TIMER21 count value
Definition: timer2x.h:1638
TIMER21_External_Int_Dis
INLINE void TIMER21_External_Int_Dis(void)
Disables TIMER21 External Interrupt.
Definition: timer2x.h:1118
TIMER21_ExternalCtrl_En
INLINE void TIMER21_ExternalCtrl_En(void)
enables TIMER21 External Control.
Definition: timer2x.h:785
TIMER21_Interval_Timer_Setup
bool TIMER21_Interval_Timer_Setup(uint32 timer_interval_us)
Initializes the TIMER21 in Reload Mode.
TIMER2_Interval_Timer_Setup
bool TIMER2_Interval_Timer_Setup(uint32 timer_interval_us)
Initializes the TIMER2 in Reload Mode.
TIMER21_T2EX_P02
Definition: timer2x.h:125
TIMER2_T2EX_P12
Definition: timer2x.h:106
uint8
unsigned char uint8
8 bit unsigned value
Definition: types.h:139
TIMER21_Mode_Reload_Set
INLINE void TIMER21_Mode_Reload_Set(void)
Selects Reload Mode for TIMER21.
Definition: timer2x.h:945
TIMER21_ExternalCtrl_Dis
INLINE void TIMER21_ExternalCtrl_Dis(void)
disables TIMER21 External Control.
Definition: timer2x.h:806
TIMER21_Stop
INLINE void TIMER21_Stop(void)
stops the TIMER21 by software
Definition: timer2x.h:1486
TIMER2_ExtStart
INLINE void TIMER2_ExtStart(void)
prepares TIMER2 to be started externally
Definition: timer2x.h:1251
TIMER2_Reload_Value_Set
INLINE void TIMER2_Reload_Value_Set(uint16 t2)
Sets TIMER2 Reload Value.
Definition: timer2x.h:1746
TIMER21_Clk_Prescaler_Dis
INLINE void TIMER21_Clk_Prescaler_Dis(void)
disables TIMER21 clock prescaler.
Definition: timer2x.h:669
TIMER21_External_Int_En
INLINE void TIMER21_External_Int_En(void)
Enables TIMER21 External Interrupt.
Definition: timer2x.h:1094
TIMER2_Clear_Count
INLINE void TIMER2_Clear_Count(void)
clears the TIMER2 count value
Definition: timer2x.h:1383
TIMER2_External_Int_En
INLINE void TIMER2_External_Int_En(void)
Enables TIMER2 External Interrupt.
Definition: timer2x.h:612
TIMER2_ExternalCtrl_En
INLINE void TIMER2_ExternalCtrl_En(void)
enables TIMER2 External Control.
Definition: timer2x.h:299
TIMER2_Clk_Prescaler_Sel
INLINE void TIMER2_Clk_Prescaler_Sel(uint8 t2pre)
sets TIMER2 clock prescaler.
Definition: timer2x.h:203
TIMER2_Start
INLINE void TIMER2_Start(void)
starts the TIMER2 by software
Definition: timer2x.h:1214
TIMER2_Value_Set
INLINE void TIMER2_Value_Set(uint16 t2)
Sets TIMER2 Value.
Definition: timer2x.h:1725
TIMER2_ExtStart_RisingEdge_Set
INLINE void TIMER2_ExtStart_RisingEdge_Set(void)
sets Rising Edge to External Start for TIMER2.
Definition: timer2x.h:373
TIMER21_Overflow_Sts
INLINE uint8 TIMER21_Overflow_Sts(void)
reads TIMER21 Overflow Status.
Definition: timer2x.h:736
TIMER21_Mode_Counter_Set
INLINE void TIMER21_Mode_Counter_Set(void)
Selects Mode Counter for TIMER21.
Definition: timer2x.h:962
TIMER21_Select_T2EX
INLINE void TIMER21_Select_T2EX(TTIMER21_T2EX_Pxx pinsel)
sets TIMER21 T2EX Pin
Definition: timer2x.h:1698
TIMER21_Mode_Capture_Set
INLINE void TIMER21_Mode_Capture_Set(void)
Selects Capture Mode for TIMER21.
Definition: timer2x.h:928
TIMER2_Get_Count
INLINE uint16 TIMER2_Get_Count(void)
reads the TIMER2 count value
Definition: timer2x.h:1290
TIMER21_Select_T2IN
INLINE void TIMER21_Select_T2IN(TTIMER21_T2IN_Pxx pinsel)
sets TIMER21 T2IN Pin
Definition: timer2x.h:1679
TIMER21_Mode_Timer_Set
INLINE void TIMER21_Mode_Timer_Set(void)
Selects Mode Timer for TIMER21.
Definition: timer2x.h:979
TIMER2_Select_T2EX
INLINE void TIMER2_Select_T2EX(TTIMER2_T2EX_Pxx pinsel)
sets TIMER2 T2EX Pin
Definition: timer2x.h:1443
TIMER21_Value_Get
INLINE uint16 TIMER21_Value_Get(void)
reads the TIMER21 count value
Definition: timer2x.h:1569
TIMER21_Get_Capture
INLINE uint16 TIMER21_Get_Capture(void)
reads the TIMER21 capture value
Definition: timer2x.h:1593
TIMER2_Overflow_Int_En
INLINE void TIMER2_Overflow_Int_En(void)
Enables TIMER2 Overflow Interrupt.
Definition: timer2x.h:566
TIMER21_Start
INLINE void TIMER21_Start(void)
starts the TIMER21 by software
Definition: timer2x.h:1468
TIMER21_External_Int_Clr
INLINE void TIMER21_External_Int_Clr(void)
Clears TIMER21 External Interrupt status.
Definition: timer2x.h:1025
TIMER21_ExtStart_RisingEdge_Set
INLINE void TIMER21_ExtStart_RisingEdge_Set(void)
sets Rising Edge to External Start for TIMER21.
Definition: timer2x.h:857
TIMER21_Set_Reload
INLINE void TIMER21_Set_Reload(uint16 value)
sets TIMER21 reload value
Definition: timer2x.h:1659
TIMER21_Reload_Capture_RisingEdge_Set
INLINE void TIMER21_Reload_Capture_RisingEdge_Set(void)
sets Rising Edge to Capture/Reload Mode for TIMER21.
Definition: timer2x.h:823
TIMER2_Overflow_Sts
INLINE uint8 TIMER2_Overflow_Sts(void)
reads TIMER2 Overflow Status.
Definition: timer2x.h:250
TIMER21_ExtStart_FallingEdge_Set
INLINE void TIMER21_ExtStart_FallingEdge_Set(void)
sets Falling Edge to External Start for TIMER21.
Definition: timer2x.h:874
TIMER21_ExtStop
INLINE void TIMER21_ExtStop(void)
disable TIMER21 to be started externally
Definition: timer2x.h:1524
TIMER21_Get_Count
INLINE uint16 TIMER21_Get_Count(void)
reads the TIMER21 count value
Definition: timer2x.h:1545