/**************************************************************************************************
Filename: zcl_se.c
Revised: $Date: 2012-03-11 00:25:21 -0800 (Sun, 11 Mar 2012) $
Revision: $Revision: 29708 $
Description: Zigbee Cluster Library - SE (Smart Energy) Profile.
Copyright 2007-2012 Texas Instruments Incorporated. All rights reserved.
IMPORTANT: Your use of this Software is limited to those specific rights
granted under the terms of a software license agreement between the user
who downloaded the software, his/her employer (which must be your employer)
and Texas Instruments Incorporated (the "License"). You may not use this
Software unless you agree to abide by the terms of the License. The License
limits your use, and you acknowledge, that the Software may not be modified,
copied or distributed unless embedded on a Texas Instruments microcontroller
or used solely and exclusively in conjunction with a Texas Instruments radio
frequency transceiver, which is integrated into your product. Other than for
the foregoing purpose, you may not use, reproduce, copy, prepare derivative
works of, modify, distribute, perform, display or sell this Software and/or
its documentation for any purpose.
YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE
PROVIDED �AS IS� WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE,
NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL
TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT,
NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER
LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE
OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT
OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES
(INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
Should you have any questions regarding your right to use this Software,
contact Texas Instruments Incorporated at www.TI.com.
**************************************************************************************************/
/*********************************************************************
* INCLUDES
*/
#include "ZComDef.h"
#include "OSAL.h"
#include "zcl.h"
#include "zcl_general.h"
#include "zcl_se.h"
#include "DebugTrace.h"
#if defined ( INTER_PAN )
#include "stub_aps.h"
#endif
#include "zcl_key_establish.h"
/*********************************************************************
* MACROS
*/
// Clusters that are supported thru Inter-PAN communication
#define INTER_PAN_CLUSTER( id ) ( (id) == ZCL_CLUSTER_ID_SE_PRICING || \
(id) == ZCL_CLUSTER_ID_SE_MESSAGE )
/*********************************************************************
* CONSTANTS
*/
/*********************************************************************
* TYPEDEFS
*/
typedef struct zclSECBRec
{
struct zclSECBRec *next;
uint8 endpoint; // Used to link it into the endpoint descriptor
zclSE_AppCallbacks_t *CBs; // Pointer to Callback function
} zclSECBRec_t;
/*********************************************************************
* GLOBAL VARIABLES
*/
/*********************************************************************
* GLOBAL FUNCTIONS
*/
/*********************************************************************
* LOCAL VARIABLES
*/
static zclSECBRec_t *zclSECBs = (zclSECBRec_t *)NULL;
static uint8 zclSEPluginRegisted = FALSE;
/*********************************************************************
* LOCAL FUNCTIONS
*/
static ZStatus_t zclSE_HdlIncoming( zclIncoming_t *pInMsg );
static ZStatus_t zclSE_HdlInSpecificCommands( zclIncoming_t *pInMsg );
#ifdef ZCL_SIMPLE_METERING
static ZStatus_t zclSE_ProcessInSimpleMeteringCmds( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_SimpleMeter_GetProfileCmd( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_SimpleMeter_GetProfileRsp( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_SimpleMeter_ReqMirrorCmd( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_SimpleMeter_ReqMirrorRsp( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_SimpleMeter_MirrorRemCmd( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_SimpleMeter_MirrorRemRsp( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_SimpleMeter_ReqFastPollModeCmd( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_SimpleMeter_ReqFastPollModeRsp( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
#ifdef SE_UK_EXT
static ZStatus_t zclSE_ProcessInCmd_SimpleMeter_GetSnapshotCmd( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_SimpleMeter_GetSnapshotRsp( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_SimpleMeter_TakeSnapshotCmd( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_SimpleMeter_MirrorReportAttrRsp( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
#endif // SE_UK_EXT
#endif // ZCL_SIMPLE_METERING
#ifdef ZCL_PRICING
static ZStatus_t zclSE_ProcessInPricingCmds( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_GetCurrentPrice( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_GetScheduledPrice( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_PublishPrice( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_PriceAcknowledgement( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_GetBlockPeriod( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_PublishBlockPeriod( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
#ifdef SE_UK_EXT
static ZStatus_t zclSE_ProcessInCmd_Pricing_PublishTariffInformation( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_PublishPriceMatrix( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_PublishBlockThreshold( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_PublishConversionFactor( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_PublishCalorificValue( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_PublishCO2Value( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_PublishCPPEvent( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_PublishBillingPeriod( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_PublishConsolidatedBill( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_PublishCreditPaymentInfo( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_GetTariffInformation( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_GetPriceMatrix( zclIncoming_t *pInMsg, zclSE_AppCallbacks_t *pCBs );
static ZStatus_t zclSE_ProcessInCmd_Pricing_
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
ZigBee CC2530、CC2531无线组网驱动程序,基于ZStack协议栈实现。 项目支持CC253X系列单片机编译和运行。 项目代码可顺利编译运行~
资源推荐
资源详情
资源评论
收起资源包目录
ZigBee CC2530、CC2531实现采集光敏传感器数据,无线传输(基于ZStack)【支持CC253X系列】.zip (323个子文件)
key.a51 8KB
SampleApp.cspy.bat 1KB
Exp.cspy.bat 1KB
zcl_se.c 333KB
ZDSecMgr.c 126KB
zcl.c 117KB
zcl_general.c 104KB
ZDObject.c 90KB
ZDApp.c 84KB
zcl_key_establish.c 82KB
zcl_ota.c 74KB
MT_ZDO.c 63KB
ZDProfile.c 62KB
MT_MAC.c 53KB
mac_rx.c 48KB
zcl_ss.c 48KB
MT_UTIL.c 46KB
OSAL_Nv.c 43KB
zcl_lighting.c 37KB
ZDNwkMgr.c 37KB
sapi.c 34KB
mac_csp_tx.c 34KB
mac_mcu.c 33KB
MT_SYS.c 33KB
hal_lcd.c 31KB
hal_lcd.c 31KB
hal_lcd.c 31KB
MT_NWK.c 31KB
AF.c 31KB
OSAL.c 31KB
BindingTable.c 28KB
_hal_uart_dma.c 26KB
stub_aps.c 26KB
MT_AF.c 25KB
zmac.c 25KB
_hal_uart_dma.c 24KB
zcl_pi.c 24KB
zcl_closures.c 23KB
usb_standard_requests.c 23KB
mac_tx.c 22KB
OSAL_Memory.c 21KB
hal_sleep.c 21KB
zcl_cc.c 20KB
hal_sleep.c 20KB
hal_sleep.c 20KB
mac_radio.c 20KB
zmac_cb.c 20KB
ZGlobals.c 20KB
MT_SAPI.c 20KB
mac_backoff_timer.c 19KB
mac_autopend.c 19KB
hal_key.c 19KB
hal_key.c 19KB
mac_pib.c 19KB
nwk_globals.c 19KB
SampleApp.c 18KB
hal_oad.c 17KB
hal_oad.c 17KB
hal_oad.c 17KB
_hal_uart_isr.c 17KB
_hal_uart_isr.c 17KB
hal_led.c 16KB
hal_led.c 16KB
hal_led.c 16KB
mac_radio_defs.c 16KB
OSAL_Timers.c 15KB
MT.c 15KB
MT_APP.c 15KB
hal_ota.c 15KB
MT_UART.c 14KB
zcl_ms.c 13KB
ZMain.c 12KB
ZMain.c 12KB
OnBoard.c 12KB
usb_descriptor_parser.c 12KB
OnBoard.c 12KB
_hal_uart_usb.c 12KB
usb_framework.c 12KB
OSAL_Clock.c 11KB
zcl_hvac.c 11KB
MT_TASK.c 10KB
MT_OTA.c 10KB
hal_assert.c 10KB
hal_drivers.c 9KB
mac_rx_onoff.c 9KB
hal_key.c 9KB
hal_uart.c 9KB
hal_uart.c 9KB
hal_uart.c 9KB
hal_adc.c 9KB
hal_adc.c 9KB
hal_adc.c 9KB
MT_DEBUG.c 9KB
ZDConfig.c 8KB
saddr.c 7KB
zcl_cert_data.c 7KB
usb_cdc_hooks.c 7KB
mac_sleep.c 7KB
hal_flash.c 7KB
hal_flash.c 7KB
共 323 条
- 1
- 2
- 3
- 4
资源评论
不脱发的程序猿
- 粉丝: 26w+
- 资源: 5888
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 该仿真主要应用于路径规划和轨迹跟踪的研究 主要有五个文件(内部包含3个算法,两个仿真),1.A星算法自动生成避障的最短路径,2.两轮小车及其四轮小车的运动学建模3.纯路径跟踪算法,包括预锚点的选择算
- Edifier Connect_8.4.11.apk
- anaconda配置pytorch环境.md
- 机械设计自动倒角机sw18可编辑非常好的设计图纸100%好用.zip
- 基于28027滑膜算法的水泵驱动方案,带有初始定位算法,启动不反转,pfc采用硬件方案
- 机械设计自动PCM板胶纸机sw18非常好的设计图纸100%好用.zip
- 三相PWM整流器闭环仿真,电压电流双闭环控制,输出直流电压做外环 模型中包含主电路,坐标变,电压电流双环PI控制器,SVPWM控制,PWM发生器 matlab simulink模型 功率因数1,低TH
- anaconda配置pytorch环境.md
- Cytoscape-3-10-3-windows-64bit-仅限个人学习
- DDR3测试模块 fpga测试接口模块,提供测试模块工程 Vivado2019.1或者Vivado2017.4;语言vhdl 可以修改ip引脚,测试初始化完成
- 网络工程领域竞赛试题:网络搭建与应用的技术实战项目
- 山东大学软件学院人工智能导论22级复习资料
- 机械设计自动切断面条机ZD80sw16非常好的设计图纸100%好用.zip
- 毕设基于stm32的风机监控系统程序设计源码.zip
- 机械设计自动贴E型定位胶纸机sw18非常好的设计图纸100%好用.zip
- 机械设计自动贴E型胶纸机sw18非常好的设计图纸100%好用.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功