本站源代码
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.

36 lines
655B

  1. // Copyright 2016 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Bluetooth sockets and messages
  5. package unix
  6. // Bluetooth Protocols
  7. const (
  8. BTPROTO_L2CAP = 0
  9. BTPROTO_HCI = 1
  10. BTPROTO_SCO = 2
  11. BTPROTO_RFCOMM = 3
  12. BTPROTO_BNEP = 4
  13. BTPROTO_CMTP = 5
  14. BTPROTO_HIDP = 6
  15. BTPROTO_AVDTP = 7
  16. )
  17. const (
  18. HCI_CHANNEL_RAW = 0
  19. HCI_CHANNEL_USER = 1
  20. HCI_CHANNEL_MONITOR = 2
  21. HCI_CHANNEL_CONTROL = 3
  22. )
  23. // Socketoption Level
  24. const (
  25. SOL_BLUETOOTH = 0x112
  26. SOL_HCI = 0x0
  27. SOL_L2CAP = 0x6
  28. SOL_RFCOMM = 0x12
  29. SOL_SCO = 0x11
  30. )
上海开阖软件有限公司 沪ICP备12045867号-1