staticintrtl_read_rom_version(struct hci_dev *hdev, u8 *version){structrtl_rom_version_evt*rom_version;structsk_buff*skb;/* Read RTL ROM version command */skb =__hci_cmd_sync(hdev,0xfc6d,0,NULL, HCI_INIT_TIMEOUT);if(IS_ERR(skb)) { BT_ERR("%s: Read ROM version failed (%ld)...
} 此段代码中SBP_CONN_EVT_END_EVT是指什么事件?此事件发生要处理什么?此段代码没看太懂。
@@ -2318,6 +2355,10 @@ static void hci_cmd_complete_evt(struct hci_dev *hdev, struct sk_buff *skb) hci_cc_read_local_amp_info(hdev, skb); break;case HCI_OP_READ_LOCAL_AMP_ASSOC: hci_cc_read_local_amp_assoc(hdev, skb); ...
voidbtu_hcif_send_cmd_with_cb(constbase::Location&posted_from,uint16_topcode,uint8_t*params,uint8_tparams_len,hci_cmd_cb cb){...hci_layer_get_interface()->transmit_command(p,btu_hcif_command_complete_evt_with_cb,btu_hcif_command_status_evt_with_cb,(void*)cb_wrapper);}voidbtu_h...
示例2: hci_auth_complete_evt ▲点赞 6▼ staticinlinevoidhci_auth_complete_evt(struct hci_dev *hdev, struct sk_buff *skb){structhci_ev_auth_complete*ev= (void*)skb->data;structhci_conn*conn;BT_DBG("%s status %d", hdev->name, ev->status); ...
CONFIG_BT_BUF_EVT_RX_SIZE=255 CONFIG_BT_BUF_CMD_TX_SIZE=255 # Bluetooth -> Bluetooth Controller # - Maximum supported ACL size for outgoing data CONFIG_BT_BUF_ACL_TX_SIZE=251 CONFIG_BT_BUF_ACL_TX_COUNT=255 # - Maximum data length supported CONFIG_BT_CTLR_DATA_LENGTH_MAX=251 # - ...
bluez.hci_filter_set_event(flt, bluez.EVT_CMD_COMPLETE); bluez.hci_filter_set_opcode(flt, opcode) sock.setsockopt( bluez.SOL_HCI, bluez.HCI_FILTER, flt )# send the command!bluez.hci_send_cmd(sock, bluez.OGF_HOST_CTL, bluez.OCF_WRITE_INQUIRY_MODE, struct.pack("B", mode) ) ...
staticintrtl_read_rom_version(struct hci_dev *hdev, u8 *version){structrtl_rom_version_evt*rom_version;structsk_buff*skb;/* Read RTL ROM version command */skb =__hci_cmd_sync(hdev,0xfc6d,0,NULL, HCI_INIT_TIMEOUT);if(IS_ERR(skb)) { ...