/** ****************************************************************************** * @copyright Copyright (C), 2016-2022, ConvenientPower. Co., Ltd. * @file drv_extint.h * @version 1.0 * @author qing.cheng * @date 2023-03-10 * @brief Header file of DRV_EXTINT_H module. ****************************************************************************** */ #ifndef _DRV_EXTINT_H_ #define _DRV_EXTINT_H_ #include "core_comm.h" #include "extint_define.h" #define REG_EXTINT_ENABLE_BIT\ 0x100 #define REG_EXTINT_CLR_BIT\ 0x01 #define REG_EXTINT_VAL_BIT\ 0x10000 /* * @brief drv_extint_pwd0_mask_clr * @param clr * @note * @retval null */ #define drv_extint_pwd0_mask_clr() \ do{\ REG_EXTINT_PWD0_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_pwd0_mask_set * @param value * @note * @retval null */ #define drv_extint_pwd0_mask_set( value) \ do{\ REG_EXTINT_PWD0_INT->word |= value;\ }while(0) /* * @brief drv_extint_pwd0_read * @param null * @note * @retval pwd0 int value */ #define drv_extint_pwd0_read() (REG_EXTINT_PWD0_INT->word) /* * @brief drv_extint_pwd1_mask_clr * @param clr * @note * @retval null */ #define drv_extint_pwd1_mask_clr(clr)\ do{\ REG_EXTINT_PWD1_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_pwd1_mask_set * @param null * @note * @retval pwd0 int value */ #define drv_extint_pwd1_mask_set(value)\ do{\ REG_EXTINT_PWD1_INT->word |= value;;\ }while(0) /* * @brief drv_extint_pwd1_read * @param null * @note * @retval pwd1 int value */ #define drv_extint_pwd1_read() REG_EXTINT_PWD1_INT->word /* * @brief drv_extint_pwd2_mask_clr * @param clr * @note * @retval null */ #define drv_extint_pwd2_mask_clr(clr)\ do{\ REG_EXTINT_PWD2_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_pwd2_mask_set * @param null * @note * @retval pwd0 int value */ #define drv_extint_pwd2_mask_set(value)\ do{\ REG_EXTINT_PWD2_INT->word |= value;\ }while(0) /* * @brief drv_extint_pwd2_read * @param null * @note * @retval pwd2 int value */ #define drv_extint_pwd2_read() REG_EXTINT_PWD2_INT->word /* * @brief drv_extint_pwd3_mask_clr * @param clr * @note * @retval null */ #define drv_extint_pwd3_mask_clr(clr)\ do{\ REG_EXTINT_PWD3_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_pwd3_mask_set * @param null * @note * @retval pwd0 int value */ #define drv_extint_pwd3_mask_set(value)\ do{\ REG_EXTINT_PWD3_INT->word |= value;;\ }while(0) /* * @brief drv_extint_pwd1_read * @param null * @note * @retval pwd1 int value */ #define drv_extint_pwd3_read() REG_EXTINT_PWD3_INT->word /* * @brief drv_extint_i2c_master_mask_clr * @param clr * @note * @retval null */ #define drv_extint_i2c_master0_mask_clr( clr)\ do{\ REG_EXTINT_I2C_FUNC0_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_i2c_master0_mask_set * @param null * @note * @retval i2c master int value */ #define drv_extint_i2c_master0_mask_set(value)\ do{\ REG_EXTINT_I2C_FUNC0_INT->word |= value;\ }while(0) /* * @brief drv_extint_i2c_master0_read * @param null * @note * @retval i2c master int value */ #define drv_extint_i2c_master0_read() (REG_EXTINT_I2C_FUNC0_INT->word) /* * @brief drv_extint_i2c_master1_mask_clr * @param clr * @note * @retval null */ #define drv_extint_i2c_master1_mask_clr( clr)\ do{\ REG_EXTINT_I2C_FUNC1_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_i2c_master1_mask_set * @param null * @note * @retval i2c master int value */ #define drv_extint_i2c_master1_mask_set(value)\ do{\ REG_EXTINT_I2C_FUNC1_INT->word |= value;\ }while(0) /* * @brief drv_extint_i2c_master1_read * @param null * @note * @retval i2c master int value */ #define drv_extint_i2c_master1_read() (REG_EXTINT_I2C_FUNC1_INT->word) /* * @brief drv_extint_vd_ls_comp_chg_mask_clr * @param clr * @note * @retval null */ #define drv_extint_vd_ls_comp_chg_mask_clr(clr)\ do{\ REG_EXTINT_VD_LS_COMP_CHG_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_vd_100mv_comph_mask_set * @param value * @note * @retval null */ #define drv_extint_vd_ls_comp_chg_mask_set(value)\ do{\ REG_EXTINT_VD_LS_COMP_CHG_INT->word |= value;\ }while(0) /* * @brief drv_extint_vd_100mv_comph_read * @param null * @note * @retval vd_100mv_comph int value */ #define drv_extint_vd_ls_comp_chg_read() (REG_EXTINT_VD_LS_COMP_CHG_INT->word) /* * @brief drv_extint_pd0_ccx_status_mask_clr * @param clr * @note * @retval null */ #define drv_extint_pd0_ccx_status_mask_clr(clr)\ do{\ REG_EXTINT_PD0_CCX_STAT_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_pd0_ccx_status_mask_set * @param value * @note * @retval null */ #define drv_extint_pd0_ccx_status_mask_set(value)\ do{\ REG_EXTINT_PD0_CCX_STAT_INT->word |= value;\ }while(0) /* * @brief drv_extint_pd0_ccx_status_read * @param null * @note * @retval pd_ccx_status int value */ #define drv_extint_pd0_ccx_status_read() (REG_EXTINT_PD0_CCX_STAT_INT->word) /* * @brief drv_extint_pd1_ccx_status_mask_clr * @param clr * @note * @retval null */ #define drv_extint_pd1_ccx_status_mask_clr(clr)\ do{\ REG_EXTINT_PD1_CCX_STAT_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_pd1_ccx_status_mask_set * @param value * @note * @retval null */ #define drv_extint_pd1_ccx_status_mask_set(value)\ do{\ REG_EXTINT_PD1_CCX_STAT_INT->word |= value;\ }while(0) /* * @brief drv_extint_pd1_ccx_status_read * @param null * @note * @retval pd_ccx_status int value */ #define drv_extint_pd1_ccx_status_read() (REG_EXTINT_PD1_CCX_STAT_INT->word) /* * @brief drv_extint_pd0_vwake_mask_clr * @param clr * @note * @retval null */ #define drv_extint_pd0_vwake_mask_clr(clr)\ do{\ REG_EXTINT_PD0_VWAKE_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_pd0_vwake_mask_set * @param value * @note * @retval null */ #define drv_extint_pd0_vwake_mask_set(value)\ do{\ REG_EXTINT_PD0_VWAKE_INT->word |= value;\ }while(0) /* * @brief drv_extint_pd0_vwake_read * @param null * @note * @retval pd_vwake int value */ #define drv_extint_pd0_vwake_read() (REG_EXTINT_PD0_VWAKE_INT->word) /* * @brief drv_extint_pd1_vwake_mask_clr * @param clr * @note * @retval null */ #define drv_extint_pd1_vwake_mask_clr(clr)\ do{\ REG_EXTINT_PD1_VWAKE_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_pd1_vwake_mask_set * @param value * @note * @retval null */ #define drv_extint_pd1_vwake_mask_set(value)\ do{\ REG_EXTINT_PD1_VWAKE_INT->word |= value;\ }while(0) /* * @brief drv_extint_pd1_vwake_read * @param null * @note * @retval pd_vwake int value */ #define drv_extint_pd1_vwake_read() (REG_EXTINT_PD1_VWAKE_INT->word) /* * @brief drv_extint_pd_dac_comp_chng_mask_clr * @param clr * @note * @retval null */ #define drv_extint_pd0_dac_comp_chng_mask_clr( clr)\ do{\ REG_EXTINT_PD0_DAC_COMP_CHNG_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_pd0_dac_comp_chng_mask_set * @param value * @note * @retval null */ #define drv_extint_pd0_dac_comp_chng_mask_set(value)\ do{\ REG_EXTINT_PD0_DAC_COMP_CHNG_INT->word |= value;\ }while(0) /* * @brief drv_extint_pd0_dac_comp_chng_read * @param null * @note * @retval pd0_dac_comp_chng int value */ #define drv_extint_pd0_dac_comp_chng_read() (REG_EXTINT_PD0_DAC_COMP_CHNG_INT->word) /* * @brief drv_extint_pd1_dac_comp_chng_mask_clr * @param clr * @note * @retval null */ #define drv_extint_pd1_dac_comp_chng_mask_clr( clr)\ do{\ REG_EXTINT_PD1_DAC_COMP_CHNG_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_pd1_dac_comp_chng_mask_set * @param value * @note * @retval null */ #define drv_extint_pd1_dac_comp_chng_mask_set(value)\ do{\ REG_EXTINT_PD1_DAC_COMP_CHNG_INT->word |= value;\ }while(0) /* * @brief drv_extint_pd1_dac_comp_chng_read * @param null * @note * @retval pd1_dac_comp_chng int value */ #define drv_extint_pd1_dac_comp_chng_read() (REG_EXTINT_PD1_DAC_COMP_CHNG_INT->word) /* * @brief drv_extint_pd0_vconn_oc_mask_clr * @param clr * @note * @retval null */ #define drv_extint_pd0_vconn_oc_mask_clr(clr)\ do{\ REG_EXTINT_PD0_VCONN_OC_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_pd0_vconn_oc_mask_set * @param value * @note * @retval null */ #define drv_extint_pd0_vconn_oc_mask_set(value)\ do{\ REG_EXTINT_PD0_VCONN_OC_INT->word |= value;\ }while(0) /* * @brief drv_extint_pd0_vconn_oc_read * @param null * @note * @retval pd0_vconn_oc int value */ #define drv_extint_pd0_vconn_oc_read() (REG_EXTINT_PD0_VCONN_OC_INT->word) /* * @brief drv_extint_pd1_vconn_oc_mask_clr * @param clr * @note * @retval null */ #define drv_extint_pd1_vconn_oc_mask_clr(clr)\ do{\ REG_EXTINT_PD1_VCONN_OC_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_pd1_vconn_oc_mask_set * @param value * @note * @retval null */ #define drv_extint_pd1_vconn_oc_mask_set(value)\ do{\ REG_EXTINT_PD1_VCONN_OC_INT->word |= value;\ }while(0) /* * @brief drv_extint_pd1_vconn_oc_read * @param null * @note * @retval pd0_vconn_oc int value */ #define drv_extint_pd1_vconn_oc_read() (REG_EXTINT_PD1_VCONN_OC_INT->word) /* * @brief drv_extint_dpdn0_comp_mask_clr * @param clr * @note * @retval null */ #define drv_extint_dpdn0_comp_mask_clr(clr)\ do{\ REG_EXTINT_DPDN0_COMP_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_dpdn0_comp_mask_set * @param value * @note * @retval null */ #define drv_extint_dpdn0_comp_mask_set( value)\ do{\ REG_EXTINT_DPDN0_COMP_INT->word |= value;\ }while(0) /* * @brief drv_extint_dpdn0_comp_read * @param null * @note * @retval dpdn_comp int value */ #define drv_extint_dpdn0_comp_read() (REG_EXTINT_DPDN0_COMP_INT->word) /* * @brief drv_extint_dpdn1_comp_mask_clr * @param clr * @note * @retval null */ #define drv_extint_dpdn1_comp_mask_clr(clr)\ do{\ REG_EXTINT_DPDN1_COMP_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_dpdn1_comp_mask_set * @param value * @note * @retval null */ #define drv_extint_dpdn1_comp_mask_set( value)\ do{\ REG_EXTINT_DPDN1_COMP_INT->word |= value;\ }while(0) /* * @brief drv_extint_dpdn1_comp_read * @param null * @note * @retval dpdn1_comp int value */ #define drv_extint_dpdn1_comp_read() (REG_EXTINT_DPDN1_COMP_INT->word) /* * @brief drv_extint_dpdn0_ovp_mask_clr * @param clr * @note * @retval null */ #define drv_extint_dpdn0_ovp_mask_clr( clr)\ do{\ REG_EXTINT_DPDN0_OVP_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_dpdn0_ovp_mask_set * @param value * @note * @retval null */ #define drv_extint_dpdn0_ovp_mask_set(value)\ do{\ REG_EXTINT_DPDN0_OVP_INT->word |= value;\ }while(0) /* * @brief drv_extint_dpdn0_ovp_read * @param null * @note * @retval dpdn_ovp int value */ #define drv_extint_dpdn0_ovp_read() (REG_EXTINT_DPDN0_OVP_INT->word) /* * @brief drv_extint_dpdn1_ovp_mask_clr * @param clr * @note * @retval null */ #define drv_extint_dpdn1_ovp_mask_clr( clr)\ do{\ REG_EXTINT_DPDN1_OVP_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_dpdn1_ovp_mask_set * @param value * @note * @retval null */ #define drv_extint_dpdn1_ovp_mask_set(value)\ do{\ REG_EXTINT_DPDN1_OVP_INT->word |= value;\ }while(0) /* * @brief drv_extint_dpdn1_ovp_read * @param null * @note * @retval dpdn_ovp int value */ #define drv_extint_dpdn1_ovp_read() (REG_EXTINT_DPDN1_OVP_INT->word) /* * @brief drv_extint_chip_ot_mask_clr * @param clr * @note * @retval null */ #define drv_extint_chip_ot_mask_clr( clr)\ do{\ REG_EXTINT_CHIP_OT_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_chip_ot_mask_set * @param value * @note * @retval null */ #define drv_extint_chip_ot_mask_set(value)\ do{\ REG_EXTINT_CHIP_OT_INT->word |= value;\ }while(0) /* * @brief drv_extint_dpdn_ovp_mask_set * @param null * @note * @retval chip_ot int value */ #define drv_extint_chip_ot_read() (REG_EXTINT_CHIP_OT_INT->word) /* * @brief drv_extint_vin_ratiop_ov_mask_clr * @param clr * @note * @retval null */ #define drv_extint_vin_ratiop_ov_mask_clr(clr)\ do{\ REG_EXTINT_VIN_RATIOP_OV_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_vin_ratiop_ov_mask_set * @param value * @note * @retval null */ #define drv_extint_vin_ratiop_ov_mask_set(value)\ do{\ REG_EXTINT_VIN_RATIOP_OV_INT->word |= value;\ }while(0) /* * @brief drv_extint_vin_ratiop_ov_read * @param null * @note * @retval vin_ratiop_ov int value */ #define drv_extint_vin_ratiop_ov_read() (REG_EXTINT_VIN_RATIOP_OV_INT->word) /* * @brief drv_extint_vin_ov_mask_clr * @param clr * @note * @retval null */ #define drv_extint_vin_ov_mask_clr( clr)\ do{\ REG_EXTINT_VIN_OV_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_vin_ov_mask_set * @param value * @note * @retval null */ #define drv_extint_vin_ov_mask_set( value)\ do{\ REG_EXTINT_VIN_OV_INT->word |= value;\ }while(0) /* * @brief drv_extint_vin_ratiop_ov_read * @param null * @note * @retval vin_ov int value */ #define drv_extint_vin_ov_read() (REG_EXTINT_VIN_OV_INT->word) /* * @brief drv_extint_vin_ratiop_uv_mask_clr * @param clr * @note * @retval null */ #define drv_extint_vin_ratiop_uv_mask_clr( clr)\ do{\ REG_EXTINT_VIN_RATIOP_UV_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_vin_ratiop_uv_mask_set * @param value * @note * @retval null */ #define drv_extint_vin_ratiop_uv_mask_set(value)\ do{\ REG_EXTINT_VIN_RATIOP_UV_INT->word |= value;\ }while(0) /* * @brief drv_extint_vin_ratiop_uv_read * @param null * @note * @retval in_ratiop_uv int value */ #define drv_extint_vin_ratiop_uv_read() (REG_EXTINT_VIN_RATIOP_UV_INT->word) /* * @brief drv_extint_vin1_ratiop_ov_mask_clr * @param clr * @note * @retval null */ #define drv_extint_vin1_ratiop_ov_mask_clr(clr)\ do{\ REG_EXTINT_VIN1_RATIOP_OV_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_vin1_ratiop_ov_mask_set * @param value * @note * @retval null */ #define drv_extint_vin1_ratiop_ov_mask_set(value)\ do{\ REG_EXTINT_VIN1_RATIOP_OV_INT->word |= value;\ }while(0) /* * @brief drv_extint_vin1_ratiop_ov_read * @param null * @note * @retval vin_ratiop_ov int value */ #define drv_extint_vin1_ratiop_ov_read() (REG_EXTINT_VIN1_RATIOP_OV_INT->word) /* * @brief drv_extint_vin1_ov_mask_clr * @param clr * @note * @retval null */ #define drv_extint_vin1_ov_mask_clr( clr)\ do{\ REG_EXTINT_VIN1_OV_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_vin1_ov_mask_set * @param value * @note * @retval null */ #define drv_extint_vin1_ov_mask_set( value)\ do{\ REG_EXTINT_VIN1_OV_INT->word |= value;\ }while(0) /* * @brief drv_extint_vin1_ov_read * @param null * @note * @retval vin_ov int value */ #define drv_extint_vin1_ov_read() (REG_EXTINT_VIN1_OV_INT->word) /* * @brief drv_extint_vin1_ratiop_uv_mask_clr * @param clr * @note * @retval null */ #define drv_extint_vin1_ratiop_uv_mask_clr( clr)\ do{\ REG_EXTINT_VIN1_RATIOP_UV_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_vin1_ratiop_uv_mask_set * @param value * @note * @retval null */ #define drv_extint_vin1_ratiop_uv_mask_set(value)\ do{\ REG_EXTINT_VIN1_RATIOP_UV_INT->word |= value;\ }while(0) /* * @brief drv_extint_vin1_ratiop_uv_read * @param null * @note * @retval in_ratiop_uv int value */ #define drv_extint_vin1_ratiop_uv_read() (REG_EXTINT_VIN1_RATIOP_UV_INT->word) /* * @brief drv_extint_vin2_ratiop_ov_mask_clr * @param clr * @note * @retval null */ #define drv_extint_vin2_ratiop_ov_mask_clr(clr)\ do{\ REG_EXTINT_VIN2_RATIOP_OV_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_vin2_ratiop_ov_mask_set * @param value * @note * @retval null */ #define drv_extint_vin2_ratiop_ov_mask_set(value)\ do{\ REG_EXTINT_VIN2_RATIOP_OV_INT->word |= value;\ }while(0) /* * @brief drv_extint_vin2_ratiop_ov_read * @param null * @note * @retval vin_ratiop_ov int value */ #define drv_extint_vin2_ratiop_ov_read() (REG_EXTINT_VIN2_RATIOP_OV_INT->word) /* * @brief drv_extint_vin2_ov_mask_clr * @param clr * @note * @retval null */ #define drv_extint_vin2_ov_mask_clr( clr)\ do{\ REG_EXTINT_VIN2_OV_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_vin2_ov_mask_set * @param value * @note * @retval null */ #define drv_extint_vin2_ov_mask_set( value)\ do{\ REG_EXTINT_VIN2_OV_INT->word |= value;\ }while(0) /* * @brief drv_extint_vin2_ov_read * @param null * @note * @retval vin_ov int value */ #define drv_extint_vin2_ov_read() (REG_EXTINT_VIN2_OV_INT->word) /* * @brief drv_extint_vin2_ratiop_uv_mask_clr * @param clr * @note * @retval null */ #define drv_extint_vin2_ratiop_uv_mask_clr( clr)\ do{\ REG_EXTINT_VIN2_RATIOP_UV_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_vin2_ratiop_uv_mask_set * @param value * @note * @retval null */ #define drv_extint_vin2_ratiop_uv_mask_set(value)\ do{\ REG_EXTINT_VIN2_RATIOP_UV_INT->word |= value;\ }while(0) /* * @brief drv_extint_vin2_ratiop_uv_read * @param null * @note * @retval in_ratiop_uv int value */ #define drv_extint_vin2_ratiop_uv_read() (REG_EXTINT_VIN2_RATIOP_UV_INT->word) /* * @brief drv_extint_exit_green_mask_clr * @param clr * @note * @retval null */ #define drv_extint_exit_green_mask_clr( clr)\ do{\ REG_EXTINT_EXIT_GREEN_INT->word &= ~(clr);\ }while(0) /* * @brief drv_extint_exit_green_mask_set * @param value * @note * @retval null */ #define drv_extint_exit_green_mask_set( value)\ do{\ REG_EXTINT_EXIT_GREEN_INT->word |= value;\ }while(0) /* * @brief drv_exit_green_read * @param null * @note * @retval exit_green int value */ #define drv_exit_green_read() (REG_EXTINT_EXIT_GREEN_INT->word) /******************add 8860*******************/ /* *@brief drv_extint_sda1_neg_det_mask_clr( *@param : null *@retval null */ #define drv_extint_sda1_neg_det_mask_clr( clr)\ do{\ REG_EXTINT_SDA1_NEG_DET_INT->word &= ~(clr);\ }while(0) /* *@brief drv_extint_sda1_neg_det_mask_set *@param : null *@retval null */ #define drv_extint_sda1_neg_det_mask_set( value)\ do{\ REG_EXTINT_SDA1_NEG_DET_INT->word |= value;\ }while(0) /* *@brief drv_exit_sda1_neg_det_read *@param : null *@retval null */ #define drv_exit_sda1_neg_det_read() (REG_EXTINT_SDA1_NEG_DET_INT->word) /* *@brief drv_extint_sda2_neg_det_mask_clr( *@param : null *@retval null */ #define drv_extint_sda2_neg_det_mask_clr( clr)\ do{\ REG_EXTINT_SDA2_NEG_DET_INT->word &= ~(clr);\ }while(0) /* *@brief drv_extint_sda2_neg_det_mask_set *@param : null *@retval null */ #define drv_extint_sda2_neg_det_mask_set( value)\ do{\ REG_EXTINT_SDA2_NEG_DET_INT->word |= value;\ }while(0) /* *@brief drv_exit_sda2_neg_det_read *@param : null *@retval null */ #define drv_exit_sda2_neg_det_read() (REG_EXTINT_SDA2_NEG_DET_INT->word) /* *@brief drv_extint_scl1_neg_det_mask_clr *@param : null *@retval null */ #define drv_extint_scl1_neg_det_mask_clr( clr)\ do{\ REG_EXTINT_SCL1_NEG_DET_INT->word &= ~(clr);\ }while(0) /* *@brief drv_extint_scl1_neg_det_mask_set *@param : null *@retval null */ #define drv_extint_scl1_neg_det_mask_set( value)\ do{\ REG_EXTINT_SCL1_NEG_DET_INT->word |= value;\ }while(0) /* *@brief drv_exit_scl1_neg_det_read *@param : null *@retval null */ #define drv_exit_scl1_neg_det_read() (REG_EXTINT_SCL1_NEG_DET_INT->word) /* *@brief drv_extint_scl2_neg_det_mask_clr *@param : null *@retval null */ #define drv_extint_scl2_neg_det_mask_clr( clr)\ do{\ REG_EXTINT_SCL2_NEG_DET_INT->word &= ~(clr);\ }while(0) /* *@brief drv_extint_scl2_neg_det_mask_set *@param : null *@retval null */ #define drv_extint_scl2_neg_det_mask_set( value)\ do{\ REG_EXTINT_SCL2_NEG_DET_INT->word |= value;\ }while(0) /* *@brief drv_exit_scl2_neg_det_read *@param : null *@retval null */ #define drv_exit_scl2_neg_det_read() (REG_EXTINT_SCL2_NEG_DET_INT->word) /* *@brief drv_extint_pd0_ccx_ovp_mask_clr *@param : null *@retval null */ #define drv_extint_pd0_ccx_ovp_mask_clr(clr)\ do{\ (REG_EXTINT_PD0_CCX_OVP_INT->word &= ~(clr);\ }while(0) /* *@brief drv_extint_pd0_ccx_ovp_mask_set *@param : null *@retval null */ #define drv_extint_pd0_ccx_ovp_mask_set( value)\ do{\ REG_EXTINT_PD0_CCX_OVP_INT->word |= value;\ }while(0) /* *@brief drv_exit_pd0_ccx_ovp_read *@param : null *@retval null */ #define drv_exit_pd0_ccx_ovp_read() (REG_EXTINT_PD0_CCX_OVP_INT->word) /* *@brief drv_extint_pd1_ccx_ovp_mask_clr *@param : null *@retval null */ #define drv_extint_pd1_ccx_ovp_mask_clr(clr)\ do{\ (REG_EXTINT_PD1_CCX_OVP_INT->word &= ~(clr);\ }while(0) /* *@brief drv_extint_pd1_ccx_ovp_mask_set *@param : null *@retval null */ #define drv_extint_pd1_ccx_ovp_mask_set( value)\ do{\ REG_EXTINT_PD1_CCX_OVP_INT->word |= value;\ }while(0) /* *@brief drv_exit_pd1_ccx_ovp_read *@param : null *@retval null */ #define drv_exit_pd1_ccx_ovp_read() (REG_EXTINT_PD1_CCX_OVP_INT->word) /* *@brief drv_extint_v2_ocp_mask_clr *@param : null *@retval null */ #define drv_extint_v2_ocp_mask_clr( clr)\ do{\ REG_EXTINT_V2_OCP_INT->word &= ~(clr);\ }while(0) /* *@brief drv_extint_v2_ocp_mask_set *@param : null *@retval null */ #define drv_extint_v2_ocp_mask_set(value)\ do{\ REG_EXTINT_V2_OCP_INT->word |= value;\ }while(0) /* *@brief drv_exit_v2_ocp_read *@param : null *@retval null */ #define drv_exit_v2_ocp_read() (REG_EXTINT_V2_OCP_INT->word) /* *@brief drv_extint_vbusoc1_mask_clr *@param : null *@retval null */ #define drv_extint_vbusoc1_mask_clr( clr)\ do{\ REG_EXTINT_VBUSOC1_INT->word &= ~(clr);\ }while(0) /* *@brief drv_extint_vbusoc1_mask_set *@param : null *@retval null */ #define drv_extint_vbusoc1_mask_set( value)\ do{\ REG_EXTINT_VBUSOC1_INT->word |= value;\ }while(0) /* *@brief drv_exit_vbusoc1_read *@param : null *@retval null */ #define drv_exit_vbusoc1_read() (REG_EXTINT_VBUSOC1_INT->word) /* *@brief drv_extint_vbusoc2_mask_clr *@param : null *@retval null */ #define drv_extint_vbusoc2_mask_clr( clr)\ do{\ REG_EXTINT_VBUSOC2_INT->word &= ~(clr);\ }while(0) /* *@brief drv_extint_vbusoc2_mask_set *@param : null *@retval null */ #define drv_extint_vbusoc2_mask_set( value)\ do{\ REG_EXTINT_VBUSOC2_INT->word |= value;\ }while(0) /* *@brief drv_exit_vbusoc2_read *@param : null *@retval null */ #define drv_exit_vbusoc2_read() (REG_EXTINT_VBUSOC2_INT->word) /* *@brief drv_extint_vin1_uvlo_mask_clr *@param : null *@retval null */ #define drv_extint_vin1_uvlo_mask_clr( clr)\ do{\ REG_EXTINT_VIN1_UVLO_INT->word &= ~(clr);\ }while(0) /* *@brief drv_extint_vin1_uvlo_mask_set *@param : null *@retval null */ #define drv_extint_vin1_uvlo_mask_set( value)\ do{\ REG_EXTINT_VIN1_UVLO_INT->word |= value;\ }while(0) /* *@brief drv_exit_vin1_uvlo_read *@param : null *@retval null */ #define drv_exit_vin1_uvlo_read() (REG_EXTINT_VIN1_UVLO_INT->word) /* *@brief drv_extint_vin2_uvlo_mask_clr *@param : null *@retval null */ #define drv_extint_vin2_uvlo_mask_clr( clr)\ do{\ REG_EXTINT_VIN2_UVLO_INT->word &= ~(clr);\ }while(0) /* *@brief drv_extint_vin2_uvlo_mask_set *@param : null *@retval null */ #define drv_extint_vin2_uvlo_mask_set( value)\ do{\ REG_EXTINT_VIN2_UVLO_INT->word |= value;\ }while(0) /* *@brief drv_exit_vin2_uvlo_read *@param : null *@retval null */ #define drv_exit_vin2_uvlo_read() (REG_EXTINT_VIN2_UVLO_INT->word) #endif