Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | List of all members
novatel_span_driver.port.Port Class Reference
Inheritance diagram for novatel_span_driver.port.Port:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, sock, opts)
 
def recv (self, d=False)
 
def send (self, header, message)
 

Public Attributes

 bSerial
 
 daemon
 
 finish
 
 opts
 
 sock
 

Static Public Attributes

 checksum_struct = struct.Struct("<hh")
 

Private Member Functions

def _checksum (cls, buff)
 

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

novatel_span_driver.port.Port.bSerial

Definition at line 54 of file port.py.

novatel_span_driver.port.Port.checksum_struct = struct.Struct("<hh")
static

Definition at line 46 of file port.py.

novatel_span_driver.port.Port.daemon

Definition at line 52 of file port.py.

novatel_span_driver.port.Port.finish

Definition at line 53 of file port.py.

novatel_span_driver.port.Port.opts

Definition at line 51 of file port.py.

novatel_span_driver.port.Port.sock

Definition at line 50 of file port.py.


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


novatel_span_driver
Author(s): NovAtel Support
autogenerated on Wed Apr 3 2019 02:52:53