|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module containing stubs for API generation of the 'pulseio' module. |
|
8 """ |
|
9 |
|
10 class PulseIn(): |
|
11 maxlen = 0 |
|
12 paused = 0 |
|
13 |
|
14 def __init__(self, pin, maxlen=2, *, idle_state=False): |
|
15 pass |
|
16 |
|
17 def deinit(self): |
|
18 pass |
|
19 |
|
20 def pause(self): |
|
21 pass |
|
22 |
|
23 def resume(self, trigger_duration=0): |
|
24 pass |
|
25 |
|
26 def clear(self): |
|
27 pass |
|
28 |
|
29 def popleft(self): |
|
30 pass |
|
31 |
|
32 class PulseOut(): |
|
33 def __init__(self, carrier): |
|
34 pass |
|
35 |
|
36 def deinit(self): |
|
37 pass |
|
38 |
|
39 def send(self, pulses): |
|
40 pass |
|
41 |
|
42 class PWMOut(): |
|
43 duty_cycle = 0 |
|
44 frequency = 0 |
|
45 |
|
46 def __init__(self, pin, *, duty_cycle=0, frequency=500, |
|
47 variable_frequency=False): |
|
48 pass |
|
49 |
|
50 def deinit(self): |
|
51 pass |