Transceivers

Transceiver Interface

class zircon.transceivers.base.BaseTransceiver[source]

Abstract base class defining the Transceiver interface.

A Transceiver reads and/or writes to some source. It is the lowest-level component in zircon, which would for example interface with a CAN bus, serial port, or XBee.

Usage:

t = MyTransceiver()
t.open()

while not done:
    data = t.read()
    process(data)

t.close()
open()[source]

Open the connection.

close()[source]

Close the connection.

read()[source]

Return data read from the connection, or None.

write(data)[source]

Write data to the connection.