zigbee-herdsman
Version:
An open source ZigBee gateway solution with node.js.
742 lines • 63.3 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EzspSleepMode = exports.EzspMfgTokenId = exports.EmberRejoinReason = exports.EmberLeaveReason = exports.EzspEndpointFlag = exports.EzspExtendedValueId = exports.EzspValueId = exports.EzspPolicyId = exports.EzspDecisionBitmask = exports.EzspDecisionId = exports.EzspConfigId = exports.EzspFrameID = void 0;
/** EZSP Frame IDs */
var EzspFrameID;
(function (EzspFrameID) {
// Configuration Frames
EzspFrameID[EzspFrameID["VERSION"] = 0] = "VERSION";
EzspFrameID[EzspFrameID["GET_CONFIGURATION_VALUE"] = 82] = "GET_CONFIGURATION_VALUE";
EzspFrameID[EzspFrameID["SET_CONFIGURATION_VALUE"] = 83] = "SET_CONFIGURATION_VALUE";
EzspFrameID[EzspFrameID["READ_ATTRIBUTE"] = 264] = "READ_ATTRIBUTE";
EzspFrameID[EzspFrameID["WRITE_ATTRIBUTE"] = 265] = "WRITE_ATTRIBUTE";
EzspFrameID[EzspFrameID["ADD_ENDPOINT"] = 2] = "ADD_ENDPOINT";
EzspFrameID[EzspFrameID["SET_POLICY"] = 85] = "SET_POLICY";
EzspFrameID[EzspFrameID["GET_POLICY"] = 86] = "GET_POLICY";
EzspFrameID[EzspFrameID["SEND_PAN_ID_UPDATE"] = 87] = "SEND_PAN_ID_UPDATE";
EzspFrameID[EzspFrameID["GET_VALUE"] = 170] = "GET_VALUE";
EzspFrameID[EzspFrameID["GET_EXTENDED_VALUE"] = 3] = "GET_EXTENDED_VALUE";
EzspFrameID[EzspFrameID["SET_VALUE"] = 171] = "SET_VALUE";
EzspFrameID[EzspFrameID["SET_PASSIVE_ACK_CONFIG"] = 261] = "SET_PASSIVE_ACK_CONFIG";
// Utilities Frames
EzspFrameID[EzspFrameID["NOP"] = 5] = "NOP";
EzspFrameID[EzspFrameID["ECHO"] = 129] = "ECHO";
EzspFrameID[EzspFrameID["INVALID_COMMAND"] = 88] = "INVALID_COMMAND";
EzspFrameID[EzspFrameID["CALLBACK"] = 6] = "CALLBACK";
EzspFrameID[EzspFrameID["NO_CALLBACKS"] = 7] = "NO_CALLBACKS";
EzspFrameID[EzspFrameID["SET_TOKEN"] = 9] = "SET_TOKEN";
EzspFrameID[EzspFrameID["GET_TOKEN"] = 10] = "GET_TOKEN";
EzspFrameID[EzspFrameID["GET_MFG_TOKEN"] = 11] = "GET_MFG_TOKEN";
EzspFrameID[EzspFrameID["SET_MFG_TOKEN"] = 12] = "SET_MFG_TOKEN";
EzspFrameID[EzspFrameID["STACK_TOKEN_CHANGED_HANDLER"] = 13] = "STACK_TOKEN_CHANGED_HANDLER";
EzspFrameID[EzspFrameID["GET_RANDOM_NUMBER"] = 73] = "GET_RANDOM_NUMBER";
EzspFrameID[EzspFrameID["SET_TIMER"] = 14] = "SET_TIMER";
EzspFrameID[EzspFrameID["GET_TIMER"] = 78] = "GET_TIMER";
EzspFrameID[EzspFrameID["TIMER_HANDLER"] = 15] = "TIMER_HANDLER";
EzspFrameID[EzspFrameID["DEBUG_WRITE"] = 18] = "DEBUG_WRITE";
EzspFrameID[EzspFrameID["READ_AND_CLEAR_COUNTERS"] = 101] = "READ_AND_CLEAR_COUNTERS";
EzspFrameID[EzspFrameID["READ_COUNTERS"] = 241] = "READ_COUNTERS";
EzspFrameID[EzspFrameID["COUNTER_ROLLOVER_HANDLER"] = 242] = "COUNTER_ROLLOVER_HANDLER";
EzspFrameID[EzspFrameID["DELAY_TEST"] = 157] = "DELAY_TEST";
EzspFrameID[EzspFrameID["GET_LIBRARY_STATUS"] = 1] = "GET_LIBRARY_STATUS";
EzspFrameID[EzspFrameID["GET_XNCP_INFO"] = 19] = "GET_XNCP_INFO";
EzspFrameID[EzspFrameID["CUSTOM_FRAME"] = 71] = "CUSTOM_FRAME";
EzspFrameID[EzspFrameID["CUSTOM_FRAME_HANDLER"] = 84] = "CUSTOM_FRAME_HANDLER";
EzspFrameID[EzspFrameID["GET_EUI64"] = 38] = "GET_EUI64";
EzspFrameID[EzspFrameID["GET_NODE_ID"] = 39] = "GET_NODE_ID";
EzspFrameID[EzspFrameID["GET_PHY_INTERFACE_COUNT"] = 252] = "GET_PHY_INTERFACE_COUNT";
EzspFrameID[EzspFrameID["GET_TRUE_RANDOM_ENTROPY_SOURCE"] = 79] = "GET_TRUE_RANDOM_ENTROPY_SOURCE";
// Networking Frames
EzspFrameID[EzspFrameID["SET_MANUFACTURER_CODE"] = 21] = "SET_MANUFACTURER_CODE";
EzspFrameID[EzspFrameID["SET_POWER_DESCRIPTOR"] = 22] = "SET_POWER_DESCRIPTOR";
EzspFrameID[EzspFrameID["NETWORK_INIT"] = 23] = "NETWORK_INIT";
EzspFrameID[EzspFrameID["NETWORK_STATE"] = 24] = "NETWORK_STATE";
EzspFrameID[EzspFrameID["STACK_STATUS_HANDLER"] = 25] = "STACK_STATUS_HANDLER";
EzspFrameID[EzspFrameID["START_SCAN"] = 26] = "START_SCAN";
EzspFrameID[EzspFrameID["ENERGY_SCAN_RESULT_HANDLER"] = 72] = "ENERGY_SCAN_RESULT_HANDLER";
EzspFrameID[EzspFrameID["NETWORK_FOUND_HANDLER"] = 27] = "NETWORK_FOUND_HANDLER";
EzspFrameID[EzspFrameID["SCAN_COMPLETE_HANDLER"] = 28] = "SCAN_COMPLETE_HANDLER";
EzspFrameID[EzspFrameID["UNUSED_PAN_ID_FOUND_HANDLER"] = 210] = "UNUSED_PAN_ID_FOUND_HANDLER";
EzspFrameID[EzspFrameID["FIND_UNUSED_PAN_ID"] = 211] = "FIND_UNUSED_PAN_ID";
EzspFrameID[EzspFrameID["STOP_SCAN"] = 29] = "STOP_SCAN";
EzspFrameID[EzspFrameID["FORM_NETWORK"] = 30] = "FORM_NETWORK";
EzspFrameID[EzspFrameID["JOIN_NETWORK"] = 31] = "JOIN_NETWORK";
EzspFrameID[EzspFrameID["JOIN_NETWORK_DIRECTLY"] = 59] = "JOIN_NETWORK_DIRECTLY";
EzspFrameID[EzspFrameID["LEAVE_NETWORK"] = 32] = "LEAVE_NETWORK";
EzspFrameID[EzspFrameID["FIND_AND_REJOIN_NETWORK"] = 33] = "FIND_AND_REJOIN_NETWORK";
EzspFrameID[EzspFrameID["PERMIT_JOINING"] = 34] = "PERMIT_JOINING";
EzspFrameID[EzspFrameID["CHILD_JOIN_HANDLER"] = 35] = "CHILD_JOIN_HANDLER";
EzspFrameID[EzspFrameID["ENERGY_SCAN_REQUEST"] = 156] = "ENERGY_SCAN_REQUEST";
EzspFrameID[EzspFrameID["GET_NETWORK_PARAMETERS"] = 40] = "GET_NETWORK_PARAMETERS";
EzspFrameID[EzspFrameID["GET_RADIO_PARAMETERS"] = 253] = "GET_RADIO_PARAMETERS";
EzspFrameID[EzspFrameID["GET_PARENT_CHILD_PARAMETERS"] = 41] = "GET_PARENT_CHILD_PARAMETERS";
EzspFrameID[EzspFrameID["GET_CHILD_DATA"] = 74] = "GET_CHILD_DATA";
EzspFrameID[EzspFrameID["SET_CHILD_DATA"] = 172] = "SET_CHILD_DATA";
EzspFrameID[EzspFrameID["CHILD_ID"] = 262] = "CHILD_ID";
EzspFrameID[EzspFrameID["CHILD_INDEX"] = 263] = "CHILD_INDEX";
EzspFrameID[EzspFrameID["GET_SOURCE_ROUTE_TABLE_TOTAL_SIZE"] = 195] = "GET_SOURCE_ROUTE_TABLE_TOTAL_SIZE";
EzspFrameID[EzspFrameID["GET_SOURCE_ROUTE_TABLE_FILLED_SIZE"] = 194] = "GET_SOURCE_ROUTE_TABLE_FILLED_SIZE";
EzspFrameID[EzspFrameID["GET_SOURCE_ROUTE_TABLE_ENTRY"] = 193] = "GET_SOURCE_ROUTE_TABLE_ENTRY";
EzspFrameID[EzspFrameID["GET_NEIGHBOR"] = 121] = "GET_NEIGHBOR";
EzspFrameID[EzspFrameID["GET_NEIGHBOR_FRAME_COUNTER"] = 62] = "GET_NEIGHBOR_FRAME_COUNTER";
EzspFrameID[EzspFrameID["SET_NEIGHBOR_FRAME_COUNTER"] = 173] = "SET_NEIGHBOR_FRAME_COUNTER";
EzspFrameID[EzspFrameID["SET_ROUTING_SHORTCUT_THRESHOLD"] = 208] = "SET_ROUTING_SHORTCUT_THRESHOLD";
EzspFrameID[EzspFrameID["GET_ROUTING_SHORTCUT_THRESHOLD"] = 209] = "GET_ROUTING_SHORTCUT_THRESHOLD";
EzspFrameID[EzspFrameID["NEIGHBOR_COUNT"] = 122] = "NEIGHBOR_COUNT";
EzspFrameID[EzspFrameID["GET_ROUTE_TABLE_ENTRY"] = 123] = "GET_ROUTE_TABLE_ENTRY";
EzspFrameID[EzspFrameID["SET_RADIO_POWER"] = 153] = "SET_RADIO_POWER";
EzspFrameID[EzspFrameID["SET_RADIO_CHANNEL"] = 154] = "SET_RADIO_CHANNEL";
EzspFrameID[EzspFrameID["GET_RADIO_CHANNEL"] = 255] = "GET_RADIO_CHANNEL";
EzspFrameID[EzspFrameID["SET_RADIO_IEEE802154_CCA_MODE"] = 149] = "SET_RADIO_IEEE802154_CCA_MODE";
EzspFrameID[EzspFrameID["SET_CONCENTRATOR"] = 16] = "SET_CONCENTRATOR";
EzspFrameID[EzspFrameID["SET_BROKEN_ROUTE_ERROR_CODE"] = 17] = "SET_BROKEN_ROUTE_ERROR_CODE";
EzspFrameID[EzspFrameID["MULTI_PHY_START"] = 248] = "MULTI_PHY_START";
EzspFrameID[EzspFrameID["MULTI_PHY_STOP"] = 249] = "MULTI_PHY_STOP";
EzspFrameID[EzspFrameID["MULTI_PHY_SET_RADIO_POWER"] = 250] = "MULTI_PHY_SET_RADIO_POWER";
EzspFrameID[EzspFrameID["SEND_LINK_POWER_DELTA_REQUEST"] = 247] = "SEND_LINK_POWER_DELTA_REQUEST";
EzspFrameID[EzspFrameID["MULTI_PHY_SET_RADIO_CHANNEL"] = 251] = "MULTI_PHY_SET_RADIO_CHANNEL";
EzspFrameID[EzspFrameID["GET_DUTY_CYCLE_STATE"] = 53] = "GET_DUTY_CYCLE_STATE";
EzspFrameID[EzspFrameID["SET_DUTY_CYCLE_LIMITS_IN_STACK"] = 64] = "SET_DUTY_CYCLE_LIMITS_IN_STACK";
EzspFrameID[EzspFrameID["GET_DUTY_CYCLE_LIMITS"] = 75] = "GET_DUTY_CYCLE_LIMITS";
EzspFrameID[EzspFrameID["GET_CURRENT_DUTY_CYCLE"] = 76] = "GET_CURRENT_DUTY_CYCLE";
EzspFrameID[EzspFrameID["DUTY_CYCLE_HANDLER"] = 77] = "DUTY_CYCLE_HANDLER";
EzspFrameID[EzspFrameID["GET_FIRST_BEACON"] = 61] = "GET_FIRST_BEACON";
EzspFrameID[EzspFrameID["GET_NEXT_BEACON"] = 4] = "GET_NEXT_BEACON";
EzspFrameID[EzspFrameID["GET_NUM_STORED_BEACONS"] = 8] = "GET_NUM_STORED_BEACONS";
EzspFrameID[EzspFrameID["CLEAR_STORED_BEACONS"] = 60] = "CLEAR_STORED_BEACONS";
EzspFrameID[EzspFrameID["SET_LOGICAL_AND_RADIO_CHANNEL"] = 185] = "SET_LOGICAL_AND_RADIO_CHANNEL";
// Binding Frames
EzspFrameID[EzspFrameID["CLEAR_BINDING_TABLE"] = 42] = "CLEAR_BINDING_TABLE";
EzspFrameID[EzspFrameID["SET_BINDING"] = 43] = "SET_BINDING";
EzspFrameID[EzspFrameID["GET_BINDING"] = 44] = "GET_BINDING";
EzspFrameID[EzspFrameID["DELETE_BINDING"] = 45] = "DELETE_BINDING";
EzspFrameID[EzspFrameID["BINDING_IS_ACTIVE"] = 46] = "BINDING_IS_ACTIVE";
EzspFrameID[EzspFrameID["GET_BINDING_REMOTE_NODE_ID"] = 47] = "GET_BINDING_REMOTE_NODE_ID";
EzspFrameID[EzspFrameID["SET_BINDING_REMOTE_NODE_ID"] = 48] = "SET_BINDING_REMOTE_NODE_ID";
EzspFrameID[EzspFrameID["REMOTE_SET_BINDING_HANDLER"] = 49] = "REMOTE_SET_BINDING_HANDLER";
EzspFrameID[EzspFrameID["REMOTE_DELETE_BINDING_HANDLER"] = 50] = "REMOTE_DELETE_BINDING_HANDLER";
// Messaging Frames
EzspFrameID[EzspFrameID["MAXIMUM_PAYLOAD_LENGTH"] = 51] = "MAXIMUM_PAYLOAD_LENGTH";
EzspFrameID[EzspFrameID["SEND_UNICAST"] = 52] = "SEND_UNICAST";
EzspFrameID[EzspFrameID["SEND_BROADCAST"] = 54] = "SEND_BROADCAST";
EzspFrameID[EzspFrameID["PROXY_BROADCAST"] = 55] = "PROXY_BROADCAST";
EzspFrameID[EzspFrameID["SEND_MULTICAST"] = 56] = "SEND_MULTICAST";
EzspFrameID[EzspFrameID["SEND_MULTICAST_WITH_ALIAS"] = 58] = "SEND_MULTICAST_WITH_ALIAS";
EzspFrameID[EzspFrameID["SEND_REPLY"] = 57] = "SEND_REPLY";
EzspFrameID[EzspFrameID["MESSAGE_SENT_HANDLER"] = 63] = "MESSAGE_SENT_HANDLER";
EzspFrameID[EzspFrameID["SEND_MANY_TO_ONE_ROUTE_REQUEST"] = 65] = "SEND_MANY_TO_ONE_ROUTE_REQUEST";
EzspFrameID[EzspFrameID["POLL_FOR_DATA"] = 66] = "POLL_FOR_DATA";
EzspFrameID[EzspFrameID["POLL_COMPLETE_HANDLER"] = 67] = "POLL_COMPLETE_HANDLER";
EzspFrameID[EzspFrameID["POLL_HANDLER"] = 68] = "POLL_HANDLER";
EzspFrameID[EzspFrameID["INCOMING_SENDER_EUI64_HANDLER"] = 98] = "INCOMING_SENDER_EUI64_HANDLER";
EzspFrameID[EzspFrameID["INCOMING_MESSAGE_HANDLER"] = 69] = "INCOMING_MESSAGE_HANDLER";
EzspFrameID[EzspFrameID["SET_SOURCE_ROUTE_DISCOVERY_MODE"] = 90] = "SET_SOURCE_ROUTE_DISCOVERY_MODE";
EzspFrameID[EzspFrameID["INCOMING_MANY_TO_ONE_ROUTE_REQUEST_HANDLER"] = 125] = "INCOMING_MANY_TO_ONE_ROUTE_REQUEST_HANDLER";
EzspFrameID[EzspFrameID["INCOMING_ROUTE_ERROR_HANDLER"] = 128] = "INCOMING_ROUTE_ERROR_HANDLER";
EzspFrameID[EzspFrameID["INCOMING_NETWORK_STATUS_HANDLER"] = 196] = "INCOMING_NETWORK_STATUS_HANDLER";
EzspFrameID[EzspFrameID["INCOMING_ROUTE_RECORD_HANDLER"] = 89] = "INCOMING_ROUTE_RECORD_HANDLER";
EzspFrameID[EzspFrameID["SET_SOURCE_ROUTE"] = 174] = "SET_SOURCE_ROUTE";
EzspFrameID[EzspFrameID["UNICAST_CURRENT_NETWORK_KEY"] = 80] = "UNICAST_CURRENT_NETWORK_KEY";
EzspFrameID[EzspFrameID["ADDRESS_TABLE_ENTRY_IS_ACTIVE"] = 91] = "ADDRESS_TABLE_ENTRY_IS_ACTIVE";
EzspFrameID[EzspFrameID["SET_ADDRESS_TABLE_REMOTE_EUI64"] = 92] = "SET_ADDRESS_TABLE_REMOTE_EUI64";
EzspFrameID[EzspFrameID["SET_ADDRESS_TABLE_REMOTE_NODE_ID"] = 93] = "SET_ADDRESS_TABLE_REMOTE_NODE_ID";
EzspFrameID[EzspFrameID["GET_ADDRESS_TABLE_REMOTE_EUI64"] = 94] = "GET_ADDRESS_TABLE_REMOTE_EUI64";
EzspFrameID[EzspFrameID["GET_ADDRESS_TABLE_REMOTE_NODE_ID"] = 95] = "GET_ADDRESS_TABLE_REMOTE_NODE_ID";
EzspFrameID[EzspFrameID["SET_EXTENDED_TIMEOUT"] = 126] = "SET_EXTENDED_TIMEOUT";
EzspFrameID[EzspFrameID["GET_EXTENDED_TIMEOUT"] = 127] = "GET_EXTENDED_TIMEOUT";
EzspFrameID[EzspFrameID["REPLACE_ADDRESS_TABLE_ENTRY"] = 130] = "REPLACE_ADDRESS_TABLE_ENTRY";
EzspFrameID[EzspFrameID["LOOKUP_NODE_ID_BY_EUI64"] = 96] = "LOOKUP_NODE_ID_BY_EUI64";
EzspFrameID[EzspFrameID["LOOKUP_EUI64_BY_NODE_ID"] = 97] = "LOOKUP_EUI64_BY_NODE_ID";
EzspFrameID[EzspFrameID["GET_MULTICAST_TABLE_ENTRY"] = 99] = "GET_MULTICAST_TABLE_ENTRY";
EzspFrameID[EzspFrameID["SET_MULTICAST_TABLE_ENTRY"] = 100] = "SET_MULTICAST_TABLE_ENTRY";
EzspFrameID[EzspFrameID["ID_CONFLICT_HANDLER"] = 124] = "ID_CONFLICT_HANDLER";
EzspFrameID[EzspFrameID["WRITE_NODE_DATA"] = 254] = "WRITE_NODE_DATA";
EzspFrameID[EzspFrameID["SEND_RAW_MESSAGE"] = 150] = "SEND_RAW_MESSAGE";
EzspFrameID[EzspFrameID["SEND_RAW_MESSAGE_EXTENDED"] = 81] = "SEND_RAW_MESSAGE_EXTENDED";
EzspFrameID[EzspFrameID["MAC_PASSTHROUGH_MESSAGE_HANDLER"] = 151] = "MAC_PASSTHROUGH_MESSAGE_HANDLER";
EzspFrameID[EzspFrameID["MAC_FILTER_MATCH_MESSAGE_HANDLER"] = 70] = "MAC_FILTER_MATCH_MESSAGE_HANDLER";
EzspFrameID[EzspFrameID["RAW_TRANSMIT_COMPLETE_HANDLER"] = 152] = "RAW_TRANSMIT_COMPLETE_HANDLER";
EzspFrameID[EzspFrameID["SET_MAC_POLL_FAILURE_WAIT_TIME"] = 244] = "SET_MAC_POLL_FAILURE_WAIT_TIME";
EzspFrameID[EzspFrameID["SET_BEACON_CLASSIFICATION_PARAMS"] = 239] = "SET_BEACON_CLASSIFICATION_PARAMS";
EzspFrameID[EzspFrameID["GET_BEACON_CLASSIFICATION_PARAMS"] = 243] = "GET_BEACON_CLASSIFICATION_PARAMS";
// Security Frames
EzspFrameID[EzspFrameID["SET_INITIAL_SECURITY_STATE"] = 104] = "SET_INITIAL_SECURITY_STATE";
EzspFrameID[EzspFrameID["GET_CURRENT_SECURITY_STATE"] = 105] = "GET_CURRENT_SECURITY_STATE";
EzspFrameID[EzspFrameID["EXPORT_KEY"] = 276] = "EXPORT_KEY";
EzspFrameID[EzspFrameID["IMPORT_KEY"] = 277] = "IMPORT_KEY";
EzspFrameID[EzspFrameID["SWITCH_NETWORK_KEY_HANDLER"] = 110] = "SWITCH_NETWORK_KEY_HANDLER";
EzspFrameID[EzspFrameID["FIND_KEY_TABLE_ENTRY"] = 117] = "FIND_KEY_TABLE_ENTRY";
EzspFrameID[EzspFrameID["SEND_TRUST_CENTER_LINK_KEY"] = 103] = "SEND_TRUST_CENTER_LINK_KEY";
EzspFrameID[EzspFrameID["ERASE_KEY_TABLE_ENTRY"] = 118] = "ERASE_KEY_TABLE_ENTRY";
EzspFrameID[EzspFrameID["CLEAR_KEY_TABLE"] = 177] = "CLEAR_KEY_TABLE";
EzspFrameID[EzspFrameID["REQUEST_LINK_KEY"] = 20] = "REQUEST_LINK_KEY";
EzspFrameID[EzspFrameID["UPDATE_TC_LINK_KEY"] = 108] = "UPDATE_TC_LINK_KEY";
EzspFrameID[EzspFrameID["ZIGBEE_KEY_ESTABLISHMENT_HANDLER"] = 155] = "ZIGBEE_KEY_ESTABLISHMENT_HANDLER";
EzspFrameID[EzspFrameID["CLEAR_TRANSIENT_LINK_KEYS"] = 107] = "CLEAR_TRANSIENT_LINK_KEYS";
EzspFrameID[EzspFrameID["GET_NETWORK_KEY_INFO"] = 278] = "GET_NETWORK_KEY_INFO";
EzspFrameID[EzspFrameID["GET_APS_KEY_INFO"] = 268] = "GET_APS_KEY_INFO";
EzspFrameID[EzspFrameID["IMPORT_LINK_KEY"] = 270] = "IMPORT_LINK_KEY";
EzspFrameID[EzspFrameID["EXPORT_LINK_KEY_BY_INDEX"] = 271] = "EXPORT_LINK_KEY_BY_INDEX";
EzspFrameID[EzspFrameID["EXPORT_LINK_KEY_BY_EUI"] = 269] = "EXPORT_LINK_KEY_BY_EUI";
EzspFrameID[EzspFrameID["CHECK_KEY_CONTEXT"] = 272] = "CHECK_KEY_CONTEXT";
EzspFrameID[EzspFrameID["IMPORT_TRANSIENT_KEY"] = 273] = "IMPORT_TRANSIENT_KEY";
EzspFrameID[EzspFrameID["EXPORT_TRANSIENT_KEY_BY_INDEX"] = 274] = "EXPORT_TRANSIENT_KEY_BY_INDEX";
EzspFrameID[EzspFrameID["EXPORT_TRANSIENT_KEY_BY_EUI"] = 275] = "EXPORT_TRANSIENT_KEY_BY_EUI";
// Trust Center Frames
EzspFrameID[EzspFrameID["TRUST_CENTER_JOIN_HANDLER"] = 36] = "TRUST_CENTER_JOIN_HANDLER";
EzspFrameID[EzspFrameID["BROADCAST_NEXT_NETWORK_KEY"] = 115] = "BROADCAST_NEXT_NETWORK_KEY";
EzspFrameID[EzspFrameID["BROADCAST_NETWORK_KEY_SWITCH"] = 116] = "BROADCAST_NETWORK_KEY_SWITCH";
EzspFrameID[EzspFrameID["AES_MMO_HASH"] = 111] = "AES_MMO_HASH";
EzspFrameID[EzspFrameID["REMOVE_DEVICE"] = 168] = "REMOVE_DEVICE";
EzspFrameID[EzspFrameID["UNICAST_NWK_KEY_UPDATE"] = 169] = "UNICAST_NWK_KEY_UPDATE";
// Certificate Based Key Exchange (CBKE) Frames
EzspFrameID[EzspFrameID["GENERATE_CBKE_KEYS"] = 164] = "GENERATE_CBKE_KEYS";
EzspFrameID[EzspFrameID["GENERATE_CBKE_KEYS_HANDLER"] = 158] = "GENERATE_CBKE_KEYS_HANDLER";
EzspFrameID[EzspFrameID["CALCULATE_SMACS"] = 159] = "CALCULATE_SMACS";
EzspFrameID[EzspFrameID["CALCULATE_SMACS_HANDLER"] = 160] = "CALCULATE_SMACS_HANDLER";
EzspFrameID[EzspFrameID["GENERATE_CBKE_KEYS283K1"] = 232] = "GENERATE_CBKE_KEYS283K1";
EzspFrameID[EzspFrameID["GENERATE_CBKE_KEYS_HANDLER283K1"] = 233] = "GENERATE_CBKE_KEYS_HANDLER283K1";
EzspFrameID[EzspFrameID["CALCULATE_SMACS283K1"] = 234] = "CALCULATE_SMACS283K1";
EzspFrameID[EzspFrameID["CALCULATE_SMACS_HANDLER283K1"] = 235] = "CALCULATE_SMACS_HANDLER283K1";
EzspFrameID[EzspFrameID["CLEAR_TEMPORARY_DATA_MAYBE_STORE_LINK_KEY"] = 161] = "CLEAR_TEMPORARY_DATA_MAYBE_STORE_LINK_KEY";
EzspFrameID[EzspFrameID["CLEAR_TEMPORARY_DATA_MAYBE_STORE_LINK_KEY283K1"] = 238] = "CLEAR_TEMPORARY_DATA_MAYBE_STORE_LINK_KEY283K1";
EzspFrameID[EzspFrameID["GET_CERTIFICATE"] = 165] = "GET_CERTIFICATE";
EzspFrameID[EzspFrameID["GET_CERTIFICATE283K1"] = 236] = "GET_CERTIFICATE283K1";
EzspFrameID[EzspFrameID["DSA_SIGN"] = 166] = "DSA_SIGN";
EzspFrameID[EzspFrameID["DSA_SIGN_HANDLER"] = 167] = "DSA_SIGN_HANDLER";
EzspFrameID[EzspFrameID["DSA_VERIFY"] = 163] = "DSA_VERIFY";
EzspFrameID[EzspFrameID["DSA_VERIFY_HANDLER"] = 120] = "DSA_VERIFY_HANDLER";
EzspFrameID[EzspFrameID["DSA_VERIFY283K1"] = 176] = "DSA_VERIFY283K1";
EzspFrameID[EzspFrameID["SET_PREINSTALLED_CBKE_DATA"] = 162] = "SET_PREINSTALLED_CBKE_DATA";
EzspFrameID[EzspFrameID["SAVE_PREINSTALLED_CBKE_DATA283K1"] = 237] = "SAVE_PREINSTALLED_CBKE_DATA283K1";
// Mfglib Frames
EzspFrameID[EzspFrameID["MFGLIB_START"] = 131] = "MFGLIB_START";
EzspFrameID[EzspFrameID["MFGLIB_END"] = 132] = "MFGLIB_END";
EzspFrameID[EzspFrameID["MFGLIB_START_TONE"] = 133] = "MFGLIB_START_TONE";
EzspFrameID[EzspFrameID["MFGLIB_STOP_TONE"] = 134] = "MFGLIB_STOP_TONE";
EzspFrameID[EzspFrameID["MFGLIB_START_STREAM"] = 135] = "MFGLIB_START_STREAM";
EzspFrameID[EzspFrameID["MFGLIB_STOP_STREAM"] = 136] = "MFGLIB_STOP_STREAM";
EzspFrameID[EzspFrameID["MFGLIB_SEND_PACKET"] = 137] = "MFGLIB_SEND_PACKET";
EzspFrameID[EzspFrameID["MFGLIB_SET_CHANNEL"] = 138] = "MFGLIB_SET_CHANNEL";
EzspFrameID[EzspFrameID["MFGLIB_GET_CHANNEL"] = 139] = "MFGLIB_GET_CHANNEL";
EzspFrameID[EzspFrameID["MFGLIB_SET_POWER"] = 140] = "MFGLIB_SET_POWER";
EzspFrameID[EzspFrameID["MFGLIB_GET_POWER"] = 141] = "MFGLIB_GET_POWER";
EzspFrameID[EzspFrameID["MFGLIB_RX_HANDLER"] = 142] = "MFGLIB_RX_HANDLER";
// Bootloader Frames
EzspFrameID[EzspFrameID["LAUNCH_STANDALONE_BOOTLOADER"] = 143] = "LAUNCH_STANDALONE_BOOTLOADER";
EzspFrameID[EzspFrameID["SEND_BOOTLOAD_MESSAGE"] = 144] = "SEND_BOOTLOAD_MESSAGE";
EzspFrameID[EzspFrameID["GET_STANDALONE_BOOTLOADER_VERSION_PLAT_MICRO_PHY"] = 145] = "GET_STANDALONE_BOOTLOADER_VERSION_PLAT_MICRO_PHY";
EzspFrameID[EzspFrameID["INCOMING_BOOTLOAD_MESSAGE_HANDLER"] = 146] = "INCOMING_BOOTLOAD_MESSAGE_HANDLER";
EzspFrameID[EzspFrameID["BOOTLOAD_TRANSMIT_COMPLETE_HANDLER"] = 147] = "BOOTLOAD_TRANSMIT_COMPLETE_HANDLER";
EzspFrameID[EzspFrameID["AES_ENCRYPT"] = 148] = "AES_ENCRYPT";
// ZLL Frames
EzspFrameID[EzspFrameID["ZLL_NETWORK_OPS"] = 178] = "ZLL_NETWORK_OPS";
EzspFrameID[EzspFrameID["ZLL_SET_INITIAL_SECURITY_STATE"] = 179] = "ZLL_SET_INITIAL_SECURITY_STATE";
EzspFrameID[EzspFrameID["ZLL_SET_SECURITY_STATE_WITHOUT_KEY"] = 207] = "ZLL_SET_SECURITY_STATE_WITHOUT_KEY";
EzspFrameID[EzspFrameID["ZLL_START_SCAN"] = 180] = "ZLL_START_SCAN";
EzspFrameID[EzspFrameID["ZLL_SET_RX_ON_WHEN_IDLE"] = 181] = "ZLL_SET_RX_ON_WHEN_IDLE";
EzspFrameID[EzspFrameID["ZLL_NETWORK_FOUND_HANDLER"] = 182] = "ZLL_NETWORK_FOUND_HANDLER";
EzspFrameID[EzspFrameID["ZLL_SCAN_COMPLETE_HANDLER"] = 183] = "ZLL_SCAN_COMPLETE_HANDLER";
EzspFrameID[EzspFrameID["ZLL_ADDRESS_ASSIGNMENT_HANDLER"] = 184] = "ZLL_ADDRESS_ASSIGNMENT_HANDLER";
EzspFrameID[EzspFrameID["ZLL_TOUCH_LINK_TARGET_HANDLER"] = 187] = "ZLL_TOUCH_LINK_TARGET_HANDLER";
EzspFrameID[EzspFrameID["ZLL_GET_TOKENS"] = 188] = "ZLL_GET_TOKENS";
EzspFrameID[EzspFrameID["ZLL_SET_DATA_TOKEN"] = 189] = "ZLL_SET_DATA_TOKEN";
EzspFrameID[EzspFrameID["ZLL_SET_NON_ZLL_NETWORK"] = 191] = "ZLL_SET_NON_ZLL_NETWORK";
EzspFrameID[EzspFrameID["IS_ZLL_NETWORK"] = 190] = "IS_ZLL_NETWORK";
EzspFrameID[EzspFrameID["ZLL_SET_RADIO_IDLE_MODE"] = 212] = "ZLL_SET_RADIO_IDLE_MODE";
EzspFrameID[EzspFrameID["ZLL_GET_RADIO_IDLE_MODE"] = 186] = "ZLL_GET_RADIO_IDLE_MODE";
EzspFrameID[EzspFrameID["SET_ZLL_NODE_TYPE"] = 213] = "SET_ZLL_NODE_TYPE";
EzspFrameID[EzspFrameID["SET_ZLL_ADDITIONAL_STATE"] = 214] = "SET_ZLL_ADDITIONAL_STATE";
EzspFrameID[EzspFrameID["ZLL_OPERATION_IN_PROGRESS"] = 215] = "ZLL_OPERATION_IN_PROGRESS";
EzspFrameID[EzspFrameID["ZLL_RX_ON_WHEN_IDLE_GET_ACTIVE"] = 216] = "ZLL_RX_ON_WHEN_IDLE_GET_ACTIVE";
EzspFrameID[EzspFrameID["ZLL_SCANNING_COMPLETE"] = 246] = "ZLL_SCANNING_COMPLETE";
EzspFrameID[EzspFrameID["GET_ZLL_PRIMARY_CHANNEL_MASK"] = 217] = "GET_ZLL_PRIMARY_CHANNEL_MASK";
EzspFrameID[EzspFrameID["GET_ZLL_SECONDARY_CHANNEL_MASK"] = 218] = "GET_ZLL_SECONDARY_CHANNEL_MASK";
EzspFrameID[EzspFrameID["SET_ZLL_PRIMARY_CHANNEL_MASK"] = 219] = "SET_ZLL_PRIMARY_CHANNEL_MASK";
EzspFrameID[EzspFrameID["SET_ZLL_SECONDARY_CHANNEL_MASK"] = 220] = "SET_ZLL_SECONDARY_CHANNEL_MASK";
EzspFrameID[EzspFrameID["ZLL_CLEAR_TOKENS"] = 37] = "ZLL_CLEAR_TOKENS";
// WWAH Frames
EzspFrameID[EzspFrameID["SET_PARENT_CLASSIFICATION_ENABLED"] = 231] = "SET_PARENT_CLASSIFICATION_ENABLED";
EzspFrameID[EzspFrameID["GET_PARENT_CLASSIFICATION_ENABLED"] = 240] = "GET_PARENT_CLASSIFICATION_ENABLED";
EzspFrameID[EzspFrameID["SET_LONG_UP_TIME"] = 227] = "SET_LONG_UP_TIME";
EzspFrameID[EzspFrameID["SET_HUB_CONNECTIVITY"] = 228] = "SET_HUB_CONNECTIVITY";
EzspFrameID[EzspFrameID["IS_UP_TIME_LONG"] = 229] = "IS_UP_TIME_LONG";
EzspFrameID[EzspFrameID["IS_HUB_CONNECTED"] = 230] = "IS_HUB_CONNECTED";
// Green Power Frames
EzspFrameID[EzspFrameID["GP_PROXY_TABLE_PROCESS_GP_PAIRING"] = 201] = "GP_PROXY_TABLE_PROCESS_GP_PAIRING";
EzspFrameID[EzspFrameID["D_GP_SEND"] = 198] = "D_GP_SEND";
EzspFrameID[EzspFrameID["D_GP_SENT_HANDLER"] = 199] = "D_GP_SENT_HANDLER";
EzspFrameID[EzspFrameID["GPEP_INCOMING_MESSAGE_HANDLER"] = 197] = "GPEP_INCOMING_MESSAGE_HANDLER";
EzspFrameID[EzspFrameID["GP_PROXY_TABLE_GET_ENTRY"] = 200] = "GP_PROXY_TABLE_GET_ENTRY";
EzspFrameID[EzspFrameID["GP_PROXY_TABLE_LOOKUP"] = 192] = "GP_PROXY_TABLE_LOOKUP";
EzspFrameID[EzspFrameID["GP_SINK_TABLE_GET_ENTRY"] = 221] = "GP_SINK_TABLE_GET_ENTRY";
EzspFrameID[EzspFrameID["GP_SINK_TABLE_LOOKUP"] = 222] = "GP_SINK_TABLE_LOOKUP";
EzspFrameID[EzspFrameID["GP_SINK_TABLE_SET_ENTRY"] = 223] = "GP_SINK_TABLE_SET_ENTRY";
EzspFrameID[EzspFrameID["GP_SINK_TABLE_REMOVE_ENTRY"] = 224] = "GP_SINK_TABLE_REMOVE_ENTRY";
EzspFrameID[EzspFrameID["GP_SINK_TABLE_FIND_OR_ALLOCATE_ENTRY"] = 225] = "GP_SINK_TABLE_FIND_OR_ALLOCATE_ENTRY";
EzspFrameID[EzspFrameID["GP_SINK_TABLE_CLEAR_ALL"] = 226] = "GP_SINK_TABLE_CLEAR_ALL";
EzspFrameID[EzspFrameID["GP_SINK_TABLE_INIT"] = 112] = "GP_SINK_TABLE_INIT";
EzspFrameID[EzspFrameID["GP_SINK_TABLE_SET_SECURITY_FRAME_COUNTER"] = 245] = "GP_SINK_TABLE_SET_SECURITY_FRAME_COUNTER";
EzspFrameID[EzspFrameID["GP_SINK_COMMISSION"] = 266] = "GP_SINK_COMMISSION";
EzspFrameID[EzspFrameID["GP_TRANSLATION_TABLE_CLEAR"] = 267] = "GP_TRANSLATION_TABLE_CLEAR";
EzspFrameID[EzspFrameID["GP_SINK_TABLE_GET_NUMBER_OF_ACTIVE_ENTRIES"] = 280] = "GP_SINK_TABLE_GET_NUMBER_OF_ACTIVE_ENTRIES";
// Token Interface Frames
EzspFrameID[EzspFrameID["GET_TOKEN_COUNT"] = 256] = "GET_TOKEN_COUNT";
EzspFrameID[EzspFrameID["GET_TOKEN_INFO"] = 257] = "GET_TOKEN_INFO";
EzspFrameID[EzspFrameID["GET_TOKEN_DATA"] = 258] = "GET_TOKEN_DATA";
EzspFrameID[EzspFrameID["SET_TOKEN_DATA"] = 259] = "SET_TOKEN_DATA";
EzspFrameID[EzspFrameID["RESET_NODE"] = 260] = "RESET_NODE";
EzspFrameID[EzspFrameID["GP_SECURITY_TEST_VECTORS"] = 279] = "GP_SECURITY_TEST_VECTORS";
EzspFrameID[EzspFrameID["TOKEN_FACTORY_RESET"] = 119] = "TOKEN_FACTORY_RESET";
})(EzspFrameID || (exports.EzspFrameID = EzspFrameID = {}));
/** Identifies a configuration value. uint8_t */
var EzspConfigId;
(function (EzspConfigId) {
// 0x00?
/**
* The NCP no longer supports configuration of packet buffer count at runtime
* using this parameter. Packet buffers must be configured using the
* EMBER_PACKET_BUFFER_COUNT macro when building the NCP project.
*/
EzspConfigId[EzspConfigId["PACKET_BUFFER_COUNT"] = 1] = "PACKET_BUFFER_COUNT";
/**
* The maximum number of router neighbors the stack can keep track of. A
* neighbor is a node within radio range.
*/
EzspConfigId[EzspConfigId["NEIGHBOR_TABLE_SIZE"] = 2] = "NEIGHBOR_TABLE_SIZE";
/**
* The maximum number of APS retried messages the stack can be transmitting at
* any time.
*/
EzspConfigId[EzspConfigId["APS_UNICAST_MESSAGE_COUNT"] = 3] = "APS_UNICAST_MESSAGE_COUNT";
/**
* The maximum number of non-volatile bindings supported by the stack.
*/
EzspConfigId[EzspConfigId["BINDING_TABLE_SIZE"] = 4] = "BINDING_TABLE_SIZE";
/**
* The maximum number of EUI64 to network address associations that the stack
* can maintain for the application. (Note, the total number of such address
* associations maintained by the NCP is the sum of the value of this setting
* and the value of ::TRUST_CENTER_ADDRESS_CACHE_SIZE.
*/
EzspConfigId[EzspConfigId["ADDRESS_TABLE_SIZE"] = 5] = "ADDRESS_TABLE_SIZE";
/**
* The maximum number of multicast groups that the device may be a member of.
*/
EzspConfigId[EzspConfigId["MULTICAST_TABLE_SIZE"] = 6] = "MULTICAST_TABLE_SIZE";
/**
* The maximum number of destinations to which a node can route messages. This
* includes both messages originating at this node and those relayed for
* others.
*/
EzspConfigId[EzspConfigId["ROUTE_TABLE_SIZE"] = 7] = "ROUTE_TABLE_SIZE";
/**
* The number of simultaneous route discoveries that a node will support.
*/
EzspConfigId[EzspConfigId["DISCOVERY_TABLE_SIZE"] = 8] = "DISCOVERY_TABLE_SIZE";
// 0x0A?
// 0x0B?
/**
* Specifies the stack profile.
*/
EzspConfigId[EzspConfigId["STACK_PROFILE"] = 12] = "STACK_PROFILE";
/**
* The security level used for security at the MAC and network layers. The
* supported values are 0 (no security) and 5 (payload is encrypted and a
* four-byte MIC is used for authentication).
*/
EzspConfigId[EzspConfigId["SECURITY_LEVEL"] = 13] = "SECURITY_LEVEL";
// 0x0E?
// 0x0F?
/**
* The maximum number of hops for a message.
*/
EzspConfigId[EzspConfigId["MAX_HOPS"] = 16] = "MAX_HOPS";
/**
* The maximum number of end device children that a router will support.
*/
EzspConfigId[EzspConfigId["MAX_END_DEVICE_CHILDREN"] = 17] = "MAX_END_DEVICE_CHILDREN";
/**
* The maximum amount of time that the MAC will hold a message for indirect
* transmission to a child.
*/
EzspConfigId[EzspConfigId["INDIRECT_TRANSMISSION_TIMEOUT"] = 18] = "INDIRECT_TRANSMISSION_TIMEOUT";
/**
* The maximum amount of time that an end device child can wait between polls.
* If no poll is heard within this timeout, then the parent removes the end
* device from its tables. Value range 0-14. The timeout corresponding to a
* value of zero is 10 seconds. The timeout corresponding to a nonzero value N
* is 2^N minutes, ranging from 2^1 = 2 minutes to 2^14 = 16384 minutes.
*/
EzspConfigId[EzspConfigId["END_DEVICE_POLL_TIMEOUT"] = 19] = "END_DEVICE_POLL_TIMEOUT";
// 0x14?
// 0x15?
// 0x16?
/**
* Enables boost power mode and/or the alternate transmitter output.
*/
EzspConfigId[EzspConfigId["TX_POWER_MODE"] = 23] = "TX_POWER_MODE";
/**
* 0: Allow this node to relay messages. 1: Prevent this node from relaying
* messages.
*/
EzspConfigId[EzspConfigId["DISABLE_RELAY"] = 24] = "DISABLE_RELAY";
/**
* The maximum number of EUI64 to network address associations that the Trust
* Center can maintain. These address cache entries are reserved for and
* reused by the Trust Center when processing device join/rejoin
* authentications. This cache size limits the number of overlapping joins the
* Trust Center can process within a narrow time window (e.g. two seconds),
* and thus should be set to the maximum number of near simultaneous joins the
* Trust Center is expected to accommodate. (Note, the total number of such
* address associations maintained by the NCP is the sum of the value of this
* setting and the value of ::ADDRESS_TABLE_SIZE.)
*/
EzspConfigId[EzspConfigId["TRUST_CENTER_ADDRESS_CACHE_SIZE"] = 25] = "TRUST_CENTER_ADDRESS_CACHE_SIZE";
/**
* The size of the source route table.
*/
EzspConfigId[EzspConfigId["SOURCE_ROUTE_TABLE_SIZE"] = 26] = "SOURCE_ROUTE_TABLE_SIZE";
// 0x1B?
/** The number of blocks of a fragmented message that can be sent in a single window. */
EzspConfigId[EzspConfigId["FRAGMENT_WINDOW_SIZE"] = 28] = "FRAGMENT_WINDOW_SIZE";
/** The time the stack will wait (in milliseconds) between sending blocks of a fragmented message. */
EzspConfigId[EzspConfigId["FRAGMENT_DELAY_MS"] = 29] = "FRAGMENT_DELAY_MS";
/**
* The size of the Key Table used for storing individual link keys (if the
* device is a Trust Center) or Application Link Keys (if the device is a normal node).
*/
EzspConfigId[EzspConfigId["KEY_TABLE_SIZE"] = 30] = "KEY_TABLE_SIZE";
/** The APS ACK timeout value. The stack waits this amount of time between resends of APS retried messages. */
EzspConfigId[EzspConfigId["APS_ACK_TIMEOUT"] = 31] = "APS_ACK_TIMEOUT";
/**
* The duration of a beacon jitter, in the units used by the 15.4 scan
* parameter (((1 << duration) + 1) * 15ms), when responding to a beacon request.
*/
EzspConfigId[EzspConfigId["BEACON_JITTER_DURATION"] = 32] = "BEACON_JITTER_DURATION";
// 0x21?
/** The number of PAN id conflict reports that must be received by the network manager within one minute to trigger a PAN id change. */
EzspConfigId[EzspConfigId["PAN_ID_CONFLICT_REPORT_THRESHOLD"] = 34] = "PAN_ID_CONFLICT_REPORT_THRESHOLD";
/**
* The timeout value in minutes for how long the Trust Center or a normal node
* waits for the ZigBee Request Key to complete. On the Trust Center this
* controls whether or not the device buffers the request, waiting for a
* matching pair of ZigBee Request Key. If the value is non-zero, the Trust
* Center buffers and waits for that amount of time. If the value is zero, the
* Trust Center does not buffer the request and immediately responds to the
* request. Zero is the most compliant behavior.
*/
EzspConfigId[EzspConfigId["REQUEST_KEY_TIMEOUT"] = 36] = "REQUEST_KEY_TIMEOUT";
// 0x25?
// 0x26?
// 0x27?
// 0x28?
/**
* This value indicates the size of the runtime modifiable certificate table.
* Normally certificates are stored in MFG tokens but this table can be used
* to field upgrade devices with new Smart Energy certificates. This value
* cannot be set, it can only be queried.
*/
EzspConfigId[EzspConfigId["CERTIFICATE_TABLE_SIZE"] = 41] = "CERTIFICATE_TABLE_SIZE";
/**
* This is a bitmask that controls which incoming ZDO request messages are
* passed to the application. The bits are defined in the
* EmberZdoConfigurationFlags enumeration. To see if the application is
* required to send a ZDO response in reply to an incoming message, the
* application must check the APS options bitfield within the
* incomingMessageHandler callback to see if the
* EMBER_APS_OPTION_ZDO_RESPONSE_REQUIRED flag is set.
*/
EzspConfigId[EzspConfigId["APPLICATION_ZDO_FLAGS"] = 42] = "APPLICATION_ZDO_FLAGS";
/** The maximum number of broadcasts during a single broadcast timeout period. */
EzspConfigId[EzspConfigId["BROADCAST_TABLE_SIZE"] = 43] = "BROADCAST_TABLE_SIZE";
/** The size of the MAC filter list table. */
EzspConfigId[EzspConfigId["MAC_FILTER_TABLE_SIZE"] = 44] = "MAC_FILTER_TABLE_SIZE";
/** The number of supported networks. */
EzspConfigId[EzspConfigId["SUPPORTED_NETWORKS"] = 45] = "SUPPORTED_NETWORKS";
/**
* Whether multicasts are sent to the RxOnWhenIdle=true address (0xFFFD) or
* the sleepy broadcast address (0xFFFF). The RxOnWhenIdle=true address is the
* ZigBee compliant destination for multicasts.
*/
EzspConfigId[EzspConfigId["SEND_MULTICASTS_TO_SLEEPY_ADDRESS"] = 46] = "SEND_MULTICASTS_TO_SLEEPY_ADDRESS";
/** ZLL group address initial configuration. */
EzspConfigId[EzspConfigId["ZLL_GROUP_ADDRESSES"] = 47] = "ZLL_GROUP_ADDRESSES";
/** ZLL rssi threshold initial configuration. */
EzspConfigId[EzspConfigId["ZLL_RSSI_THRESHOLD"] = 48] = "ZLL_RSSI_THRESHOLD";
// 0x31?
// 0x32?
/** Toggles the MTORR flow control in the stack. */
EzspConfigId[EzspConfigId["MTORR_FLOW_CONTROL"] = 51] = "MTORR_FLOW_CONTROL";
/** Setting the retry queue size. Applies to all queues. Default value in the sample applications is 16. */
EzspConfigId[EzspConfigId["RETRY_QUEUE_SIZE"] = 52] = "RETRY_QUEUE_SIZE";
/**
* Setting the new broadcast entry threshold. The number (BROADCAST_TABLE_SIZE
* - NEW_BROADCAST_ENTRY_THRESHOLD) of broadcast table entries are reserved
* for relaying the broadcast messages originated on other devices. The local
* device will fail to originate a broadcast message after this threshold is
* reached. Setting this value to BROADCAST_TABLE_SIZE and greater will
* effectively kill this limitation.
*/
EzspConfigId[EzspConfigId["NEW_BROADCAST_ENTRY_THRESHOLD"] = 53] = "NEW_BROADCAST_ENTRY_THRESHOLD";
/**
* The length of time, in seconds, that a trust center will store a transient
* link key that a device can use to join its network. A transient key is
* added with a call to emberAddTransientLinkKey. After the transient key is
* added, it will be removed once this amount of time has passed. A joining
* device will not be able to use that key to join until it is added again on
* the trust center. The default value is 300 seconds, i.e., 5 minutes.
*/
EzspConfigId[EzspConfigId["TRANSIENT_KEY_TIMEOUT_S"] = 54] = "TRANSIENT_KEY_TIMEOUT_S";
/** The number of passive acknowledgements to record from neighbors before we stop re-transmitting broadcasts */
EzspConfigId[EzspConfigId["BROADCAST_MIN_ACKS_NEEDED"] = 55] = "BROADCAST_MIN_ACKS_NEEDED";
/**
* The length of time, in seconds, that a trust center will allow a Trust
* Center (insecure) rejoin for a device that is using the well-known link
* key. This timeout takes effect once rejoins using the well-known key has
* been allowed. This command updates the
* sli_zigbee_allow_tc_rejoins_using_well_known_key_timeout_sec value.
*/
EzspConfigId[EzspConfigId["TC_REJOINS_USING_WELL_KNOWN_KEY_TIMEOUT_S"] = 56] = "TC_REJOINS_USING_WELL_KNOWN_KEY_TIMEOUT_S";
/** Valid range of a CTUNE value is 0x0000-0x01FF. Higher order bits (0xFE00) of the 16-bit value are ignored. */
EzspConfigId[EzspConfigId["CTUNE_VALUE"] = 57] = "CTUNE_VALUE";
// 0x3A?
// 0x3B?
// 0x3C?
// 0x3D?
// 0x3E?
// 0x3F?
/**
* To configure non trust center node to assume a concentrator type of the
* trust center it join to, until it receive many-to-one route request from
* the trust center. For the trust center node, concentrator type is
* configured from the concentrator plugin. The stack by default assumes trust
* center be a low RAM concentrator that make other devices send route record
* to the trust center even without receiving a many-to-one route request. The
* default concentrator type can be changed by setting appropriate
* EmberAssumeTrustCenterConcentratorType config value.
*/
EzspConfigId[EzspConfigId["ASSUME_TC_CONCENTRATOR_TYPE"] = 64] = "ASSUME_TC_CONCENTRATOR_TYPE";
/** This is green power proxy table size. This value is read-only and cannot be set at runtime */
EzspConfigId[EzspConfigId["GP_PROXY_TABLE_SIZE"] = 65] = "GP_PROXY_TABLE_SIZE";
/** This is green power sink table size. This value is read-only and cannot be set at runtime */
EzspConfigId[EzspConfigId["GP_SINK_TABLE_SIZE"] = 66] = "GP_SINK_TABLE_SIZE";
})(EzspConfigId || (exports.EzspConfigId = EzspConfigId = {}));
/** Identifies a policy decision. */
var EzspDecisionId;
(function (EzspDecisionId) {
/**
* BINDING_MODIFICATION_POLICY default decision.
*
* Do not allow the local binding table to be changed by remote nodes.
*/
EzspDecisionId[EzspDecisionId["DISALLOW_BINDING_MODIFICATION"] = 16] = "DISALLOW_BINDING_MODIFICATION";
/**
* BINDING_MODIFICATION_POLICY decision.
*
* Allow remote nodes to change the local binding table.
*/
EzspDecisionId[EzspDecisionId["ALLOW_BINDING_MODIFICATION"] = 17] = "ALLOW_BINDING_MODIFICATION";
/**
* BINDING_MODIFICATION_POLICY decision.
*
* Allows remote nodes to set local binding entries only if the entries correspond to endpoints
* defined on the device, and for output clusters bound to those endpoints.
*/
EzspDecisionId[EzspDecisionId["CHECK_BINDING_MODIFICATIONS_ARE_VALID_ENDPOINT_CLUSTERS"] = 18] = "CHECK_BINDING_MODIFICATIONS_ARE_VALID_ENDPOINT_CLUSTERS";
/**
* UNICAST_REPLIES_POLICY default decision.
*
* The NCP will automatically send an empty reply (containing no payload) for every unicast received.
* */
EzspDecisionId[EzspDecisionId["HOST_WILL_NOT_SUPPLY_REPLY"] = 32] = "HOST_WILL_NOT_SUPPLY_REPLY";
/**
* UNICAST_REPLIES_POLICY decision.
*
* The NCP will only send a reply if it receives a sendReply command from the Host.
*/
EzspDecisionId[EzspDecisionId["HOST_WILL_SUPPLY_REPLY"] = 33] = "HOST_WILL_SUPPLY_REPLY";
/**
* POLL_HANDLER_POLICY default decision.
*
* Do not inform the Host when a child polls.
*/
EzspDecisionId[EzspDecisionId["POLL_HANDLER_IGNORE"] = 48] = "POLL_HANDLER_IGNORE";
/**
* POLL_HANDLER_POLICY decision.
*
* Generate a pollHandler callback when a child polls.
*/
EzspDecisionId[EzspDecisionId["POLL_HANDLER_CALLBACK"] = 49] = "POLL_HANDLER_CALLBACK";
/**
* MESSAGE_CONTENTS_IN_CALLBACK_POLICY default decision.
*
* Include only the message tag in the messageSentHandler callback.
*/
EzspDecisionId[EzspDecisionId["MESSAGE_TAG_ONLY_IN_CALLBACK"] = 64] = "MESSAGE_TAG_ONLY_IN_CALLBACK";
/**
* MESSAGE_CONTENTS_IN_CALLBACK_POLICY decision.
*
* Include both the message tag and the message contents in the messageSentHandler callback.
*/
EzspDecisionId[EzspDecisionId["MESSAGE_TAG_AND_CONTENTS_IN_CALLBACK"] = 65] = "MESSAGE_TAG_AND_CONTENTS_IN_CALLBACK";
/**
* TC_KEY_REQUEST_POLICY decision.
*
* When the Trust Center receives a request for a Trust Center link key, it will be ignored.
*/
EzspDecisionId[EzspDecisionId["DENY_TC_KEY_REQUESTS"] = 80] = "DENY_TC_KEY_REQUESTS";
/**
* TC_KEY_REQUEST_POLICY decision.
*
* When the Trust Center receives a request for a Trust Center link key, it will reply to it with the corresponding key.
*/
EzspDecisionId[EzspDecisionId["ALLOW_TC_KEY_REQUESTS_AND_SEND_CURRENT_KEY"] = 81] = "ALLOW_TC_KEY_REQUESTS_AND_SEND_CURRENT_KEY";
/**
* TC_KEY_REQUEST_POLICY decision.
*
* When the Trust Center receives a request for a Trust Center link key, it will generate a key to send to the joiner.
* After generation, the key will be added to the transient key tabe and After verification, this key will be added into the link key table.
*/
EzspDecisionId[EzspDecisionId["ALLOW_TC_KEY_REQUEST_AND_GENERATE_NEW_KEY"] = 82] = "ALLOW_TC_KEY_REQUEST_AND_GENERATE_NEW_KEY";
/**
* APP_KEY_REQUEST_POLICY decision.
* When the Trust Center receives a request for an application link key, it will be ignored.
* */
EzspDecisionId[EzspDecisionId["DENY_APP_KEY_REQUESTS"] = 96] = "DENY_APP_KEY_REQUESTS";
/**
* APP_KEY_REQUEST_POLICY decision.
*
* When the Trust Center receives a request for an application link key, it will randomly generate a key and send it to both partners.
*/
EzspDecisionId[EzspDecisionId["ALLOW_APP_KEY_REQUESTS"] = 97] = "ALLOW_APP_KEY_REQUESTS";
/** Indicates that packet validate library checks are enabled on the NCP. */
EzspDecisionId[EzspDecisionId["PACKET_VALIDATE_LIBRARY_CHECKS_ENABLED"] = 98] = "PACKET_VALIDATE_LIBRARY_CHECKS_ENABLED";
/** Indicates that packet validate library checks are NOT enabled on the NCP. */
EzspDecisionId[EzspDecisionId["PACKET_VALIDATE_LIBRARY_CHECKS_DISABLED"] = 99] = "PACKET_VALIDATE_LIBRARY_CHECKS_DISABLED";
})(EzspDecisionId || (exports.EzspDecisionId = EzspDecisionId = {}));
/**
* This is the policy decision bitmask that controls the trust center decision strategies.
* The bitmask is modified and extracted from the EzspDecisionId for supporting bitmask operations.
* uint16_t
*/
var EzspDecisionBitmask;
(function (EzspDecisionBitmask) {
/** Disallow joins and rejoins. */
EzspDecisionBitmask[EzspDecisionBitmask["DEFAULT_CONFIGURATION"] = 0] = "DEFAULT_CONFIGURATION";
/** Send the network key to all joining devices. */
EzspDecisionBitmask[EzspDecisionBitmask["ALLOW_JOINS"] = 1] = "ALLOW_JOINS";
/** Send the network key to all rejoining devices. */
EzspDecisionBitmask[EzspDecisionBitmask["ALLOW_UNSECURED_REJOINS"] = 2] = "ALLOW_UNSECURED_REJOINS";
/** Send the network key in the clear. */
EzspDecisionBitmask[EzspDecisionBitmask["SEND_KEY_IN_CLEAR"] = 4] = "SEND_KEY_IN_CLEAR";
/** Do nothing for unsecured rejoins. */
EzspDecisionBitmask[EzspDecisionBitmask["IGNORE_UNSECURED_REJOINS"] = 8] = "IGNORE_UNSECURED_REJOINS";
/** Allow joins if there is an entry in the transient key table. */
EzspDecisionBitmask[EzspDecisionBitmask["JOINS_USE_INSTALL_CODE_KEY"] = 16] = "JOINS_USE_INSTALL_CODE_KEY";
/** Delay sending the network key to a new joining device. */
EzspDecisionBitmask[EzspDecisionBitmask["DEFER_JOINS"] = 32] = "DEFER_JOINS";
})(EzspDecisionBitmask || (exports.EzspDecisionBitmask = EzspDecisionBitmask = {}));
/** Identifies a policy. */
var EzspPolicyId;
(function (EzspPolicyId) {
/** Controls trust center behavior. */
EzspPolicyId[EzspPolicyId["TRUST_CENTER_POLICY"] = 0] = "TRUST_CENTER_POLICY";
/** Controls how external binding modification requests are handled. */
EzspPolicyId[EzspPolicyId["BINDING_MODIFICATION_POLICY"] = 1] = "BINDING_MODIFICATION_POLICY";
/** Controls whether the Host supplies unicast replies. */
EzspPolicyId[EzspPolicyId["UNICAST_REPLIES_POLICY"] = 2] = "UNICAST_REPLIES_POLICY";
/** Controls whether pollHandler callbacks are generated. */
EzspPolicyId[EzspPolicyId["POLL_HANDLER_POLICY"] = 3] = "POLL_HANDLER_POLICY";
/** Controls whether the message contents are included in the messageSentHandler callback. */
EzspPolicyId[EzspPolicyId["MESSAGE_CONTENTS_IN_CALLBACK_POLICY"] = 4] = "MESSAGE_CONTENTS_IN_CALLBACK_POLICY";
/** Controls whether the Trust Center will respond to Trust Center link key requests. */
EzspPolicyId[EzspPolicyId["TC_KEY_REQUEST_POLICY"] = 5] = "TC_KEY_REQUEST_POLICY";
/** Controls whether the Trust Center will respond to application link key requests. */
EzspPolicyId[EzspPolicyId["APP_KEY_REQUEST_POLICY"] = 6] = "APP_KEY_REQUEST_POLICY";
/**
* Controls whether ZigBee packets that appear invalid are automatically dropped by the stack.
* A counter will be incremented when this occurs.
*/
EzspPolicyId[EzspPolicyId["PACKET_VALIDATE_LIBRARY_POLICY"] = 7] = "PACKET_VALIDATE_LIBRARY_POLICY";
/** Controls whether the stack will process ZLL messages. */
EzspPolicyId[EzspPolicyId["ZLL_POLICY"] = 8] = "ZLL_POLICY";
/**
* Controls whether Trust Center (insecure) rejoins for devices using the well-known link key are accepted.
* If rejoining using the well-known key is allowed,
* it is disabled again after sli_zigbee_allow_tc_rejoins_using_well_known_key_timeout_sec seconds.
*/
EzspPolicyId[EzspPolicyId["TC_REJOINS_USING_WELL_KNOWN_KEY_POLICY"] = 9] = "TC_REJOINS_USING_WELL_KNOWN_KEY_POLICY";
})(EzspPolicyId || (exports.EzspPolicyId = EzspPolicyId = {}));
/** Identifies a value. */
var EzspValueId;
(function (EzspValueId) {
/** The contents of the node data stack token. */
EzspValueId[EzspValueId["TOKEN_STACK_NODE_DATA"] = 0] = "TOKEN_STACK_NODE_DATA";
/** The types of MAC passthrough messages that the host wishes to receive. */
EzspValueId[EzspValueId["MAC_PASSTHROUGH_FLAGS"] = 1] = "MAC_PASSTHROUGH_FLAGS";
/**
* The source address used to filter legacy EmberNet messages when the
* EMBER_MAC_PASSTHROUGH_EMBERNET_SOURCE flag is set in MAC_PASSTHROUGH_FLAGS.
*/
EzspValueId[EzspValueId["EMBERNET_PASSTHROUGH_SOURCE_ADDRESS"] = 2] = "EMBERNET_PASSTHROUGH_SOURCE_ADDRESS";
/** The number of available internal RAM general purpose buffers. Read only. */
EzspValueId[EzspValueId["FREE_BUFFERS"] = 3] = "FREE_BUFFERS";
/** Selects sending synchronous callbacks in ezsp-uart. */
EzspValueId[EzspValueId["UART_SYNCH_CALLBACKS"] = 4] = "UART_SYNCH_CALLBACKS";
/**
* The maximum incoming transfer size for the local node.
* Default value is set to 82 and does not use fragmentation. Sets the value in Node Descriptor.
* To set, this takes the input of a uint8 array of length 2 where you pass the lower byte at index 0 and upper byte at index 1.
*/
EzspValueId[EzspValueId["MAXIMUM_INCOMING_TRANSFER_SIZE"] = 5] = "MAXIMUM_INCOMING_TRANSFER_SIZE";
/**
* The maximum outgoing transfer size for the local node.
* Default value is set to 82 and does not use fragmentation. Sets the value in Node Descriptor.
* To set, this takes the input of a uint8 array of length 2 where you pass the lower byte at index 0 and upper byte at index 1.
*/
EzspValueId[EzspValueId["MAXIMUM_OUTGOING_TRANSFER_SIZE"] = 6] = "MAXIMUM_OUTGOING_TRANSFER_SIZE";
/** A bool indicating whether stack tokens are written to persistent storage as they change. */
EzspValueId[EzspValueId["STACK_TOKEN_WRITING"] = 7] = "STACK_TOKEN_WRITING";
/** A read-only value indicating whether the stack is currently performing a rejoin. */
EzspValueId[EzspValueId["STACK_IS_PERFORMING_REJOIN"] = 8] = "STACK_IS_PERFORMING_REJOIN";
/** A list of EmberMacFilterMatchData values. */
EzspValueId[EzspValueId["MAC_FILTER_LIST"] = 9] = "MAC_FILTER_LIST";
/** The Ember Extended Security Bitmask. */
EzspValueId[EzspValueId["EXTENDED_SECURITY_BITMASK"] = 10] = "EXTENDED_SECURITY_BITMASK";
/** The node short ID. */
EzspValueId[EzspValueId["NODE_SHORT_ID"] = 11] = "NODE_SHORT_ID";
/** The descriptor capability of the local node. Write only. */
EzspValueId[EzspValueId["DESCRIPTOR_CAPABILITY"] = 12] = "DESCRIPTOR_CAPABILITY";
/** The stack device request sequence number of the local node. */
EzspValueId[EzspValueId["STACK_DEVICE_REQUEST_SEQUENCE_NUMBER"] = 13] = "STACK_DEVICE_REQUEST_SEQUENCE_NUMBER";
/** Enable or disable radio hold-off. */
EzspValueId[EzspValueId["RADIO_HOLD_OFF"] = 14] = "RADIO_HOLD_OFF";
/** The flags field associated with the endpoint data. */
EzspValueId[EzspValueId["ENDPOINT_FLAGS"] = 15] = "ENDPOINT_FLAGS";
/** Enable/disable the Mfg security config key settings. */
EzspValueId[EzspValueId["MFG_SECURITY_CONFIG"] = 16] = "MFG_SECURITY_CONFIG";
/** Retrieves the version information from the stack on the NCP. */
EzspValueId[EzspValueId["VERSION_INFO"] = 17] = "VERSION_INFO";
/**
* This will get/set the rejoin reason noted by the host for a subsequent call to emberFindAndRejoinNetwork().
* After a call to emberFindAndRejoinNetwork() the host's rejoin reason will be set to EMBER_REJOIN_REASON_NONE.
* The NCP will store the rejoin reason used by the call to emberFindAndRejoinNetwork().
* Application is not required to do anything with this value.
* The App Framework sets this for cases of emberFindAndRejoinNetwork that it initiates, but if the app is invoking a rejoin directly,
* it should/can set this value to aid in debugging of any rejoin state machine issues over EZSP logs after the fact.
* The NCP doesn't do anything with this value other than cache it so you can read it later.
*/
EzspValueId[EzspValueId["NEXT_HOST_REJOIN_REASON"] = 18] = "NEXT_HOST_REJOIN_REASON";
/**
* This is the reason that the last rejoin took place. This value may only be retrieved, not set.
* The rejoin may have been initiated by the stack (NCP) or the application (host).
* If a host initiated a rejoin the reason will be set by default to EMBER_REJOIN_DUE_TO_APP_EVENT_1.
* If the application wishes to denote its own rejoin reasons it can do so by calling
* ezspSetValue(EMBER_VALUE_HOST_REJOIN_REASON, EMBER_REJOIN_DUE_TO_APP_EVENT_X).
* X is a number corresponding to one of the app events defined.
* If the NCP initiated a rejoin it will record this value internally for retrieval by ezspGetValue(REAL_REJOIN_REASON).
*/
EzspValueId[EzspValueId["LAST_REJOIN_REASON"] = 19] = "LAST_REJOIN_REASON";
/** The next ZigBee sequence number. */
EzspValueId[EzspValueId["NEXT_ZIGBEE_SEQUENCE_NUMBER"] = 2