PCNT_Filter_TypeDef Struct Reference

Filter initialization structure.

#include <em_pcnt.h>

Data Fields

uint8_t filtLen
 Used only in OVSINGLE and OVSQUAD1X-4X modes.
 
bool flutterrm
 When set, removes flutter from Quaddecoder inputs S0IN and S1IN.
 

Filter initialization structure.

Field Documentation

◆ filtLen

uint8_t PCNT_Filter_TypeDef::filtLen

Used only in OVSINGLE and OVSQUAD1X-4X modes.

To use this, enable filter by setting filter to true during PCNT_Init(). Filter length = (filtLen + 5) LFACLK cycles.

◆ flutterrm

bool PCNT_Filter_TypeDef::flutterrm

When set, removes flutter from Quaddecoder inputs S0IN and S1IN.

Available only in OVSQUAD1X-4X modes.