-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRWDev.cs
More file actions
683 lines (582 loc) · 36.6 KB
/
RWDev.cs
File metadata and controls
683 lines (582 loc) · 36.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace UHF
{
[StructLayout(LayoutKind.Sequential)]
public struct RFIDTag
{
public byte PacketParam;
public byte LEN;
public string UID;
public byte RSSI;
public byte ANT;
public Int32 Handles;
}
public delegate void RFIDCallBack(IntPtr p, Int32 nEvt);
public static class RWDev
{
private const string DLLNAME = @"UHFReader288MP.dll";
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
internal static extern void InitRFIDCallBack(RFIDCallBack t, bool uidBack, int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int OpenNetPort(int Port,
string IPaddr,
ref byte ComAddr,
ref int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int CloseNetPort(int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int OpenComPort(int Port,
ref byte ComAddr,
byte Baud,
ref int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int CloseComPort();
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int AutoOpenComPort(ref int Port,
ref byte ComAddr,
byte Baud,
ref int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int CloseSpecComPort(int Port);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int OpenUSBPort(ref byte ComAddr,
ref int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int CloseUSBPort(int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int GetReaderInformation(ref byte ComAdr, //读写器地址
byte[] VersionInfo, //软件版本
ref byte ReaderType, //读写器型号
ref byte TrType, //支持的协议
ref byte dmaxfre, //当前读写器使用的最高频率
ref byte dminfre, //当前读写器使用的最低频率
ref byte powerdBm, //读写器的输出功率
ref byte ScanTime,
ref byte Ant,
ref byte BeepEn,
ref byte OutputRep,
ref byte CheckAnt,
int FrmHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetRegion(ref byte ComAdr,
byte dmaxfre,
byte dminfre,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetAddress(ref byte ComAdr,
byte ComAdrData,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetInventoryScanTime(ref byte ComAdr,
byte ScanTime,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetBaudRate(ref byte ComAdr,
byte baud,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetRfPower(ref byte ComAdr,
byte powerDbm,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int BuzzerAndLEDControl(ref byte ComAdr,
byte AvtiveTime,
byte SilentTime,
byte Times,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetWorkMode(ref byte ComAdr,
byte Read_mode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetAntennaMultiplexing(ref byte ComAdr,
byte Ant,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetBeepNotification(ref byte ComAdr,
byte BeepEn,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetReal_timeClock(ref byte ComAdr,
byte[] paramer,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int GetTime(ref byte ComAdr,
byte[] paramer,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetRelay(ref byte ComAdr,
byte RelayTime,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetGPIO(ref byte ComAdr,
byte OutputPin,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int GetGPIOStatus(ref byte ComAdr,
ref byte OutputPin,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetNotificationPulseOutput(ref byte ComAdr,
byte OutputRep,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int GetSystemParameter(ref byte ComAdr,
ref byte Read_mode,
ref byte Accuracy,
ref byte RepCondition,
ref byte RepPauseTime,
ref byte ReadPauseTim,
ref byte TagProtocol,
ref byte MaskMem,
byte[] MaskAdr,
ref byte MaskLen,
byte[] MaskData,
ref byte TriggerTime,
ref byte AdrTID,
ref byte LenTID,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetEASSensitivity(ref byte ComAdr,
byte Accuracy,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetTriggerTime(ref byte ComAdr,
byte TriggerTime,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetTIDParameter(ref byte ComAdr,
byte AdrTID,
byte LenTID,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetMask(ref byte ComAdr,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetResponsePamametersofAuto_runningMode(ref byte ComAdr,
byte RepCondition,
byte RepPauseTime,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetInventoryInterval(ref byte ComAdr,
byte ReadPauseTim,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SelectTagType(ref byte ComAdr,
byte Protocol,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetCommType(ref byte ComAdr,
byte CommType,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int GetTagBufferInfo(ref byte ComAdr,
byte[] Data,
ref int dataLength,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int ClearTagBuffer(ref byte ComAdr,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int ReadActiveModeData(byte[] ScanModeData,
ref int ValidDatalength,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int Inventory_G2(ref byte ComAdr,
byte QValue,
byte Session,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
byte MaskFlag,
byte AdrTID,
byte LenTID,
byte TIDFlag,
byte Target,
byte InAnt,
byte Scantime,
byte FastFlag,
byte[] pEPCList,
ref byte Ant,
ref int Totallen,
ref int CardNum,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int InventoryMix_G2(ref byte ComAdr,
byte QValue,
byte Session,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
byte MaskFlag,
byte ReadMem,
byte[] ReadAdr,
byte ReadLen,
byte[] Psd,
byte Target,
byte InAnt,
byte Scantime,
byte FastFlag,
byte[] pEPCList,
ref byte Ant,
ref int Totallen,
ref int CardNum,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int ReadData_G2(ref byte ComAdr,
byte[] EPC,
byte ENum,
byte Mem,
byte WordPtr,
byte Num,
byte[] Password,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
byte[] Data,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int WriteData_G2(ref byte ComAdr,
byte[] EPC,
byte WNum,
byte ENum,
byte Mem,
byte WordPtr,
byte[] Wdt,
byte[] Password,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int WriteEPC_G2(ref byte ComAdr,
byte[] Password,
byte[] WriteEPC,
byte ENum,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int KillTag_G2(ref byte ComAdr,
byte[] EPC,
byte ENum,
byte[] Password,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int Lock_G2(ref byte ComAdr,
byte[] EPC,
byte ENum,
byte select,
byte setprotect,
byte[] Password,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int BlockErase_G2(ref byte ComAdr,
byte[] EPC,
byte ENum,
byte Mem,
byte WordPtr,
byte Num,
byte[] Password,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetPrivacyWithoutEPC_G2(ref byte ComAdr,
byte[] Password,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetPrivacyByEPC_G2(ref byte ComAdr,
byte[] EPC,
byte ENum,
byte[] Password,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int ResetPrivacy_G2(ref byte ComAdr,
byte[] Password,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int CheckPrivacy_G2(ref byte ComAdr,
ref byte readpro,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int EASConfigure_G2(ref byte ComAdr,
byte[] EPC,
byte ENum,
byte[] Password,
byte EAS,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int EASAlarm_G2(ref byte ComAdr,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int BlockLock_G2(ref byte ComAdr,
byte[] EPC,
byte ENum,
byte[] Password,
byte WrdPointer,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int BlockWrite_G2(ref byte ComAdr,
byte[] EPC,
byte WNum,
byte ENum,
byte Mem,
byte WordPtr,
byte[] Wdt,
byte[] Password,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int ChangeATMode(ref byte ConAddr,
byte ATMode,
int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int TransparentCMD(ref byte ConAddr,
byte timeout,
byte cmdlen,
byte[] cmddata,
ref byte recvLen,
byte[] recvdata,
int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int GetSeriaNo(ref byte ConAddr,
byte[] SeriaNo,
int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetCheckAnt(ref byte ComAdr,
byte CheckAnt,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int InventorySingle_6B(ref byte ConAddr,
ref byte ant,
byte[] ID_6B,
int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int InventoryMultiple_6B(ref byte ConAddr,
byte Condition,
byte StartAddress,
byte mask,
byte[] ConditionContent,
ref byte ant,
byte[] ID_6B,
ref int Cardnum,
int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int ReadData_6B(ref byte ConAddr,
byte[] ID_6B,
byte StartAddress,
byte Num,
byte[] Data,
ref int errorcode,
int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int WriteData_6B(ref byte ConAddr,
byte[] ID_6B,
byte StartAddress,
byte[] Writedata,
byte Writedatalen,
ref int writtenbyte,
ref int errorcode,
int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int Lock_6B(ref byte ConAddr,
byte[] ID_6B,
byte Address,
ref int errorcode,
int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int CheckLock_6B(ref byte ConAddr,
byte[] ID_6B,
byte Address,
ref byte ReLockState,
ref int errorcode,
int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetQS(ref byte ConAddr,
byte Qvalue,
byte Session,
int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int GetQS(ref byte ConAddr,
ref byte Qvalue,
ref byte Session,
int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetFlashRom(ref byte ConAddr,
int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int GetModuleVersion(ref byte ConAddr,
byte[] Version,
int PortHandle);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int ExtReadData_G2(ref byte ComAdr,
byte[] EPC,
byte ENum,
byte Mem,
byte[] WordPtr,
byte Num,
byte[] Password,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
byte[] Data,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int ExtWriteData_G2(ref byte ComAdr,
byte[] EPC,
byte WNum,
byte ENum,
byte Mem,
byte[] WordPtr,
byte[] Wdt,
byte[] Password,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
ref int errorcode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int InventoryBuffer_G2(ref byte ComAdr,
byte QValue,
byte Session,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
byte MaskFlag,
byte AdrTID,
byte LenTID,
byte TIDFlag,
byte Target,
byte InAnt,
byte Scantime,
byte FastFlag,
ref int BufferCount,
ref int TagNum,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetSaveLen(ref byte ComAdr,
byte SaveLen,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int GetSaveLen(ref byte ComAdr,
ref byte SaveLen,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int ReadBuffer_G2(ref byte ComAdr,
ref int Totallen,
ref int CardNum,
byte[] pEPCList,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int ClearBuffer_G2(ref byte ComAdr,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int GetBufferCnt_G2(ref byte ComAdr,
ref int Count,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetReadMode(ref byte ComAdr,
byte ReadMode,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetReadParameter(ref byte ComAdr,
byte[] Parameter,
byte MaskMem,
byte[] MaskAdr,
byte MaskLen,
byte[] MaskData,
byte MaskFlag,
byte AdrTID,
byte LenTID,
byte TIDFlag,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int GetReadParameter(ref byte ComAdr,
byte[] Parameter,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int WriteRfPower(ref byte ComAdr,
byte powerDbm,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int ReadRfPower(ref byte ComAdr,
ref byte powerDbm,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int RetryTimes(ref byte ComAdr,
ref byte Times,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int SetDRM(ref byte ComAdr,
byte DRM,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int GetDRM(ref byte ComAdr,
ref byte DRM,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int GetReaderTemperature(ref byte ComAdr,
ref byte PlusMinus,
ref byte Temperature,
int frmComPortindex);
[DllImport(DLLNAME, CallingConvention = CallingConvention.StdCall)]
public static extern int MeasureReturnLoss(ref byte ComAdr,
byte[] TestFreq,
byte Ant,
ref byte ReturnLoss,
int frmComPortindex);
}
}