AnsweredAssumed Answered

De-asserting ADI_ENABLE in IIO device when destroying a buffer?

Question asked by njp on Jul 17, 2017
Latest reply on Jul 19, 2017 by larsc


I'd like to make a change request. I'm specifically interested in using the ADI_ENABLE signal (signal "up_adc_enable" in hdl/up_adc_channel.v at dev · analogdevicesinc/hdl · GitHub ) for synchronization/packetization on a DMA channel.


This signal is currently set when "update_scan_mode()" is called for a particular IIO device. From a LIBIIO perspective, this happens when "iio_device_create_buffer()" is run, after which "up_adc_enable" is asserted. However, when executing "iio_buffer_destroy()", "up_adc_enable" is unchanged and will remain asserted.


Can there please be a call an "update_scan_mask" when destroying a buffer so that "up_adc_enable" is de-asserted?