Exemplo n.º 1
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__duration, offset, length) = get_u64(buf, offset, length)
     ret['duration'] = __duration
     (__total_bytes, offset, length) = get_u64(buf, offset, length)
     ret['total_bytes'] = __total_bytes
     (__rx_bytes, offset, length) = get_u32(buf, offset, length)
     ret['rx_bytes'] = __rx_bytes
     (__tx_bytes, offset, length) = get_u32(buf, offset, length)
     ret['tx_bytes'] = __tx_bytes
     (__interface_name, offset, length) = get_fixed_string(16)(buf, offset,
                                                               length)
     ret['interface_name'] = __interface_name
     return ret, offset, length
Exemplo n.º 2
0
 def parse_members(cls, buf, offset, length):
   ret = {}
   (__time, offset, length) = get_u64(buf, offset, length)
   ret['time'] = __time
   (__flags, offset, length) = get_u8(buf, offset, length)
   ret['flags'] = __flags
   (__source, offset, length) = get_u8(buf, offset, length)
   ret['source'] = __source
   (__ticks, offset, length) = get_s32(buf, offset, length)
   ret['ticks'] = __ticks
   return ret, offset, length
Exemplo n.º 3
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__recv_time, offset, length) = get_u64(buf, offset, length)
     ret['recv_time'] = __recv_time
     (__tot, offset, length) = GPSTimeDep.parse_members(buf, offset, length)
     ret['tot'] = __tot
     (__P, offset, length) = get_u32(buf, offset, length)
     ret['P'] = __P
     (__P_std, offset, length) = get_u16(buf, offset, length)
     ret['P_std'] = __P_std
     (__L, offset, length) = CarrierPhase.parse_members(buf, offset, length)
     ret['L'] = __L
     (__cn0, offset, length) = get_u8(buf, offset, length)
     ret['cn0'] = __cn0
     (__lock, offset, length) = get_u16(buf, offset, length)
     ret['lock'] = __lock
     (__sid, offset,
      length) = GnssSignalDep.parse_members(buf, offset, length)
     ret['sid'] = __sid
     (__doppler, offset, length) = get_s32(buf, offset, length)
     ret['doppler'] = __doppler
     (__doppler_std, offset, length) = get_u16(buf, offset, length)
     ret['doppler_std'] = __doppler_std
     (__uptime, offset, length) = get_u32(buf, offset, length)
     ret['uptime'] = __uptime
     (__clock_offset, offset, length) = get_s16(buf, offset, length)
     ret['clock_offset'] = __clock_offset
     (__clock_drift, offset, length) = get_s16(buf, offset, length)
     ret['clock_drift'] = __clock_drift
     (__corr_spacing, offset, length) = get_u16(buf, offset, length)
     ret['corr_spacing'] = __corr_spacing
     (__acceleration, offset, length) = get_s8(buf, offset, length)
     ret['acceleration'] = __acceleration
     (__sync_flags, offset, length) = get_u8(buf, offset, length)
     ret['sync_flags'] = __sync_flags
     (__tow_flags, offset, length) = get_u8(buf, offset, length)
     ret['tow_flags'] = __tow_flags
     (__track_flags, offset, length) = get_u8(buf, offset, length)
     ret['track_flags'] = __track_flags
     (__nav_flags, offset, length) = get_u8(buf, offset, length)
     ret['nav_flags'] = __nav_flags
     (__pset_flags, offset, length) = get_u8(buf, offset, length)
     ret['pset_flags'] = __pset_flags
     (__misc_flags, offset, length) = get_u8(buf, offset, length)
     ret['misc_flags'] = __misc_flags
     return ret, offset, length
Exemplo n.º 4
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__tile_set_id, offset, length) = get_u16(buf, offset, length)
     ret['tile_set_id'] = __tile_set_id
     (__tile_id, offset, length) = get_u16(buf, offset, length)
     ret['tile_id'] = __tile_id
     (__corner_nw_lat, offset, length) = get_s16(buf, offset, length)
     ret['corner_nw_lat'] = __corner_nw_lat
     (__corner_nw_lon, offset, length) = get_s16(buf, offset, length)
     ret['corner_nw_lon'] = __corner_nw_lon
     (__spacing_lat, offset, length) = get_u16(buf, offset, length)
     ret['spacing_lat'] = __spacing_lat
     (__spacing_lon, offset, length) = get_u16(buf, offset, length)
     ret['spacing_lon'] = __spacing_lon
     (__rows, offset, length) = get_u16(buf, offset, length)
     ret['rows'] = __rows
     (__cols, offset, length) = get_u16(buf, offset, length)
     ret['cols'] = __cols
     (__bitmask, offset, length) = get_u64(buf, offset, length)
     ret['bitmask'] = __bitmask
     return ret, offset, length
Exemplo n.º 5
0
 def parse_members(cls, buf, offset, length):
     ret = {}
     (__recv_time, offset, length) = get_u64(buf, offset, length)
     ret['recv_time'] = __recv_time
     (__event, offset, length) = get_u8(buf, offset, length)
     ret['event'] = __event
     (__object_type, offset, length) = get_u8(buf, offset, length)
     ret['object_type'] = __object_type
     (__result, offset, length) = get_u8(buf, offset, length)
     ret['result'] = __result
     (__data_source, offset, length) = get_u8(buf, offset, length)
     ret['data_source'] = __data_source
     (__object_sid, offset,
      length) = GnssSignal.parse_members(buf, offset, length)
     ret['object_sid'] = __object_sid
     (__src_sid, offset,
      length) = GnssSignal.parse_members(buf, offset, length)
     ret['src_sid'] = __src_sid
     (__original_sender, offset, length) = get_u16(buf, offset, length)
     ret['original_sender'] = __original_sender
     return ret, offset, length