-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbhtdef.inc
executable file
·1610 lines (1255 loc) · 48.5 KB
/
bhtdef.inc
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
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
'**************************************************************************
'*** ***
'*** Product Name : BHT-BASIC3.5 Definition of Constants ***
'*** File Name : bhtdef.inc ***
'*** ***
'*** Edition History ***
'*** Version Date Comments ***
'*** -------- -------- ----------------------------------------- ***
'*** 1.00.00 2001. 2 Original ***
'*** 1.01.00 2001. 6 .so added ***
'*** Display mode and character attributes ***
'*** added to I/O port ***
'*** Tone data from &hC0 to &hFF ***
'*** 2001. 7 CRC.FN3 Function numbers added ***
'*** 2002. 4 I/O port &hE (System status display) added ***
'*** I/O port &h60F4 (Effective period of the ***
'*** remote wakeup after power off) added ***
'*** 2002. 5 SS.FN3 Functions #11 to #33 added ***
'*** 1.02.00 2003. 4 BT.FN3 Function added ***
'*** 1.03.00 2003.10 LAN parameter of SYSTEM/SYSMDFY.FN3 added ***
'*** CRC.FN3 Function numbers corrected ***
'*** DHCP Function added ***
'*** 2004. 3 BT.FN3 Function #1 parammeter added ***
'*** FILE.FN3 Function #11 to #13 added ***
'*** SYSTEM.FN3 Ymodem Protocol parammeter added ***
'*** YMODEM.FN3 Function #3 to #4 added ***
'*** SCREEN.FN3 Function #1 to #2 added ***
'*** I/O port &h6060 (Communications protocol) ***
'*** parammeter added ***
'*** I/O port &h6150 to &h6152 (Auto-repeat) ***
'*** added ***
'*** 1.04.00 2004. 7 BT.FN3 Function #3 parammeter added ***
'*** 2004. 8 FILE.FN3 Function #14 to #15 added ***
'*** 1.05.00 2005. 8 I/O port, System.fn3 added ***
'*** FTP.FN3 Function #6 corrected ***
'*** (.ftLspDel and .ftLspData) ***
'*** 1.06.00 2006. 2 SS.FN3 Function #14 parammeter added ***
'*** 1.07.00 2006. 2 SS.FN3 Wireless LAN Security added ***
'*** CAMERA.FN3 added ***
'*** 1.08.00 2006. 4 Barcode Light Mode added ***
'*** 1.09.00 2006. 5 SS.FN3 Function #14 parameter added ***
'*** 1.10.00 2006.12 FTP.FN3 Function #13 to #14 added ***
'*** YMODEM.FN3 Function #5 to #6 added ***
'*** 1.11.00 2007.03 SS.FN3 Function #14 parameter added ***
'*** 1.12.00 2007.10 DPM parameter added ***
'*** ***
'*** Copyright (C) 2004 DENSO WAVE INCORPORATED ***
'*** All rights reserved. ***
'**************************************************************************
'****************************************
'* I/O Port Parameters Definition *
'****************************************
'===== Waiting for Events ================================================
const .pnEvent = &h0
const .pvEvKeyOn = &h01
const .pvEvBarOn = &h02
const .pvEvTrgOn = &h04
const .pvEvtCmOn = &h08
const .pvEvTma0 = &h10
const .pvEvTmb0 = &h20
const .pvEvTmc0 = &h40
const .pvEvCsOn = &h80
'===== LED ================================================================
const .pnLEDCtrl = &h1
const .pvLEDRed = &h01
const .pvLEDGrn = &h02
const .pvLEDBle = &h04
'===== LCD Contrast Level =================================================
const .pnLCDCnt = &h3
'===== Message Version ====================================================
const .pnMgLng = &h4
const .pvSysMSG = &h00
const .pvEnglish = &h01
'===== Alphabet Entry (Software Keyboard for BHT-100 Series) ==============
const .pnAlpCtrl = &h5
const .pvAlpOff = &h00
const .pvAlpOn = &h01
const .pvAlpDisp = &h02
const .pvAlpBotm = &h00
const .pvAlpTop = &h04
const .pvAlpMove = &h08
'===== Sleep Timer ========================================================
const .pnSlpTime = &h6
'===== Wakeup =============================================================
const .pnWupCtrl = &h8
const .pvWupOn = &h01
const .pvWupPwOn = &h02
const .pvWupTmSt = &h04
const .pvWupTmOn = &h08
'===== System Status Display =============================================
const .pnSysSts = &hE
const .pvStsOff = &h00
const .pvStsOn = &h01
'===== Re-read Prevention Enabled Time ====================================
const .pnBarRrd = &hF
'===== Initiation of System Mode ==========================================
const .pnSysMd = &h6000
const .pvSMdNGo = &h00
const .pvSMdGo = &h01
'===== Battery Voltage Level =============================================
const .pnBtVolt = &h6010
const .pnBtType = &h6011
const .pnCuOn = &h6012
const .pvBtRcrg = &h00
const .pvBtDry = &h01
const .pvCuOff = &h00
const .pvCuOn = &h01
const .pvCuErr = &h02
'===== Backlight =========================================================
const .pnBLCtrl = &h6020
const .pnBLTime = &h6021
const .pnBLight = &h6022
const .pvBLOff = &h00
const .pvBLOn = &h01
const .pvBLLcd = &h01
const .pvBLKey = &h02
'===== Effective Held-down Time of Power Key ==============================
const .pnTmPOff = &h6030
'===== Effective Held-down Time of BS/C Key ==============================
const .pnBSCTime = &h6031
'===== Magic Key State ====================================================
const .pnMKey = &h6040
const .pvM1kyOn = &h01
const .pvM2kyOn = &h02
const .pvM3kyOn = &h04
const .pvM4kyOn = &h08
const .pvM5kyOn = &h10
const .pvMNkyOn = &h10
'===== Other Key State ====================================================
const .pnCKey = &h6041
const .pvSFkyOn = &h01
const .pvBSkyOn = &h02
const .pvCLkyOn = &h04
const .pvPWkyOn = &h08
'===== Communications Protocol ============================================
const .pnCmPrtcl = &h6060
const .pvCPBHT = &h00
const .pvCPBHTIr = &h02
const .pvCPYmdm = &h03
'===== ID =================================================================
const .pnBHTIDL = &h6061
const .pnBHTIDH = &h6062
'===== Font Size ==========================================================
const .pnFont = &h6080
const .pvFtStd = &h00
const .pvFtSmall = &h01
const .pvFtSmall2 = &h02
const .pvFtBig = &h04
'===== Font Emphasis ======================================================
const .pnFont.Emph = &h6081
const .pvEmph.Off = &h00
const .pvEmph.On = &h01
'===== Cursor Blink =======================================================
const .pnCursor = &h6082
'===== Font Size Width ====================================================
const .pnFont.Width = &h6083
'===== Beeper/Vibrator ====================================================
const .pnBprVib = &h6090
const .pvBprOn = &h01
const .pvVibOn = &h02
'===== Key Entry System and Mode ==========================================
const .pnKeyEnt = &h60B0
const .pnKeyMd = &h60B1
const .pvKyNm = &h00
const .pvKyAlpNm = &h01
const .pvKMNm = &h00
const .pvKMAlp = &h01
const .pvKMKn = &h02
'===== Beeper Volume ======================================================
const .pnBprVolm = &h60C0
'===== System Updating ====================================================
const .pnSysUp = &h60D0
const .pvSUpOff = &h00
const .pvSUpRst = &h01
'===== Defragmentation of Drive ===========================================
const .pnDfrgSzL = &h60E0
const .pnDfrgSzH = &h60E1
const .pnDfrgGo = &h60E2
const .pvDFNoDsp = &h00
const .pvDFAGrph = &h01
const .pvDFRGrph = &h02
'===== Remote Wakeup ======================================================
const .pnRwuCtrl = &h60F0
const .pnRwuSpd = &h60F1
const .pnRwuHost = &h60F2
const .pnRwuWtT = &h60F3
const .pnRwuEfT = &h60F4
const .pvRwuOff = &h00
const .pvRwuOn = &h01
const .pvRwu96 = &h01
const .pvRwu192 = &h02
const .pvRwu384 = &h03
const .pvRwu576 = &h04
const .pvRwu1152 = &h05
const .pvRwu2304 = &h06
const .pvRwu4608 = &h07
const .pvRwuRgst = &h01
const .pvRwuEdOk = &h02
'===== SCREEN Parameters ==================================================
const .pnScrnMdL = &h6110
const .pnScrnMdH = &h6111
const .pnScrnAtL = &h6112
const .pnScrnAtH = &h6113
const .pvScMB = &h01
const .pvScMBRed = &h02
const .pvScSmall = &h04
const .pvScR180 = &h10
const .pvScInv = &h01
const .pvScW2H1 = &h02
const .pvScW1H2 = &h04
const .pvScW2H2 = &h06
'===== Touch Screen ======================================================
const .pnTPanel = &h6120
const .pnTPBeep = &h6121
const .pnTPSts = &h6122
const .pvTPOff = &h00
const .pvTPOn = &h01
const .pvTPBOff = &h00
const .pvTPBOn = &h01
const .pvTPPush = &h00
const .pvTPPull = &h01
'===== Auto-repeat =======================================================
const .pnARKey = &h6150
const .pnARKwait = &h6151
const .pnARKintval= &h6152
const .pvARKeyOn = &h01
const .pvARKG1On = &h02
const .pvARKG2On = &h04
const .pvARKG3On = &h08
const .pvARKG4On = &h10
'===== View Finder =======================================================
const .pnVwFindr = &h6310
const .pvVFOff = &h00
const .pvVFOn = &h01
'===== Scanning Range Marker ==============================================
const .pnScnMark = &h6320
const .pvMarkNrm = &h00
const .pvMarkOn = &h01
const .pvMarkOff = &h02
'===== PHS ================================================================
const .pnPSMode = &h7100
const .pnPSDSend = &h7101
const .pnPSRTone = &h7102
const .pnPSRBeep = &h7103
const .pnPSRVib = &h7104
const .pnPSRLed = &h7105
const .pnPSVolum = &h7106
const .pnPSOffTm = &h7107
const .pnPSVocD = &h7108
const .pnPSVocR = &h7109
const .pnPSDatR = &h710A
const .pnPSOsup = &h710B
const .pvPublic = &h00
const .pvOffice = &h01
const .pvDual = &h02
const .pvDSndOff = &h00
const .pvDSndOn = &h01
const .pvRTone1 = &h01
const .pvRTone2 = &h02
const .pvRTone3 = &h03
const .pvRMeldy1 = &h04
const .pvRMeldy2 = &h05
const .pvRMeldy3 = &h06
const .pvRBpOff = &h00
const .pvRBpS = &h01
const .pvRBpM = &h02
const .pvRBpL = &h03
const .pvRVibOff = &h00
const .pvRVibOn = &h01
const .pvRLedOff = &h00
const .pvRLedOn = &h01
const .pvVocDOff = &h00
const .pvVocDOn = &h01
const .pvVocROff = &h00
const .pvVocROn = &h01
const .pvDatROff = &h00
const .pvDatROn = &h01
'****************************************
'* SCREEN Parameters Definition *
'****************************************
'===== Display Mode =====================================================
const .scDefault = &h0000
const .scMB = &h0001
const .scMBRed = &h0002
const .scSmall = &h0004
const .scR180 = &h0010
'===== Character Attributes =============================================
const .scInvert = &h0001
const .scW2H1 = &h0002
const .scW1H2 = &h0004
const .scW2H2 = &h0006
const .scDGray = &h0400
const .scLGray = &h0800
const .scWhite = &h0FF0
'****************************************
'* SYSTEM.FN3 Parameters Definition *
'****************************************
'===== Function Numbers =================================================
const .fcVersion = 0
const .fcSysIGet = 1
const .fcSysISet = 2
const .fcSysSGet = 3
const .fcSysSSet = 4
const .fcFontInf = 5
const .fcCReset = 11
const .fcCLkGet = 12
const .fcCMdRqst = 21
'+--------------------------------------+
'| Setting Numeric Data |
'+--------------------------------------+
'===== Shift Key Mode ===================================================
const .sySFMode = 1
const .sySFNlock = 0
const .sySF1time = 1
'===== Magic Keys =======================================================
const .syM1key = 2
const .syM2key = 3
const .syM3key = 4
const .syM4key = 5
const .syMkyNone = 0
const .syMkyEnt = 1
const .syMkyTrg = 2
const .syMkySF = 3
const .syMkyBL = 4
const .syMkyTel = 5
const .syMkyMenu = 6
'===== Black-and-White Inverted Label Reading ==========================
const .syBarInvt = 6
const .syInvtOff = 0
const .syInvtOn = 1
'===== Decode Level =====================================================
const .syDecdLvl = 8
'===== Min. Number of Digits to be Read for ITF ==========================
const .syITFMin = 9
'===== Min. Number of Digits to be Read for STF ==========================
const .sySTFMin = 10
'===== Min. Number of Digits to be Read for Codabar ======================
const .syNW7Min = 11
'===== Default Interface ================================================
const .syCmifApl = 12
const .syCmifSys = 13
const .syCmifOpt = 0
const .syCmifCon = 1
'===== Transmission Speed for IrDA Interface =============================
const .syTrSpdOp = 14
const .syOp24 = 0
const .syOp96 = 1
const .syOp192 = 2
const .syOp384 = 3
const .syOp576 = 4
const .syOp1152 = 5
const .syOp2304 = 6
const .syOp4608 = 7
'===== Transmission Speed for Direct-Connect Interface ====================
const .syTrSpdCn = 18
const .syCn3 = 0
const .syCn6 = 1
const .syCn12 = 2
const .syCn24 = 3
const .syCn48 = 4
const .syCn96 = 5
const .syCn192 = 6
const .syCn384 = 7
const .syCn576 = 8
const .syCn1152 = 9
'===== Parity Bit(s) for Direct-Connect Interface ======================
const .syVPrtyCn = 19
const .syVPrtyN = 0
const .syVPrtyO = 1
const .syVPrtyE = 2
'===== Character Length for Direct-Connect Interface ====================
const .syDatLnCn = 20
const .syDatLen7 = 0
const .syDatLen8 = 1
'===== Stop Bit for Direct-Connect Interface ============================
const .syStpLnCn = 21
const .syStpLen1 = 0
const .syStpLen2 = 1
'===== Serial Number for IrDA Interface =================================
const .sySNoOp = 22
const .sySNoOff = 0
const .sySNoOn = 1
'===== Horizontal Parity for IrDA Interface =============================
const .syHPrtyOp = 23
const .syHPtyOff = 0
const .syHPtyOn = 1
'===== Linkup Time for IrDA Interface ====================================
const .syLnkTmOp = 24
const .syLnkT0 = 0
const .syLnkT30 = 1
const .syLnkT60 = 2
const .syLnkT90 = 3
const .syLnkT120 = 4
'===== Trailing Spaces for IrDA Interface =================================
const .syFldSpOp = 25
const .sySpIgnr = 0
const .sySpData = 1
'===== Serial Number for Direct-Connect Interface ========================
const .sySNoCn = 26
'const .sySNoOff = 0
'const .sySNoOn = 1
'===== Horizontal Parity for Direct-Connect Interface =====================
const .syHPrtyCn = 27
'const .syHPtyOff = 0
'const .syHPtyOn = 1
'===== Linkup Time for Direct-Connect Interface ===========================
const .syLnkTmCn = 28
'const .syLnkT0 = 0
'const .syLnkT30 = 1
'const .syLnkT60 = 2
'const .syLnkT90 = 3
'const .syLnkT120 = 4
'===== Trailing Spaces for Direct-Connect Interface =====================
const .syFldSpCn = 29
'const .sySpIgnr = 0
'const .sySpData = 1
'===== Communications Protocol =========================================
const .syCmPrtcl = 30
const .syCPBHT = 0
const .syCPBHTIr = 2
const .syCPYmdm = 3
'===== Resume ==========================================================
const .syResm = 31
const .syResmOff = 0
const .syResmOn = 1
'===== RAM size ========================================================
const .syRamSize = 35
'===== ROM size ========================================================
const .syRomSize = 36
'===== Cluster Size ====================================================
const .syClstSiz = 37
const .syClstSize = 37
'===== Scanning Range Marker ===========================================
const .syScnMark = 38
const .syMarkNrm = 0
const .syMarkOn = 1
const .syMarkOff = 2
'===== View Finder =====================================================
const .syVwFindr = 39
const .syVFOff = 0
const .syVFOn = 1
'===== Option Data =====================================================
const .syOptData = 40
const .syODOff = 0
const .syODOn = 1
'===== Retries of establish link command ===============================
const .syLkCnt = 41
'===== Intervals between retries of establish link command =============
const .syLkIntv = 42
'===== Retries of release link command =================================
const .syUlkCnt = 43
'===== Intervals between retries of release link command ===============
const .syUlkIntv = 44
'===== Link release period =============================================
const .syUlkTmr = 45
'===== Transmission speed between the BHT and LAN-support CU ===========
const .syDvSpd = 46
'===== Ymodem Protocol CR/LF Code =======================================
const .syYmLFcode = 47
const .syYmCRLF = 0
const .syYmLF = 1
const .syYmCR = 2
const .syYmNone = 3
'===== Ymodem Protocol CR/LF Code Property ==============================
const .syYmLFdata = 48
const .syYmRSepa = 0
const .syYmRData = 1
'===== Ymodem Protocol BHT ID ===========================================
const .syYmBhtID = 49
const .syYmIDNotUse = 0
const .syYmIDUse = 1
'===== Ymodem Protocol =================================================
const .syYmInterval = 50
'===== Barcode invert =================================================
const .syBarRvs = 52
const .syRvsOff = 0
const .syRvsOn = 1
'===== Barcode Scanmode =================================================
const .syScanMode = 53
const .syScnNormal = 0
const .syScnPoint = 1
const .syScnBarCode = 2
'===== Barcode Light Mode ===============================================
const .syLightMode = 55
const .syLightAuto = 0
const .syLightOn = 1
const .syLightOff = 2
'===== Barcode Sensor mode ==============================================
const .sySensorMode = 60
const .sySnsrOff = 0
const .sySnsrOn = 31
'===== BackLight ========================================================
const .syBLNormal = 71
const .syBLPowerSave = 72
const .syBLPSTime = 73
'===== Key ==============================================================
const .syM5key = 74
const .syBSCKey = 75
'===== DPM ==============================================================
const .syDPMFilter = 84
const .syDPMFNone = 0
const .syDPMF33Mov = 1
const .syDPMF55Mov = 2
const .syDPMF77Mov = 3
const .syDPMF33Blk = 4
const .syDPMF55Blk = 5
const .syDPMF77Blk = 6
const .syDPMF33Wht = 7
const .syDPMF55Wht = 8
const .syDPMF77Wht = 9
'+--------------------------------------+
'| Setting String Data |
'+--------------------------------------+
'===== System Version ==================================================
const .syVersion = 1
'===== Model Name ======================================================
const .syModel = 3
'===== Product Number ==================================================
const .syPrdctNo = 4
'===== Serial Number ===================================================
const .syBHTSNo = 5
'===== Execution Program Name ==========================================
const .syExePrg = 6
'===== System Version of BHT System Parameter File ======================
const .syOsUpVer = 7
'===== System Version of PHS System Parameter File ======================
const .syPHSVer = 8
'===== LAN-support CU system version ===================================
const .syCVGet = 9
'===== MAC address of the LAN-support CU ================================
const .syCMacGet = 10
'===== Product number assigned to the LAN-support CU ====================
const .syCPNoGet = 11
'===== Logo Filename ====================================================
const .syLogoFile = 12
'+------------------------------------------------------+
'| Link Status between the BHT and the LAN-support CU |
'+------------------------------------------------------+
const .syNgLk = 0
const .syOkLk = 1
const .syOkOthLk = 2
const .syLkNoRes = 3
'****************************************
'* SYSMDFY.FN3 Parameters Definition *
'****************************************
'===== Function Numbers =================================================
const .fcMdBVGet = 1
const .fcMdBDo = 2
const .fcMdBNGet = 3
const .fcMdBNSet = 4
const .fcMdCVGet = 11
const .fcMdCDo = 12
const .fcMdCNGet = 13
const .fcMdCNSet = 14
'+--------------------------------------+
'| Reconfigure BHT system |
'+--------------------------------------+
const .smPwOff = 0
const .smReset = 1
'****************************************
'* CONSOLE.FN3 Parameters Definition *
'****************************************
'===== Function #0 ======================================================
'const .fcVersion = 0
'===== Function #1 ======================================================
const .fcDot = 1
const .cnColor = 0
const .cnInvert = 1
const .cnBlack = &h0000
const .cnDGray = &h0040
const .cnLGray = &h0080
const .cnWhite = &h00FF
'===== Function #2 ======================================================
const .fcLine = 2
'const .cnColor = 0
'const .cnInvert = 1
'const .cnBlack = &h0000
'const .cnDGray = &h0040
'const .cnLGray = &h0080
'const .cnWhite = &h00FF
'===== Function #3 ======================================================
const .fcDtLine = 3
'const .cnColor = 0
'const .cnInvert = 1
'const .cnBlack = &h0000
'const .cnDGray = &h0040
'const .cnLGray = &h0080
'const .cnWhite = &h00FF
'===== Function #4 ======================================================
const .fcRectFil = 4
'const .cnColor = 0
'const .cnInvert = 1
'const .cnBlack = &h0000
'const .cnDGray = &h0040
'const .cnLGray = &h0080
'const .cnWhite = &h00FF
'===== Function #5 ======================================================
const .fcRect = 5
'const .cnColor = 0
'const .cnInvert = 1
'const .cnBlack = &h0000
'const .cnDGray = &h0040
'const .cnLGray = &h0080
'const .cnWhite = &h00FF
'===== Function #6 ======================================================
const .fcDotGet = 6
'const .cnBlack = &h0000
'const .cnDGray = &h0040
'const .cnLGray = &h0080
'const .cnWhite = &h00FF
'===== Function #11 =====================================================
const .fcFKey = 11
const .cnFKey0 = 0
const .cnFKey4 = 1
const .cnFKey8 = 2
'===== Function #12 =====================================================
const .fcFKeyDsp = 12
const .cnAnk = 0
const .cnMB = 1
const .cnSmallFt = 4
const .cnW1H1 = 0
const .cnW2H1 = 1
const .cnW1H2 = 2
const .cnW2H2 = 3
'===== Function #13 =====================================================
const .fcUKey = 13
'const .cnAnk = 0
'const .cnMB = 1
'const .cnSmallFt = 4
'const .cnW1H1 = 0
'const .cnW2H1 = 1
'const .cnW1H2 = 2
'const .cnW2H2 = 3
'===== Function #14 =====================================================
const .fcUKeyImg = 14
'===== Function #15 =====================================================
const .fcUKeyEnd = 15
'===== Function #21 =====================================================
const .fcPnlGet = 21
'===== Function #31 =====================================================
const .fcHBxOpen = 31
'===== Function #32 =====================================================
const .fcHBxLoad = 32
'===== Function #33 =====================================================
const .fcHBxSave = 33
const .cnBMP = 0
const .cnJPG = 1
'===== Function #34 =====================================================
const .fcHBxClr = 34
'===== Function #35 =====================================================
const .fcHBxClos = 35
'===== Function #41 =====================================================
const .fcImgOpen = 41
'===== Function #42 =====================================================
const .fcImgClos = 42
'===== Function #51 =====================================================
const .fcLcdClr = 51
'===== Function #101 ====================================================
const .fcCapOpen = 101
'===== Function #102 ====================================================
const .fcCapSave = 102
'const .cnBMP = 0
'const .cnJPG = 1
const .cnQtyStd = 0
const .cnQtyHigh = 1
const .cnQtyLow = 2
const .cnVGA = 0
const .cnVGA2 = 1
const .cnVGA4 = 2
'===== Function #103 ====================================================
const .fcCapClos = 103
'****************************************
'* SOCKET.FN3 Parameters Definition *
'****************************************
'===== Function #0 ======================================================
'const .fcVersion = 0
'===== Function #1 ======================================================
const .fcAccept = 1
'===== Function #2 ======================================================
const .fcBind = 2
const .soINet = 2
'===== Function #3 ======================================================
const .fcConnect = 3
'const .soINet = 2
'===== Function #4 ======================================================
const .fcGPName = 4
'===== Function #5 ======================================================
const .fcGSName = 5
'===== Function #6 ======================================================
const .fcGSckOpt = 6
const .soKepAliv = 2
const .soSndBuff = 8
const .soRcvBuff = 9
const .soKATime = 15
const .soMaxRT = 26
const .soTIMEWAIT = 29
const .soRTODef = 30
const .soRTOMin = 31
const .soRTOMax = 32
const .soEnable = 1
const .soDisable = 0
'===== Function #7 ======================================================
const .fcHToNL = 7
'===== Function #8 ======================================================
const .fcHToNS = 8
'===== Function #9 ======================================================
const .fcINetAdr = 9
'===== Function #10 =====================================================
const .fcListen = 10
'===== Function #11 =====================================================
const .fcNToHL = 11
'===== Function #12 =====================================================
const .fcNToHS = 12
'===== Function #13 =====================================================
const .fcReadv = 13
'===== Function #14 =====================================================
const .fcRecv = 14
const .soRvNrm = 0
const .soRvOOB = 1
const .soRvPeek = 2
const .soRvApend = 0
const .soRvWrite = 1
'===== Function #15 =====================================================
const .fcRcvfrom = 15
'const .soRvNrm = 0
'const .soRvOOB = 1
'const .soRvPeek = 2
'const .soINet = 2
'const .soRvApend = 0
'const .soRvWrite = 1
'===== Function #16 =====================================================
const .fcResvPrt = 16
'===== Function #17 =====================================================
const .fcSelect = 17
const .soNoWait = -1
const .soNotTOut = 0
'===== Function #18 =====================================================
const .fcFDZERO = 18
'===== Function #19 =====================================================
const .fcFDSET = 19
'===== Function #20 =====================================================
const .fcFDCLR = 20
'===== Function #21 =====================================================
const .fcFDISSET = 21
const .soFDSet = 0
const .soFDNoSet = 1
'===== Function #22 =====================================================
const .fcSend = 22
const .soSdNrm = 0
const .soSdOOB = 1
const .soSdDnRt = 4
'===== Function #23 =====================================================
const .fcSendto = 23
'const .soSdNrm = 0
'const .soSdOOB = 1
'const .soSdDnRt = 4
'const .soINet = 2
'===== Function #24 =====================================================
const .fcSSckOpt = 24
'const .soKepAliv = 2
'const .soSndBuff = 8
'const .soRcvBuff = 9
'const .soKATime = 15
'const .soMaxRT = 26
'const .soRTODef = 30
'const .soRTOMin = 31
'const .soRTOMax = 32
'const .soEnable = 1
'const .soDisable = 0
'===== Function #25 =====================================================
const .fcShutdwn = 25
const .soSdRecv = 0
const .soSdSend = 1