Lines Matching refs:opcode

130     def emit_command_complete(self, opcode, result):  argument
132 …rite(self.fd, '\x04\x0e' + chr(3 + len(result)) + chr(1) + chr(opcode & 255) + chr(opcode >> 8) +…
163 opcode = little_endian_read_16(packet, 0)
165 if opcode == 0x0c03:
166 self.emit_command_complete(opcode, '\x00')
168 if opcode == 0x1001:
169 self.emit_command_complete(opcode, '\x00\x10\x00\x06\x86\x1d\x06\x0a\x00\x86\x1d')
171 if opcode == 0x0c14:
172 self.emit_command_complete(opcode, '\x00' + self.name)
174 if opcode == 0x1002:
175 …self.emit_command_complete(opcode, '\x00\xff\xff\xff\x03\xfe\xff\xff\xff\xff\xff\xff\xff\xf3\x0f\x…
177 if opcode == 0x1009:
179 self.emit_command_complete(opcode, '\x00' + self.bd_addr[::-1])
181 if opcode == 0x1005:
183 self.emit_command_complete(opcode, '\x00\x36\x01\x40\x0a\x00\x08\x00')
185 if opcode == 0x1003:
187 self.emit_command_complete(opcode, '\x00\xff\xff\x8f\xfe\xf8\xff\x5b\x87')
189 if opcode == 0x0c01:
190 self.emit_command_complete(opcode, '\x00')
192 if opcode == 0x2002:
194 self.emit_command_complete(opcode, '\x00\x00\x00\x00')
196 if opcode == 0x200f:
198 self.emit_command_complete(opcode, '\x00\x19')
200 if opcode == 0x200b:
202 self.emit_command_complete(opcode, '\x00')
204 if opcode == 0x200c:
207 self.emit_command_complete(opcode, '\x00')
209 if opcode == 0x0c6d:
211 self.emit_command_complete(opcode, '\x00')
213 if opcode == 0x2017:
219 self.emit_command_complete(opcode, result[::-1])
221 if opcode == 0x2018:
223 self.emit_command_complete(opcode, '\x00' + self.random.read(8))
225 if opcode == 0x2006:
228 self.emit_command_complete(opcode, '\x00')
230 if opcode == 0x2008:
234 self.emit_command_complete(opcode, '\x00')
236 if opcode == 0x200a:
239 self.emit_command_complete(opcode, '\x00')
241 print("Opcode 0x%0x not handled!" % opcode)