ACMP driver APIs. More...
Data Structures | |
| struct | acmp_channel_config |
| ACMP channel config. More... | |
Typedefs | |
| typedef struct acmp_channel_config | acmp_channel_config_t |
| ACMP channel config. More... | |
Functions | |
| static void | acmp_channel_config_dac (ACMP_Type *ptr, uint8_t ch, uint32_t value) |
| ACMP channel config DAC output value. More... | |
| static void | acmp_channel_clear_status (ACMP_Type *ptr, uint8_t ch, uint32_t mask) |
| ACMP channel clear status. More... | |
| static uint32_t | acmp_channel_get_status (ACMP_Type *ptr, uint8_t ch) |
| ACMP channel get status. More... | |
| static void | acmp_channel_dma_request_enable (ACMP_Type *ptr, uint8_t ch, uint32_t mask, bool enable) |
| ACMP channel enable DMA request. More... | |
| static void | acmp_channel_enable_irq (ACMP_Type *ptr, uint8_t ch, uint32_t mask, bool enable) |
| ACMP channel enable IRQ. More... | |
| static void | acmp_channel_enable_dac (ACMP_Type *ptr, uint8_t ch, bool enable) |
| ACMP channel enable DAC. More... | |
| static void | acmp_channel_enable_hpmode (ACMP_Type *ptr, uint8_t ch, bool enable) |
| ACMP channel enable high performance mode. More... | |
| static void | acmp_channel_set_hyst (ACMP_Type *ptr, uint8_t ch, uint8_t level) |
| ACMP channel enable hysteresis level. More... | |
| static void | acmp_channel_enable_cmp (ACMP_Type *ptr, uint8_t ch, bool enable) |
| ACMP channel enable comparator. More... | |
| static void | acmp_channel_enable_cmp_output (ACMP_Type *ptr, uint8_t ch, bool enable) |
| ACMP channel enable comparator output. More... | |
| static void | acmp_channel_cmp_output_bypass_filter (ACMP_Type *ptr, uint8_t ch, bool enable) |
| ACMP channel bypass comparator output filter. More... | |
| static void | acmp_channel_enable_cmp_window_mode (ACMP_Type *ptr, uint8_t ch, bool enable) |
| ACMP channel enable comparator window mode. More... | |
| static void | acmp_channel_invert_output (ACMP_Type *ptr, uint8_t ch, bool enable) |
| ACMP channel invert comparator output. More... | |
| static void | acmp_channel_set_filter_mode (ACMP_Type *ptr, uint8_t ch, uint8_t filter) |
| ACMP channel set comparator output filter mode. More... | |
| static void | acmp_channel_enable_sync (ACMP_Type *ptr, uint8_t ch, bool enable) |
| ACMP channel enable comparator output sync with clock. More... | |
| static void | acmp_channel_set_filter_length (ACMP_Type *ptr, uint8_t ch, uint16_t filter_length) |
| ACMP channel set comparator output filter length. More... | |
| hpm_stat_t | acmp_channel_config (ACMP_Type *ptr, uint8_t ch, acmp_channel_config_t *config, bool enable) |
| ADC channel config. More... | |
| void | acmp_channel_get_default_config (ACMP_Type *ptr, acmp_channel_config_t *config) |
| ADC channel get default config setting. More... | |
ACMP driver APIs.
| #define ACMP_CAP_SEL_LEVEL_0 (0U) |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP cap selection mask.
| #define ACMP_CAP_SEL_LEVEL_1 (1U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_CAP_SEL_LEVEL_2 (2U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_CAP_SEL_LEVEL_3 (3U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_EVENT_FALLING_EDGE (2U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_EVENT_RISING_EDGE (1U) |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP rising/falling flage mask.
| #define ACMP_FILTER_MODE_BYPASS (0U) |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP output digital filter mode.
| #define ACMP_FILTER_MODE_CHANGE_AFTER_FILTER (5U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_FILTER_MODE_CHANGE_IMMEDIATELY (4U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_FILTER_MODE_STABLE_HIGH (7U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_FILTER_MODE_STABLE_LOW (6U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_HYST_LEVEL_0 (0U) |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP hysteresis level.
| #define ACMP_HYST_LEVEL_1 (1U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_HYST_LEVEL_2 (2U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_HYST_LEVEL_3 (3U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_INPUT_ANALOG_1 (1U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_INPUT_ANALOG_2 (2U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_INPUT_ANALOG_3 (3U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_INPUT_ANALOG_4 (4U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_INPUT_ANALOG_5 (5U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_INPUT_ANALOG_6 (6U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_INPUT_ANALOG_7 (7U) |
#include <drivers/inc/hpm_acmp_drv.h>
| #define ACMP_INPUT_DAC_OUT (0U) |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP input channel number.
| typedef struct acmp_channel_config acmp_channel_config_t |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel config.
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel clear status.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | mask | :
|
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel bypass comparator output filter.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | enable |
|
| hpm_stat_t acmp_channel_config | ( | ACMP_Type * | ptr, |
| uint8_t | ch, | ||
| acmp_channel_config_t * | config, | ||
| bool | enable | ||
| ) |
#include <drivers/inc/hpm_acmp_drv.h>
ADC channel config.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | config | acmp_channel_config_t |
| [in] | enable |
|
| hpm_stat_t |
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel config DAC output value.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | value | DAC output value |
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel enable DMA request.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | mask | :
|
| [in] | enable |
|
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel enable comparator.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | enable |
|
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel enable comparator output.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | enable |
|
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel enable comparator window mode.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | enable |
|
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel enable DAC.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | enable |
|
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel enable high performance mode.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | enable |
|
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel enable IRQ.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | mask | :
|
| [in] | enable |
|
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel enable comparator output sync with clock.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | enable |
|
| void acmp_channel_get_default_config | ( | ACMP_Type * | ptr, |
| acmp_channel_config_t * | config | ||
| ) |
#include <drivers/inc/hpm_acmp_drv.h>
ADC channel get default config setting.
| [in] | ptr | ACMP base address |
| [out] | config | acmp_channel_config_t |
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel get status.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| ACMP | channel's status |
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel invert comparator output.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | enable |
|
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel set comparator output filter length.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | filter_length | filter length in clock cycles |
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel set comparator output filter mode.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | filter | ACMP output digital filter mode definition |
|
inlinestatic |
#include <drivers/inc/hpm_acmp_drv.h>
ACMP channel enable hysteresis level.
| [in] | ptr | ACMP base address |
| [in] | ch | ACMP channel number |
| [in] | level | ACMP hysteresis level |