Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
kardolus
GitHub Repository: kardolus/chatgpt-cli
Path: blob/main/vendor/golang.org/x/sys/unix/bluetooth_linux.go
2880 views
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
5
// Bluetooth sockets and messages
6
7
package unix
8
9
// Bluetooth Protocols
10
const (
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
21
const (
22
HCI_CHANNEL_RAW = 0
23
HCI_CHANNEL_USER = 1
24
HCI_CHANNEL_MONITOR = 2
25
HCI_CHANNEL_CONTROL = 3
26
HCI_CHANNEL_LOGGING = 4
27
)
28
29
// Socketoption Level
30
const (
31
SOL_BLUETOOTH = 0x112
32
SOL_HCI = 0x0
33
SOL_L2CAP = 0x6
34
SOL_RFCOMM = 0x12
35
SOL_SCO = 0x11
36
)
37
38