/* Auxiliary function for clearing event bit in given flags value. 
Function used to clear selected event bit. */
static uint32_t nrf_drv_twis_clear_bit(uint32_t flags, nrf_twis_event_t ev)
/* Auxiliary function for clearing event bit in given flags value. 
Function used to clear selected event bit. */
static uint32_t nrf_drv_twis_clear_bit(uint32_t flags, nrf_twis_event_t ev)
{
    return flags & ~(1U<<nrf_drv_event_to_bitpos(ev));
}