![]() |
Infineon MOTIX™ MCU TLE987x Device Family SDK
|
Go to the source code of this file.
Timer3 low level access library.
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... | |
#define TIMER3_MODE0 (0u) |
Timer3 Mode Flag macro, MODE0.
#define TIMER3_MODE1 (1u) |
Timer3 Mode Flag macro, MODE1.
#define TIMER3_MODE2 (2u) |
Timer3 Mode Flag macro, MODE2.
#define TIMER3_MODE3 (3u) |
Timer3 Mode Flag macro, MODE3.
typedef enum TIMER3_Clk_Prescaler TTIMER3_Clk_Prescaler |
typedef enum TIMER3_Clk_Source TTIMER3_Clk_Source |
typedef enum TIMER3_TRIGG_IN_SEL TTIMER3_TRIGG_IN_SEL |
enum TIMER3_Clk_Prescaler |
enum TIMER3_Clk_Source |
enum TIMER3_TRIGG_IN_SEL |
void TIMER3_Clk_Prescaler_Sel | ( | TTIMER3_Clk_Prescaler | t3div | ) |
Set the Timer3 clock prescaler.
t3div | Clock prescaler |
Example
This example sets TIMER3 Clock Prescaler to Div_8.
void TIMER3_Clk_Source_Sel | ( | TTIMER3_Clk_Source | t3c | ) |
Set the Timer3 clock source.
t3c | Clock source |
Example
This example sets TIMER3 Clock Source to MI_CLK.
Reads the Timer3 Count Ready Status.
1 | Timer has finished counting |
0 | Timer hasn’t finished counting |
Example
This example reads the Timer3 Count Ready Status.
uint16 TIMER3_Get_Cnt_Value | ( | void | ) |
Get the Timer3 counter value.
Example
This example reads the TIMER3 Counter Value.
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).
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).
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).
Reads the Timer3 Overflow Flag (High Byte Timer).
1 | No Overflow is occurred. |
0 | Overflow is occurred. |
Example
This example treats the Timer 3 Overflow Interrupt (High Byte Timer).
void TIMER3_Init | ( | void | ) |
Initializes the Timer3 module based on the Config Wizard for MOTIX MCU configuration.
checks Timer3 count ready (Mode 1b, 3b)
TRUE | Timer has finished counting |
FALSE | Timer hasn’t finished counting |
Example
This example reads the Timer3 Count Ready Status.
checks Timer3 High Byte overflow status
TRUE | overflow status set |
FALSE | overflow status not set |
Example
This example treats the Timer 3 Overflow Interrupt (High Byte Timer).
checks Timer3 Low Byte overflow status
TRUE | overflow status set |
FALSE | overflow status not set |
Example
This example treats the Timer 3 Overflow Interrupt (Low Byte Timer).
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).
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).
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).
Reads the Timer3 Overflow Flag (Low Byte Timer).
1 | No Overflow is occurred. |
0 | Overflow is occurred. |
Example
This example treats the Timer 3 Overflow Interrupt (Low Byte Timer).
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.
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.
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.
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.
INLINE void TIMER3_Mode3b_Trigger_Select | ( | TTIMER3_TRIGG_IN_SEL | insel | ) |
sets TIMER3 Trigger Input Selection
insel | Trigger select, TTIMER3_TRIGG_IN_SEL |
Example
This example sets Capture Compare Unit Channel 0 (CC60) as TIMER3 Trigger Input Selection.
INLINE void TIMER3_Power_Off | ( | void | ) |
Disables the Timer3 module.
Example
This example disables the Timer3 module.
INLINE void TIMER3_Power_On | ( | void | ) |
Enables the Timer3 module.
Example
This example enables the Timer3 module.
INLINE void TIMER3_ReadRequest_Dis | ( | void | ) |
disables reading from Timer3.
Example
This example disables reading from Timer3.
INLINE void TIMER3_ReadRequest_En | ( | void | ) |
enables reading from Timer3.
Example
This example enables reading from Timer3.
INLINE void TIMER3_ReadRequest_Hw_Set | ( | void | ) |
enables triggering Timer3 Read Request by Hardware.
Example
This example enables triggering TIMER3 Read Request by Hardware.
INLINE void TIMER3_ReadRequest_Sw_Set | ( | void | ) |
enables triggering Timer3 Read Request by Software.
Example
This example enables reading from TIMER3.
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.
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 TIMER3_Set_Cmp_Value | ( | uint16 | Cmp_Value | ) |
Set the Timer3 compare value.
Cmp_Value | 16bit compare value |
Example
This example sets TIMER3 Compare Value to 5000.
void TIMER3_Set_Cnt_Value | ( | uint16 | Cnt_Value | ) |
Set the Timer3 counter value.
Cnt_Value | 16bit count value |
Example
This example sets TIMER3 Counter Value to 5000.
void TIMER3_Start | ( | void | ) |
Starts the Timer3 module.
Example
This example starts Timer 3.
void TIMER3_Stop | ( | void | ) |
Stops the Timer3 module.
Example
This example stops Timer 3.
INLINE void TIMER3_T3H_Start | ( | void | ) |
starts running Timer3 (High Byte Timer)
Example
This example treats the Timer 3 Overflow Interrupt (High Byte Timer).
INLINE void TIMER3_T3H_Stop | ( | void | ) |
stops running Timer3 (High Byte Timer)
Example
This example stops running Timer3 (High Byte Timer).
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).
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).
INLINE void TIMER3_T3L_Start | ( | void | ) |
starts running Timer3 (Low Byte Timer)
1 | if No Overflow is occurred. |
0 | if Overflow is occurred. |
Example
This example treats the Timer 3 Overflow Interrupt (Low Byte Timer).
INLINE void TIMER3_T3L_Stop | ( | void | ) |
stops running Timer3 (Low Byte Timer)
Example
This example stops running Timer3 (Low Byte Timer).
uint16 TIMER3_Value_Get | ( | void | ) |
Get the Timer3 counter value.
Example
This example reads the TIMER3 Counter Value.
Sets TIMER3 Value.
t3 | TIMER3 Value |
Example
This example sets TIMER3 Value to 5000.