Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QUsbSerialGadget class is used to enable serial communication class of USB gadgets. More...
#include <QUsbSerialGadget>
Inherits QUsbGadget.
Inherited by QUsbSerialGadgetProvider.
The QUsbSerialGadget class is used to enable serial communication class of USB gadgets.
The QUsbSerialGadget class is used to configure the USB gadget hardware as a serial communication class device.
QUsbSerialGadget *gadget = new QUsbSerialGadget; if (gadget->available()) { connect(gadget, SIGNAL(activated()), this, SLOT(serialActivated())); gadget->activate(); }
See also QUsbManager and UsbGadgetTask.
Constructs a new QUsbSerialGadget object in group and attach it to parent. If mode is Client, then the object is constructed in client mode and group may be empty to indicate that the default group should be used.
Returns true if the USB gadget uses the CDC ACM protocol.
See also setCdcAcm().
Set the serial gadget to use the CDC ACM protocol if acmMode is true.
See also cdcAcm().
Returns true if the USB gadget supports settings whether CDC ACM mode is used.
Returns the name of the tty device.
Copyright © 2009 Nokia | Trademarks | Qt Extended 4.4.3 |