Infineon MOTIX™ MCU TLE987x Device Family SDK
Macros | Typedefs | Enumerations | Functions
timer3.h File Reference

Go to the source code of this file.

Detailed Description

Timer3 low level access library.

Version
V0.2.0
Date
18. Oct 2022

Include Graph

Include dependency graph for timer3.h:

Macros

#define TIMER3_MODE0   (0u)
 Timer3 Mode Flag macro, MODE0. More...
 
#define TIMER3_MODE1   (1u)
 Timer3 Mode Flag macro, MODE1. More...
 
#define TIMER3_MODE2   (2u)
 Timer3 Mode Flag macro, MODE2. More...
 
#define TIMER3_MODE3   (3u)
 Timer3 Mode Flag macro, MODE3. More...
 

Typedefs

typedef enum TIMER3_TRIGG_IN_SEL TTIMER3_TRIGG_IN_SEL
 
typedef enum TIMER3_Clk_Source TTIMER3_Clk_Source
 
typedef enum TIMER3_Clk_Prescaler TTIMER3_Clk_Prescaler
 

Enumerations

enum  TIMER3_TRIGG_IN_SEL {
  TIMER3_CCU6_CC60 = 0u , TIMER3_CCU6_CC61 = 1u , TIMER3_CCU6_CC62 = 2u , TIMER3_CCU6_ZM = 3u ,
  TIMER3_CCU6_PM = 4u , TIMER3_CCU6_COUT60 = 5u , TIMER3_CCU6_COUT61 = 6u , TIMER3_CCU6_COUT62 = 7u
}
 
enum  TIMER3_Clk_Source { TIMER3_LP_CLK = 0u , TIMER3_MI_CLK = 1u }
 
enum  TIMER3_Clk_Prescaler { TIMER3_Div_1 = 0u , TIMER3_Div_2 = 1u , TIMER3_Div_4 = 2u , TIMER3_Div_8 = 3u }
 

Functions

INLINE void TIMER3_Power_On (void)
 Enables the Timer3 module. More...
 
INLINE void TIMER3_Power_Off (void)
 Disables the Timer3 module. More...
 
INLINE void TIMER3_ReadRequest_En (void)
 enables reading from Timer3. More...
 
INLINE void TIMER3_ReadRequest_Dis (void)
 disables reading from Timer3. More...
 
INLINE void TIMER3_ReadRequest_Hw_Set (void)
 enables triggering Timer3 Read Request by Hardware. More...
 
INLINE void TIMER3_ReadRequest_Sw_Set (void)
 enables triggering Timer3 Read Request by Software. More...
 
INLINE uint8 TIMER3_CountReady_Sts (void)
 Reads the Timer3 Count Ready Status. More...
 
INLINE uint8 TIMER3_HighByte_Ovf_Sts (void)
 Reads the Timer3 Overflow Flag (High Byte Timer). More...
 
INLINE uint8 TIMER3_LowByte_Ovf_Sts (void)
 Reads the Timer3 Overflow Flag (Low Byte Timer). More...
 
INLINE void TIMER3_T3H_Start (void)
 starts running Timer3 (High Byte Timer) More...
 
INLINE void TIMER3_T3H_Stop (void)
 stops running Timer3 (High Byte Timer) More...
 
INLINE void TIMER3_T3L_Start (void)
 starts running Timer3 (Low Byte Timer) More...
 
INLINE void TIMER3_T3L_Stop (void)
 stops running Timer3 (Low Byte Timer) More...
 
INLINE void TIMER3_T3HL_Start (void)
 starts running Timer3 (High and Low Byte Timer) More...
 
INLINE void TIMER3_T3HL_Stop (void)
 stops running Timer3 (High and Low Byte Timer) More...
 
INLINE void TIMER3_Retrigger_En (void)
 enables re-trigging for CCU6-T12 ZM and CCU6-T12 PM. More...
 
INLINE void TIMER3_Retrigger_Dis (void)
 disables re-trigging for CCU6-T12 ZM and CCU6-T12 PM. More...
 
