""" Interface definition for oscilloscope devices. """ class Oscilloscope: """ This interface specifies the common API for all supported oscilloscope devices. """ def measureAmplitude(self, channel: int) -> float: """ Return amplitude measurement on specific channel. """ def measurePeakToPeak(self, channel: int) -> float: """ Return peak-to-peak measurement on specific channel. """ def measureRMS(self, channel: int) -> float: """ Return RMS measurement on specific channel. """ def measureFrequency(self, channel: int) -> float: """ Return frequency measurement on specific channel. """ def setVoltsPerDivision(self, channel: int, volts: float) -> None: """ Sets the vertical scale of specific channel. """ def getDivisionsDisplayed(self) -> int: """ Returns the number of vertical divisions on the device display. """