IIO_EVENT_CODE_EXTRACT_CHAN_TYPE
enum iio_chan_type type = IIO_EVENT_CODE_EXTRACT_CHAN_TYPE(event->id);