Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / app / util / af-enums.h
1 /*
2  *
3  *    Copyright (c) 2021 Project CHIP Authors
4  *
5  *    Licensed under the Apache License, Version 2.0 (the "License");
6  *    you may not use this file except in compliance with the License.
7  *    You may obtain a copy of the License at
8  *
9  *        http://www.apache.org/licenses/LICENSE-2.0
10  *
11  *    Unless required by applicable law or agreed to in writing, software
12  *    distributed under the License is distributed on an "AS IS" BASIS,
13  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *    See the License for the specific language governing permissions and
15  *    limitations under the License.
16  */
17
18 /**
19  *  Contains standard enum values (non-generated)
20  */
21 #pragma once
22
23 typedef enum
24 {
25     EMBER_ZCL_STATUS_SUCCESS                     = 0x00,
26     EMBER_ZCL_STATUS_FAILURE                     = 0x01,
27     EMBER_ZCL_STATUS_NOT_AUTHORIZED              = 0x7E,
28     EMBER_ZCL_STATUS_MALFORMED_COMMAND           = 0x80,
29     EMBER_ZCL_STATUS_UNSUP_COMMAND               = 0x81,
30     EMBER_ZCL_STATUS_UNSUP_GENERAL_COMMAND       = 0x82,
31     EMBER_ZCL_STATUS_UNSUP_MANUF_CLUSTER_COMMAND = 0x83,
32     EMBER_ZCL_STATUS_UNSUP_MANUF_GENERAL_COMMAND = 0x84,
33     EMBER_ZCL_STATUS_INVALID_FIELD               = 0x85,
34     EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE       = 0x86,
35     EMBER_ZCL_STATUS_INVALID_VALUE               = 0x87,
36     EMBER_ZCL_STATUS_READ_ONLY                   = 0x88,
37     EMBER_ZCL_STATUS_INSUFFICIENT_SPACE          = 0x89,
38     EMBER_ZCL_STATUS_DUPLICATE_EXISTS            = 0x8A,
39     EMBER_ZCL_STATUS_NOT_FOUND                   = 0x8B,
40     EMBER_ZCL_STATUS_UNREPORTABLE_ATTRIBUTE      = 0x8C,
41     EMBER_ZCL_STATUS_INVALID_DATA_TYPE           = 0x8D,
42     EMBER_ZCL_STATUS_INVALID_SELECTOR            = 0x8E,
43     EMBER_ZCL_STATUS_WRITE_ONLY                  = 0x8F,
44     EMBER_ZCL_STATUS_INCONSISTENT_STARTUP_STATE  = 0x90,
45     EMBER_ZCL_STATUS_DEFINED_OUT_OF_BAND         = 0x91,
46     EMBER_ZCL_STATUS_ACTION_DENIED               = 0x93,
47     EMBER_ZCL_STATUS_TIMEOUT                     = 0x94,
48     EMBER_ZCL_STATUS_ABORT                       = 0x95,
49     EMBER_ZCL_STATUS_INVALID_IMAGE               = 0x96,
50     EMBER_ZCL_STATUS_WAIT_FOR_DATA               = 0x97,
51     EMBER_ZCL_STATUS_NO_IMAGE_AVAILABLE          = 0x98,
52     EMBER_ZCL_STATUS_REQUIRE_MORE_IMAGE          = 0x99,
53     EMBER_ZCL_STATUS_NOTIFICATION_PENDING        = 0x9A,
54     EMBER_ZCL_STATUS_HARDWARE_FAILURE            = 0xC0,
55     EMBER_ZCL_STATUS_SOFTWARE_FAILURE            = 0xC1,
56     EMBER_ZCL_STATUS_UNSUPPORTED_CLUSTER         = 0xC3,
57     EMBER_ZCL_STATUS_LIMIT_REACHED               = 0xC4,
58 } EmberAfStatus;
59
60 typedef enum
61 {
62     EMBER_ZCL_REPORTING_DIRECTION_REPORTED = 0x00,
63     EMBER_ZCL_REPORTING_DIRECTION_RECEIVED = 0x01,
64 } EmberAfReportingDirection;