zephyr::raw

Function device_from_handle

Source
pub unsafe extern "C" fn device_from_handle(
    dev_handle: i16,
) -> *const device
Expand description

@brief Get the device corresponding to a handle.

@param dev_handle the device handle

@return the device that has that handle, or a null pointer if @p dev_handle does not identify a device.