HPM SDK
HPMicro Software Development Kit
sdm_comparator_config_t Struct Reference

#include <hpm_sdm_drv.h>

Data Fields

uint16_t high_threshold
 
uint16_t zero_cross_threshold
 
uint16_t low_threshold
 
bool en_zero_cross_threshold_int
 
bool en_clock_invalid_int
 
bool en_high_threshold_int
 
bool en_low_threshold_int
 
uint8_t filter_type
 
uint8_t oversampling_rate
 
uint8_t ignore_invalid_samples
 
bool enable
 

Field Documentation

◆ en_clock_invalid_int

bool sdm_comparator_config_t::en_clock_invalid_int

◆ en_high_threshold_int

bool sdm_comparator_config_t::en_high_threshold_int

MCLK stop detect interrupt enable high threshold interrupt enable

◆ en_low_threshold_int

bool sdm_comparator_config_t::en_low_threshold_int

low threshold interrupt enable

◆ en_zero_cross_threshold_int

bool sdm_comparator_config_t::en_zero_cross_threshold_int

zero cross enable, not generate interrupt!!

◆ enable

bool sdm_comparator_config_t::enable

comparator function enable

◆ filter_type

uint8_t sdm_comparator_config_t::filter_type

sdm_filter_type_t

◆ high_threshold

uint16_t sdm_comparator_config_t::high_threshold

high threshold

◆ ignore_invalid_samples

uint8_t sdm_comparator_config_t::ignore_invalid_samples

invalid data according to filter type

◆ low_threshold

uint16_t sdm_comparator_config_t::low_threshold

low threshold

◆ oversampling_rate

uint8_t sdm_comparator_config_t::oversampling_rate

1 - 32

◆ zero_cross_threshold

uint16_t sdm_comparator_config_t::zero_cross_threshold

zero threshold


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