Source code for labgrid.protocol.digitaloutputprotocol
import abc
[docs]class DigitalOutputProtocol(abc.ABC):
"""Abstract class providing the OneWireProtocol interface"""
[docs] @abc.abstractmethod
def get(self):
"""Implementations should return the status of the OneWirePort."""
raise NotImplementedError
[docs] @abc.abstractmethod
def set(self, status):
"""Implementations should set the status of the OneWirePort"""
raise NotImplementedError