pub mod subsystem {
pub const RPC_ERROR: u8 = 0x00;
pub const SYS: u8 = 0x01;
pub const AF: u8 = 0x04;
pub const ZDO: u8 = 0x05;
pub const UTIL: u8 = 0x07;
pub const APP_CNF: u8 = 0x0F;
}
pub mod sys {
pub const RESET_REQ: u8 = 0x00;
pub const PING: u8 = 0x01;
pub const VERSION: u8 = 0x02;
pub const OSAL_NV_ITEM_INIT: u8 = 0x07;
pub const OSAL_NV_READ: u8 = 0x08;
pub const OSAL_NV_WRITE: u8 = 0x09;
pub const OSAL_NV_DELETE: u8 = 0x12;
pub const OSAL_NV_LENGTH: u8 = 0x13;
pub const SET_TX_POWER: u8 = 0x14;
pub const NV_CREATE: u8 = 0x30;
pub const NV_DELETE: u8 = 0x31;
pub const NV_LENGTH: u8 = 0x32;
pub const NV_READ: u8 = 0x33;
pub const NV_WRITE: u8 = 0x34;
pub const RESET_IND: u8 = 0x80;
}
pub mod af {
pub const REGISTER: u8 = 0x00;
pub const DATA_REQUEST: u8 = 0x01;
pub const DATA_REQUEST_EXT: u8 = 0x02;
pub const DATA_CONFIRM: u8 = 0x80;
pub const INCOMING_MSG: u8 = 0x81;
pub const INCOMING_MSG_EXT: u8 = 0x82;
}
pub mod zdo {
pub const SET_LINK_KEY: u8 = 0x23;
pub const NWK_DISCOVERY_REQ: u8 = 0x26;
pub const SEND_DATA: u8 = 0x28;
pub const MGMT_PERMIT_JOIN_REQ: u8 = 0x36;
pub const MGMT_NWK_UPDATE_REQ: u8 = 0x37;
pub const MSG_CB_REGISTER: u8 = 0x3E;
pub const STARTUP_FROM_APP: u8 = 0x40;
pub const EXT_NWK_INFO: u8 = 0x50;
pub const STATE_CHANGE_IND: u8 = 0xC0;
pub const END_DEVICE_ANNCE_IND: u8 = 0xC1;
pub const SRC_RTG_IND: u8 = 0xC4;
pub const BEACON_NOTIFY_IND: u8 = 0xC5;
pub const NWK_DISCOVERY_CNF: u8 = 0xC7;
pub const LEAVE_IND: u8 = 0xC9;
pub const TC_DEV_IND: u8 = 0xCA;
pub const PERMIT_JOIN_IND: u8 = 0xCB;
pub const MSG_CB_INCOMING: u8 = 0xFF;
}
pub mod util {
pub const GET_DEVICE_INFO: u8 = 0x00;
}
pub mod app_cnf {
pub const SET_ALLOWREJOIN_TC_POLICY: u8 = 0x03;
pub const BDB_ADD_INSTALLCODE: u8 = 0x04;
pub const BDB_SET_JOINUSESINSTALLCODEKEY: u8 = 0x06;
pub const BDB_START_COMMISSIONING: u8 = 0x05;
pub const BDB_SET_CHANNEL: u8 = 0x08;
pub const BDB_SET_TC_REQUIRE_KEY_EXCHANGE: u8 = 0x09;
pub const BDB_COMMISSIONING_NOTIFICATION: u8 = 0x80;
}
pub mod commissioning {
pub const STEERING: u8 = 0x02;
pub const FORMATION: u8 = 0x04;
}
pub mod state {
pub const HOLD: u8 = 0x00;
pub const COORD_STARTING: u8 = 0x08;
pub const ZB_COORD: u8 = 0x09;
}
pub mod product {
pub const ZSTACK_12: u8 = 0;
pub const ZSTACK_3X0: u8 = 1;
pub const ZSTACK_30X: u8 = 2;
}
pub mod status {
pub const SUCCESS: u8 = 0x00;
pub const FAILURE: u8 = 0x01;
pub const NV_ITEM_UNINIT: u8 = 0x09;
pub const NV_OPER_FAILED: u8 = 0x0A;
pub const NV_BAD_ITEM_LEN: u8 = 0x0C;
pub const MAC_NO_ACK: u8 = 0xE9;
pub const APS_NO_ACK: u8 = 0xA7;
pub const NWK_NO_ROUTE: u8 = 0xCD;
}
pub mod af_option {
pub const ACK_REQUEST: u8 = 0x10;
pub const DISCOVER_ROUTE: u8 = 0x20;
}
pub mod addr_mode {
pub const GROUP: u8 = 0x01;
pub const SHORT: u8 = 0x02;
pub const IEEE: u8 = 0x03;
pub const BROADCAST: u8 = 0x0F;
}
pub mod nv {
pub const EXTADDR: u16 = 0x0001;
pub const STARTUP_OPTION: u16 = 0x0003;
pub const NIB: u16 = 0x0021;
pub const EXTENDED_PAN_ID: u16 = 0x002D;
pub const NWK_ACTIVE_KEY_INFO: u16 = 0x003A;
pub const APS_USE_EXT_PANID: u16 = 0x0047;
pub const PRECFGKEY: u16 = 0x0062;
pub const PRECFGKEYS_ENABLE: u16 = 0x0063;
pub const LEGACY_NWK_SEC_MATERIAL_TABLE_START: u16 = 0x0075;
pub const PANID: u16 = 0x0083;
pub const CHANLIST: u16 = 0x0084;
pub const LOGICAL_TYPE: u16 = 0x0087;
pub const ZDO_DIRECT_CB: u16 = 0x008F;
pub const TCLK_SEED: u16 = 0x0101;
}
pub mod nv_ex {
pub const SYSID_ZSTACK: u8 = 1;
pub const NWK_SEC_MATERIAL_TABLE: u16 = 0x0007;
}
pub mod startup_option {
pub const CLEAR_CONFIG: u8 = 0x01;
pub const CLEAR_STATE: u8 = 0x02;
}