/* Auxiliary function for getting event state on right bit possition. 
This function calls nrf_twis_event_get function but the the result is shifted to match INTEN register scheme. */
static uint32_t nrf_drv_twis_event_bit_get(NRF_TWIS_Type *const p_reg, nrf_twis_event_t ev)
/* Auxiliary function for getting event state on right bit possition. 
This function calls nrf_twis_event_get function but the the result is shifted to match INTEN register scheme. */
static uint32_t nrf_drv_twis_event_bit_get(NRF_TWIS_Type *const p_reg, nrf_twis_event_t ev)
{
    return (uint32_t)nrf_twis_event_get_and_clear(p_reg, ev) << nrf_drv_event_to_bitpos(ev);
}