⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

bt_device_write

Function bt_device_write 

Source
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.