Line data Source code
1 : /*
2 : * Copyright (c) 2022 Project CHIP Authors
3 : * All rights reserved.
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 : * This file is designed to be included multiple times, hence does not use
20 : * include guards or #pragma once. Consumers must define the
21 : * CHIP_IM_STATUS_CODE(name, spec_name, value) macro to do whatever they want,
22 : * include this file, then undefine the macro.
23 : */
24 :
25 : /// WARNING: If you touch this list,
26 : /// please update src/controller/python/chip/interaction_model/__init__.py
27 : /// please update src/controller/java/src/chip/devicecontroller/model/Status.java
28 : /// please update src/controller/java/src/matter/controller/model/Status.kt
29 :
30 : // clang-format off
31 4770 : CHIP_IM_STATUS_CODE(Success , SUCCESS , 0x0)
32 43 : CHIP_IM_STATUS_CODE(Failure , FAILURE , 0x01)
33 16 : CHIP_IM_STATUS_CODE(InvalidSubscription , INVALID_SUBSCRIPTION , 0x7d)
34 10 : CHIP_IM_STATUS_CODE(UnsupportedAccess , UNSUPPORTED_ACCESS , 0x7e)
35 7 : CHIP_IM_STATUS_CODE(UnsupportedEndpoint , UNSUPPORTED_ENDPOINT , 0x7f)
36 132 : CHIP_IM_STATUS_CODE(InvalidAction , INVALID_ACTION , 0x80)
37 15 : CHIP_IM_STATUS_CODE(UnsupportedCommand , UNSUPPORTED_COMMAND , 0x81)
38 0 : CHIP_IM_STATUS_CODE(Deprecated82 , Deprecated82 , 0x82)
39 0 : CHIP_IM_STATUS_CODE(Deprecated83 , Deprecated83 , 0x83)
40 0 : CHIP_IM_STATUS_CODE(Deprecated84 , Deprecated84 , 0x84)
41 0 : CHIP_IM_STATUS_CODE(InvalidCommand , INVALID_COMMAND , 0x85)
42 256 : CHIP_IM_STATUS_CODE(UnsupportedAttribute , UNSUPPORTED_ATTRIBUTE , 0x86)
43 1 : CHIP_IM_STATUS_CODE(ConstraintError , CONSTRAINT_ERROR , 0x87)
44 3 : CHIP_IM_STATUS_CODE(UnsupportedWrite , UNSUPPORTED_WRITE , 0x88)
45 62 : CHIP_IM_STATUS_CODE(ResourceExhausted , RESOURCE_EXHAUSTED , 0x89)
46 0 : CHIP_IM_STATUS_CODE(Deprecated8a , Deprecated8a , 0x8a)
47 0 : CHIP_IM_STATUS_CODE(NotFound , NOT_FOUND , 0x8b)
48 0 : CHIP_IM_STATUS_CODE(UnreportableAttribute , UNREPORTABLE_ATTRIBUTE , 0x8c)
49 0 : CHIP_IM_STATUS_CODE(InvalidDataType , INVALID_DATA_TYPE , 0x8d)
50 0 : CHIP_IM_STATUS_CODE(Deprecated8e , Deprecated8e , 0x8e)
51 1 : CHIP_IM_STATUS_CODE(UnsupportedRead , UNSUPPORTED_READ , 0x8f)
52 0 : CHIP_IM_STATUS_CODE(Deprecated90 , Deprecated90 , 0x90)
53 0 : CHIP_IM_STATUS_CODE(Deprecated91 , Deprecated91 , 0x91)
54 7 : CHIP_IM_STATUS_CODE(DataVersionMismatch , DATA_VERSION_MISMATCH , 0x92)
55 0 : CHIP_IM_STATUS_CODE(Deprecated93 , Deprecated93 , 0x93)
56 4 : CHIP_IM_STATUS_CODE(Timeout , TIMEOUT , 0x94)
57 0 : CHIP_IM_STATUS_CODE(Reserved95 , Reserved95 , 0x95)
58 0 : CHIP_IM_STATUS_CODE(Reserved96 , Reserved96 , 0x96)
59 0 : CHIP_IM_STATUS_CODE(Reserved97 , Reserved97 , 0x97)
60 0 : CHIP_IM_STATUS_CODE(Reserved98 , Reserved98 , 0x98)
61 0 : CHIP_IM_STATUS_CODE(Reserved99 , Reserved99 , 0x99)
62 0 : CHIP_IM_STATUS_CODE(Reserved9a , Reserved9a , 0x9a)
63 57 : CHIP_IM_STATUS_CODE(Busy , BUSY , 0x9c)
64 0 : CHIP_IM_STATUS_CODE(AccessRestricted , ACCESS_RESTRICTED , 0x9d)
65 0 : CHIP_IM_STATUS_CODE(Deprecatedc0 , Deprecatedc0 , 0xc0)
66 0 : CHIP_IM_STATUS_CODE(Deprecatedc1 , Deprecatedc1 , 0xc1)
67 0 : CHIP_IM_STATUS_CODE(Deprecatedc2 , Deprecatedc2 , 0xc2)
68 3 : CHIP_IM_STATUS_CODE(UnsupportedCluster , UNSUPPORTED_CLUSTER , 0xc3)
69 0 : CHIP_IM_STATUS_CODE(Deprecatedc4 , Deprecatedc4 , 0xc4)
70 0 : CHIP_IM_STATUS_CODE(NoUpstreamSubscription, NO_UPSTREAM_SUBSCRIPTION, 0xc5)
71 1 : CHIP_IM_STATUS_CODE(NeedsTimedInteraction , NEEDS_TIMED_INTERACTION , 0xc6)
72 0 : CHIP_IM_STATUS_CODE(UnsupportedEvent , UNSUPPORTED_EVENT , 0xc7)
73 16 : CHIP_IM_STATUS_CODE(PathsExhausted , PATHS_EXHAUSTED , 0xc8)
74 0 : CHIP_IM_STATUS_CODE(TimedRequestMismatch , TIMED_REQUEST_MISMATCH , 0xc9)
75 0 : CHIP_IM_STATUS_CODE(FailsafeRequired , FAILSAFE_REQUIRED , 0xca)
76 0 : CHIP_IM_STATUS_CODE(InvalidInState , INVALID_IN_STATE , 0xcb)
77 0 : CHIP_IM_STATUS_CODE(NoCommandResponse , NO_COMMAND_RESPONSE , 0xcc)
78 0 : CHIP_IM_STATUS_CODE(WriteIgnored , WRITE_IGNORED , 0xF0) // non-spec error code and use only internally
79 : // clang-format on
|