Zephyr API 3.6.99
Loading...
Searching...
No Matches
mcux_acmp.h File Reference

Go to the source code of this file.

Data Structures

struct  comp_mcux_acmp_mode_config
 
struct  comp_mcux_acmp_input_config
 
struct  comp_mcux_acmp_filter_config
 
struct  comp_mcux_acmp_dac_config
 
struct  comp_mcux_acmp_dm_config
 

Enumerations

enum  comp_mcux_acmp_offset_mode { COMP_MCUX_ACMP_OFFSET_MODE_LEVEL0 = 0 , COMP_MCUX_ACMP_OFFSET_MODE_LEVEL1 }
 
enum  comp_mcux_acmp_hysteresis_mode { COMP_MCUX_ACMP_HYSTERESIS_MODE_LEVEL0 = 0 , COMP_MCUX_ACMP_HYSTERESIS_MODE_LEVEL1 , COMP_MCUX_ACMP_HYSTERESIS_MODE_LEVEL2 , COMP_MCUX_ACMP_HYSTERESIS_MODE_LEVEL3 }
 
enum  comp_mcux_acmp_mux_input {
  COMP_MCUX_ACMP_MUX_INPUT_IN0 = 0 , COMP_MCUX_ACMP_MUX_INPUT_IN1 , COMP_MCUX_ACMP_MUX_INPUT_IN2 , COMP_MCUX_ACMP_MUX_INPUT_IN3 ,
  COMP_MCUX_ACMP_MUX_INPUT_IN4 , COMP_MCUX_ACMP_MUX_INPUT_IN5 , COMP_MCUX_ACMP_MUX_INPUT_IN6 , COMP_MCUX_ACMP_MUX_INPUT_IN7
}
 
enum  comp_mcux_acmp_port_input { COMP_MCUX_ACMP_PORT_INPUT_DAC = 0 , COMP_MCUX_ACMP_PORT_INPUT_MUX }
 
enum  comp_mcux_acmp_dac_vref_source { COMP_MCUX_ACMP_DAC_VREF_SOURCE_VIN1 = 0 , COMP_MCUX_ACMP_DAC_VREF_SOURCE_VIN2 }
 
enum  comp_mcux_acmp_dm_clock { COMP_MCUX_ACMP_DM_CLOCK_SLOW = 0 , COMP_MCUX_ACMP_DM_CLOCK_FAST }
 
enum  comp_mcux_acmp_dm_sample_time {
  COMP_MCUX_ACMP_DM_SAMPLE_TIME_T1 = 0 , COMP_MCUX_ACMP_DM_SAMPLE_TIME_T2 , COMP_MCUX_ACMP_DM_SAMPLE_TIME_T4 , COMP_MCUX_ACMP_DM_SAMPLE_TIME_T8 ,
  COMP_MCUX_ACMP_DM_SAMPLE_TIME_T16 , COMP_MCUX_ACMP_DM_SAMPLE_TIME_T32 , COMP_MCUX_ACMP_DM_SAMPLE_TIME_T64 , COMP_MCUX_ACMP_DM_SAMPLE_TIME_T256
}
 
enum  comp_mcux_acmp_dm_phase_time {
  COMP_MCUX_ACMP_DM_PHASE_TIME_ALT0 = 0 , COMP_MCUX_ACMP_DM_PHASE_TIME_ALT1 , COMP_MCUX_ACMP_DM_PHASE_TIME_ALT2 , COMP_MCUX_ACMP_DM_PHASE_TIME_ALT3 ,
  COMP_MCUX_ACMP_DM_PHASE_TIME_ALT4 , COMP_MCUX_ACMP_DM_PHASE_TIME_ALT5 , COMP_MCUX_ACMP_DM_PHASE_TIME_ALT6 , COMP_MCUX_ACMP_DM_PHASE_TIME_ALT7
}
 

Functions

int comp_mcux_acmp_set_mode_config (const struct device *dev, const struct comp_mcux_acmp_mode_config *config)
 
int comp_mcux_acmp_set_input_config (const struct device *dev, const struct comp_mcux_acmp_input_config *config)
 
int comp_mcux_acmp_set_filter_config (const struct device *dev, const struct comp_mcux_acmp_filter_config *config)
 
int comp_mcux_acmp_set_dac_config (const struct device *dev, const struct comp_mcux_acmp_dac_config *config)
 
int comp_mcux_acmp_set_dm_config (const struct device *dev, const struct comp_mcux_acmp_dm_config *config)
 
