![]() |
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 41 of file cmp_driver.h.
bool dmaTriggerState |
True if DMA transfer trigger from comparator is enable.
Definition at line 43 of file cmp_driver.h.
uint8_t filterSampleCount |
Number of sample count for filtering.
Definition at line 50 of file cmp_driver.h.
uint8_t filterSamplePeriod |
Filter sample period.
Definition at line 49 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 61 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 53 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 48 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 59 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 44 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 57 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 55 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 51 of file cmp_driver.h.