WriteDiscrete

Writes a range of bits to a discrete output channel.