int comp_mcux_acmp_set_window_mode (const struct device *dev, bool enable)
 

Enumeration Type Documentation

◆ comp_mcux_acmp_dac_vref_source

Enumerator
COMP_MCUX_ACMP_DAC_VREF_SOURCE_VIN1 
COMP_MCUX_ACMP_DAC_VREF_SOURCE_VIN2 

◆ comp_mcux_acmp_dm_clock

Enumerator
COMP_MCUX_ACMP_DM_CLOCK_SLOW 
COMP_MCUX_ACMP_DM_CLOCK_FAST 

◆ comp_mcux_acmp_dm_phase_time

Enumerator
COMP_MCUX_ACMP_DM_PHASE_TIME_ALT0 
COMP_MCUX_ACMP_DM_PHASE_TIME_ALT1 
COMP_MCUX_ACMP_DM_PHASE_TIME_ALT2 
COMP_MCUX_ACMP_DM_PHASE_TIME_ALT3 
COMP_MCUX_ACMP_DM_PHASE_TIME_ALT4 
COMP_MCUX_ACMP_DM_PHASE_TIME_ALT5 
COMP_MCUX_ACMP_DM_PHASE_TIME_ALT6 
COMP_MCUX_ACMP_DM_PHASE_TIME_ALT7 

◆ comp_mcux_acmp_dm_sample_time

Enumerator
COMP_MCUX_ACMP_DM_SAMPLE_TIME_T1 
COMP_MCUX_ACMP_DM_SAMPLE_TIME_T2 
COMP_MCUX_ACMP_DM_SAMPLE_TIME_T4 
COMP_MCUX_ACMP_DM_SAMPLE_TIME_T8 
COMP_MCUX_ACMP_DM_SAMPLE_TIME_T16 
COMP_MCUX_ACMP_DM_SAMPLE_TIME_T32 
COMP_MCUX_ACMP_DM_SAMPLE_TIME_T64 
COMP_MCUX_ACMP_DM_SAMPLE_TIME_T256 

◆ comp_mcux_acmp_hysteresis_mode

Enumerator
COMP_MCUX_ACMP_HYSTERESIS_MODE_LEVEL0 
COMP_MCUX_ACMP_HYSTERESIS_MODE_LEVEL1 
COMP_MCUX_ACMP_HYSTERESIS_MODE_LEVEL2 
COMP_MCUX_ACMP_HYSTERESIS_MODE_LEVEL3 

◆ comp_mcux_acmp_mux_input

Enumerator
COMP_MCUX_ACMP_MUX_INPUT_IN0 
COMP_MCUX_ACMP_MUX_INPUT_IN1 
COMP_MCUX_ACMP_MUX_INPUT_IN2 
COMP_MCUX_ACMP_MUX_INPUT_IN3 
COMP_MCUX_ACMP_MUX_INPUT_IN4 
COMP_MCUX_ACMP_MUX_INPUT_IN5 
COMP_MCUX_ACMP_MUX_INPUT_IN6 
COMP_MCUX_ACMP_MUX_INPUT_IN7 

◆ comp_mcux_acmp_offset_mode

Enumerator
COMP_MCUX_ACMP_OFFSET_MODE_LEVEL0 
COMP_MCUX_ACMP_OFFSET_MODE_LEVEL1 

◆ comp_mcux_acmp_port_input

Enumerator
COMP_MCUX_ACMP_PORT_INPUT_DAC 
COMP_MCUX_ACMP_PORT_INPUT_MUX 

Function Documentation

◆ comp_mcux_acmp_set_dac_config()

int comp_mcux_acmp_set_dac_config ( const struct device * dev,
const struct comp_mcux_acmp_dac_config * config )

◆ comp_mcux_acmp_set_dm_config()

int comp_mcux_acmp_set_dm_config ( const struct device * dev,
const struct comp_mcux_acmp_dm_config * config )

◆ comp_mcux_acmp_set_filter_config()

int comp_mcux_acmp_set_filter_config ( const struct device * dev,
const struct comp_mcux_acmp_filter_config * config )

◆ comp_mcux_acmp_set_input_config()

int comp_mcux_acmp_set_input_config ( const struct device * dev,
const struct comp_mcux_acmp_input_config * config )

◆ comp_mcux_acmp_set_mode_config()

int comp_mcux_acmp_set_mode_config ( const struct device * dev,
const struct comp_mcux_acmp_mode_config * config )

◆ comp_mcux_acmp_set_window_mode()

int comp_mcux_acmp_set_window_mode ( const struct device * dev,
bool enable )