Go to the documentation of this file.
52 #ifndef _APP_COMP_PUB_H_
53 #define _APP_COMP_PUB_H_
64 #ifdef HAL_COMP_MODULE_ENABLED
74 #if (APP_DRIVER_CHIP_TYPE != APP_DRIVER_GR551X)
128 #ifdef APP_DRIVER_WAKEUP_CALL_FUN
uint16_t app_comp_stop(void)
Stop the comparator.
void(* app_comp_evt_handler_t)(app_comp_evt_t *p_evt)
COMP event callback definition.
comp_handle_t * app_comp_get_handle(void)
Return the COMP handle.
app_comp_evt_handler_t evt_handler
COMP event callback definition.
LL COMP init Structure definition.
app_io_type_t
GPIO type Enumerations definition.
app_comp_state_t comp_state
COMP state types.
app_comp_state_t
App COMP state types.
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.
comp_env_t comp_env
COMP device structure definition.
This file contains all the functions prototypes for the HAL module driver.
app_comp_pin_t vref
Set the configuration of reference pin.
app_comp_pin_cfg_t * p_pin_cfg
COMP pins config Structures.
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
APP COMP event Enumerations definition.
COMP pins config Structures.
app_io_mux_t
GPIO mux Enumerations definition.
Header file of app driver error code.
Header file of app driver config 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.
comp_handle_t handle
COMP handle definition.
COMP device structure definition.