/* Auxiliary function for checking event bit inside given flags value. 
Function used here to check presence of the event inside given flags value. It transforms given event to bit possition and then checks if in given variable it is cleared. */
static bool nrf_drv_twis_check_bit(uint32_t flags, nrf_twis_event_t ev)
/* Auxiliary function for checking event bit inside given flags value. 
Function used here to check presence of the event inside given flags value. It transforms given event to bit possition and then checks if in given variable it is cleared. */
static bool nrf_drv_twis_check_bit(uint32_t flags, nrf_twis_event_t ev)
{
    return 0 != (flags & (1U<<nrf_drv_event_to_bitpos(ev)));
}