def enqueue_hci_command(self, command, expect_complete): cmd_bytes = bytes(command.Serialize()) cmd = hci_facade.CommandMsg(command=cmd_bytes) if (expect_complete): self.cert.hci.EnqueueCommandWithComplete(cmd) else: self.cert.hci.EnqueueCommandWithStatus(cmd)
def __send_hci_command_with_status(self, command): cmd_bytes = bytes(command.Serialize()) cmd = hci_facade.CommandMsg(command=cmd_bytes) self.hci.EnqueueCommandWithStatus(cmd)
def send_command_with_complete(self, command): cmd_bytes = bytes(command.Serialize()) cmd = hci_facade.CommandMsg(command=cmd_bytes) self.device.hci.EnqueueCommandWithComplete(cmd)