pub unsafe extern "C" fn uart_irq_callback_set(
dev: *const device,
cb: uart_irq_callback_user_data_t,
) -> c_intExpand 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 This function is not implemented. @retval -ENOTSUP API is not enabled.