Schau Dir mal in den Beispielprogrammen LEDs_IO_Threads.cc an.
Dort die Funktion read_adcs.