Welcome to mirror list, hosted at ThFree Co, Russian Federation.

zcl.dehum.ctrl.h « general « zcl « include « stack « zigbee « STM32_WPAN « ST « Middlewares - github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3f657bf76a1b5e2c87cfa0270e827c35d92f9ecd (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
/**
 * @file zcl.dehum.ctrl.h
 * @heading Dehumidification Control
 * @brief ZCL Dehumidification Control cluster header
 * ZCL 7 section 6.5
 * ZCL 8 section 6.5
 * @copyright Copyright [2009 - 2021] Exegin Technologies Limited. All rights reserved.
 */

#ifndef ZCL_DEHUM_CTRL_H
#define ZCL_DEHUM_CTRL_H

/* NOTE: The following PICS statement is for internal Exegin use only, and is not a product of the Zigbee Alliance. */
/* @PICS.ZCL.Dehum.Ctrl
 * DHUM.S | Server | True
 * DHUM.C | Client | True
 *
 * Server Attributes
 * DHUM.S.A0000 | RelativeHumidity | False | Optional
 * DHUM.S.A0001 | DehumidificationCooling | True
 * DHUM.S.A0001.Report.Tx | DehumidificationCooling | True
 * DHUM.S.A0010 | RHDehumidificationSetpoint | True
 * DHUM.S.A0011 | RelativeHumidityMode | False | Optional
 * DHUM.S.A0012 | DehumidificationLockout | False | Optional
 * DHUM.S.A0013 | DehumidificationHysteresis | True
 * DHUM.S.A0014 | DehumidificationMaxCool | True
 * DHUM.S.A0015 | RelativeHumidityDisplay | False | Optional
 * DHUM.S.Afffd | ClusterRevision | True
 * DHUM.S.Afffe | AttributeReportingStatus | True
 *
 * Client Attributes
 * DHUM.C.A0001.Report.Tx | DehumidificationCooling | False
 * DHUM.C.Afffd | ClusterRevision | True
 * DHUM.C.Afffe | AttributeReportingStatus | True
 */

#include "zcl/zcl.h"

/* Dehumidification Control cluster interface definition */

/** Dehumidification Control Attribute Ids */
enum ZbZclDehumCtrlServerAttrT {
    ZCL_DEHUM_CTRL_SVR_ATTR_REL_HUM = 0x0000, /**< RelativeHumidity */
    ZCL_DEHUM_CTRL_SVR_ATTR_DEHUM_COOLING = 0x0001, /**< DehumidificationCooling */
    ZCL_DEHUM_CTRL_SVR_ATTR_RHDH_SETPT = 0x0010, /**< RHDehumidificationSetpoint */
    ZCL_DEHUM_CTRL_SVR_ATTR_RH_MODE = 0x0011, /**< RelativeHumidityMode */
    ZCL_DEHUM_CTRL_SVR_ATTR_DH_LOCKOUT = 0x0012, /**< DehumidificationLockout */
    ZCL_DEHUM_CTRL_SVR_ATTR_DH_HYS = 0x0013, /**< DehumidificationHysteresis */
    ZCL_DEHUM_CTRL_SVR_ATTR_DH_MAX_COOL = 0x0014, /**< DehumidificationMaxCool */
    ZCL_DEHUM_CTRL_SVR_ATTR_RH_DISPLAY = 0x0015 /**< RelativeHumidityDisplay */
};

/* Dehumidification Control cluster defines */
#define ZCL_DEHUM_CTRL_UNKNOWN                      0xff
#define ZCL_DEHUM_CTRL_RHDH_SETPT_DEFAULT           0x32
#define ZCL_DEHUM_CTRL_DH_HYS_DEFAULT               0x02
#define ZCL_DEHUM_CTRL_DH_MAX_COOL_DEFAULT          0x14

/* Dehumidification Control cluster function prototypes */
/**
 * Instantiate a new instance of the Dehumidification Control client cluster
 * @param zb Zigbee stack instance
 * @param endpoint Endpoint on which to create cluster
 * @return Cluster pointer, or NULL if there is an error
 */
struct ZbZclClusterT * ZbZclDehumCtrlClientAlloc(struct ZigBeeT *zb, uint8_t endpoint);

/**
 * Instantiate a new instance of the Dehumidification Control server cluster
 * @param zb Zigbee stack instance
 * @param endpoint Endpoint on which to create cluster
 * @return Cluster pointer, or NULL if there is an error
 */
struct ZbZclClusterT * ZbZclDehumCtrlServerAlloc(struct ZigBeeT *zb, uint8_t endpoint);

#endif