pub fn bt_device_write(
handle: &BtDeviceHandle,
data: &[u8],
) -> Result<usize, KernelError>Expand description
Write an HCI command packet to the kernel HCI layer.
The data should be an H4-formatted command packet:
[0x01] [opcode_lo] [opcode_hi] [param_len] [params...]
The command is forwarded to the kernel’s BluetoothController for processing and transmission to the hardware.