""" Interface definition for function generator devices. """ class FunctionGenerator: """ This interface specifies the common API for all supported function generator devices. """ def setOn(self, channel: int) -> None: """ Enable channel. """ def setOff(self, channel: int) -> None: """ Disable channel. """ def setFrequency(self, channel: int, frequency: float) -> None: """ Set channel output frequency. """ def setAmplitude(self, channel: int, amplitude: float) -> None: """ Set channel output amplitude. """ def setFunction(self, channel: int, function: int) -> None: """ Set channel output waveform. """