An event source interface for managed and scripting clients.
You do not explicitly implement this interface. It is usually implemented by the language runtime. You register the so-called “events”, one for each method of this interface to handle specific monitored requests.
This interface is used by the managed and scripting clients. The language runtime usually uses the methods of this interface automatically, allowing the client to register the events, callbacks or delegates, which are called when the USB Monitoring Control library fires these events. There is a proprietary interface in each managed language to connect to event sources. You will see Microsoft C# examples in this documentation, for other languages, please consult their documentation for a proper syntax to handle events.
// This interface is not available in scripting environment
public interface _IMonitoringEvents
{
// Methods
void ${OnClassEndpoint}(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value,
ushort Index);
void ${OnClassInterface}(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value,
ushort Index);
void ${OnClassOther}(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value);
void ${OnClearFeatureToDevice}(DateTime time,
byte[] array,
ushort FeatureSelector);
void ${OnClearFeatureToEndpoint}(DateTime time,
byte[] array,
ushort FeatureSelector,
ushort Index);
void ${OnClearFeatureToInterface}(DateTime time,
byte[] array,
ushort FeatureSelector,
ushort Index);
void ${OnClearFeatureToOther}(DateTime time,
byte[] array,
ushort FeatureSelector);
void ${OnConnection}(DateTime time,
${ConnectionState} cs,
string Name);
void ${OnControlTransfer}(DateTime time,
byte[] array,
uint payloadOffset,
uint payloadSize);
void ${OnGetConfiguration}(DateTime time, byte[] array);
void ${OnGetCurrentFrameNumber}(DateTime time,
byte[] array,
uint FrameNumber);
void ${OnGetDescriptorFromDevice}(DateTime time,
byte[] array,
byte Index,
byte DescriptorType,
ushort LanguageId);
void ${OnGetDescriptorFromEndpoint}(DateTime time,
byte[] array,
byte Index,
byte DescriptorType,
ushort LanguageId);
void ${OnGetDescriptorFromInterface}(DateTime time,
byte[] array,
byte Index,
byte DescriptorType,
ushort LanguageId);
void ${OnGetFrameLength}(DateTime time,
byte[] array,
uint FrameLength,
uint FrameNumber);
void ${OnGetInterface}(DateTime time, byte[] array, ushort Interface);
void ${OnGetStatusFromDevice}(DateTime time, byte[] array);
void ${OnGetStatusFromEndpoint}(DateTime time, byte[] array, ushort Index);
void ${OnGetStatusFromInterface}(DateTime time, byte[] array, ushort Index);
void ${OnGetStatusFromOther}(DateTime time, byte[] array);
void ${OnIsochTransfer}(DateTime time,
byte[] array,
uint nTransferFlags,
uint StartFrame,
uint NumberOfPackets,
uint ErrorCount);
void ${OnPacketDown}(DateTime time, byte[] array);
void ${OnPacketUp}(DateTime time, byte[] array);
void ${OnQueryID}(DateTime time);
void ${OnQueryInterface}(DateTime time);
void ${OnQueryText}(DateTime time);
void ${OnReleaseFrameLengthControl}(DateTime time, byte[] array, ushort Interface);
void ${OnResetPipe}(DateTime time, byte[] array, ulong PipeHandle);
void ${OnSelectConfiguration}(DateTime time, byte[] array);
void ${OnSelectInterface}(DateTime time,
byte[] array,
uint InterfaceNumber,
byte AlternateSetting);
void ${OnSetDescriptorToDevice}(DateTime time,
byte[] array,
byte Index,
byte DescriptorType,
ushort LanguageId);
void ${OnSetDescriptorToEndpoint}(DateTime time,
byte[] array,
ushort FeatureSelector,
ushort Index);
void ${OnSetDescriptorToInterface}(DateTime time,
byte[] array,
ushort FeatureSelector,
ushort Index,
byte DescriptorType,
ushort LanguageId);
void ${OnSetFeatureToDevice}(DateTime time, byte[] array, ushort FeatureSelector);
void ${OnSetFeatureToEndpoint}(DateTime time,
byte[] array,
ushort FeatureSelector,
ushort Index);
void ${OnSetFeatureToInterface}(DateTime time,
byte[] array,
ushort FeatureSelector,
ushort Index);
void ${OnSetFeatureToOther}(DateTime time,
byte[] array,
ushort FeatureSelector);
void ${OnSetFrameLength}(DateTime time, byte[] array, int FrameLengthDelta);
void ${OnSurpriseRemoval}(DateTime time);
void ${OnTakeFrameLengthControl}(DateTime time, byte[] array, ushort Interface);
void ${OnUrb}(DateTime time, byte[] array);
void ${OnVendorDevice}(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value);
void ${OnVendorEndpoint}(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value,
ushort Index);
void ${OnVendorInterface}(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value,
ushort Index);
void ${OnVendorOther}(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value);
void ${OnAbortPipe}(DateTime time,
byte[] array,
ulong PipeHandle);
void ${OnBulkOrInterruptTransfer}(DateTime time,
byte[] array,
uint payloadOffset,
uint payloadSize);
void ${OnClassDevice}(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value);
}
// This interface is not available in native environment
// This method is not available in scripting environment
void OnClassEndpoint(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value,
ushort Index);
// This method is not available in native environment
time
array
RequestTypeReservedBits
Request
Value
Index
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_CLASS_ENDPOINT
is received. See _URB_CONTROL_VENDOR_OR_CLASS_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnClassInterface(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value,
ushort Index);
// This method is not available in native environment
time
array
RequestTypeReservedBits
Request
Value
Index
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_CLASS_INTERFACE
is received. See _URB_CONTROL_VENDOR_OR_CLASS_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnClassOther(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value);
// This method is not available in native environment
time
array
RequestTypeReservedBits
Request
Value
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_CLASS_OTHER
is received. See _URB_CONTROL_VENDOR_OR_CLASS_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnClearFeatureToDevice(DateTime time,
byte[] array,
ushort FeatureSelector);
// This method is not available in native environment
time
array
FeatureSelector
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_CLEAR_FEATURE_TO_DEVICE
is received. See _URB_CONTROL_FEATURE_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnClearFeatureToEndpoint(DateTime time,
byte[] array,
ushort FeatureSelector,
ushort Index);
// This method is not available in native environment
time
array
FeatureSelector
FeatureSelector
member to the wValue
field of the setup packet.Index
Index
member to the wIndex
field of the setup packet.Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_CLEAR_FEATURE_TO_ENDPOINT
is received. See _URB_CONTROL_FEATURE_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnClearFeatureToInterface(DateTime time,
byte[] array,
ushort FeatureSelector,
ushort Index);
// This method is not available in native environment
time
array
FeatureSelector
FeatureSelector
member to the wValue
field of the setup packet.Index
Index
member to the wIndex
field of the setup packet.Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_CLEAR_FEATURE_TO_INTERFACE
is received. See _URB_CONTROL_FEATURE_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnClearFeatureToOther(DateTime time,
byte[] array,
ushort FeatureSelector);
// This method is not available in native environment
time
array
FeatureSelector
FeatureSelector
member to the wValue
field of the setup packet.Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_CLEAR_FEATURE_TO_OTHER
is received. See _URB_CONTROL_FEATURE_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnConnection(DateTime time,
${ConnectionState} cs,
string Name);
// This method is not available in native environment
time
cs
DeviceConnected
if device is connected and DeviceDisconnected
if device is disconnected.Name
Called when the control attaches/detaches itself to/from the USB device. (it is fired when USB packet with EventType == EVENT_DEVICECONNECTED
or EventType == EVENT_DEVICEDISCONNECTED
is received).
// This method is not available in scripting environment
void OnControlTransfer(DateTime time,
byte[] array,
uint payloadOffset,
uint payloadSize);
// This method is not available in native environment
time
array
payloadOffset
payloadSize
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_CONTROL_TRANSFER
is received. See _URB_CONTROL_DESCRIPTOR_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnGetConfiguration(DateTime time, byte[] array);
// This method is not available in native environment
time
array
See _URB_BULK_OR_INTERRUPT_TRANSFER
in MSDN for more details.
// This method is not available in scripting environment
void OnGetDescriptorFromDevice(DateTime time,
byte[] array,
byte Index,
byte DescriptorType,
ushort LanguageId);
// This method is not available in native environment
time
array
Index
DescriptorType
USB_DEVICE_DESCRIPTOR_TYPE
, USB_CONFIGURATION_DESCRIPTOR_TYPE
or USB_STRING_DESCRIPTOR_TYPE
.LanguageId
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE
is received. See _URB_CONTROL_DESCRIPTOR_REQUEST
for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnGetDescriptorFromEndpoint(DateTime time,
byte[] array,
byte Index,
byte DescriptorType,
ushort LanguageId);
// This method is not available in native environment
time
array
Index
DescriptorType
USB_DEVICE_DESCRIPTOR_TYPE
, USB_CONFIGURATION_DESCRIPTOR_TYPE
or USB_STRING_DESCRIPTOR_TYPE
.LanguageId
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_GET_DESCRIPTOR_FROM_ENDPOINT
is received. See _URB_CONTROL_DESCRIPTOR_REQUEST
for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnGetDescriptorFromInterface(DateTime time,
byte[] array,
byte Index,
byte DescriptorType,
ushort LanguageId);
// This method is not available in native environment
time
array
Index
DescriptorType
USB_DEVICE_DESCRIPTOR_TYPE
, USB_CONFIGURATION_DESCRIPTOR_TYPE
or USB_STRING_DESCRIPTOR_TYPE
.LanguageId
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_GET_DESCRIPTOR_FROM_INTERFACE
is received. See _URB_CONTROL_DESCRIPTOR_REQUEST
for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnGetFrameLength(DateTime time,
byte[] array,
uint FrameLength,
uint FrameNumber);
// This method is not available in native environment
time
array
FrameLength
FrameNumber
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_GET_FRAME_LENGTH
is received. See _URB_GET_FRAME_LENGTH
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnGetInterface(DateTime time, byte[] array, ushort Interface);
// This method is not available in native environment
time
array
Interface
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_GET_INTERFACE
is received. See _URB_CONTROL_GET_INTERFACE_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnGetStatusFromDevice(DateTime time, byte[] array);
// This method is not available in native environment
time
array
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_GET_STATUS_FROM_DEVICE
is received. See _URB_CONTROL_GET_STATUS_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnGetStatusFromEndpoint(DateTime time, byte[] array, ushort Index);
// This method is not available in native environment
time
array
Index
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_GET_STATUS_FROM_ENDPOINT
is received. See _URB_CONTROL_GET_STATUS_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnGetStatusFromInterface(DateTime time, byte[] array, ushort Index);
// This method is not available in native environment
time
array
Index
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_GET_STATUS_FROM_INTERFACE
is received. See _URB_CONTROL_GET_STATUS_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnGetStatusFromOther(DateTime time, byte[] array);
// This method is not available in native environment
time
array
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_GET_STATUS_FROM_OTHER
is received. See _URB_CONTROL_GET_STATUS_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnIsochTransfer(DateTime time,
byte[] array,
uint nTransferFlags,
uint StartFrame,
uint NumberOfPackets,
uint ErrorCount);
// This method is not available in native environment
time
array
nTransferFlags
USBD_TRANSFER_DIRECTION_IN
, USBD_SHORT_TRANSFER_OK
, USBD_START_ISO_TRANSFER_ASAP
.StartFrame
USBD_ISO_START_FRAME_RANGE
. If START_ISO_TRANSFER_ASAP
is set in TransferFlags
, this member contains the frame number that the transfer began on, when the request is returned by the host controller driver. Otherwise, this member must contain the frame number that this transfer will begin on.NumberOfPackets
ErrorCount
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_ISOCH_TRANSFER
is received. See _URB_ISOCH_TRANSFER
and USBD_ISO_PACKET_DESCRIPTOR
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnPacketDown(DateTime time, byte[] array);
// This method is not available in native environment
time
array
Called when packet is going down.
// This method is not available in scripting environment
void OnPacketUp(DateTime time, byte[] array);
// This method is not available in native environment
time
array
Called when packet is going up.
// This method is not available in scripting environment
void OnQueryID(DateTime time);
// This method is not available in native environment
time
Called when id is queried by EVENT_DEVICEQUERYID
.
// This method is not available in scripting environment
void OnQueryInterface(DateTime time);
// This method is not available in native environment
time
Called when interface is queried by EVENT_DEVICEQUERYINTERFACE
.
// This method is not available in scripting environment
void OnQueryText(DateTime time);
// This method is not available in native environment
time
Called when text is queried by EVENT_DEVICEQUERYTEXT
.
// This method is not available in scripting environment
void OnReleaseFrameLengthControl(DateTime time, byte[] array, ushort Interface);
// This method is not available in native environment
time
array
Interface
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_RELEASE_FRAME_LENGTH_CONTROL
is received. See _URB_CONTROL_GET_INTERFACE_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnResetPipe(DateTime time, byte[] array, ulong PipeHandle);
// This method is not available in native environment
time
array
PipeHandle
URB
of type URB_FUNCTION_SELECT_CONFIGURATION
or when the client driver changes the settings for an interface with a URB
of type URB_FUNCTION_SELECT_INTERFACE
.Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_RESET_PIPE
is received. See _URB_PIPE_REQUEST
in MSDN for more details.
// This method is not available in scripting environment
void OnSelectConfiguration(DateTime time, byte[] array);
// This method is not available in native environment
time
array
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_SELECT_CONFIGURATION
is received. See _URB_SELECT_CONFIGURATION
in MSDN for more details.
// This method is not available in scripting environment
void OnSelectInterface(DateTime time,
byte[] array,
uint InterfaceNumber,
byte AlternateSetting);
// This method is not available in native environment
time
array
InterfaceNumber
AlternateSetting
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_SELECT_INTERFACE
is received. See _URB_SELECT_INTERFACE
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnSetDescriptorToDevice(DateTime time,
byte[] array,
byte Index,
byte DescriptorType,
ushort LanguageId);
// This method is not available in native environment
time
array
Index
DescriptorType
USB_DEVICE_DESCRIPTOR_TYPE
, USB_CONFIGURATION_DESCRIPTOR_TYPE
, USB_STRING_DESCRIPTOR_TYPE
.LanguageId
USB_STRING_DESCRIPTOR_TYPE
is set in DescriptorType
. This member must be set to zero for any other value in DescriptorType
.Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_SET_DESCRIPTOR_TO_DEVICE
is received. See _URB_CONTROL_DESCRIPTOR_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnSetDescriptorToEndpoint(DateTime time,
byte[] array,
ushort FeatureSelector,
ushort Index);
// This method is not available in native environment
time
array
FeatureSelector
Index
Index
member to the wIndex
field of the setup packet.Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_SET_DESCRIPTOR_TO_ENDPOINT
is received. See _URB_CONTROL_FEATURE_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnSetDescriptorToInterface(DateTime time,
byte[] array,
ushort FeatureSelector,
ushort Index,
byte DescriptorType,
ushort LanguageId);
// This method is not available in native environment
time
array
FeatureSelector
Index
Index
member to the wIndex
field of the setup packet.DescriptorType
USB_DEVICE_DESCRIPTOR_TYPE
, USB_CONFIGURATION_DESCRIPTOR_TYPE
, USB_STRING_DESCRIPTOR_TYPE
.LanguageId
USB_STRING_DESCRIPTOR_TYPE
is set in DescriptorType
. This member must be set to zero for any other value in DescriptorType
.Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_SET_DESCRIPTOR_TO_INTERFACE
is received. See _URB_CONTROL_FEATURE_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnSetFeatureToDevice(DateTime time, byte[] array, ushort FeatureSelector);
// This method is not available in native environment
time
array
FeatureSelector
FeatureSelector
member to the wValue
field of the setup packet.Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_SET_FEATURE_TO_DEVICE
is received. See _URB_CONTROL_FEATURE_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnSetFeatureToEndpoint(DateTime time,
byte[] array,
ushort FeatureSelector,
ushort Index);
// This method is not available in native environment
time
array
FeatureSelector
FeatureSelector
member to the wValue
field of the setup packet.Index
Index
member to the wIndex
field of the setup packet.Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_SET_FEATURE_TO_ENDPOINT
is received. See _URB_CONTROL_FEATURE_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnSetFeatureToInterface(DateTime time,
byte[] array,
ushort FeatureSelector,
ushort Index);
// This method is not available in native environment
time
array
FeatureSelector
FeatureSelector
member to the wValue
field of the setup packet.Index
Index
member to the wIndex
field of the setup packet.Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_SET_FEATURE_TO_INTERFACE
is received. See _URB_CONTROL_FEATURE_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnSetFeatureToOther(DateTime time,
byte[] array,
ushort FeatureSelector);
// This method is not available in native environment
time
array
FeatureSelector
FeatureSelector
member to the wValue
field of the setup packet.Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_SET_FEATURE_TO_OTHER
is received. See _URB_CONTROL_FEATURE_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnSetFrameLength(DateTime time, byte[] array, int FrameLengthDelta);
// This method is not available in native environment
time
array
FrameLengthDelta
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_SET_FRAME_LENGTH
is received. See _URB_SET_FRAME_LENGTH
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnSurpriseRemoval(DateTime time);
// This method is not available in native environment
time
Called when device is removed by EVENT_DEVICESURPRISEREMOVAL
.
// This method is not available in scripting environment
void OnTakeFrameLengthControl(DateTime time, byte[] array, ushort Interface);
// This method is not available in native environment
time
array
Interface
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_TAKE_FRAME_LENGTH_CONTROL
is received. See _URB_CONTROL_GET_INTERFACE_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnUrb(DateTime time, byte[] array);
// This method is not available in native environment
time
array
Called when URB
is transmitted. See USBPACKET_URB
for more information.
// This method is not available in scripting environment
void OnVendorDevice(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value);
// This method is not available in native environment
time
array
RequestTypeReservedBits
Request
Value
Request
.Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_VENDOR_DEVICE
is received. See _URB_CONTROL_VENDOR_OR_CLASS_REQUEST
in MSDN for more information. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnVendorEndpoint(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value,
ushort Index);
// This method is not available in native environment
time
array
RequestTypeReservedBits
Request
Value
Request
.Index
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_VENDOR_ENDPOINT
is received. See _URB_CONTROL_VENDOR_OR_CLASS_REQUEST
in MSDN for more information. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnVendorInterface(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value,
ushort Index);
// This method is not available in native environment
time
array
RequestTypeReservedBits
Request
Value
Request
.Index
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_VENDOR_INTERFACE
is received. See _URB_CONTROL_VENDOR_OR_CLASS_REQUEST
in MSDN for more information. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnVendorOther(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value);
// This method is not available in native environment
time
array
RequestTypeReservedBits
Request
Value
Request
.Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_VENDOR_OTHER
is received. See _URB_CONTROL_VENDOR_OR_CLASS_REQUEST
in MSDN for more information. The library decodes several parameters from this packet.
// This method is not available in scripting environment
void OnAbortPipe(DateTime time,
byte[] array,
ulong PipeHandle);
// This method is not available in native environment
time
array
PipeHandle
URB
of type URB_FUNCTION_SELECT_CONFIGURATION
or when the client driver changes the settings for an interface with a URB
of type URB_FUNCTION_SELECT_INTERFACE
.Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_ABORT_PIPE
is received. See _URB_PIPE_REQUEST
in MSDN for more details.
// This method is not available in scripting environment
void OnBulkOrInterruptTransfer(DateTime time,
byte[] array,
uint payloadOffset,
uint payloadSize);
// This method is not available in native environment
time
array
payloadOffset
payloadSize
Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER
is received. See _URB_BULK_OR_INTERRUPT_TRANSFER
in MSDN for more details.
// This method is not available in scripting environment
void OnClassDevice(DateTime time,
byte[] array,
byte RequestTypeReservedBits,
byte Request,
ushort Value);
// This method is not available in native environment
time
array
RequestTypeReservedBits
Request
Value
Request
, that becomes part of the USB-defined setup packet for the target. This value is defined by the creator of the code used in Request
.Fired when URB
packet with urb.UrbHeader.Function == URB_FUNCTION_CLASS_DEVICE
is received. See _URB_CONTROL_VENDOR_OR_CLASS_REQUEST
in MSDN for more details. The library decodes several parameters from this packet.