NetBurner 3.5.7
PDF Version
_enc_config Struct Reference

Define user configuration structure for ENC module. More...

#include <fsl_enc.h>

Public Attributes

bool enableReverseDirection
 
enc_decoder_work_mode_t decoderWorkMode
 
enc_home_trigger_mode_t HOMETriggerMode
 
enc_index_trigger_mode_t INDEXTriggerMode
 
bool enableTRIGGERClearPositionCounter
 
bool enableTRIGGERClearHoldPositionCounter
 
bool enableWatchdog
 
uint16_t watchdogTimeoutValue
 
uint16_t filterCount
 
uint16_t filterSamplePeriod
 
enc_position_match_mode_t positionMatchMode
 
uint32_t positionCompareValue
 
enc_revolution_count_condition_t revolutionCountCondition
 
bool enableModuloCountMode
 
uint32_t positionModulusValue
 
uint32_t positionInitialValue
 

Detailed Description

Define user configuration structure for ENC module.

Member Data Documentation

◆ decoderWorkMode

enc_decoder_work_mode_t _enc_config::decoderWorkMode

Enable signal phase count mode.

◆ enableModuloCountMode

bool _enc_config::enableModuloCountMode

Enable Modulo Counting.

◆ enableReverseDirection

bool _enc_config::enableReverseDirection

Enable reverse direction counting.

◆ enableTRIGGERClearHoldPositionCounter

bool _enc_config::enableTRIGGERClearHoldPositionCounter

Enable update of hold registers on rising edge of TRIGGER, or not.

◆ enableTRIGGERClearPositionCounter

bool _enc_config::enableTRIGGERClearPositionCounter

Clear POSD, REV, UPOS and LPOS on rising edge of TRIGGER, or not.

◆ enableWatchdog

bool _enc_config::enableWatchdog

Enable the watchdog to detect if the target is moving or not.

◆ filterCount

uint16_t _enc_config::filterCount

Input Filter Sample Count. This value should be chosen to reduce the probability of noisy samples causing an incorrect transition to be recognized. The value represent the number of consecutive samples that must agree prior to the input filter accepting an input transition. A value of 0x0 represents 3 samples. A value of 0x7 represents 10 samples. The Available range is 0 - 7.

◆ filterSamplePeriod

uint16_t _enc_config::filterSamplePeriod

Input Filter Sample Period. This value should be set such that the sampling period is larger than the period of the expected noise. This value represents the sampling period (in IPBus clock cycles) of the decoder input signals. The available range is 0 - 255.

◆ HOMETriggerMode

enc_home_trigger_mode_t _enc_config::HOMETriggerMode

Enable HOME to initialize position counters.

◆ INDEXTriggerMode

enc_index_trigger_mode_t _enc_config::INDEXTriggerMode

Enable INDEX to initialize position counters.

◆ positionCompareValue

uint32_t _enc_config::positionCompareValue

Position compare value. The available value is a 32-bit number.

◆ positionInitialValue

uint32_t _enc_config::positionInitialValue

Position initial value. The available value is a 32-bit number.

◆ positionMatchMode

enc_position_match_mode_t _enc_config::positionMatchMode

The condition of POSMATCH pulses.

◆ positionModulusValue

uint32_t _enc_config::positionModulusValue

Position modulus value. This value would be available only when "enableModuloCountMode" = true. The available value is a 32-bit number.

◆ revolutionCountCondition

enc_revolution_count_condition_t _enc_config::revolutionCountCondition

Revolution Counter Modulus Enable.

◆ watchdogTimeoutValue

uint16_t _enc_config::watchdogTimeoutValue

Watchdog timeout count value. It stores the timeout count for the quadrature decoder module watchdog timer. This field is only available when "enableWatchdog" = true. The available value is a 16-bit unsigned number.


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