Source code for labgrid.protocol.digitaloutputprotocol

import abc


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