How to use the same i2c peripheral in two different pins?

Hi, I have a project using the chip nRF52832 and sdk nRF5 14.2, I'm updating the firmware to use the nRF Connect SDK 2.2(NCS).

In my project, i use spi0 and spi2, so a can just use i2c1 to talk with the i2c sensors, but 2 sensors have the same address, so I need to communicate with than using different pin.

In sdk 14.2 for every communication, I switch the instance:

nrf_drv_twi_disable(&m_twi);
nrf_drv_twi_uninit(&m_twi);

err_code = nrf_drv_twi_init(&m_twi, &twi_config, fnTWI_Event_Handler, NULL);
APP_ERROR_CHECK(err_code);
nrf_drv_twi_enable(&m_twi);

How can I do this in NCS or other kind of workaround?
Related