![]() |
S32 SDK
|
Defines the block configuration. More...
#include <cmp_driver.h>
Defines the block configuration.
This structure is used to configure only comparator block module(filtering, sampling, power_mode etc.) Implements : cmp_comparator_t_Class
Definition at line 170 of file cmp_driver.h.
bool dmaTriggerState |
True if DMA transfer trigger from comparator is enable.
Definition at line 172 of file cmp_driver.h.
uint8_t filterSampleCount |
Number of sample count for filtering.
Definition at line 179 of file cmp_driver.h.
uint8_t filterSamplePeriod |
Filter sample period.
Definition at line 178 of file cmp_driver.h.
cmp_hysteresis_t hysteresisLevel |
CMP_LEVEL_HYS_0 if hard block output has level 0 hysteresis. CMP_LEVEL_HYS_1 if hard block output has level 1 hysteresis. CMP_LEVEL_HYS_2 if hard block output has level 2 hysteresis. CMP_LEVEL_HYS_3 if hard block output has level 3 hysteresis.
Definition at line 190 of file cmp_driver.h.
cmp_inverter_t inverterState |
CMP_NORMAL if does not invert the comparator output. CMP_INVERT if inverts the comparator output.
Definition at line 182 of file cmp_driver.h.
cmp_mode_t mode |
Configuration structure which define: the comparator functional mode, sample period and sample count.
Definition at line 177 of file cmp_driver.h.
cmp_offset_t offsetLevel |
CMP_LEVEL_OFFSET_0 if hard block output has level 0 offset. CMP_LEVEL_OFFSET_1 if hard block output has level 1 offset.
Definition at line 188 of file cmp_driver.h.
cmp_output_trigger_t outputInterruptTrigger |
CMP_NO_INTERRUPT comparator output would not trigger any interrupt. CMP_FALLING_EDGE comparator output would trigger an interrupt on falling edge. CMP_RISING_EDGE comparator output would trigger an interrupt on rising edge. CMP_BOTH_EDGES comparator output would trigger an interrupt on rising and falling edges.
Definition at line 173 of file cmp_driver.h.
cmp_output_select_t outputSelect |
CMP_COUT if output signal is equal to COUT(filtered). CMP_COUTA if output signal is equal to COUTA(unfiltered).
Definition at line 186 of file cmp_driver.h.
cmp_output_enable_t pinState |
CMP_UNAVAILABLE if comparator output is not available to package pin. CMP_AVAILABLE if comparator output is available to package pin.
Definition at line 184 of file cmp_driver.h.
cmp_power_mode_t powerMode |
CMP_LOW_SPEED if low speed mode is selected. CMP_HIGH_SPEED if high speed mode is selected
Definition at line 180 of file cmp_driver.h.