herosdevices.hardware.generic.adc ================================= .. py:module:: herosdevices.hardware.generic.adc .. autoapi-nested-parse:: Generic ADC drivers. Module Contents --------------- .. py:class:: ADCChannel(adc_device: herosdevices.interfaces.atomiq.DAC | heros.RemoteHERO, channel: str, samples: int = 1) Bases: :py:obj:`herosdevices.interfaces.atomiq.ADCChannel` A generic ADC channel that can be connected to a multi channel ADC that implements the atomiq ADC interface. :param adc_device: Object or HERO of the ADC this channel belongs to :param channel: channel number .. py:attribute:: adc_device .. py:attribute:: channel .. py:attribute:: samples :value: 1 .. py:method:: measure(samples: int | None = None, cached: bool = False, channel: str = '') -> float Measure voltage at the current channel. :param samples: Number of samples to average. :param cached: not used :param channel: not used