I made boards with the nrf52832 chip and the MAX8808X chip. The MAX8808X chip has battery monitoring. But I do not know what to do. The number of GPIO pins connected to this chip is P0.03 and IN / OUT is IN. Is it possible to roughly match the source code below? If it is an input, it does not know how to receive the output. Please help me.
ret_code_t err_code;
nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_TOGGLE(true);
in_config.pull = NRF_GPIO_PIN_PULLDOWN;
err_code = nrf_drv_gpiote_in_init(BAT_CK, &in_config, battery_event_handler);
APP_ERROR_CHECK(err_code);
nrf_drv_gpiote_in_event_enable(BAT_CK, true);