Package kenozooid :: Package driver :: Module su

Module su

source code

Driver for Reefnet Sensus Ultra dive logger.

It uses libdivecomputer library from

http://divesoftware.org/libdc/

Tested with libdivecomputer version: 781f0db71f7a06591e819f7960dd5b504b4f16a0.

Classes
  DCBuffer
  Pressure
  Event
  Vendor
  SampleValue
  SensusUltraDriver
Sensus Ultra dive logger driver.
  SensusUltraDataParser
Reefnet Sensus Ultra dive logger data parser.
Variables
  log = logging.getLogger('kenozooid.driver.su')
  SIZE_MEM_USER = 16384
  SIZE_MEM_DATA = 2080768
  SIZE_MEM_HANDSHAKE = 24
  SIZE_MEM_SENSE = 6
  START_HANDSHAKE = 0
  START_USER = 24
  END_HANDSHAKE = 24
  START_DATA = START_USER+ SIZE_MEM_USER
  END_USER = START_USER+ SIZE_MEM_USER
  END_DATA = START_DATA+ SIZE_MEM_DATA
  HandshakeDump = namedtuple('HandshakeDump', 'ver1 ver2 serial ...
  FMT_HANDSHAKE = '<bbHL'
  DiveHeader = namedtuple('DiveHeader', 'time interval threshold...
  FMT_DIVE_HEADER = '<4xL4H'
  SampleType = namedtuple('SampleType', 'time depth pressure tem...
  FuncDive = ct.CFUNCTYPE(ct.c_uint, ct.POINTER(ct.c_char), ct.c...
  FuncSample = ct.CFUNCTYPE(None, ct.c_int, SampleValue, ct.c_vo...
Variables Details

HandshakeDump

Value:
namedtuple('HandshakeDump', 'ver1 ver2 serial time')

DiveHeader

Value:
namedtuple('DiveHeader', 'time interval threshold' ' endcount averagin\
g')

SampleType

Value:
namedtuple('SampleType', 'time depth pressure temperature' ' event rbt\
 heartbeat bearing vendor')._make(range(9))

FuncDive

Value:
ct.CFUNCTYPE(ct.c_uint, ct.POINTER(ct.c_char), ct.c_uint, ct.POINTER(c\
t.c_char), ct.c_uint, ct.c_void_p)

FuncSample

Value:
ct.CFUNCTYPE(None, ct.c_int, SampleValue, ct.c_void_p)