EFM32 Gecko Software Documentation  efm32g-doc-4.2.1
TIMER_Init_TypeDef Struct Reference

#include <em_timer.h>

Data Fields

bool enable
 
bool debugRun
 
TIMER_Prescale_TypeDef prescale
 
TIMER_ClkSel_TypeDef clkSel
 
TIMER_InputAction_TypeDef fallAction
 
TIMER_InputAction_TypeDef riseAction
 
TIMER_Mode_TypeDef mode
 
bool dmaClrAct
 
bool quadModeX4
 
bool oneShot
 
bool sync
 

Detailed Description

TIMER initialization structure.

Definition at line 270 of file em_timer.h.

Field Documentation

bool TIMER_Init_TypeDef::enable

Start counting when init completed.

Definition at line 273 of file em_timer.h.

Referenced by TIMER_Init().

bool TIMER_Init_TypeDef::debugRun

Counter shall keep running during debug halt.

Definition at line 276 of file em_timer.h.

Referenced by TIMER_Init().

TIMER_Prescale_TypeDef TIMER_Init_TypeDef::prescale

Prescaling factor, if HFPER clock used.

Definition at line 279 of file em_timer.h.

Referenced by TIMER_Init(), and USTIMER_Init().

TIMER_ClkSel_TypeDef TIMER_Init_TypeDef::clkSel

Clock selection.

Definition at line 282 of file em_timer.h.

Referenced by TIMER_Init().

TIMER_InputAction_TypeDef TIMER_Init_TypeDef::fallAction

Action on falling input edge.

Definition at line 294 of file em_timer.h.

Referenced by TIMER_Init().

TIMER_InputAction_TypeDef TIMER_Init_TypeDef::riseAction

Action on rising input edge.

Definition at line 297 of file em_timer.h.

Referenced by TIMER_Init().

TIMER_Mode_TypeDef TIMER_Init_TypeDef::mode

Counting mode.

Definition at line 300 of file em_timer.h.

Referenced by TIMER_Init().

bool TIMER_Init_TypeDef::dmaClrAct

DMA request clear on active.

Definition at line 303 of file em_timer.h.

Referenced by TIMER_Init().

bool TIMER_Init_TypeDef::quadModeX4

Select X2 or X4 quadrature decode mode (if used).

Definition at line 306 of file em_timer.h.

Referenced by TIMER_Init().

bool TIMER_Init_TypeDef::oneShot

Determines if only counting up or down once.

Definition at line 309 of file em_timer.h.

Referenced by TIMER_Init().

bool TIMER_Init_TypeDef::sync

Timer start/stop/reload by other timers.

Definition at line 312 of file em_timer.h.

Referenced by TIMER_Init().


The documentation for this struct was generated from the following file: