Lines Matching refs:type
32 # Enumeration of the values the 'type' field can take in a btsnooz
43 def type_to_direction(type):
45 Returns the inbound/outbound direction of a packet given its type.
49 if type in [TYPE_IN_EVT, TYPE_IN_ACL, TYPE_IN_SCO]:
54 def type_to_hci(type):
56 Returns the HCI type of a packet given its btsnooz type.
58 if type == TYPE_OUT_CMD:
60 if type == TYPE_IN_ACL or type == TYPE_OUT_ACL:
62 if type == TYPE_IN_SCO or type == TYPE_OUT_SCO:
64 if type == TYPE_IN_EVT:
98 length, delta_time_ms, type = struct.unpack_from('=HIb', decompressed, offset)
105 length, delta_time_ms, type = struct.unpack_from('=HIb', decompressed, offset)
109 sys.stdout.write(struct.pack('>II', type_to_direction(type), 0))
111 sys.stdout.write(type_to_hci(type))