-
Notifications
You must be signed in to change notification settings - Fork 2
/
zigbee_ctrl.h
31 lines (26 loc) · 1.05 KB
/
zigbee_ctrl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef ZIGBEE_CTRL_H
#define ZIGBEE_CTRL_H
extern NodeInfo *NodeInfoHead;
extern pNodeInfo DeviceNodeCreate(pDeviceInfo item);
extern void DeviceNodeFree(pNodeInfo p);
extern pNodeInfo DeviceNodeSearch(unsigned int key);
extern void DeviceNodeAdd(pNodeInfo p);
extern void DeviceNodeDel(pNodeInfo p);
extern void DeviceNodeTraverse(void (*visit)(pNodeInfo));
extern void DeviceNodeDestory(void);
extern int DeviceNodeNum(pNodeInfo head);
extern void DeviceNodePush(pNodeInfo p);
extern pNodeInfo DeviceNodePop(void);
//@wei
extern bool Server_GetZigBeeNwkTopo(int fd);
extern bool Server_ErrorFeedback(int fd,unsigned int err);
/*
extern bool ZigBeeNwkDetect(void);
extern bool GetZigBeeNwkInfo(NwkDesp *pNwkDesp);
extern bool SetSensorWorkMode(unsigned int nwkaddr,int Mode);
extern bool SetSensorStatus(unsigned int nwkaddr, unsigned int status);
extern int GetSensorStatus(unsigned int nwkaddr);
extern DeviceInfo* GetZigBeeDevInfo(unsigned int nwkaddr);
extern NodeNwkTopoInfo* GetZigBeeNwkTopo(void);
*/
#endif // ZIGBEE_CTRL_H