INLINE void TIMER3_Mode1b_Reset_On_Rising_Edge_En (void)
 enables Timer 3 Trigger Reset On Rising Edge for Mode 1b. More...
 
INLINE void TIMER3_Mode1b_Reset_On_Rising_Edge_Dis (void)
 disables Timer 3 Trigger Reset On Rising Edge for Mode 1b. More...
 
INLINE void TIMER3_Mode1b_Reset_On_Falling_Edge_En (void)
 enables Timer 3 Trigger Reset On Falling Edge for Mode 1b. More...
 
INLINE void TIMER3_Mode1b_Reset_On_Falling_Edge_Dis (void)
 disables Timer 3 Trigger Reset On Falling Edge for Mode 1b. More...
 
INLINE void TIMER3_Value_Set (uint32 t3)
 Sets TIMER3 Value. More...
 
INLINE void TIMER3_HB_OF_Int_En (void)
 enables Timer 3 Overflow Interrupt (High Byte Timer). More...
 
INLINE void TIMER3_HB_OF_Int_Dis (void)
 disables Timer 3 Overflow Interrupt (High Byte Timer). More...
 
INLINE void TIMER3_LB_OF_Int_En (void)
 enables Timer 3 Overflow Interrupt (Low Byte Timer). More...
 
INLINE void TIMER3_LB_OF_Int_Dis (void)
 disables Timer 3 Overflow Interrupt (Low Byte Timer). More...
 
INLINE void TIMER3_HB_OF_Int_Clr (void)
 clears Timer 3 Overflow Interrupt flag (High Byte Timer). More...
 
INLINE void TIMER3_LB_OF_Int_Clr (void)
 clears Timer 3 Overflow Interrupt flag (Low Byte Timer). More...
 
void TIMER3_Init (void)
 Initializes the Timer3 module based on the Config Wizard for MOTIX MCU configuration. More...
 
void TIMER3_Start (void)
 Starts the Timer3 module. More...
 
void TIMER3_Stop (void)
 Stops the Timer3 module. More...
 
void TIMER3_Set_Cnt_Value (uint16 Cnt_Value)
 Set the Timer3 counter value. More...
 
void TIMER3_Set_Cmp_Value (uint16 Cmp_Value)
 Set the Timer3 compare value. More...
 
uint16 TIMER3_Get_Cnt_Value (void)
 Get the Timer3 counter value. More...
 
uint16 TIMER3_Value_Get (void)
 Get the Timer3 counter value. More...
 
void TIMER3_Clk_Source_Sel (TTIMER3_Clk_Source t3c)
 Set the Timer3 clock source. More...
 
void TIMER3_Clk_Prescaler_Sel (TTIMER3_Clk_Prescaler t3div)
 Set the Timer3 clock prescaler. More...
 
INLINE void TIMER3_Mode3b_Trigger_Select (TTIMER3_TRIGG_IN_SEL insel)
 sets TIMER3 Trigger Input Selection More...
 
INLINE bool TIMER3_isCountReady (void)
 checks Timer3 count ready (Mode 1b, 3b) More...
 
INLINE bool TIMER3_isHighByteOverflow (void)
 checks Timer3 High Byte overflow status More...
 
INLINE bool TIMER3_isLowByteOverflow (void)
 checks Timer3 Low Byte overflow status More...
 

Macro Definition Documentation

◆ TIMER3_MODE0

#define TIMER3_MODE0   (0u)

Timer3 Mode Flag macro, MODE0.

◆ TIMER3_MODE1

#define TIMER3_MODE1   (1u)

Timer3 Mode Flag macro, MODE1.

◆ TIMER3_MODE2

#define TIMER3_MODE2   (2u)

Timer3 Mode Flag macro, MODE2.

◆ TIMER3_MODE3

#define TIMER3_MODE3   (3u)

Timer3 Mode Flag macro, MODE3.

Typedef Documentation

◆ TTIMER3_Clk_Prescaler

◆ TTIMER3_Clk_Source

◆ TTIMER3_TRIGG_IN_SEL

Enumeration Type Documentation

◆ TIMER3_Clk_Prescaler

Enumerator
TIMER3_Div_1 

Timer3 Input Clock Select: fsys

TIMER3_Div_2 

Timer3 Input Clock Select: fsys/2

TIMER3_Div_4 

Timer3 Input Clock Select: fsys/4

TIMER3_Div_8 

Timer3 Input Clock Select: fsys/8

◆ TIMER3_Clk_Source

Enumerator
TIMER3_LP_CLK 

Timer3 Clock Source Select: LP_CLK

TIMER3_MI_CLK 

Timer3 Clock Source Select: MI_CLK

◆ TIMER3_TRIGG_IN_SEL

Enumerator
TIMER3_CCU6_CC60 

Timer3 Trigger Input Event Select: CCU6-CC60

TIMER3_CCU6_CC61 

Timer3 Trigger Input Event Select: CCU6-CC61

TIMER3_CCU6_CC62 

Timer3 Trigger Input Event Select: CCU6-CC62

TIMER3_CCU6_ZM 

Timer3 Trigger Input Event Select: CCU6-T12 ZM

TIMER3_CCU6_PM 

Timer3 Trigger Input Event Select: CCU6-T12 ZM

TIMER3_CCU6_COUT60 

Timer3 Trigger Input Event Select: CCU6-COUT60

TIMER3_CCU6_COUT61 

Timer3 Trigger Input Event Select: CCU6-COUT61

TIMER3_CCU6_COUT62 

Timer3 Trigger Input Event Select: CCU6-COUT62

Function Documentation

◆ TIMER3_Clk_Prescaler_Sel()

void TIMER3_Clk_Prescaler_Sel ( TTIMER3_Clk_Prescaler  t3div)

Set the Timer3 clock prescaler.

Parameters
t3divClock prescaler

Example

This example sets TIMER3 Clock Prescaler to Div_8.

void Example_Function(void)
{
}
void TIMER3_Clk_Prescaler_Sel(TTIMER3_Clk_Prescaler t3div)
Set the Timer3 clock prescaler.
@ TIMER3_Div_8
Definition: timer3.h:133

◆ TIMER3_Clk_Source_Sel()

void TIMER3_Clk_Source_Sel ( TTIMER3_Clk_Source  t3c)

Set the Timer3 clock source.

Parameters
t3cClock source

Example

This example sets TIMER3 Clock Source to MI_CLK.

void Example_Function(void)
{
}
void TIMER3_Set_Cmp_Value(uint16 Cmp_Value)
Set the Timer3 compare value.
@ TIMER3_MI_CLK
Definition: timer3.h:122

◆ TIMER3_CountReady_Sts()

INLINE uint8 TIMER3_CountReady_Sts ( void  )

Reads the Timer3 Count Ready Status.

Return values
1Timer has finished counting
0Timer hasn’t finished counting

Example

This example reads the Timer3 Count Ready Status.

void Example_Function(void)
{
uint8 sts;
}
INLINE uint8 TIMER3_CountReady_Sts(void)
Reads the Timer3 Count Ready Status.
Definition: timer3.h:265
INLINE void TIMER3_Power_On(void)
Enables the Timer3 module.
Definition: timer3.h:151
uint8_t uint8
8 bit unsigned value
Definition: types.h:153

◆ TIMER3_Get_Cnt_Value()

uint16 TIMER3_Get_Cnt_Value ( void  )

Get the Timer3 counter value.

Returns
16bit count value

Example

This example reads the TIMER3 Counter Value.

void Example_Function(void)
{
uint16 val;
}
uint16 TIMER3_Get_Cnt_Value(void)
Get the Timer3 counter value.
uint16_t uint16
16 bit unsigned value
Definition: types.h:154

◆ TIMER3_HB_OF_Int_Clr()

INLINE void TIMER3_HB_OF_Int_Clr ( void  )

clears Timer 3 Overflow Interrupt flag (High Byte Timer).

Example

This example treats the Timer 3 Overflow Interrupt (High Byte Timer).

void Example_Function(void)
{
{
TIMER3_HBOF_CALLBACK();
}
}
INLINE void TIMER3_HB_OF_Int_Clr(void)
clears Timer 3 Overflow Interrupt flag (High Byte Timer).
Definition: timer3.h:691
INLINE uint8 TIMER3_HighByte_Ovf_Sts(void)
Reads the Timer3 Overflow Flag (High Byte Timer).
Definition: timer3.h:292
INLINE void TIMER3_HB_OF_Int_En(void)
enables Timer 3 Overflow Interrupt (High Byte Timer).
Definition: timer3.h:593
INLINE void TIMER3_T3H_Start(void)
starts running Timer3 (High Byte Timer)
Definition: timer3.h:343

◆ TIMER3_HB_OF_Int_Dis()

INLINE void TIMER3_HB_OF_Int_Dis ( void  )

disables Timer 3 Overflow Interrupt (High Byte Timer).

Example

This example treats the Timer 3 Overflow Interrupt (High Byte Timer).

void Example_Function(void)
{
{
TIMER3_HBOF_CALLBACK();
}
}
INLINE void TIMER3_HB_OF_Int_Dis(void)
disables Timer 3 Overflow Interrupt (High Byte Timer).
Definition: timer3.h:618

◆ TIMER3_HB_OF_Int_En()

INLINE void TIMER3_HB_OF_Int_En ( void  )

enables Timer 3 Overflow Interrupt (High Byte Timer).

Example

This example treats the Timer 3 Overflow Interrupt (High Byte Timer).

void Example_Function(void)
{
{
TIMER3_HBOF_CALLBACK();
}
}

◆ TIMER3_HighByte_Ovf_Sts()

INLINE uint8 TIMER3_HighByte_Ovf_Sts ( void  )

Reads the Timer3 Overflow Flag (High Byte Timer).

Return values
1No Overflow is occurred.
0Overflow is occurred.

Example

This example treats the Timer 3 Overflow Interrupt (High Byte Timer).

void Example_Function(void)
{
{
TIMER3_HBOF_CALLBACK();
}
}

◆ TIMER3_Init()

void TIMER3_Init ( void  )

Initializes the Timer3 module based on the Config Wizard for MOTIX MCU configuration.

◆ TIMER3_isCountReady()

INLINE bool TIMER3_isCountReady ( void  )

checks Timer3 count ready (Mode 1b, 3b)

Return values
TRUETimer has finished counting
FALSETimer hasn’t finished counting

Example

This example reads the Timer3 Count Ready Status.

void Example_Function(void)
{
{
}
}
INLINE bool TIMER3_isCountReady(void)
checks Timer3 count ready (Mode 1b, 3b)
Definition: timer3.h:908

◆ TIMER3_isHighByteOverflow()

INLINE bool TIMER3_isHighByteOverflow ( void  )

checks Timer3 High Byte overflow status

Return values
TRUEoverflow status set
FALSEoverflow status not set

Example

This example treats the Timer 3 Overflow Interrupt (High Byte Timer).

void Example_Function(void)
{
{
TIMER3_HBOF_CALLBACK();
}
}
INLINE bool TIMER3_isHighByteOverflow(void)
checks Timer3 High Byte overflow status
Definition: timer3.h:942

◆ TIMER3_isLowByteOverflow()

INLINE bool TIMER3_isLowByteOverflow ( void  )

checks Timer3 Low Byte overflow status

Return values
TRUEoverflow status set
FALSEoverflow status not set

Example

This example treats the Timer 3 Overflow Interrupt (Low Byte Timer).

void Example_Function(void)
{
if (TIMER3_isLowByteOverflow() == TRUE)
{
TIMER3_LBOF_CALLBACK();
}
}
INLINE void TIMER3_LB_OF_Int_En(void)
enables Timer 3 Overflow Interrupt (Low Byte Timer).
Definition: timer3.h:642
INLINE void TIMER3_T3L_Start(void)
starts running Timer3 (Low Byte Timer)
Definition: timer3.h:388
INLINE bool TIMER3_isLowByteOverflow(void)
checks Timer3 Low Byte overflow status
Definition: timer3.h:976
INLINE void TIMER3_LB_OF_Int_Clr(void)
clears Timer 3 Overflow Interrupt flag (Low Byte Timer).
Definition: timer3.h:715

◆ TIMER3_LB_OF_Int_Clr()

INLINE void TIMER3_LB_OF_Int_Clr ( void  )

clears Timer 3 Overflow Interrupt flag (Low Byte Timer).

Example

This example treats the Timer 3 Overflow Interrupt (Low Byte Timer).

void Example_Function(void)
{
{
TIMER3_LBOF_CALLBACK();
}
}
INLINE uint8 TIMER3_LowByte_Ovf_Sts(void)
Reads the Timer3 Overflow Flag (Low Byte Timer).
Definition: timer3.h:319

◆ TIMER3_LB_OF_Int_Dis()

INLINE void TIMER3_LB_OF_Int_Dis ( void  )

disables Timer 3 Overflow Interrupt (Low Byte Timer).

Example

This example treats the Timer 3 Overflow Interrupt (Low Byte Timer).

void Example_Function(void)
{
{
TIMER3_LBOF_CALLBACK();
}
}
INLINE void TIMER3_LB_OF_Int_Dis(void)
disables Timer 3 Overflow Interrupt (Low Byte Timer).
Definition: timer3.h:667

◆ TIMER3_LB_OF_Int_En()

INLINE void TIMER3_LB_OF_Int_En ( void  )

enables Timer 3 Overflow Interrupt (Low Byte Timer).

Example

This example treats the Timer 3 Overflow Interrupt (Low Byte Timer).

void Example_Function(void)
{
{
TIMER3_LBOF_CALLBACK();
}
}

◆ TIMER3_LowByte_Ovf_Sts()

INLINE uint8 TIMER3_LowByte_Ovf_Sts ( void  )

Reads the Timer3 Overflow Flag (Low Byte Timer).

Return values
1No Overflow is occurred.
0Overflow is occurred.

Example

This example treats the Timer 3 Overflow Interrupt (Low Byte Timer).

void Example_Function(void)
{
{
TIMER3_LBOF_CALLBACK();
}
}

◆ TIMER3_Mode1b_Reset_On_Falling_Edge_Dis()

INLINE void TIMER3_Mode1b_Reset_On_Falling_Edge_Dis ( void  )

disables Timer 3 Trigger Reset On Falling Edge for Mode 1b.

Example

This example disables Timer 3 Trigger Reset On Falling Edge for Mode 1b.

void Example_Function(void)
{
}
INLINE void TIMER3_Mode1b_Reset_On_Falling_Edge_Dis(void)
disables Timer 3 Trigger Reset On Falling Edge for Mode 1b.
Definition: timer3.h:550

◆ TIMER3_Mode1b_Reset_On_Falling_Edge_En()

INLINE void TIMER3_Mode1b_Reset_On_Falling_Edge_En ( void  )

enables Timer 3 Trigger Reset On Falling Edge for Mode 1b.

Example

This example enables Timer 3 Trigger Reset On Falling Edge for Mode 1b.

void Example_Function(void)
{
}
INLINE void TIMER3_Mode1b_Reset_On_Falling_Edge_En(void)
enables Timer 3 Trigger Reset On Falling Edge for Mode 1b.
Definition: timer3.h:532

◆ TIMER3_Mode1b_Reset_On_Rising_Edge_Dis()

INLINE void TIMER3_Mode1b_Reset_On_Rising_Edge_Dis ( void  )

disables Timer 3 Trigger Reset On Rising Edge for Mode 1b.

Example

This example disables Timer 3 Trigger Reset On Rising Edge for Mode 1b.

void Example_Function(void)
{
}
INLINE void TIMER3_Mode1b_Reset_On_Rising_Edge_Dis(void)
disables Timer 3 Trigger Reset On Rising Edge for Mode 1b.
Definition: timer3.h:514

◆ TIMER3_Mode1b_Reset_On_Rising_Edge_En()

INLINE void TIMER3_Mode1b_Reset_On_Rising_Edge_En ( void  )

enables Timer 3 Trigger Reset On Rising Edge for Mode 1b.

Example

This example enables Timer 3 Trigger Reset On Rising Edge for Mode 1b.

void Example_Function(void)
{
}
INLINE void TIMER3_Mode1b_Reset_On_Rising_Edge_En(void)
enables Timer 3 Trigger Reset On Rising Edge for Mode 1b.
Definition: timer3.h:496

◆ TIMER3_Mode3b_Trigger_Select()

INLINE void TIMER3_Mode3b_Trigger_Select ( TTIMER3_TRIGG_IN_SEL  insel)

sets TIMER3 Trigger Input Selection

Parameters
inselTrigger select, TTIMER3_TRIGG_IN_SEL

Example

This example sets Capture Compare Unit Channel 0 (CC60) as TIMER3 Trigger Input Selection.

void Example_Function(void)
{
}
@ TIMER3_CCU6_CC60
Definition: timer3.h:106
INLINE void TIMER3_Mode3b_Trigger_Select(TTIMER3_TRIGG_IN_SEL insel)
sets TIMER3 Trigger Input Selection
Definition: timer3.h:885

◆ TIMER3_Power_Off()

INLINE void TIMER3_Power_Off ( void  )

Disables the Timer3 module.

Example

This example disables the Timer3 module.

void Example_Function(void)
{
}
INLINE void TIMER3_Power_Off(void)
Disables the Timer3 module.
Definition: timer3.h:168

◆ TIMER3_Power_On()

INLINE void TIMER3_Power_On ( void  )

Enables the Timer3 module.

Example

This example enables the Timer3 module.

void Example_Function(void)
{
}

◆ TIMER3_ReadRequest_Dis()

INLINE void TIMER3_ReadRequest_Dis ( void  )

disables reading from Timer3.

Example

This example disables reading from Timer3.

void Example_Function(void)
{
}
INLINE void TIMER3_ReadRequest_Dis(void)
disables reading from Timer3.
Definition: timer3.h:205

◆ TIMER3_ReadRequest_En()

INLINE void TIMER3_ReadRequest_En ( void  )

enables reading from Timer3.

Example

This example enables reading from Timer3.

void Example_Function(void)
{
}
INLINE void TIMER3_ReadRequest_Sw_Set(void)
enables triggering Timer3 Read Request by Software.
Definition: timer3.h:242
INLINE void TIMER3_ReadRequest_En(void)
enables reading from Timer3.
Definition: timer3.h:187

◆ TIMER3_ReadRequest_Hw_Set()

INLINE void TIMER3_ReadRequest_Hw_Set ( void  )

enables triggering Timer3 Read Request by Hardware.

Example

This example enables triggering TIMER3 Read Request by Hardware.

void Example_Function(void)
{
}
INLINE void TIMER3_ReadRequest_Hw_Set(void)
enables triggering Timer3 Read Request by Hardware.
Definition: timer3.h:223

◆ TIMER3_ReadRequest_Sw_Set()

INLINE void TIMER3_ReadRequest_Sw_Set ( void  )

enables triggering Timer3 Read Request by Software.

Example

This example enables reading from TIMER3.

void Example_Function(void)
{
}

◆ TIMER3_Retrigger_Dis()

INLINE void TIMER3_Retrigger_Dis ( void  )

disables re-trigging for CCU6-T12 ZM and CCU6-T12 PM.

Example

This example disables re-trigging for CCU6-T12 ZM and CCU6-T12 PM.

void Example_Function(void)
{
}
INLINE void TIMER3_Retrigger_Dis(void)
disables re-trigging for CCU6-T12 ZM and CCU6-T12 PM.
Definition: timer3.h:478

◆ TIMER3_Retrigger_En()

INLINE void TIMER3_Retrigger_En ( void  )

enables re-trigging for CCU6-T12 ZM and CCU6-T12 PM.

Example

This example enables re-trigging for CCU6-T12 ZM and CCU6-T12 PM.

void Example_Function(void)
{
}
INLINE void TIMER3_Retrigger_En(void)
enables re-trigging for CCU6-T12 ZM and CCU6-T12 PM.
Definition: timer3.h:460

◆ TIMER3_Set_Cmp_Value()

void TIMER3_Set_Cmp_Value ( uint16  Cmp_Value)

