Disable adc when device is running

  1. My goal is:I have a device that reads adc value and digital input at different time with the same pin. In example I am using my device to read adc value but in some case (without rebooting the device) I change the mode and the device is reading digital input like usual.
  2. My actions are: I saw the library files and I cannot find how to disable adc, since the digital input is not working when adc is being enabled.
  3. My expectation & question is: I did successfully read the adc value but the digital input is off. I think there is a function to disable the adc (low level one, hopefully).