-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtypes_linux.go
More file actions
58 lines (50 loc) · 1.09 KB
/
types_linux.go
File metadata and controls
58 lines (50 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package bluetooth
type hciInquiryRequest struct {
deviceID uint16
flags uint16
lap [3]uint8
length uint8
numberOfResponses uint8
response [255]inquiryInfo
}
type inquiryInfo struct {
bluetoothDeviceAddress [6]uint8
scanRepMode uint8
scanPeriodMode uint8
scanMode uint8
deviceClass [3]uint8
clockOffset uint16
}
type remoteNameRequest struct {
bluetoothDeviceAddress [6]uint8
scanRepMode uint8
scanMode uint8
clockOffset uint16
}
type remoteNameResponse struct {
status uint8
bluetoothDeviceAddress [6]uint8
name [248]uint8
}
type hciRequest struct {
ogf uint16
ocf uint16
event int32
request *remoteNameRequest
requestLen int32
response *remoteNameResponse
responseLen int32
}
type hciFilter struct {
typeMask uint32
eventMask [2]uint32
opcode uint16
}
type hciEventHdr struct {
event uint8
pLen uint8
}
type hciCommandHdr struct {
opcode uint16
pLen uint8
}