added some helper functions

for setting commutation state and getting adc values