Lines Matching refs:opcode
98 def send_monitor_hdr_btmon_socket(self, idx, opcode, data_len): argument
106 ble_monitor_hdr = struct.pack("<HHH", opcode, idx, data_len)
110 def send_monitor_hdr_file(self, idx, opcode, data_len, timestamp): argument
121 flags = (idx << 16) | opcode
126 def send_monitor_hdr(self, idx, opcode, data_len): argument
131 self.send_monitor_hdr_file(idx, opcode, data_len, timestamp)
133 self.send_monitor_hdr_btmon_socket(idx, opcode, data_len)
149 opcode = BleMonitorOpcode.EVENT
151 self.send_monitor_hdr(idx, opcode, eventLen + 2)
159 def send_command_sock(self, opcode, len, data): argument
160 self.sock.send(opcode)
168 def send_command_file(self, opcode, len, data): argument
169 self.file.write(opcode)
177 def send_monitor_command(self, opcode, len, data): argument
179 self.send_command_file(opcode, len, data)
181 self.send_command_sock( opcode, len, data)
240 opcode = BleMonitorOpcode.ACL_TX
243 opcode = BleMonitorOpcode.ISO_TX
245 self.send_monitor_hdr(idx, opcode, payload_len)
255 opcode = BleMonitorOpcode.COMMAND
257 self.send_monitor_hdr(idx, opcode, payload_len + 1)