ember-zli
Version:
Interact with EmberZNet-based adapters using zigbee-herdsman 'ember' driver
144 lines (143 loc) • 10.4 kB
JavaScript
export var FirmwareValidation;
(function (FirmwareValidation) {
FirmwareValidation[FirmwareValidation["VALID"] = 0] = "VALID";
FirmwareValidation[FirmwareValidation["INVALID"] = 1] = "INVALID";
FirmwareValidation[FirmwareValidation["CANCELLED"] = 2] = "CANCELLED";
})(FirmwareValidation || (FirmwareValidation = {}));
/**
* The NVM3 object key is used as a distinct identifier tag for a token stored in NVM3.
*/
export var NVM3ObjectKey;
(function (NVM3ObjectKey) {
// STACK KEYS
NVM3ObjectKey[NVM3ObjectKey["STACK_NVDATA_VERSION"] = 130817] = "STACK_NVDATA_VERSION";
NVM3ObjectKey[NVM3ObjectKey["STACK_BOOT_COUNTER"] = 123491] = "STACK_BOOT_COUNTER";
NVM3ObjectKey[NVM3ObjectKey["STACK_NONCE_COUNTER"] = 124259] = "STACK_NONCE_COUNTER";
NVM3ObjectKey[NVM3ObjectKey["STACK_ANALYSIS_REBOOT"] = 123234] = "STACK_ANALYSIS_REBOOT";
NVM3ObjectKey[NVM3ObjectKey["STACK_KEYS"] = 125817] = "STACK_KEYS";
NVM3ObjectKey[NVM3ObjectKey["STACK_NODE_DATA"] = 126564] = "STACK_NODE_DATA";
NVM3ObjectKey[NVM3ObjectKey["STACK_CLASSIC_DATA"] = 123748] = "STACK_CLASSIC_DATA";
NVM3ObjectKey[NVM3ObjectKey["STACK_ALTERNATE_KEY"] = 124021] = "STACK_ALTERNATE_KEY";
NVM3ObjectKey[NVM3ObjectKey["STACK_APS_FRAME_COUNTER"] = 123171] = "STACK_APS_FRAME_COUNTER";
NVM3ObjectKey[NVM3ObjectKey["STACK_TRUST_CENTER"] = 123172] = "STACK_TRUST_CENTER";
NVM3ObjectKey[NVM3ObjectKey["STACK_NETWORK_MANAGEMENT"] = 123173] = "STACK_NETWORK_MANAGEMENT";
NVM3ObjectKey[NVM3ObjectKey["STACK_PARENT_INFO"] = 123174] = "STACK_PARENT_INFO";
NVM3ObjectKey[NVM3ObjectKey["STACK_PARENT_ADDITIONAL_INFO"] = 123175] = "STACK_PARENT_ADDITIONAL_INFO";
NVM3ObjectKey[NVM3ObjectKey["STACK_MULTI_PHY_NWK_INFO"] = 123176] = "STACK_MULTI_PHY_NWK_INFO";
NVM3ObjectKey[NVM3ObjectKey["STACK_MIN_RECEIVED_RSSI"] = 123177] = "STACK_MIN_RECEIVED_RSSI";
// Restored EUI64
NVM3ObjectKey[NVM3ObjectKey["STACK_RESTORED_EUI64"] = 123178] = "STACK_RESTORED_EUI64";
// MULTI-NETWORK STACK KEYS
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved.
NVM3ObjectKey[NVM3ObjectKey["MULTI_NETWORK_STACK_KEYS"] = 65536] = "MULTI_NETWORK_STACK_KEYS";
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved.
NVM3ObjectKey[NVM3ObjectKey["MULTI_NETWORK_STACK_NODE_DATA"] = 65664] = "MULTI_NETWORK_STACK_NODE_DATA";
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved.
NVM3ObjectKey[NVM3ObjectKey["MULTI_NETWORK_STACK_ALTERNATE_KEY"] = 65792] = "MULTI_NETWORK_STACK_ALTERNATE_KEY";
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved.
NVM3ObjectKey[NVM3ObjectKey["MULTI_NETWORK_STACK_TRUST_CENTER"] = 65920] = "MULTI_NETWORK_STACK_TRUST_CENTER";
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved.
NVM3ObjectKey[NVM3ObjectKey["MULTI_NETWORK_STACK_NETWORK_MANAGEMENT"] = 66048] = "MULTI_NETWORK_STACK_NETWORK_MANAGEMENT";
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved.
NVM3ObjectKey[NVM3ObjectKey["MULTI_NETWORK_STACK_PARENT_INFO"] = 66176] = "MULTI_NETWORK_STACK_PARENT_INFO";
// Temporary solution for multi-network nwk counters:
// This counter will be used on the network with index 1.
NVM3ObjectKey[NVM3ObjectKey["MULTI_NETWORK_STACK_NONCE_COUNTER"] = 123424] = "MULTI_NETWORK_STACK_NONCE_COUNTER";
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved
NVM3ObjectKey[NVM3ObjectKey["MULTI_NETWORK_STACK_PARENT_ADDITIONAL_INFO"] = 66304] = "MULTI_NETWORK_STACK_PARENT_ADDITIONAL_INFO";
// GP stack tokens.
NVM3ObjectKey[NVM3ObjectKey["STACK_GP_DATA"] = 123480] = "STACK_GP_DATA";
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved.
NVM3ObjectKey[NVM3ObjectKey["STACK_GP_PROXY_TABLE"] = 66432] = "STACK_GP_PROXY_TABLE";
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved.
NVM3ObjectKey[NVM3ObjectKey["STACK_GP_SINK_TABLE"] = 66560] = "STACK_GP_SINK_TABLE";
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved
NVM3ObjectKey[NVM3ObjectKey["STACK_GP_INCOMING_FC"] = 66688] = "STACK_GP_INCOMING_FC";
// APP KEYS
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved.
NVM3ObjectKey[NVM3ObjectKey["STACK_BINDING_TABLE"] = 66816] = "STACK_BINDING_TABLE";
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved.
NVM3ObjectKey[NVM3ObjectKey["STACK_CHILD_TABLE"] = 66944] = "STACK_CHILD_TABLE";
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved.
NVM3ObjectKey[NVM3ObjectKey["STACK_KEY_TABLE"] = 67072] = "STACK_KEY_TABLE";
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved.
NVM3ObjectKey[NVM3ObjectKey["STACK_CERTIFICATE_TABLE"] = 67200] = "STACK_CERTIFICATE_TABLE";
NVM3ObjectKey[NVM3ObjectKey["STACK_ZLL_DATA"] = 124161] = "STACK_ZLL_DATA";
NVM3ObjectKey[NVM3ObjectKey["STACK_ZLL_SECURITY"] = 124162] = "STACK_ZLL_SECURITY";
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved.
NVM3ObjectKey[NVM3ObjectKey["STACK_ADDITIONAL_CHILD_DATA"] = 67328] = "STACK_ADDITIONAL_CHILD_DATA";
// This key is used for an indexed token and the subsequent 0x7F keys are also reserved
NVM3ObjectKey[NVM3ObjectKey["STACK_GP_INCOMING_FC_IN_SINK"] = 67456] = "STACK_GP_INCOMING_FC_IN_SINK";
})(NVM3ObjectKey || (NVM3ObjectKey = {}));
/** Enumeration representing spinel protocol status code. uint32_t */
export var CpcSystemStatus;
(function (CpcSystemStatus) {
/** Operation has completed successfully. */
CpcSystemStatus[CpcSystemStatus["OK"] = 0] = "OK";
/** Operation has failed for some undefined reason. */
CpcSystemStatus[CpcSystemStatus["FAILURE"] = 1] = "FAILURE";
/** The given operation has not been implemented. */
CpcSystemStatus[CpcSystemStatus["UNIMPLEMENTED"] = 2] = "UNIMPLEMENTED";
/** An argument to the given operation is invalid. */
CpcSystemStatus[CpcSystemStatus["INVALID_ARGUMENT"] = 3] = "INVALID_ARGUMENT";
/** The given operation is invalid for the current state of the device. */
CpcSystemStatus[CpcSystemStatus["INVALID_STATE"] = 4] = "INVALID_STATE";
/** The given command is not recognized. */
CpcSystemStatus[CpcSystemStatus["INVALID_COMMAND"] = 5] = "INVALID_COMMAND";
/** The given Spinel interface is not supported. */
CpcSystemStatus[CpcSystemStatus["INVALID_INTERFACE"] = 6] = "INVALID_INTERFACE";
/** An internal runtime error has occurred. */
CpcSystemStatus[CpcSystemStatus["INTERNAL_ERROR"] = 7] = "INTERNAL_ERROR";
/** A security or authentication error has occurred. */
CpcSystemStatus[CpcSystemStatus["SECURITY_ERROR"] = 8] = "SECURITY_ERROR";
/** An error has occurred while parsing the command. */
CpcSystemStatus[CpcSystemStatus["PARSE_ERROR"] = 9] = "PARSE_ERROR";
/** The operation is in progress and will be completed asynchronously. */
CpcSystemStatus[CpcSystemStatus["IN_PROGRESS"] = 10] = "IN_PROGRESS";
/** The operation has been prevented due to memory pressure. */
CpcSystemStatus[CpcSystemStatus["NOMEM"] = 11] = "NOMEM";
/** The device is currently performing a mutually exclusive operation. */
CpcSystemStatus[CpcSystemStatus["BUSY"] = 12] = "BUSY";
/** The given property is not recognized. */
CpcSystemStatus[CpcSystemStatus["PROP_NOT_FOUND"] = 13] = "PROP_NOT_FOUND";
/** The packet was dropped. */
CpcSystemStatus[CpcSystemStatus["PACKET_DROPPED"] = 14] = "PACKET_DROPPED";
/** The result of the operation is empty. */
CpcSystemStatus[CpcSystemStatus["EMPTY"] = 15] = "EMPTY";
/** The command was too large to fit in the internal buffer. */
CpcSystemStatus[CpcSystemStatus["CMD_TOO_BIG"] = 16] = "CMD_TOO_BIG";
/** The packet was not acknowledged. */
CpcSystemStatus[CpcSystemStatus["NO_ACK"] = 17] = "NO_ACK";
/** The packet was not sent due to a CCA failure. */
CpcSystemStatus[CpcSystemStatus["CCA_FAILURE"] = 18] = "CCA_FAILURE";
/** The operation is already in progress or the property was already set to the given value. */
CpcSystemStatus[CpcSystemStatus["ALREADY"] = 19] = "ALREADY";
/** The given item could not be found in the property. */
CpcSystemStatus[CpcSystemStatus["ITEM_NOT_FOUND"] = 20] = "ITEM_NOT_FOUND";
/** The given command cannot be performed on this property. */
CpcSystemStatus[CpcSystemStatus["INVALID_COMMAND_FOR_PROP"] = 21] = "INVALID_COMMAND_FOR_PROP";
// 22-111 : RESERVED
CpcSystemStatus[CpcSystemStatus["RESET_POWER_ON"] = 112] = "RESET_POWER_ON";
CpcSystemStatus[CpcSystemStatus["RESET_EXTERNAL"] = 113] = "RESET_EXTERNAL";
CpcSystemStatus[CpcSystemStatus["RESET_SOFTWARE"] = 114] = "RESET_SOFTWARE";
CpcSystemStatus[CpcSystemStatus["RESET_FAULT"] = 115] = "RESET_FAULT";
CpcSystemStatus[CpcSystemStatus["RESET_CRASH"] = 116] = "RESET_CRASH";
CpcSystemStatus[CpcSystemStatus["RESET_ASSERT"] = 117] = "RESET_ASSERT";
CpcSystemStatus[CpcSystemStatus["RESET_OTHER"] = 118] = "RESET_OTHER";
CpcSystemStatus[CpcSystemStatus["RESET_UNKNOWN"] = 119] = "RESET_UNKNOWN";
CpcSystemStatus[CpcSystemStatus["RESET_WATCHDOG"] = 120] = "RESET_WATCHDOG";
// 121-127 : RESERVED-RESET-CODES
// 128 - 15,359: UNALLOCATED
// 15,360 - 16,383: Vendor-specific
// 16,384 - 1,999,999: UNALLOCATED
// 2,000,000 - 2,097,151: Experimental Use Only (MUST NEVER be used in production!)
})(CpcSystemStatus || (CpcSystemStatus = {}));
export var CpcSystemCommandId;
(function (CpcSystemCommandId) {
CpcSystemCommandId[CpcSystemCommandId["NOOP"] = 0] = "NOOP";
CpcSystemCommandId[CpcSystemCommandId["RESET"] = 1] = "RESET";
CpcSystemCommandId[CpcSystemCommandId["PROP_VALUE_GET"] = 2] = "PROP_VALUE_GET";
CpcSystemCommandId[CpcSystemCommandId["PROP_VALUE_SET"] = 3] = "PROP_VALUE_SET";
CpcSystemCommandId[CpcSystemCommandId["PROP_VALUE_IS"] = 6] = "PROP_VALUE_IS";
CpcSystemCommandId[CpcSystemCommandId["INVALID"] = 255] = "INVALID";
})(CpcSystemCommandId || (CpcSystemCommandId = {}));