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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/* Copyright [2017 - 2020] Exegin Technologies Limited. All rights reserved. */
#ifndef ZCL_FAN_H
#define ZCL_FAN_H
/*--------------------------------------------------------------------------
* DESCRIPTION
* ZCL FAN cluster definitions
*--------------------------------------------------------------------------
*/
/* PICS.ZCL.Fan
*
* FAN.S | True
* FAN.C | True
*
* Server Attributes
* FAN.S.A0000 | True
* FAN.S.A0001 | True
* FAN.S.Afffd | True
* FAN.S.Afffe | False
*
*
* Client Attributes
* FAN.C.Afffd | True
* FAN.C.Afffe | False
*/
#include "zcl/zcl.h"
/*---------------------------------------------------------------
* Definitions
*---------------------------------------------------------------
*/
/* Attribute Identifiers */
enum {
ZCL_FAN_ATTR_MODE = 0x0000,
ZCL_FAN_ATTR_SEQUENCE = 0x00001,
};
/* Fan Mode Attribute Values */
enum ZbZclFanModeT {
FAN_MODE_OFF = 0x00,
FAN_MODE_LOW = 0x01,
FAN_MODE_MED = 0x02,
FAN_MODE_HI = 0x03,
FAN_MODE_ON = 0x04,
FAN_MODE_AUTO = 0x05,
FAN_MODE_SMART = 0x06
};
/* Fan Sequence Operation Attribute Values */
enum ZbZclFanSeqT {
FAN_SEQ_LMH = 0x00,
FAN_SEQ_LH = 0x01,
FAN_SEQ_LMHA = 0x02,
FAN_SEQ_LHA = 0x03,
FAN_SEQ_OA = 0x04
};
struct ZbZclClusterT * ZbZclFanClientAlloc(struct ZigBeeT *zb, uint8_t ep);
struct ZbZclClusterT * ZbZclFanServerAlloc(struct ZigBeeT *zb, uint8_t ep);
#endif
|