|
NetBurner 3.5.7
PDF Version |
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 |
Define user configuration structure for ENC module.
| enc_decoder_work_mode_t _enc_config::decoderWorkMode |
Enable signal phase count mode.
| bool _enc_config::enableModuloCountMode |
Enable Modulo Counting.
| bool _enc_config::enableReverseDirection |
Enable reverse direction counting.
| bool _enc_config::enableTRIGGERClearHoldPositionCounter |
Enable update of hold registers on rising edge of TRIGGER, or not.
| bool _enc_config::enableTRIGGERClearPositionCounter |
Clear POSD, REV, UPOS and LPOS on rising edge of TRIGGER, or not.
| bool _enc_config::enableWatchdog |
Enable the watchdog to detect if the target is moving or not.
| 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.
| 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.
| enc_home_trigger_mode_t _enc_config::HOMETriggerMode |
Enable HOME to initialize position counters.
| enc_index_trigger_mode_t _enc_config::INDEXTriggerMode |
Enable INDEX to initialize position counters.
| uint32_t _enc_config::positionCompareValue |
Position compare value. The available value is a 32-bit number.
| uint32_t _enc_config::positionInitialValue |
Position initial value. The available value is a 32-bit number.
| enc_position_match_mode_t _enc_config::positionMatchMode |
The condition of POSMATCH pulses.
| 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.
| enc_revolution_count_condition_t _enc_config::revolutionCountCondition |
Revolution Counter Modulus Enable.
| 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.