终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

51 lines
1.1 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BPASmartClient.SerialPort
  7. {
  8. #region 波特率、数据位的枚举
  9. /// <summary>
  10. /// 串口数据位列表(5,6,7,8)
  11. /// </summary>
  12. public enum DataBits : int
  13. {
  14. Five = 5,
  15. Six = 6,
  16. Sevent = 7,
  17. Eight = 8
  18. }
  19. /// <summary>
  20. /// 串口波特率列表。
  21. /// 75,110,150,300,600,1200,2400,4800,9600,14400,19200,28800,38400,56000,57600,
  22. /// 115200,128000,230400,256000
  23. /// </summary>
  24. public enum BaudRates : int
  25. {
  26. BR_75 = 75,
  27. BR_110 = 110,
  28. BR_150 = 150,
  29. BR_300 = 300,
  30. BR_600 = 600,
  31. BR_1200 = 1200,
  32. BR_2400 = 2400,
  33. BR_4800 = 4800,
  34. BR_9600 = 9600,
  35. BR_14400 = 14400,
  36. BR_19200 = 19200,
  37. BR_28800 = 28800,
  38. BR_38400 = 38400,
  39. BR_56000 = 56000,
  40. BR_57600 = 57600,
  41. BR_115200 = 115200,
  42. BR_128000 = 128000,
  43. BR_230400 = 230400,
  44. BR_256000 = 256000
  45. }
  46. #endregion
  47. }