pub unsafe extern "C" fn uart_irq_callback_set(
dev: *const device,
cb: Option<unsafe extern "C" fn(*const device, *mut c_void)>,
) -> i32Expand description
@brief Set the IRQ callback function pointer (legacy).
This sets up the callback for IRQ. When an IRQ is triggered, the specified function will be called with the device pointer.
@param dev UART device instance. @param cb Pointer to the callback function.
@retval 0 On success. @retval -ENOSYS If this function is not implemented. @retval -ENOTSUP If API is not enabled.