Skip to content

Commit da5e5c9

Browse files
committed
Add missing type
1 parent d9dd144 commit da5e5c9

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

bellows/ezsp/v17/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"mic": t.uint32_t,
4242
"proxyTableIndex": t.uint8_t,
4343
"gpdCommandPayload": t.LVBytes,
44-
"packetInfo": t.EmberRxPacketInfo,
44+
"packetInfo": t.SlRxPacketInfo,
4545
},
4646
),
4747
}

bellows/types/struct.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,3 +706,37 @@ class EmberMultiPhyRadioParameters(EzspStruct):
706706
radioTxPower: basic.int8s
707707
radioPage: basic.uint8_t
708708
radioChannel: basic.uint8_t
709+
710+
711+
class SlRxPacketInfo(EzspStruct):
712+
"""Received packet information.
713+
714+
Contains information about the incoming packet.
715+
"""
716+
717+
# Short ID of the sender of the message
718+
sender_short_id: named.NWK
719+
# EUI64 of the sender of the message if the sender chose to include this
720+
# information in the message. The SL_ZIGBEE_APS_OPTION_SOURCE_EUI64 bit in
721+
# the options field of the APS frame of the incoming message indicates that
722+
# the EUI64 is present in the message. Also, when not set, the sender long ID
723+
# is set to all zeros
724+
sender_long_id: named.EUI64
725+
# The index of the entry in the binding table that matches the sender of
726+
# the message or 0xFF if there is no matching entry. A binding matches the message if:
727+
# - The binding's source endpoint is the same as the message's destination endpoint
728+
# - The binding's destination endpoint is the same as the message's source endpoint
729+
# - The source of the message has been previously identified as the binding's remote
730+
# node by a successful address discovery or by the application via a call to either
731+
# sl_zigbee_set_reply_binding() or sl_zigbee_note_senders_binding()
732+
binding_index: basic.uint8_t
733+
# The index of the entry in the address table that matches the sender of
734+
# the message or 0xFF if there is no matching entry
735+
address_index: basic.uint8_t
736+
# Link quality of the node that last relayed the current message
737+
last_hop_lqi: basic.uint8_t
738+
# Received signal strength indicator (RSSI) of the node that last
739+
# relayed the message
740+
last_hop_rssi: basic.int8s
741+
# Timestamp of the moment when Start Frame Delimiter (SFD) was received
742+
last_hop_timestamp: basic.uint32_t

0 commit comments

Comments
 (0)