📄 homesensorconfig.h
字号:
/*****************************************************************************
*
* MODULE: Demo configuration
*
* COMPONENT: $RCSfile: HomeSensorConfig.h,v $
*
* VERSION: $Name: $
*
* REVISION: $Revision: 1.4 $
*
* DATED: $Date: 2007/06/21 08:16:44 $
*
* STATUS: $State: Exp $
*
* AUTHOR: CJG
*
* DESCRIPTION:
* Configuration settings for demo system
*
* LAST MODIFIED BY: $Author: jahme $
* $Modtime: $
*
****************************************************************************
*
* (c) Copyright JENNIC Ltd 2007
*
****************************************************************************/
#ifndef DEMO_CONFIG_INCLUDED
#define DEMO_CONFIG_INCLUDED
#if defined __cplusplus
extern "C" {
#endif
/****************************************************************************/
/*** Include Files ***/
/****************************************************************************/
#include "jendefs.h"
/****************************************************************************/
/*** Macro Definitions ***/
/****************************************************************************/
/* Number of points in graph of previous values. Must be multiple of 2 */
#define DEMO_HISTORY_LEN 32
/* Number of endpoints in system */
#define DEMO_ENDPOINTS 4
/* First byte of payload from coordinator, as frame identity */
#define DEMO_BEACON_IDENTIFIER 0xb5
/* First byte of payload from endpoint, as frame identity */
#define DEMO_ENDPOINT_IDENTIFIER 0x5b
/* PAN ID on which demo operates */
#define DEMO_PAN_ID 0x0e1c
/* Coordinator short address */
#define DEMO_COORD_ADDR 0x0e00
/* Endpoint short address base */
#define DEMO_ENDPOINT_ADDR_BASE 0x0e01
/* Channels available */
#define CHANNEL_MIN 11
#define CHANNEL_MID 18
#define CHANNEL_MAX 26
#define DEMO_CHANNEL_BITMAP 0x7fff800
/****************************************************************************/
/*** Type Definitions ***/
/****************************************************************************/
typedef enum
{
E_SENSOR_TEMP = 0,
E_SENSOR_HTS,
E_SENSOR_ALS,
DEMO_SENSOR_LIST_LEN
} teSensor;
/****************************************************************************/
/*** Exported Functions ***/
/****************************************************************************/
/****************************************************************************/
/*** Exported Variables ***/
/****************************************************************************/
#if defined __cplusplus
}
#endif
#endif /* DEMO_CONFIG_INCLUDED */
/****************************************************************************/
/*** END OF FILE ***/
/****************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -