example with clock config implemented by Adc class