DL_CMPSSLITE_FilterConfig
Module: Driverlib (AM13E230X) APIs / Driverlib CMPSSLITE API
Filter configuration structure.
#include <dl_cmpss_lite.h>
Public Attributes
Name |
|
|---|---|
bool |
|
uint32_t |
|
uint16_t |
|
uint16_t |
|
bool |
|
bool |
Public Attributes Documentation
variable initFilter
bool initFilter;
Initialize the filter during CMPSSLITE init
true: Initialize all samples to the filter input value
false: no effect
variable filtInput
DL_CMPSSLITE_FILTER_INPUT filtInput;
Input configuration for the filter
Valid values: DL_CMPSSLITE_FILTER_INPUT
variable samplePrescale
uint32_t samplePrescale;
Sample prescale value
Valid values: 24 bit unsigned integer
variable sampleWindow
uint16_t sampleWindow;
Sample window size
Valid values: 1 to 64
variable threshold
uint16_t threshold;
Threshold value for the filter
Valid values: 1 to 64. For proper operation, threshold value must be greater than sampleWindow / 2
variable asyncORLatch
bool asyncORLatch;
Allow asynchronous comparator output to feed into OR gate with latched digital filter signal
Relevant only when tripSourceSelect is DL_CMPSSLITE_TRIP_LATCH (CTRIPHSEL=3) or tripOutSourceSelect is DL_CMPSSLITE_TRIPOUT_LATCH (CTRIPOUTHSEL=3)
variable enableLatchResetOnPWMSYNC
bool enableLatchResetOnPWMSYNC;
Enable reset of comparator digital filter output latch based on PWM SYNCPER.
true: MCPWMSYNCPER will reset latch.
false: MCPWMSYNCPER will not reset latch.