Public Member Functions | Public Attributes | Private Member Functions | List of all members
vw.tx Class Reference

Public Member Functions

def __init__ (self, pi, txgpio, bps=2000)
 
def cancel (self)
 
def put (self, data)
 
def ready (self)
 

Public Attributes

 mics
 
 pi
 
 txbit
 
 wave_id
 
 wf
 

Private Member Functions

def _byte (self, crc, byte)
 
def _nibble (self, 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

vw.tx.mics

Definition at line 63 of file vw.py.

vw.tx.pi

Definition at line 54 of file vw.py.

vw.tx.txbit

Definition at line 56 of file vw.py.

vw.tx.wave_id

Definition at line 65 of file vw.py.

vw.tx.wf

Definition at line 97 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 Tue Oct 20 2020 03:35:58