ControlType.cs 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace HNWD.LatticeScreen
  6. {
  7. public static class ControlType
  8. {
  9. // 控制器类型
  10. private const ushort BX_5AT = 0x0051;
  11. private const ushort BX_5A0 = 0x0151;
  12. private const ushort BX_5A1 = 0x0251;
  13. private const ushort BX_5A2 = 0x0351;
  14. private const ushort BX_5A3 = 0x0451;
  15. private const ushort BX_5A4 = 0x0551;
  16. private const ushort BX_5A1_WIFI = 0x0651;
  17. private const ushort BX_5A2_WIFI = 0x0751;
  18. private const ushort BX_5A4_WIFI = 0x0851;
  19. private const ushort BX_5A = 0x0951;
  20. private const ushort BX_5A2_RF = 0x1351;
  21. private const ushort BX_5A4_RF = 0x1551;
  22. private const ushort BX_5AT_WIFI = 0x1651;
  23. private const ushort BX_5AL = 0x1851;
  24. private const ushort AX_AT = 0x2051;
  25. private const ushort AX_A0 = 0x2151;
  26. private const ushort BX_5MT = 0x0552;
  27. private const ushort BX_5M1 = 0x0052;
  28. private const ushort BX_5M1X = 0x0152;
  29. private const ushort BX_5M2 = 0x0252;
  30. private const ushort BX_5M3 = 0x0352;
  31. private const ushort BX_5M4 = 0x0452;
  32. private const ushort BX_5E1 = 0x0154;
  33. private const ushort BX_5E2 = 0x0254;
  34. private const ushort BX_5E3 = 0x0354;
  35. private const ushort BX_5UT = 0x0055;
  36. private const ushort BX_5U0 = 0x0155;
  37. private const ushort BX_5U1 = 0x0255;
  38. private const ushort BX_5U2 = 0x0355;
  39. private const ushort BX_5U3 = 0x0455;
  40. private const ushort BX_5U4 = 0x0555;
  41. private const ushort BX_5U5 = 0x0655;
  42. private const ushort BX_5U = 0x0755;
  43. private const ushort BX_5UL = 0x0855;
  44. private const ushort AX_UL = 0x2055;
  45. private const ushort AX_UT = 0x2155;
  46. private const ushort AX_U0 = 0x2255;
  47. private const ushort AX_U1 = 0x2355;
  48. private const ushort AX_U2 = 0x2455;
  49. private const ushort BX_5Q0 = 0x0056;
  50. private const ushort BX_5Q1 = 0x0156;
  51. private const ushort BX_5Q2 = 0x0256;
  52. private const ushort BX_5Q0P = 0x1056;
  53. private const ushort BX_5Q1P = 0x1156;
  54. private const ushort BX_5Q2P = 0x1256;
  55. private const ushort BX_5QL = 0x1356;
  56. private const ushort BX_5QS1 = 0x0157;
  57. private const ushort BX_5QS2 = 0x0257;
  58. private const ushort BX_5QS = 0x0357;
  59. private const ushort BX_5QS1P = 0x1157;
  60. private const ushort BX_5QS2P = 0x1257;
  61. private const ushort BX_5QSP = 0x1357;
  62. private const ushort BX_6M0 = 0x0062;
  63. private const ushort BX_6M1 = 0x0162;
  64. private const ushort BX_6M2 = 0x0262;
  65. private const ushort BX_6M3 = 0x0362;
  66. private const ushort BX_6M = 0x0462;
  67. private const ushort BX_6MT = 0x0562;
  68. private const ushort BX_6M0_YY = 0x1062;
  69. private const ushort BX_6M1_YY = 0x1162;
  70. private const ushort BX_6M2_YY = 0x1262;
  71. private const ushort BX_6M3_YY = 0x1362;
  72. private const ushort BX_6M_YY = 0x1462;
  73. private const ushort BX_6X1 = 0x2162;
  74. private const ushort BX_6X2 = 0x2262;
  75. private const ushort BX_6X3 = 0x2362;
  76. private const ushort BX_6U0 = 0x0063;
  77. private const ushort BX_6U1 = 0x0163;
  78. private const ushort BX_6U2 = 0x0263;
  79. private const ushort BX_6U3 = 0x0363;
  80. private const ushort BX_6U = 0x0463;
  81. private const ushort BX_6UT = 0x0563;
  82. private const ushort BX_6U0_YY = 0x1063;
  83. private const ushort BX_6U1_YY = 0x1163;
  84. private const ushort BX_6U2_YY = 0x1263;
  85. private const ushort BX_6U3_YY = 0x1363;
  86. private const ushort BX_6U_YY = 0x1463;
  87. private const ushort BX_6A0 = 0x2063;
  88. private const ushort BX_6A1 = 0x2163;
  89. private const ushort BX_6A2 = 0x2263;
  90. private const ushort BX_6A3 = 0x2363;
  91. private const ushort BX_6A = 0x2463;
  92. private const ushort BX_6A0_YY = 0x3063;
  93. private const ushort BX_6A1_YY = 0x3163;
  94. private const ushort BX_6A2_YY = 0x3263;
  95. private const ushort BX_6A3_YY = 0x3363;
  96. private const ushort BX_6A_YY = 0x3463;
  97. private const ushort BX_6A0_G = 0x4063;
  98. private const ushort BX_6A1_G = 0x4163;
  99. private const ushort BX_6A2_G = 0x4263;
  100. private const ushort BX_6A3_G = 0x4363;
  101. private const ushort BX_6AT_G = 0x4463;
  102. private const ushort BX_6S1 = 0x5163;
  103. private const ushort BX_6S2 = 0x5263;
  104. private const ushort BX_6S3 = 0x5363;
  105. private const ushort BX_6W0 = 0x0064;
  106. private const ushort BX_6W1 = 0x0164;
  107. private const ushort BX_6W2 = 0x0264;
  108. private const ushort BX_6W3 = 0x0364;
  109. private const ushort BX_6W = 0x0464;
  110. private const ushort BX_6WT = 0x0564;
  111. private const ushort BX_6E1 = 0x0174;
  112. private const ushort BX_6E2 = 0x0274;
  113. private const ushort BX_6E3 = 0x0374;
  114. private const ushort BX_6E1X = 0x0474;
  115. private const ushort BX_6E2X = 0x0574;
  116. private const ushort BX_6Q1 = 0x0166;
  117. private const ushort BX_6Q2 = 0x0266;
  118. private const ushort BX_6Q2L = 0x0466;
  119. private const ushort BX_6Q3 = 0x0366;
  120. private const ushort BX_6Q3L = 0x0566;
  121. //public static ushort[] controlType = new ushort[111] { BX_5AT, BX_5A0, BX_5A1, BX_5A2, BX_5A3, BX_5A4, BX_5A1_WIFI, BX_5A2_WIFI,BX_5A4_WIFI,BX_5A,
  122. // BX_5A2_RF,BX_5A4_RF,BX_5AT_WIFI,BX_5AL,AX_AT,AX_A0,BX_5MT,BX_5M1,BX_5M1X,BX_5M2,BX_5M3,BX_5M4,
  123. // BX_5E1,BX_5E2,BX_5E3,BX_5UT,BX_5U0,BX_5U1,BX_5U2,BX_5U3,BX_5U4,BX_5U5,BX_5U,BX_5UL,
  124. // AX_UL,AX_UT,AX_U0,AX_U1,AX_U2,BX_5Q0,BX_5Q1,BX_5Q2,BX_5Q0P,BX_5Q1P,BX_5Q2P,BX_5QL,BX_5QS1,
  125. // BX_5QS2,BX_5QS,BX_5QS1P,BX_5QS2P,BX_5QSP,
  126. // BX_6M0,BX_6M1,BX_6M2,BX_6M3,BX_6M,BX_6MT,BX_6M0_YY,BX_6M1_YY,BX_6M2_YY,BX_6M3_YY,BX_6M_YY,BX_6X1,BX_6X2,BX_6X3,
  127. // BX_6U0,BX_6U1,BX_6U2,BX_6U3,BX_6U,BX_6UT,BX_6U0_YY,BX_6U1_YY,BX_6U2_YY,BX_6U3_YY,BX_6U_YY,
  128. // BX_6A0,BX_6A1,BX_6A2,BX_6A3,BX_6A,BX_6A0_YY,BX_6A1_YY,BX_6A2_YY,BX_6A3_YY,BX_6A_YY,BX_6A0_G,BX_6A1_G,BX_6A2_G,BX_6A3_G,BX_6AT_G,
  129. // BX_6S1,BX_6S2,BX_6S3,BX_6W0,BX_6W1,BX_6W2,BX_6W3,BX_6W,BX_6WT,
  130. // BX_6E1,BX_6E2,BX_6E3,BX_6E1X,BX_6E2X,BX_6Q1,BX_6Q2,BX_6Q2L,BX_6Q3,BX_6Q3L};
  131. private static readonly List<ushort> yyModuleList = new List<ushort>()
  132. {
  133. BX_6M0_YY, BX_6M1_YY, BX_6M2_YY, BX_6M3_YY, BX_6M_YY,
  134. BX_6U0_YY, BX_6U1_YY, BX_6U2_YY, BX_6U3_YY, BX_6U_YY,
  135. BX_6A0_YY, BX_6A1_YY, BX_6A2_YY, BX_6A3_YY, BX_6A_YY
  136. };
  137. public static bool HasVoiceModule(ushort controllerType)
  138. {
  139. return yyModuleList.Contains(controllerType);
  140. }
  141. }
  142. }