Functions | |
WORD | ADCGetValue (BYTE Channel) |
Returns the current ADC value of the requested channel. | |
void | ADCInitialize (void) |
Initializes and calibrates the ADC module. |
WORD ADCGetValue | ( | BYTE | Channel | ) |
Returns the current ADC value of the requested channel.
The function checks wheter the channel supports ADC measurent and blocks until the value is read.
Channel | On of the GPIO channels (GPIO_XX_ID). Note, that not every channel supports ADC (currently only GPIO_04_ID and GPIO_05_ID). |