TIMER_Init_TypeDef Struct ReferenceEMLIB > TIMER

TIMER initialization structure.

Definition at line 271 of file em_timer.h.

#include <em_timer.h>

Data Fields

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

Field Documentation

bool TIMER_Init_TypeDef::ati

ATI (Always Track Inputs) makes CCPOL always track the polarity of the inputs.

Definition at line 290 of file em_timer.h.

Referenced by TIMER_Init().

TIMER_ClkSel_TypeDef TIMER_Init_TypeDef::clkSel

Clock selection.

Definition at line 282 of file em_timer.h.

Referenced by TIMER_Init().

bool TIMER_Init_TypeDef::count2x

2x Count mode, counter increments/decrements by 2, meant for PWM mode.

Definition at line 286 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 BOARD_init(), and 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::enable

Start counting when initialization completed.

Definition at line 273 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_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::oneShot

Determines if only counting up or down once.

Definition at line 309 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 BOARD_init(), TIMER_Init(), and USTIMER_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().

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().

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:
  • C:/repos/embsw_super_h1/platform/emlib/inc/em_timer.h