Continue implementation of A/D converter driver:
* add support for getting the current channel and changing the channel
* add support for reading and writing the config register
* add some parameter checks