File: pwm.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-- 749 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 types import TracebackType

class PWMError(IOError): ...

class PWM:
    def __init__(self, chip: int, channel: int) -> None: ...
    def __del__(self) -> None: ...
    def __enter__(self) -> PWM: ...  # noqa: Y034
    def __exit__(self, t: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None) -> None: ...
    def close(self) -> None: ...
    enabled: bool
    def enable(self) -> None: ...
    def disable(self) -> None: ...
    @property
    def devpath(self) -> str: ...
    @property
    def chip(self) -> int: ...
    @property
    def channel(self) -> int: ...
    period_ns: int
    duty_cycle_ns: int
    period: int | float
    duty_cycle: int | float
    frequency: int | float
    polarity: str