Public Member Functions | Public Attributes | Private Member Functions
vw.tx Class Reference

List of all members.

Public Member Functions

def __init__
def cancel
def put
def ready

Public Attributes

 mics
 pi
 txbit
 wave_id
 wf

Private Member Functions

def _byte
def _nibble

Detailed Description

Definition at line 46 of file vw.py.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

def vw.tx.cancel (   self)
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.

def vw.tx.ready (   self)
Returns True if a new message may be transmitted.

Definition at line 131 of file vw.py.


Member Data Documentation

Definition at line 52 of file vw.py.

Definition at line 52 of file vw.py.

Definition at line 52 of file vw.py.

Definition at line 52 of file vw.py.

Definition at line 92 of file vw.py.


The documentation for this class was generated from the following file:


cob_hand_bridge
Author(s): Mathias L├╝dtke
autogenerated on Thu Jun 6 2019 20:43:57