def enqueue_hci_command(self, command, expect_complete): cmd_bytes = bytes(command.Serialize()) cmd = common.Data(payload=cmd_bytes) if (expect_complete): self.cert.hci.EnqueueCommandWithComplete(cmd) else: self.cert.hci.EnqueueCommandWithStatus(cmd)
def enqueue_acl_data(self, handle, pb_flag, b_flag, data): acl = hci_packets.AclBuilder(handle, pb_flag, b_flag, RawBuilder(data)) self.cert.hci.SendAcl(common.Data(payload=bytes(acl.Serialize())))
def send(self, pb_flag, b_flag, data): acl = AclBuilder(self.handle, pb_flag, b_flag, RawBuilder(data)) self.device.hal.SendAcl(common.Data(payload=bytes(acl.Serialize())))
def enqueue_hci_command(self, command): cmd_bytes = bytes(command.Serialize()) cmd = common.Data(payload=cmd_bytes) self.cert.hci.SendCommand(cmd)
def send_hci_command(self, command): self.device.hal.SendCommand( common.Data(payload=bytes(command.Serialize())))