public class UsbDeviceDataEvent extends UsbDeviceEvent
This event will be fired on all successful transfers of data over the DCP.
| Constructor and Description |
|---|
UsbDeviceDataEvent(UsbDevice source,
UsbControlIrp irp)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData()
Get the data.
|
UsbControlIrp |
getUsbControlIrp()
Get the UsbControlIrp associated with this event.
|
getUsbDevicepublic UsbDeviceDataEvent(UsbDevice source, UsbControlIrp irp)
source - The UsbDevice.irp - The UsbControlIrp.public byte[] getData()
This is a new byte[] whose length is the actual amount of transferred data. The contents is a copy of the transferred data.
public UsbControlIrp getUsbControlIrp()