blob: a178a6149bb218e20113b628874803522d7c8538 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001// 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
5// Bluetooth sockets and messages
6
7package unix
8
9// Bluetooth Protocols
10const (
11 BTPROTO_L2CAP = 0
12 BTPROTO_HCI = 1
13 BTPROTO_SCO = 2
14 BTPROTO_RFCOMM = 3
15 BTPROTO_BNEP = 4
16 BTPROTO_CMTP = 5
17 BTPROTO_HIDP = 6
18 BTPROTO_AVDTP = 7
19)
20
21const (
22 HCI_CHANNEL_RAW = 0
23 HCI_CHANNEL_USER = 1
24 HCI_CHANNEL_MONITOR = 2
25 HCI_CHANNEL_CONTROL = 3
Matteo Scandolof9d43412021-01-12 11:11:34 -080026 HCI_CHANNEL_LOGGING = 4
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070027)
28
29// Socketoption Level
30const (
31 SOL_BLUETOOTH = 0x112
32 SOL_HCI = 0x0
33 SOL_L2CAP = 0x6
34 SOL_RFCOMM = 0x12
35 SOL_SCO = 0x11
36)