-
Notifications
You must be signed in to change notification settings - Fork 8
/
device_state.go
40 lines (32 loc) · 1.01 KB
/
device_state.go
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
package zstack
import "github.com/shimmeringbee/zigbee"
type ZdoEndDeviceAnnceIndCapabilities struct {
AddressAllocated bool `bcfieldwidth:"1"`
SecurityCapability bool `bcfieldwidth:"1"`
Reserved uint8 `bcfieldwidth:"2"`
ReceiveOnIdle bool `bcfieldwidth:"1"`
PowerSource bool `bcfieldwidth:"1"`
Router bool `bcfieldwidth:"1"`
AltPANController bool `bcfieldwidth:"1"`
}
type ZdoEndDeviceAnnceInd struct {
SourceAddress zigbee.NetworkAddress
NetworkAddress zigbee.NetworkAddress
IEEEAddress zigbee.IEEEAddress
Capabilities ZdoEndDeviceAnnceIndCapabilities
}
const ZdoEndDeviceAnnceIndID uint8 = 0xc1
type ZdoLeaveInd struct {
SourceAddress zigbee.NetworkAddress
IEEEAddress zigbee.IEEEAddress
Request bool
Remove bool
Rejoin bool
}
const ZdoLeaveIndID uint8 = 0xc9
type ZdoTcDevInd struct {
NetworkAddress zigbee.NetworkAddress
IEEEAddress zigbee.IEEEAddress
ParentAddress zigbee.NetworkAddress
}
const ZdoTcDevIndID uint8 = 0xca