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, please also update src/controller/python/chip/interaction_model/__init__.py
26 :
27 : // clang-format off
28 4749 : CHIP_IM_STATUS_CODE(Success , SUCCESS , 0x0)
29 29 : CHIP_IM_STATUS_CODE(Failure , FAILURE , 0x01)
30 16 : CHIP_IM_STATUS_CODE(InvalidSubscription , INVALID_SUBSCRIPTION , 0x7d)
31 9 : CHIP_IM_STATUS_CODE(UnsupportedAccess , UNSUPPORTED_ACCESS , 0x7e)
32 2 : CHIP_IM_STATUS_CODE(UnsupportedEndpoint , UNSUPPORTED_ENDPOINT , 0x7f)
33 95 : CHIP_IM_STATUS_CODE(InvalidAction , INVALID_ACTION , 0x80)
34 14 : CHIP_IM_STATUS_CODE(UnsupportedCommand , UNSUPPORTED_COMMAND , 0x81)
35 0 : CHIP_IM_STATUS_CODE(Deprecated82 , Deprecated82 , 0x82)
36 0 : CHIP_IM_STATUS_CODE(Deprecated83 , Deprecated83 , 0x83)
37 0 : CHIP_IM_STATUS_CODE(Deprecated84 , Deprecated84 , 0x84)
38 0 : CHIP_IM_STATUS_CODE(InvalidCommand , INVALID_COMMAND , 0x85)
39 255 : CHIP_IM_STATUS_CODE(UnsupportedAttribute , UNSUPPORTED_ATTRIBUTE , 0x86)
40 0 : CHIP_IM_STATUS_CODE(ConstraintError , CONSTRAINT_ERROR , 0x87)
41 0 : CHIP_IM_STATUS_CODE(UnsupportedWrite , UNSUPPORTED_WRITE , 0x88)
42 62 : CHIP_IM_STATUS_CODE(ResourceExhausted , RESOURCE_EXHAUSTED , 0x89)
43 0 : CHIP_IM_STATUS_CODE(Deprecated8a , Deprecated8a , 0x8a)
44 0 : CHIP_IM_STATUS_CODE(NotFound , NOT_FOUND , 0x8b)
45 0 : CHIP_IM_STATUS_CODE(UnreportableAttribute , UNREPORTABLE_ATTRIBUTE , 0x8c)
46 0 : CHIP_IM_STATUS_CODE(InvalidDataType , INVALID_DATA_TYPE , 0x8d)
47 0 : CHIP_IM_STATUS_CODE(Deprecated8e , Deprecated8e , 0x8e)
48 0 : CHIP_IM_STATUS_CODE(UnsupportedRead , UNSUPPORTED_READ , 0x8f)
49 0 : CHIP_IM_STATUS_CODE(Deprecated90 , Deprecated90 , 0x90)
50 0 : CHIP_IM_STATUS_CODE(Deprecated91 , Deprecated91 , 0x91)
51 6 : CHIP_IM_STATUS_CODE(DataVersionMismatch , DATA_VERSION_MISMATCH , 0x92)
52 0 : CHIP_IM_STATUS_CODE(Deprecated93 , Deprecated93 , 0x93)
53 0 : CHIP_IM_STATUS_CODE(Timeout , TIMEOUT , 0x94)
54 0 : CHIP_IM_STATUS_CODE(Reserved95 , Reserved95 , 0x95)
55 0 : CHIP_IM_STATUS_CODE(Reserved96 , Reserved96 , 0x96)
56 0 : CHIP_IM_STATUS_CODE(Reserved97 , Reserved97 , 0x97)
57 0 : CHIP_IM_STATUS_CODE(Reserved98 , Reserved98 , 0x98)
58 0 : CHIP_IM_STATUS_CODE(Reserved99 , Reserved99 , 0x99)
59 0 : CHIP_IM_STATUS_CODE(Reserved9a , Reserved9a , 0x9a)
60 46 : CHIP_IM_STATUS_CODE(Busy , BUSY , 0x9c)
61 0 : CHIP_IM_STATUS_CODE(Deprecatedc0 , Deprecatedc0 , 0xc0)
62 0 : CHIP_IM_STATUS_CODE(Deprecatedc1 , Deprecatedc1 , 0xc1)
63 0 : CHIP_IM_STATUS_CODE(Deprecatedc2 , Deprecatedc2 , 0xc2)
64 0 : CHIP_IM_STATUS_CODE(UnsupportedCluster , UNSUPPORTED_CLUSTER , 0xc3)
65 0 : CHIP_IM_STATUS_CODE(Deprecatedc4 , Deprecatedc4 , 0xc4)
66 0 : CHIP_IM_STATUS_CODE(NoUpstreamSubscription, NO_UPSTREAM_SUBSCRIPTION, 0xc5)
67 0 : CHIP_IM_STATUS_CODE(NeedsTimedInteraction , NEEDS_TIMED_INTERACTION , 0xc6)
68 0 : CHIP_IM_STATUS_CODE(UnsupportedEvent , UNSUPPORTED_EVENT , 0xc7)
69 10 : CHIP_IM_STATUS_CODE(PathsExhausted , PATHS_EXHAUSTED , 0xc8)
70 0 : CHIP_IM_STATUS_CODE(TimedRequestMismatch , TIMED_REQUEST_MISMATCH , 0xc9)
71 0 : CHIP_IM_STATUS_CODE(FailsafeRequired , FAILSAFE_REQUIRED , 0xca)
72 0 : CHIP_IM_STATUS_CODE(InvalidInState , INVALID_IN_STATE , 0xcb)
73 0 : CHIP_IM_STATUS_CODE(NoCommandResponse , NO_COMMAND_RESPONSE , 0xcc)
74 0 : CHIP_IM_STATUS_CODE(WriteIgnored , WRITE_IGNORED , 0xF0) // non-spec error code and use only internally
75 : // clang-format on
|