From ee90f798121d4287d4018ffbc0eb4d2d24f0cccc Mon Sep 17 00:00:00 2001 From: Chris Jackson Date: Thu, 26 Oct 2023 07:55:26 +1300 Subject: [PATCH] Update parameters in getRadioParameters Signed-off-by: Chris Jackson --- .../src/main/resources/ezsp_protocol.xml | 6 ++--- .../EzspGetRadioParametersRequest.java | 26 +++++++++---------- .../EzspGetRadioParametersResponse.java | 6 ++--- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/com.zsmartsystems.zigbee.dongle.ember.autocode/src/main/resources/ezsp_protocol.xml b/com.zsmartsystems.zigbee.dongle.ember.autocode/src/main/resources/ezsp_protocol.xml index 92e8d2657..c524199a8 100644 --- a/com.zsmartsystems.zigbee.dongle.ember.autocode/src/main/resources/ezsp_protocol.xml +++ b/com.zsmartsystems.zigbee.dongle.ember.autocode/src/main/resources/ezsp_protocol.xml @@ -3706,15 +3706,15 @@ uint8_t - childCount - The number of children the node currently has. + phyIndex + The physical radio to query. EmberStatus status - The result of the CBKE operation. + The result of the operation. EmberMultiPhyRadioParameters diff --git a/com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/ezsp/command/EzspGetRadioParametersRequest.java b/com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/ezsp/command/EzspGetRadioParametersRequest.java index b8b5e142d..0ad494d34 100644 --- a/com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/ezsp/command/EzspGetRadioParametersRequest.java +++ b/com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/ezsp/command/EzspGetRadioParametersRequest.java @@ -25,11 +25,11 @@ public class EzspGetRadioParametersRequest extends EzspFrameRequest { public static final int FRAME_ID = 0xFD; /** - * The number of children the node currently has. + * The physical radio to query. *

* EZSP type is uint8_t - Java type is {@link int} */ - private int childCount; + private int phyIndex; /** * Serialiser used to serialise to binary line data @@ -45,23 +45,23 @@ public EzspGetRadioParametersRequest() { } /** - * The number of children the node currently has. + * The physical radio to query. *

* EZSP type is uint8_t - Java type is {@link int} * - * @return the current childCount as {@link int} + * @return the current phyIndex as {@link int} */ - public int getChildCount() { - return childCount; + public int getPhyIndex() { + return phyIndex; } /** - * The number of children the node currently has. + * The physical radio to query. * - * @param childCount the childCount to set as {@link int} + * @param phyIndex the phyIndex to set as {@link int} */ - public void setChildCount(int childCount) { - this.childCount = childCount; + public void setPhyIndex(int phyIndex) { + this.phyIndex = phyIndex; } @Override @@ -70,7 +70,7 @@ public int[] serialize() { serializeHeader(serializer); // Serialize the fields - serializer.serializeUInt8(childCount); + serializer.serializeUInt8(phyIndex); return serializer.getPayload(); } @@ -79,8 +79,8 @@ public String toString() { final StringBuilder builder = new StringBuilder(82); builder.append("EzspGetRadioParametersRequest [networkId="); builder.append(networkId); - builder.append(", childCount="); - builder.append(childCount); + builder.append(", phyIndex="); + builder.append(phyIndex); builder.append(']'); return builder.toString(); } diff --git a/com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/ezsp/command/EzspGetRadioParametersResponse.java b/com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/ezsp/command/EzspGetRadioParametersResponse.java index cb32ef97e..0b33f0bc3 100644 --- a/com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/ezsp/command/EzspGetRadioParametersResponse.java +++ b/com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/ezsp/command/EzspGetRadioParametersResponse.java @@ -26,7 +26,7 @@ public class EzspGetRadioParametersResponse extends EzspFrameResponse { public static final int FRAME_ID = 0xFD; /** - * The result of the CBKE operation. + * The result of the operation. *

* EZSP type is EmberStatus - Java type is {@link EmberStatus} */ @@ -52,7 +52,7 @@ public EzspGetRadioParametersResponse(int[] inputBuffer) { } /** - * The result of the CBKE operation. + * The result of the operation. *

* EZSP type is EmberStatus - Java type is {@link EmberStatus} * @@ -63,7 +63,7 @@ public EmberStatus getStatus() { } /** - * The result of the CBKE operation. + * The result of the operation. * * @param status the status to set as {@link EmberStatus} */