Go to the documentation of this file.
58 #ifdef ENV_USE_FREERTOS
66 #ifdef HAL_COMP_MODULE_ENABLED
176 #ifdef ENV_RTOS_USE_SEMP
185 uint16_t app_comp_sem_start(
void);
void(* app_comp_evt_handler_t)(app_comp_evt_t *p_evt)
COMP event callback definition.
uint16_t app_comp_stop(void)
Stop the comparator.
comp_handle_t * app_comp_get_handle(void)
Return the COMP handle.
LL COMP init Structure definition.
app_io_type_t
GPIO type Enumerations definition.
COMP handle Structure definition.
app_comp_pin_cfg_t pin_cfg
the pin configuration information for the specified COMP module.
Header file containing functions prototypes of GPIO app library.
app_io_mux_t mux
Specifies the Peripheral to be connected to the selected pins.
uint16_t app_comp_deinit(void)
De-initialize the APP COMP DRIVER peripheral.
uint16_t app_comp_start(void)
Start the comparator.
app_comp_pin_t vref
Set the configuration of reference pin.
This file contains all the functions prototypes for the HAL module driver.
comp_init_t init
COMP configuration parameters.
uint16_t app_comp_init(app_comp_params_t *p_params, app_comp_evt_handler_t evt_handler)
Initialize the APP COMP DRIVER according to the specified parameters in the app_comp_params_t and app...
app_comp_evt_t
COMP event Enumerations definition.
COMP pins config Structures.
app_io_mux_t
GPIO mux Enumerations definition.
Header file of app rtos config code.
Header file of app driver error code.
COMP parameters structure definition.
app_io_type_t type
Specifies the type of COMP IO.
app_comp_pin_t input
Set the configuration of input pin.
uint32_t pin
Specifies the IO pins to be configured.