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