1 /* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef OHOS_MECHBODY_CONTROLLER_IPC_INTERFACE_CODE_H 17 #define OHOS_MECHBODY_CONTROLLER_IPC_INTERFACE_CODE_H 18 19 #include <string> 20 21 namespace OHOS { 22 namespace MechBodyController { 23 const std::u16string MECH_SERVICE_IPC_TOKEN = u"ohos.mechservice.accessToken"; 24 static constexpr int32_t MECH_SERVICE_SA_ID = 8550; 25 26 enum class IMechBodyControllerCode : uint32_t { 27 MECHBODY_RESERVED = 0, 28 ATTACH_STATE_CHANGE_LISTEN_ON = 1, 29 ATTACH_STATE_CHANGE_LISTEN_OFF = 2, 30 GET_ATTACHED_DEVICES = 3, 31 SET_USER_OPERATION = 4, 32 SET_CAMERA_TRACKING_ENABLED = 5, 33 GET_CAMERA_TRACKING_ENABLED = 6, 34 TRACKING_EVENT_LISTEN_ON = 7, 35 TRACKING_EVENT_LISTEN_OFF = 8, 36 SET_CAMERA_TRACKING_LAYOUT = 9, 37 GET_CAMERA_TRACKING_LAYOUT = 10, 38 ROTATE_BY_DEGREE = 11, 39 REGISTER_CMD_CHANNEL = 12, 40 ROTATE_TO_EULER_ANGLES = 13, 41 GET_MAX_ROTATION_TIME = 14, 42 GET_MAX_ROTATION_SPEED = 15, 43 ROTATE_BY_SPEED = 16, 44 STOP_MOVING = 17, 45 GET_ROTATION_ANGLES = 18, 46 GET_ROTATION_DEGREE_LIMITS = 19, 47 GET_ROTATION_AXES_STATUS = 20, 48 ROTATION_AXES_STATUS_CHANGE_LISTEN_ON = 21, 49 ROTATION_AXES_STATUS_CHANGE_LISTEN_OFF = 22, 50 51 ATTACH_STATE_CHANGE_CALLBACK = 24, 52 TRACKING_EVENT_CALLBACK = 25, 53 ROTATION_AXES_STATUS_CHANGE_CALLBACK = 26, 54 ROTATE_CALLBACK = 27, 55 }; 56 } // namespace MechBodyController 57 } // namespace OHOS 58 #endif // OHOS_MECHBODY_CONTROLLER_IPC_INTERFACE_CODE_H 59