File: mmio.pyi

package info (click to toggle)
python-periphery 2.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 424 kB
  • sloc: python: 3,496; makefile: 21
file content (25 lines) | stat: -rw-r--r-- 1,032 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from ctypes import c_void_p
from types import TracebackType

class MMIOError(IOError): ...

class MMIO:
    def __init__(self, physaddr: int, size: int, path: str = ...) -> None: ...
    def __del__(self) -> None: ...
    def __enter__(self) -> MMIO: ...  # noqa: Y034
    def __exit__(self, t: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None) -> None: ...
    def read32(self, offset: int) -> int: ...
    def read16(self, offset: int) -> int: ...
    def read8(self, offset: int) -> int: ...
    def read(self, offset: int, length: int) -> bytes: ...
    def write32(self, offset: int, value: int) -> None: ...
    def write16(self, offset: int, value: int) -> None: ...
    def write8(self, offset: int, value: int) -> None: ...
    def write(self, offset: int, data: bytes | bytearray | list[int]) -> None: ...
    def close(self) -> None: ...
    @property
    def base(self) -> int: ...
    @property
    def size(self) -> int: ...
    @property
    def pointer(self) -> c_void_p: ...