Set the Timer3 compare value.

Parameters
Cmp_Value16bit compare value

Example

This example sets TIMER3 Compare Value to 5000.

void Example_Function(void)
{
}

◆ TIMER3_Set_Cnt_Value()

void TIMER3_Set_Cnt_Value ( uint16  Cnt_Value)

Set the Timer3 counter value.

Parameters
Cnt_Value16bit count value

Example

This example sets TIMER3 Counter Value to 5000.

void Example_Function(void)
{
}
void TIMER3_Set_Cnt_Value(uint16 Cnt_Value)
Set the Timer3 counter value.

◆ TIMER3_Start()

void TIMER3_Start ( void  )

Starts the Timer3 module.

Example

This example starts Timer 3.

void Example_Function(void)
{
}
void TIMER3_Start(void)
Starts the Timer3 module.

◆ TIMER3_Stop()

void TIMER3_Stop ( void  )

Stops the Timer3 module.

Example

This example stops Timer 3.

void Example_Function(void)
{
}
void TIMER3_Stop(void)
Stops the Timer3 module.

◆ TIMER3_T3H_Start()

INLINE void TIMER3_T3H_Start ( void  )

starts running Timer3 (High Byte Timer)

Example

This example treats the Timer 3 Overflow Interrupt (High Byte Timer).

void Example_Function(void)
{
{
TIMER3_HBOF_CALLBACK();
}
}

◆ TIMER3_T3H_Stop()

INLINE void TIMER3_T3H_Stop ( void  )

stops running Timer3 (High Byte Timer)

Example

This example stops running Timer3 (High Byte Timer).

void Example_Function(void)
{
}
INLINE void TIMER3_T3H_Stop(void)
stops running Timer3 (High Byte Timer)
Definition: timer3.h:361

◆ TIMER3_T3HL_Start()

INLINE void TIMER3_T3HL_Start ( void  )

starts running Timer3 (High and Low Byte Timer)

Example

This example starts running Timer3 (High and Low Byte Timer).

void Example_Function(void)
{
}
INLINE void TIMER3_T3HL_Start(void)
starts running Timer3 (High and Low Byte Timer)
Definition: timer3.h:424

◆ TIMER3_T3HL_Stop()

INLINE void TIMER3_T3HL_Stop ( void  )

stops running Timer3 (High and Low Byte Timer)

Example

This example stops running Timer3 (High and Low Byte Timer).

void Example_Function(void)
{
}
INLINE void TIMER3_T3HL_Stop(void)
stops running Timer3 (High and Low Byte Timer)
Definition: timer3.h:442

◆ TIMER3_T3L_Start()

INLINE void TIMER3_T3L_Start ( void  )

starts running Timer3 (Low Byte Timer)

Return values
1if No Overflow is occurred.
0if Overflow is occurred.

Example

This example treats the Timer 3 Overflow Interrupt (Low Byte Timer).

void Example_Function(void)
{
{
TIMER3_LBOF_CALLBACK();
}
}

◆ TIMER3_T3L_Stop()

INLINE void TIMER3_T3L_Stop ( void  )

stops running Timer3 (Low Byte Timer)

Example

This example stops running Timer3 (Low Byte Timer).

void Example_Function(void)
{
}
INLINE void TIMER3_T3L_Stop(void)
stops running Timer3 (Low Byte Timer)
Definition: timer3.h:406

◆ TIMER3_Value_Get()

uint16 TIMER3_Value_Get ( void  )

Get the Timer3 counter value.

Returns
16bit count value

Example

This example reads the TIMER3 Counter Value.

void Example_Function(void)
{
uint16 val;
}
uint16 TIMER3_Value_Get(void)
Get the Timer3 counter value.

◆ TIMER3_Value_Set()

INLINE void TIMER3_Value_Set ( uint32  t3)

Sets TIMER3 Value.

Parameters
t3TIMER3 Value

Example

This example sets TIMER3 Value to 5000.

void Example_Function(void)
{
}
INLINE void TIMER3_Value_Set(uint32 t3)
Sets TIMER3 Value.
Definition: timer3.h:569