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

bt_device_read

Function bt_device_read 

Source
pub fn bt_device_read(
    handle: &BtDeviceHandle,
    buf: &mut [u8],
) -> Result<usize, KernelError>
Expand description

Read the next HCI event from the kernel event queue.

Returns the event in H4 format: [0x04] [event_code] [param_len] [params...]

If no event is available, returns Ok(0).