/* * ADS1259PulseModeAdcReader.cpp * * Created on: 25 рту. 2019 у. * Author: user */ #include "ADS1259PulseModeAdcReader.hh" void driver::chipset::ADS1259PulseModeAdcReader::process() { if( read() ) { adc_code = adc_packager.unpack( read_adc_operation.output ); } } bool driver::chipset::ADS1259PulseModeAdcReader::read() { bool adc_readed = false; if( start_conv ) start_conv = not ( adc_readed = read_adc_operation() ); if( not start_conv ) start_conv = start_adc_operation(); return adc_readed; }