Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions
novatel_span_driver.port.Port Class Reference

List of all members.

Public Member Functions

def __init__
def recv
def send

Public Attributes

 bSerial
 daemon
 finish
 opts
 sock

Static Public Attributes

tuple checksum_struct = struct.Struct("<hh")

Private Member Functions

def _checksum

Detailed Description

Common base class for DataPort and ControlPort. Provides functionality to
  recv/send novatel-formatted packets from the socket. Could in future
  support LoggingPort and DisplayPort.

Definition at line 42 of file port.py.


Constructor & Destructor Documentation

def novatel_span_driver.port.Port.__init__ (   self,
  sock,
  opts 
)

Definition at line 48 of file port.py.


Member Function Documentation

def novatel_span_driver.port.Port._checksum (   cls,
  buff 
) [private]
Compute novatel checksum. Expects a StringIO with a
      size that is a multiple of four bytes. 

Definition at line 135 of file port.py.

def novatel_span_driver.port.Port.recv (   self,
  d = False 
)
Receive a packet from the port's socket.
Returns (header, pkt_str)
Returns None, None when no data. 

Definition at line 56 of file port.py.

def novatel_span_driver.port.Port.send (   self,
  header,
  message 
)
Sends a header/msg/footer out the socket. Takes care of computing
length field for header and checksum field for footer. 

Definition at line 102 of file port.py.


Member Data Documentation

Definition at line 48 of file port.py.

tuple novatel_span_driver::port.Port::checksum_struct = struct.Struct("<hh") [static]

Definition at line 46 of file port.py.

Definition at line 48 of file port.py.

Definition at line 48 of file port.py.

Definition at line 48 of file port.py.

Definition at line 48 of file port.py.


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


novatel_span_driver
Author(s): NovAtel Support
autogenerated on Thu Sep 28 2017 03:12:25