ENH: ioSync support for analog input thresholds

A threshold value can be set for each AIN channel. When the value of that channel goes above or below the threshold, a THRESHOLD event is created.