File: spi.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 (24 lines) | stat: -rw-r--r-- 806 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
from types import TracebackType

KERNEL_VERSION: tuple[int, int]

class SPIError(IOError): ...

class SPI:
    def __init__(
        self, devpath: str, mode: int, max_speed: float, bit_order: str = ..., bits_per_word: int = ..., extra_flags: int = ...
    ) -> None: ...
    def __del__(self) -> None: ...
    def __enter__(self) -> SPI: ...  # noqa: Y034
    def __exit__(self, t: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None) -> None: ...
    def transfer(self, data: bytes | bytearray | list[int]) -> bytes | bytearray | list[int]: ...
    def close(self) -> None: ...
    @property
    def fd(self) -> int: ...
    @property
    def devpath(self) -> str: ...
    mode: int
    max_speed: float
    bit_order: str
    bits_per_word: int
    extra_flags: int