/* Reset all the registers to known state. 
This function clears all registers that requires it to known state. TWIS is left disabled after this function. All events are cleared.  */
static void nrf_drv_twis_swreset(NRF_TWIS_Type *const p_reg)
/* Reset all the registers to known state. 
This function clears all registers that requires it to known state. TWIS is left disabled after this function. All events are cleared.  */
static void nrf_drv_twis_swreset(NRF_TWIS_Type *const p_reg)
{
    nrf_twis_disable(p_reg);
    nrf_twis_pins_set(p_reg, ~0U, ~0U);
    nrf_drv_common_irq_disable(nrf_drv_get_IRQn(p_reg));
    nrf_twis_int_disable(p_reg, ~0U);
}