samples/subsys/usb/webusb/src/webusb_serial.c
/**
 * @brief Check if Tx or Rx IRQ is pending
 *
 * @param dev WebUSB Serial device struct.
 *
 * @return 1 if a Tx or Rx IRQ is pending, 0 otherwise.
 */
@brief Check if Tx or Rx IRQ is pending
@param dev WebUSB Serial device struct.

@return 1 if a Tx or Rx IRQ is pending, 0 otherwise.
@brief Check if Tx or Rx IRQ is pending @param dev WebUSB Serial device struct . @return 1 if a Tx or Rx IRQ is pending 0 otherwise .
static int webusb_serial_irq_is_pending(struct device *dev)
{
	struct webusb_serial_dev_data_t * const dev_data = DEV_DATA(dev);
	if (dev_data->tx_ready || dev_data->rx_ready) {
		return 1;
	}
	return 0;
}
static int webusb_serial_irq_is_pending ( struct device * dev ) { struct webusb_serial_dev_data_t * const dev_data = DEV_DATA ( dev ) ; if ( dev_data -> tx_ready || dev_data -> rx_ready ) { return 1 ; } return 0 ; }
@brief Check if Tx or Rx IRQ is pending
 @param dev WebUSB Serial device struct.
@brief Check if Tx or Rx IRQ is pending @param dev WebUSB Serial device struct .