Source code for labgrid.protocol.digitaloutputprotocol

import abc


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