samples/subsys/usb/webusb/src/webusb_serial.c
/**
 * @brief Check if Rx IRQ has been raised
 *
 * @param dev WebUSB Serial device struct.
 *
 * @return 1 if an IRQ is ready, 0 otherwise.
 */
@brief Check if Rx IRQ has been raised
@param dev WebUSB Serial device struct.

@return 1 if an IRQ is ready, 0 otherwise.
@brief Check if Rx IRQ has been raised @param dev WebUSB Serial device struct . @return 1 if an IRQ is ready 0 otherwise .
static int webusb_serial_irq_rx_ready(struct device *dev)
{
	struct webusb_serial_dev_data_t * const dev_data = DEV_DATA(dev);
	if (dev_data->rx_ready) {
		dev_data->rx_ready = 0;
		return 1;
	}
	return 0;
}
static int webusb_serial_irq_rx_ready ( struct device * dev ) { struct webusb_serial_dev_data_t * const dev_data = DEV_DATA ( dev ) ; if ( dev_data -> rx_ready ) { dev_data -> rx_ready = 0 ; return 1 ; } return 0 ; }
@brief Check if Rx IRQ has been raised
 @param dev WebUSB Serial device struct.
@brief Check if Rx IRQ has been raised @param dev WebUSB Serial device struct .