"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var Constants_exports = {};
__export(Constants_exports, {
  FunctionType: () => FunctionType,
  MessageType: () => MessageType,
  ZnifferFrameType: () => ZnifferFrameType,
  ZnifferFunctionType: () => ZnifferFunctionType,
  ZnifferMessageType: () => ZnifferMessageType
});
module.exports = __toCommonJS(Constants_exports);
var MessageType;
(function(MessageType2) {
  MessageType2[MessageType2["Request"] = 0] = "Request";
  MessageType2[MessageType2["Response"] = 1] = "Response";
})(MessageType || (MessageType = {}));
var FunctionType;
(function(FunctionType2) {
  FunctionType2[FunctionType2["GetSerialApiInitData"] = 2] = "GetSerialApiInitData";
  FunctionType2[FunctionType2["SetApplicationNodeInformation"] = 3] = "SetApplicationNodeInformation";
  FunctionType2[FunctionType2["ApplicationCommand"] = 4] = "ApplicationCommand";
  FunctionType2[FunctionType2["GetControllerCapabilities"] = 5] = "GetControllerCapabilities";
  FunctionType2[FunctionType2["SetSerialApiTimeouts"] = 6] = "SetSerialApiTimeouts";
  FunctionType2[FunctionType2["GetSerialApiCapabilities"] = 7] = "GetSerialApiCapabilities";
  FunctionType2[FunctionType2["SoftReset"] = 8] = "SoftReset";
  FunctionType2[FunctionType2["GetProtocolVersion"] = 9] = "GetProtocolVersion";
  FunctionType2[FunctionType2["SerialAPIStarted"] = 10] = "SerialAPIStarted";
  FunctionType2[FunctionType2["SerialAPISetup"] = 11] = "SerialAPISetup";
  FunctionType2[FunctionType2["SetRFReceiveMode"] = 16] = "SetRFReceiveMode";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_SET_SLEEP_MODE"] = 17] = "UNKNOWN_FUNC_SET_SLEEP_MODE";
  FunctionType2[FunctionType2["SendNodeInformation"] = 18] = "SendNodeInformation";
  FunctionType2[FunctionType2["SendData"] = 19] = "SendData";
  FunctionType2[FunctionType2["SendDataMulticast"] = 20] = "SendDataMulticast";
  FunctionType2[FunctionType2["GetControllerVersion"] = 21] = "GetControllerVersion";
  FunctionType2[FunctionType2["SendDataAbort"] = 22] = "SendDataAbort";
  FunctionType2[FunctionType2["FUNC_ID_ZW_R_F_POWER_LEVEL_SET"] = 23] = "FUNC_ID_ZW_R_F_POWER_LEVEL_SET";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_SEND_DATA_META"] = 24] = "UNKNOWN_FUNC_SEND_DATA_META";
  FunctionType2[FunctionType2["FUNC_ID_ZW_GET_RANDOM"] = 28] = "FUNC_ID_ZW_GET_RANDOM";
  FunctionType2[FunctionType2["GetControllerId"] = 32] = "GetControllerId";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_MEMORY_GET_BYTE"] = 33] = "UNKNOWN_FUNC_MEMORY_GET_BYTE";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_MEMORY_PUT_BYTE"] = 34] = "UNKNOWN_FUNC_MEMORY_PUT_BYTE";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_MEMORY_GET_BUFFER"] = 35] = "UNKNOWN_FUNC_MEMORY_GET_BUFFER";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_MEMORY_PUT_BUFFER"] = 36] = "UNKNOWN_FUNC_MEMORY_PUT_BUFFER";
  FunctionType2[FunctionType2["EnterBootloader"] = 39] = "EnterBootloader";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_UNKNOWN_0x28"] = 40] = "UNKNOWN_FUNC_UNKNOWN_0x28";
  FunctionType2[FunctionType2["GetNVMId"] = 41] = "GetNVMId";
  FunctionType2[FunctionType2["ExtNVMReadLongBuffer"] = 42] = "ExtNVMReadLongBuffer";
  FunctionType2[FunctionType2["ExtNVMWriteLongBuffer"] = 43] = "ExtNVMWriteLongBuffer";
  FunctionType2[FunctionType2["ExtNVMReadLongByte"] = 44] = "ExtNVMReadLongByte";
  FunctionType2[FunctionType2["ExtExtWriteLongByte"] = 45] = "ExtExtWriteLongByte";
  FunctionType2[FunctionType2["NVMOperations"] = 46] = "NVMOperations";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_CLOCK_SET"] = 48] = "UNKNOWN_FUNC_CLOCK_SET";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_CLOCK_GET"] = 49] = "UNKNOWN_FUNC_CLOCK_GET";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_CLOCK_COMPARE"] = 50] = "UNKNOWN_FUNC_CLOCK_COMPARE";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_RTC_TIMER_CREATE"] = 51] = "UNKNOWN_FUNC_RTC_TIMER_CREATE";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_RTC_TIMER_READ"] = 52] = "UNKNOWN_FUNC_RTC_TIMER_READ";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_RTC_TIMER_DELETE"] = 53] = "UNKNOWN_FUNC_RTC_TIMER_DELETE";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_RTC_TIMER_CALL"] = 54] = "UNKNOWN_FUNC_RTC_TIMER_CALL";
  FunctionType2[FunctionType2["ClearTxTimers"] = 55] = "ClearTxTimers";
  FunctionType2[FunctionType2["GetTxTimers"] = 56] = "GetTxTimers";
  FunctionType2[FunctionType2["ClearNetworkStats"] = 57] = "ClearNetworkStats";
  FunctionType2[FunctionType2["GetNetworkStats"] = 58] = "GetNetworkStats";
  FunctionType2[FunctionType2["GetBackgroundRSSI"] = 59] = "GetBackgroundRSSI";
  FunctionType2[FunctionType2["SetListenBeforeTalkThreshold"] = 60] = "SetListenBeforeTalkThreshold";
  FunctionType2[FunctionType2["ExtendedNVMOperations"] = 61] = "ExtendedNVMOperations";
  FunctionType2[FunctionType2["RemoveSpecificNodeIdFromNetwork"] = 63] = "RemoveSpecificNodeIdFromNetwork";
  FunctionType2[FunctionType2["FUNC_ID_ZW_SET_LEARN_NODE_STATE"] = 64] = "FUNC_ID_ZW_SET_LEARN_NODE_STATE";
  FunctionType2[FunctionType2["GetNodeProtocolInfo"] = 65] = "GetNodeProtocolInfo";
  FunctionType2[FunctionType2["HardReset"] = 66] = "HardReset";
  FunctionType2[FunctionType2["FUNC_ID_ZW_NEW_CONTROLLER"] = 67] = "FUNC_ID_ZW_NEW_CONTROLLER";
  FunctionType2[FunctionType2["FUNC_ID_ZW_REPLICATION_COMMAND_COMPLETE"] = 68] = "FUNC_ID_ZW_REPLICATION_COMMAND_COMPLETE";
  FunctionType2[FunctionType2["FUNC_ID_ZW_REPLICATION_SEND_DATA"] = 69] = "FUNC_ID_ZW_REPLICATION_SEND_DATA";
  FunctionType2[FunctionType2["AssignReturnRoute"] = 70] = "AssignReturnRoute";
  FunctionType2[FunctionType2["DeleteReturnRoute"] = 71] = "DeleteReturnRoute";
  FunctionType2[FunctionType2["RequestNodeNeighborUpdate"] = 72] = "RequestNodeNeighborUpdate";
  FunctionType2[FunctionType2["ApplicationUpdateRequest"] = 73] = "ApplicationUpdateRequest";
  FunctionType2[FunctionType2["AddNodeToNetwork"] = 74] = "AddNodeToNetwork";
  FunctionType2[FunctionType2["RemoveNodeFromNetwork"] = 75] = "RemoveNodeFromNetwork";
  FunctionType2[FunctionType2["AddControllerAndAssignPrimary"] = 76] = "AddControllerAndAssignPrimary";
  FunctionType2[FunctionType2["AddPrimaryController"] = 77] = "AddPrimaryController";
  FunctionType2[FunctionType2["AssignPriorityReturnRoute"] = 79] = "AssignPriorityReturnRoute";
  FunctionType2[FunctionType2["SetLearnMode"] = 80] = "SetLearnMode";
  FunctionType2[FunctionType2["AssignSUCReturnRoute"] = 81] = "AssignSUCReturnRoute";
  FunctionType2[FunctionType2["FUNC_ID_ZW_ENABLE_SUC"] = 82] = "FUNC_ID_ZW_ENABLE_SUC";
  FunctionType2[FunctionType2["RequestNetworkUpdate"] = 83] = "RequestNetworkUpdate";
  FunctionType2[FunctionType2["SetSUCNodeId"] = 84] = "SetSUCNodeId";
  FunctionType2[FunctionType2["DeleteSUCReturnRoute"] = 85] = "DeleteSUCReturnRoute";
  FunctionType2[FunctionType2["GetSUCNodeId"] = 86] = "GetSUCNodeId";
  FunctionType2[FunctionType2["SendSUCNodeId"] = 87] = "SendSUCNodeId";
  FunctionType2[FunctionType2["AssignPrioritySUCReturnRoute"] = 88] = "AssignPrioritySUCReturnRoute";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_REDISCOVERY_NEEDED"] = 89] = "UNKNOWN_FUNC_REDISCOVERY_NEEDED";
  FunctionType2[FunctionType2["FUNC_ID_ZW_REQUEST_NODE_NEIGHBOR_UPDATE_OPTIONS"] = 90] = "FUNC_ID_ZW_REQUEST_NODE_NEIGHBOR_UPDATE_OPTIONS";
  FunctionType2[FunctionType2["ExploreRequestInclusion"] = 94] = "ExploreRequestInclusion";
  FunctionType2[FunctionType2["ExploreRequestExclusion"] = 95] = "ExploreRequestExclusion";
  FunctionType2[FunctionType2["RequestNodeInfo"] = 96] = "RequestNodeInfo";
  FunctionType2[FunctionType2["RemoveFailedNode"] = 97] = "RemoveFailedNode";
  FunctionType2[FunctionType2["IsFailedNode"] = 98] = "IsFailedNode";
  FunctionType2[FunctionType2["ReplaceFailedNode"] = 99] = "ReplaceFailedNode";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_UNKNOWN_0x66"] = 102] = "UNKNOWN_FUNC_UNKNOWN_0x66";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_UNKNOWN_0x67"] = 103] = "UNKNOWN_FUNC_UNKNOWN_0x67";
  FunctionType2[FunctionType2["RequestProtocolCCEncryption"] = 104] = "RequestProtocolCCEncryption";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_TIMER_START"] = 112] = "UNKNOWN_FUNC_TIMER_START";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_TIMER_RESTART"] = 113] = "UNKNOWN_FUNC_TIMER_RESTART";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_TIMER_CANCEL"] = 114] = "UNKNOWN_FUNC_TIMER_CANCEL";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_TIMER_CALL"] = 115] = "UNKNOWN_FUNC_TIMER_CALL";
  FunctionType2[FunctionType2["FirmwareUpdateNVM"] = 120] = "FirmwareUpdateNVM";
  FunctionType2[FunctionType2["GetRoutingInfo"] = 128] = "GetRoutingInfo";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_GetTXCounter"] = 129] = "UNKNOWN_FUNC_GetTXCounter";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_ResetTXCounter"] = 130] = "UNKNOWN_FUNC_ResetTXCounter";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_StoreNodeInfo"] = 131] = "UNKNOWN_FUNC_StoreNodeInfo";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_StoreHomeId"] = 132] = "UNKNOWN_FUNC_StoreHomeId";
  FunctionType2[FunctionType2["LockUnlockLastRoute"] = 144] = "LockUnlockLastRoute";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_SEND_DATA_ROUTE_DEMO"] = 145] = "UNKNOWN_FUNC_SEND_DATA_ROUTE_DEMO";
  FunctionType2[FunctionType2["GetPriorityRoute"] = 146] = "GetPriorityRoute";
  FunctionType2[FunctionType2["SetPriorityRoute"] = 147] = "SetPriorityRoute";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_SERIAL_API_TEST"] = 149] = "UNKNOWN_FUNC_SERIAL_API_TEST";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_UNKNOWN_0x98"] = 152] = "UNKNOWN_FUNC_UNKNOWN_0x98";
  FunctionType2[FunctionType2["VirtualNodeSetNodeInfo"] = 160] = "VirtualNodeSetNodeInfo";
  FunctionType2[FunctionType2["FUNC_ID_APPLICATION_SLAVE_COMMAND_HANDLER"] = 161] = "FUNC_ID_APPLICATION_SLAVE_COMMAND_HANDLER";
  FunctionType2[FunctionType2["VirtualNodeSendNodeInfo"] = 162] = "VirtualNodeSendNodeInfo";
  FunctionType2[FunctionType2["FUNC_ID_ZW_SEND_SLAVE_DATA"] = 163] = "FUNC_ID_ZW_SEND_SLAVE_DATA";
  FunctionType2[FunctionType2["VirtualNodeSetLearnMode"] = 164] = "VirtualNodeSetLearnMode";
  FunctionType2[FunctionType2["GetVirtualNodes"] = 165] = "GetVirtualNodes";
  FunctionType2[FunctionType2["IsVirtualNode"] = 166] = "IsVirtualNode";
  FunctionType2[FunctionType2["BridgeApplicationCommand"] = 168] = "BridgeApplicationCommand";
  FunctionType2[FunctionType2["SendDataBridge"] = 169] = "SendDataBridge";
  FunctionType2[FunctionType2["SendDataMulticastBridge"] = 171] = "SendDataMulticastBridge";
  FunctionType2[FunctionType2["EnableWatchdog500"] = 182] = "EnableWatchdog500";
  FunctionType2[FunctionType2["DisableWatchdog500"] = 183] = "DisableWatchdog500";
  FunctionType2[FunctionType2["KickWatchdog500"] = 184] = "KickWatchdog500";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_UNKNOWN_0xB9"] = 185] = "UNKNOWN_FUNC_UNKNOWN_0xB9";
  FunctionType2[FunctionType2["UNKNOWN_FUNC_RF_POWERLEVEL_GET"] = 186] = "UNKNOWN_FUNC_RF_POWERLEVEL_GET";
  FunctionType2[FunctionType2["GetLibrary"] = 189] = "GetLibrary";
  FunctionType2[FunctionType2["SendTestFrame"] = 190] = "SendTestFrame";
  FunctionType2[FunctionType2["GetProtocolStatus"] = 191] = "GetProtocolStatus";
  FunctionType2[FunctionType2["FUNC_ID_ZW_SET_PROMISCUOUS_MODE"] = 208] = "FUNC_ID_ZW_SET_PROMISCUOUS_MODE";
  FunctionType2[FunctionType2["FUNC_ID_PROMISCUOUS_APPLICATION_COMMAND_HANDLER"] = 209] = "FUNC_ID_PROMISCUOUS_APPLICATION_COMMAND_HANDLER";
  FunctionType2[FunctionType2["StartWatchdog"] = 210] = "StartWatchdog";
  FunctionType2[FunctionType2["StopWatchdog"] = 211] = "StopWatchdog";
  FunctionType2[FunctionType2["SetMaximumRoutingAttempts"] = 212] = "SetMaximumRoutingAttempts";
  FunctionType2[FunctionType2["SetMaxSmartStartInclusionRequestInterval"] = 214] = "SetMaxSmartStartInclusionRequestInterval";
  FunctionType2[FunctionType2["Shutdown"] = 217] = "Shutdown";
  FunctionType2[FunctionType2["GetLongRangeNodes"] = 218] = "GetLongRangeNodes";
  FunctionType2[FunctionType2["GetLongRangeChannel"] = 219] = "GetLongRangeChannel";
  FunctionType2[FunctionType2["SetLongRangeChannel"] = 220] = "SetLongRangeChannel";
  FunctionType2[FunctionType2["SetLongRangeShadowNodeIDs"] = 221] = "SetLongRangeShadowNodeIDs";
  FunctionType2[FunctionType2["Proprietary_DE"] = 222] = "Proprietary_DE";
  FunctionType2[FunctionType2["Proprietary_DF"] = 223] = "Proprietary_DF";
  FunctionType2[FunctionType2["Proprietary_E7"] = 231] = "Proprietary_E7";
  FunctionType2[FunctionType2["Proprietary_E8"] = 232] = "Proprietary_E8";
  FunctionType2[FunctionType2["Proprietary_F0"] = 240] = "Proprietary_F0";
  FunctionType2[FunctionType2["Proprietary_F1"] = 241] = "Proprietary_F1";
  FunctionType2[FunctionType2["Proprietary_F2"] = 242] = "Proprietary_F2";
  FunctionType2[FunctionType2["Proprietary_F3"] = 243] = "Proprietary_F3";
  FunctionType2[FunctionType2["Proprietary_F4"] = 244] = "Proprietary_F4";
  FunctionType2[FunctionType2["Proprietary_F5"] = 245] = "Proprietary_F5";
  FunctionType2[FunctionType2["Proprietary_F6"] = 246] = "Proprietary_F6";
  FunctionType2[FunctionType2["Proprietary_F7"] = 247] = "Proprietary_F7";
  FunctionType2[FunctionType2["Proprietary_F8"] = 248] = "Proprietary_F8";
  FunctionType2[FunctionType2["Proprietary_F9"] = 249] = "Proprietary_F9";
  FunctionType2[FunctionType2["Proprietary_FA"] = 250] = "Proprietary_FA";
  FunctionType2[FunctionType2["Proprietary_FB"] = 251] = "Proprietary_FB";
  FunctionType2[FunctionType2["Proprietary_FC"] = 252] = "Proprietary_FC";
  FunctionType2[FunctionType2["Proprietary_FD"] = 253] = "Proprietary_FD";
  FunctionType2[FunctionType2["Proprietary_FE"] = 254] = "Proprietary_FE";
})(FunctionType || (FunctionType = {}));
var ZnifferFunctionType;
(function(ZnifferFunctionType2) {
  ZnifferFunctionType2[ZnifferFunctionType2["GetVersion"] = 1] = "GetVersion";
  ZnifferFunctionType2[ZnifferFunctionType2["SetFrequency"] = 2] = "SetFrequency";
  ZnifferFunctionType2[ZnifferFunctionType2["GetFrequencies"] = 3] = "GetFrequencies";
  ZnifferFunctionType2[ZnifferFunctionType2["Start"] = 4] = "Start";
  ZnifferFunctionType2[ZnifferFunctionType2["Stop"] = 5] = "Stop";
  ZnifferFunctionType2[ZnifferFunctionType2["SetLRChannelConfig"] = 6] = "SetLRChannelConfig";
  ZnifferFunctionType2[ZnifferFunctionType2["GetLRChannelConfigs"] = 7] = "GetLRChannelConfigs";
  ZnifferFunctionType2[ZnifferFunctionType2["GetLRRegions"] = 8] = "GetLRRegions";
  ZnifferFunctionType2[ZnifferFunctionType2["SetBaudRate"] = 14] = "SetBaudRate";
  ZnifferFunctionType2[ZnifferFunctionType2["GetFrequencyInfo"] = 19] = "GetFrequencyInfo";
  ZnifferFunctionType2[ZnifferFunctionType2["GetLRChannelConfigInfo"] = 20] = "GetLRChannelConfigInfo";
})(ZnifferFunctionType || (ZnifferFunctionType = {}));
var ZnifferMessageType;
(function(ZnifferMessageType2) {
  ZnifferMessageType2[ZnifferMessageType2["Command"] = 35] = "Command";
  ZnifferMessageType2[ZnifferMessageType2["Data"] = 33] = "Data";
})(ZnifferMessageType || (ZnifferMessageType = {}));
var ZnifferFrameType;
(function(ZnifferFrameType2) {
  ZnifferFrameType2[ZnifferFrameType2["Command"] = 0] = "Command";
  ZnifferFrameType2[ZnifferFrameType2["Data"] = 1] = "Data";
  ZnifferFrameType2[ZnifferFrameType2["BeamFrame"] = 2] = "BeamFrame";
  ZnifferFrameType2[ZnifferFrameType2["BeamStart"] = 4] = "BeamStart";
  ZnifferFrameType2[ZnifferFrameType2["BeamStop"] = 5] = "BeamStop";
})(ZnifferFrameType || (ZnifferFrameType = {}));
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  FunctionType,
  MessageType,
  ZnifferFrameType,
  ZnifferFunctionType,
  ZnifferMessageType
});
//# sourceMappingURL=Constants.js.map
