Lines Matching refs:hci
6 use bt_packets::hci::{AclPacket, CommandPacket, Packet};
36 hci: &mut Hci, in hci_send_command()
43 let mut commands = hci.internal.commands.clone(); in hci_send_command()
44 hci.rt.spawn(async move { in hci_send_command()
53 pub fn hci_send_acl(hci: &mut Hci, data: &[u8]) { in hci_send_acl()
56 let tx = hci.internal.acl_tx.clone(); in hci_send_acl()
57 hci.rt.spawn(async move { in hci_send_acl()
65 pub fn hci_register_event(hci: &mut Hci, event: u8) { in hci_register_event()
66 let mut hci_facade = hci.internal.clone(); in hci_register_event()
67 hci.rt.spawn(async move { in hci_register_event()
72 pub fn hci_register_le_event(hci: &mut Hci, subevent: u8) { in hci_register_le_event()
73 let mut hci_facade = hci.internal.clone(); in hci_register_le_event()
74 hci.rt.spawn(async move { in hci_register_le_event()
79 pub fn hci_set_acl_callback(hci: &mut Hci, cb: cxx::UniquePtr<ffi::u8SliceCallback>) { in hci_set_acl_callback()
80 hci.internal.acl_rx.stream_runnable(&hci.rt, CallbackWrapper { cb }); in hci_set_acl_callback()
83 pub fn hci_set_evt_callback(hci: &mut Hci, cb: cxx::UniquePtr<ffi::u8SliceCallback>) { in hci_set_evt_callback()
84 hci.internal.evt_rx.stream_runnable(&hci.rt, CallbackWrapper { cb }); in hci_set_evt_callback()
87 pub fn hci_set_le_evt_callback(hci: &mut Hci, cb: cxx::UniquePtr<ffi::u8SliceCallback>) { in hci_set_le_evt_callback()
88 hci.internal.le_evt_rx.stream_runnable(&hci.rt, CallbackWrapper { cb }); in hci_set_le_evt_callback()