import abc
[docs]class MMIOProtocol(abc.ABC):
[docs] @abc.abstractmethod
def read(self, address: int, size: int, count: int) -> bytes:
raise NotImplementedError
[docs] @abc.abstractmethod
def write(self, address: int, size: int, data: bytes) -> None:
raise NotImplementedError