⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zcl_samplelight.h

📁 用zigbee协议实现的家庭自动化的程序
💻 H
字号:
#ifndef ZCL_SAMPLELIGHT_H
#define ZCL_SAMPLELIGHT_H

/*********************************************************************
    Filename:       zcl_samplelight.h
    Revised:        $Date: 2007-01-09 13:36:04 -0800 (Tue, 09 Jan 2007) $
    Revision:       $Revision: 13251 $

    Description:

      This file contains the Zigbee Cluster Library Home
      Automation Sample Application.

      This contains definitions for zcl_samplelight.c and
      zcl_samplelight_data.c.

    Notes:

    Copyright (c) 2006 by Texas Instruments, Inc.
    All Rights Reserved. Permission to use, reproduce, copy, prepare
    derivative works, modify, distribute, perform, display or sell this
    software and/or its documentation for any purpose is prohibited
    without the express written consent of Texas Instruments, Inc.
*********************************************************************/

#ifdef __cplusplus
extern "C"
{
#endif

/*********************************************************************
 * INCLUDES
 */
#include "zcl.h"

/*********************************************************************
 * CONSTANTS
 */
#define SAMPLELIGHT_ENDPOINT            10

#define SAMPLELIGHT_MAX_ATTRIBUTES      12

#define LIGHT_OFF                       0x00
#define LIGHT_ON                        0x01

// Application Events
#define SAMPLELIGHT_IDENTIFY_TIMEOUT_EVT     0x0001

/*********************************************************************
 * MACROS
 */
/*********************************************************************
 * TYPEDEFS
 */

/*********************************************************************
 * VARIABLES
 */
extern SimpleDescriptionFormat_t zclSampleLight_SimpleDesc;

extern zclAttrRec_t zclSampleLight_Attrs[];

extern uint8  zclSampleLight_OnOff;

extern uint16 zclSampleLight_IdentifyTime;

/*********************************************************************
 * FUNCTIONS
 */

 /*
  * Initialization for the task
  */
extern void zclSampleLight_Init( byte task_id );

/*
 *  Event Process for the task
 */
extern UINT16 zclSampleLight_event_loop( byte task_id, UINT16 events );

/*
 *  Write Handler routine for IdentifyTime attribute
 */
extern ZStatus_t zclSampleLight_IdentifyTimeWrtHdlr( zclIncoming_t *msg, uint16 logicalClusterID, 
                                                     zclWriteRec_t *writeRec );

/*********************************************************************
*********************************************************************/

#ifdef __cplusplus
}
#endif

#endif /* ZCL_SAMPLELIGHT_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -