@@ -217,3 +217,46 @@ class APSLinkKeyTable(
217
217
basic .LVList , length_type = basic .uint16_t , item_type = APSLinkKeyTableEntry
218
218
):
219
219
pass
220
+
221
+
222
+ class LinkInfo (cstruct .CStruct ):
223
+ # Counter of transmission success/failures
224
+ txCounter : basic .uint8_t
225
+ # Average of sending rssi values if link staus is enabled
226
+ # i.e. NWK_LINK_STATUS_PERIOD is defined as non zero
227
+ txCost : basic .uint8_t
228
+ # average of received rssi values.
229
+ # needs to be converted to link cost (1-7) before use
230
+ rxLqi : basic .uint8_t
231
+ # security key sequence number
232
+ inKeySeqNum : basic .uint8_t
233
+ # security frame counter..
234
+ inFrmCntr : basic .uint32_t
235
+ # higher values indicate more failures
236
+ txFailure : basic .uint16_t
237
+
238
+
239
+ class AgingEndDevice (cstruct .CStruct ):
240
+ endDevCfg : basic .uint8_t
241
+ deviceTimeout : basic .uint32_t
242
+
243
+
244
+ class BaseAssociatedDevice (cstruct .CStruct ):
245
+ shortAddr : basic .uint16_t
246
+ addrIdx : basic .uint16_t
247
+ nodeRelation : basic .uint8_t
248
+ devStatus : basic .uint8_t
249
+ assocCnt : basic .uint8_t
250
+ age : basic .uint8_t
251
+ linkInfo : LinkInfo
252
+ endDev : AgingEndDevice
253
+ timeoutCounter : basic .uint32_t
254
+ keepaliveRcv : named .Bool
255
+
256
+
257
+ class AssociatedDeviceZStack1 (BaseAssociatedDevice ):
258
+ pass
259
+
260
+
261
+ class AssociatedDeviceZStack3 (BaseAssociatedDevice ):
262
+ ctrl : basic .uint8_t # This member was added
0 commit comments