Package kenozooid :: Package driver :: Package hwos :: Module raw

Module raw

source code

Raw data reader for hwOS OSTC dive computer.
Variables
  logger = logging.getLogger(__name__)
  profiles = await dive_profiles(drv, headers)
  headers = dive_headers_data(headers)
  sizes = dive_profile_size(v) for v in headers
  size = n+ 256-3
  dive_no = bytes([k])
  data = await drv.read_data(b'\x66', size, params= dive_no)
  head = data [: 256]
  profile = data [256:]