Lines Matching refs:handle
590 def disconnect(transport, idx, handle, reason, to): argument
592 …t.pack('<HHHHB', Commands.CMD_DISCONNECT_REQ, 5, HCICommands.BT_HCI_OP_DISCONNECT, handle, reason);
614 def read_remote_version_information(transport, idx, handle, to): argument
616 …MD_READ_REMOTE_VERSION_INFORMATION_REQ, 4, HCICommands.BT_HCI_OP_READ_REMOTE_VERSION_INFO, handle);
691 def read_transmit_power_level(transport, idx, handle, levelType, to): argument
693 …MD_READ_TRANSMIT_POWER_LEVEL_REQ, 5, HCICommands.BT_HCI_OP_READ_TX_POWER_LEVEL, handle, levelType);
701 RespCmd, RespLen, status, handle, TxPowerLevel = struct.unpack('<HHBHb', packet);
709 return status, handle, TxPowerLevel;
838 def read_authenticated_payload_timeout(transport, idx, handle, to): argument
840 …EAD_AUTHENTICATED_PAYLOAD_TIMEOUT_REQ, 4, HCICommands.BT_HCI_OP_READ_AUTH_PAYLOAD_TIMEOUT, handle);
848 RespCmd, RespLen, status, handle, AuthPayloadTimeout = struct.unpack('<HHBHH', packet);
856 return status, handle, AuthPayloadTimeout;
863 def write_authenticated_payload_timeout(transport, idx, handle, AuthPayloadTimeout, to): argument
865 …AYLOAD_TIMEOUT_REQ, 6, HCICommands.BT_HCI_OP_WRITE_AUTH_PAYLOAD_TIMEOUT, handle, AuthPayloadTimeou…
873 RespCmd, RespLen, status, handle = struct.unpack('<HHBH', packet);
881 return status, handle;
1022 def read_rssi(transport, idx, handle, to): argument
1024 …cmd = struct.pack('<HHHH', Commands.CMD_READ_RSSI_REQ, 4, HCICommands.BT_HCI_OP_READ_RSSI, handle);
1032 RespCmd, RespLen, status, handle, rssi = struct.unpack('<HHBHb', packet);
1040 return status, handle, rssi;
1480 def le_connection_update(transport, idx, handle, ConnIntervalMin, ConnIntervalMax, ConnLatency, Sup… argument
1482 ….CMD_LE_CONNECTION_UPDATE_REQ, 16, HCICommands.BT_HCI_OP_LE_CONN_UPDATE, handle, ConnIntervalMin, …
1529 def le_read_channel_map(transport, idx, handle, to): argument
1531 …('<HHHH', Commands.CMD_LE_READ_CHANNEL_MAP_REQ, 4, HCICommands.BT_HCI_OP_LE_READ_CHAN_MAP, handle);
1539 RespCmd, RespLen, status, handle = struct.unpack('<HHBH', packet[:7]);
1548 return status, handle, int.from_bytes(ChMap, 'little', signed=False)
1554 def le_read_remote_features(transport, idx, handle, to): argument
1556 …ommands.CMD_LE_READ_REMOTE_FEATURES_REQ, 4, HCICommands.BT_HCI_OP_LE_READ_REMOTE_FEATURES, handle);
1635 def le_start_encryption(transport, idx, handle, rand, ediv, ltk, to): argument
1648 (HCICommands.BT_HCI_OP_LE_START_ENCRYPTION, handle, rand, ediv, *ltk))
1657 def le_long_term_key_request_reply(transport, idx, handle, ltk, to): argument
1659 ….CMD_LE_LONG_TERM_KEY_REQUEST_REPLY_REQ, 20, HCICommands.BT_HCI_OP_LE_LTK_REQ_REPLY, handle, *ltk);
1667 RespCmd, RespLen, status, handle = struct.unpack('<HHBH', packet);
1675 return status, handle;
1681 def le_long_term_key_request_negative_reply(transport, idx, handle, to): argument
1683 …E_LONG_TERM_KEY_REQUEST_NEGATIVE_REPLY_REQ, 4, HCICommands.BT_HCI_OP_LE_LTK_REQ_NEG_REPLY, handle);
1691 RespCmd, RespLen, status, handle = struct.unpack('<HHBH', packet);
1699 return status, handle;
1804 def le_remote_connection_parameter_request_reply(transport, idx, handle, IntervalMin, IntervalMax, … argument
1806 …ER_REQUEST_REPLY_REQ, 16, HCICommands.BT_HCI_OP_LE_CONN_PARAM_REQ_REPLY, handle, IntervalMin, Inte…
1814 RespCmd, RespLen, status, handle = struct.unpack('<HHBH', packet);
1822 return status, handle;
1829 def le_remote_connection_parameter_request_negative_reply(transport, idx, handle, reason, to): argument
1831 …_REQUEST_NEGATIVE_REPLY_REQ, 5, HCICommands.BT_HCI_OP_LE_CONN_PARAM_REQ_NEG_REPLY, handle, reason);
1839 RespCmd, RespLen, status, handle = struct.unpack('<HHBH', packet);
1847 return status, handle;
1854 def le_set_data_length(transport, idx, handle, TxOctets, TxTime, to): argument
1856 …ds.CMD_LE_SET_DATA_LENGTH_REQ, 8, HCICommands.BT_HCI_OP_LE_SET_DATA_LEN, handle, TxOctets, TxTime);
1864 RespCmd, RespLen, status, handle = struct.unpack('<HHBH', packet);
1872 return status, handle;
2204 def le_read_phy(transport, idx, handle, to): argument
2206 …= struct.pack('<HHHH', Commands.CMD_LE_READ_PHY_REQ, 4, HCICommands.BT_HCI_OP_LE_READ_PHY, handle);
2214 RespCmd, RespLen, status, handle, TxPhy, RxPhy = struct.unpack('<HHBHBB', packet);
2222 return status, handle, TxPhy, RxPhy;
2253 def le_set_phy(transport, idx, handle, AllPhys, TxPhys, RxPhys, PhyOpts, to): argument
2255 …BBBH', Commands.CMD_LE_SET_PHY_REQ, 9, HCICommands.BT_HCI_OP_LE_SET_PHY, handle, AllPhys, TxPhys, …
2324 def le_set_extended_advertising_parameters(transport, idx, handle, props, PrimMinInterval, PrimMaxI… argument
2326 …ERTISING_PARAMETERS_REQ, 27, HCICommands.BT_HCI_OP_LE_SET_EXT_ADV_PARAM, handle, props, *PrimMinIn…
2364 def le_set_extended_advertising_data(transport, idx, handle, op, FragPref, data, to): argument
2366 …SING_DATA_REQ, len(data) + 6, HCICommands.BT_HCI_OP_LE_SET_EXT_ADV_DATA, handle, op, FragPref, len…
2387 def le_set_extended_scan_response_data(transport, idx, handle, op, FragPref, data, to): argument
2389 …DATA_REQ, len(data) + 6, HCICommands.BT_HCI_OP_LE_SET_EXT_SCAN_RSP_DATA, handle, op, FragPref, len…
2499 def le_remove_advertising_set(transport, idx, handle, to): argument
2501 …', Commands.CMD_LE_REMOVE_ADVERTISING_SET_REQ, 3, HCICommands.BT_HCI_OP_LE_REMOVE_ADV_SET, handle);
2545 def le_set_periodic_advertising_parameters(transport, idx, handle, MinInterval, MaxInterval, props,… argument
2547 …VERTISING_PARAMETERS_REQ, 9, HCICommands.BT_HCI_OP_LE_SET_PER_ADV_PARAM, handle, MinInterval, MaxI…
2572 def le_set_periodic_advertising_data(transport, idx, handle, op, dataLen, data, to): argument
2574 …IC_ADVERTISING_DATA_REQ, 256, HCICommands.BT_HCI_OP_LE_SET_PER_ADV_DATA, handle, op, dataLen, *dat…
2596 def le_set_periodic_advertising_enable(transport, idx, enable, handle, to): argument
2598 …T_PERIODIC_ADVERTISING_ENABLE_REQ, 4, HCICommands.BT_HCI_OP_LE_SET_PER_ADV_ENABLE, enable, handle);
2748 def le_periodic_advertising_terminate_sync(transport, idx, handle, to): argument
2750 …RIODIC_ADVERTISING_TERMINATE_SYNC_REQ, 4, HCICommands.BT_HCI_OP_LE_PER_ADV_TERMINATE_SYNC, handle);
3159 def le_data_write(transport, idx, handle, PbFlags, BcFlags, data, to): argument
3161 handle &= 0x0fff;
3162 handle |= (PbFlags | (BcFlags << 2)) << 12;
3163 …' + str(len(data)) + 'B', Commands.CMD_LE_DATA_WRITE_REQ, 4 + len(data), handle, len(data), *data);
3194 RespCmd, RespLen, time, handle, dataLen = struct.unpack('<HHIHH', packet[:12]);
3208 PbFlags = (handle >> 12) & 0x03;
3209 BcFlags = (handle >> 14) & 0x03;
3210 handle &= 0x0fff;
3212 transport.Trace.btsnoop.send_monitor_acl_rx(idx, handle, dataLen, packet)
3214 return time, handle, PbFlags, BcFlags, data;
3352 def le_iso_data_write(transport, idx, handle, PbFlags, TsFlag, data, to): argument
3354 handle &= 0x0fff
3355 handle |= ((PbFlags | (TsFlag << 2)) << 12) & 0x7fff
3357 … str(len(data)) + 'B', Commands.CMD_LE_ISO_DATA_WRITE_REQ, 4 + len(data), handle, len(data), *data)
3378 RespCmd, RespLen, time, handle, dataLen = struct.unpack('<HHIHH', packet[:12])
3392 transport.Trace.btsnoop.send_monitor_iso_rx(idx, handle, dataLen, packet)
3394 PbFlags = (handle >> 12) & 0x03
3395 TsFlag = (handle >> 14) & 0x01
3396 handle &= 0x0fff
3398 return time, handle, PbFlags, TsFlag, data