Samples – Teledyne LeCroy Conquest User Manual - Users Manual User Manual
Page 242

Appendix A
232
Samples
Sample1: Portion of Communication Class
[ProductName = SBAE]
ProtocolName = "Communication Class"
ProtocolTransferRequirement
{
USBControlTransfer
{
ControlType = Class
}
}
ProtocolTransferDefinition
{
ProtocolCommand = USBControlTransfer
}
End
[Decoding]
DefineOptions
bRequest = ("SEND_ENCAPSULATED_COMMAND", 0x00;
"GET_ENCAPSULATED_RESPONSE", 0x01;
"SET_COMM_FEATURE", 0x02;
"GET_LINE_PARAMS", 0x35;
"GET_ATM_VC_STATISTICS", 0x53;
"RESERVED ", 0x54-0xFF);
CallStateValue = ("Call is idle.",0x00 ;
"Typical Dial Tone",0x01 ;
"Interrupted Dial Tone",0x02 ;
"Dialing is in progress",0x03 ;
"Ringback.",0x04 ;
"Connected.",0x05 ;
"Incoming call.",0x06 );
CallStateActiveFlag = ("No Activity on the line", 0x00 ;
"Line is active", 0x01);
EndOptions
{
bRequestType = AddField(0, 8, "bmRequestType", "bmRequestType Field", "bRequestType",
MSBLEFT);
bRequest = AddField(8, 8, "bRequest", "bRequest Field", " bRequest",
MSBLEFT);
wValue = AddField(16,16," wValue" ," wValue Field","wValue",MSBLEFT);
if (ValueOf(bRequest) = 0x35) then /*GET_LINE_PARAMS*/
{
wInterface = AddField(32,16,"wInterface" , " wInterface Field"," wInterface",MSBLEFT);
wLength = AddField(48,16," wLength" ," Size of structure"," wLength", MSBLEFT);
}
If ValueOf(wLength) > 0 Then