Definition at line 46 of file vw.py.
def vw.tx.__init__ |
( |
|
self, |
|
|
|
pi, |
|
|
|
txgpio, |
|
|
|
bps = 2000 |
|
) |
| |
Instantiate a transmitter with the Pi, the transmit gpio,
and the bits per second (bps). The bps defaults to 2000.
The bps is constrained to be within MIN_BPS to MAX_BPS.
Definition at line 48 of file vw.py.
def vw.tx._byte |
( |
|
self, |
|
|
|
crc, |
|
|
|
byte |
|
) |
| |
|
private |
Definition at line 80 of file vw.py.
def vw.tx._nibble |
( |
|
self, |
|
|
|
nibble |
|
) |
| |
|
private |
Definition at line 72 of file vw.py.
Cancels the wireless transmitter, aborting any message
in progress.
Definition at line 137 of file vw.py.
def vw.tx.put |
( |
|
self, |
|
|
|
data |
|
) |
| |
Transmit a message. If the message is more than
MAX_MESSAGE_BYTES in size it is discarded. If a message
is currently being transmitted it is aborted and replaced
with the new message. True is returned if message
transmission has successfully started. False indicates
an error.
Definition at line 85 of file vw.py.
Returns True if a new message may be transmitted.
Definition at line 131 of file vw.py.
Definition at line 63 of file vw.py.
Definition at line 54 of file vw.py.
Definition at line 56 of file vw.py.
Definition at line 65 of file vw.py.
Definition at line 97 of file vw.py.
The documentation for this class was generated from the following file: