2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @file ss_devicedetection_service_types.h
19 * @brief This file supports the Device Detection service.
22 /** @addtogroup BaseSystem
25 /** @addtogroup system_service
29 /** @addtogroup device_detection_service
30 * @ingroup system_service
34 #ifndef SS_DEVDETECT_TYPES_H_ // NOLINT (build/header_guard)
35 #define SS_DEVDETECT_TYPES_H_
38 * \~english Deive type(eUSB,eSD...)
40 typedef enum _DeviceType {
64 * \~english Action result
66 typedef enum _SsDevError {
76 * \~english mount error
80 * \~english device busy
88 typedef enum _USBPort {
90 * \~english USB0(IF-BOX)
92 SS_DEV_USB_PORT0, // IF-BOX
96 SS_DEV_USB_PORT1, // DCM
98 * \~english USB2(DSRC/ETC)
100 SS_DEV_USB_PORT2, // DSRC/ETC
102 * \~english USB3(External deck)
104 SS_DEV_USB_PORT3, // External DECK
106 * \~english USB4(Drive recorder)
108 SS_DEV_USB_PORT4, // Supplies drive recorder
110 * \~english USB number max.
112 SS_DEV_USB_MAX // MAX
116 * \~english notify code
118 typedef enum SsNotifyCode {
120 * \~english Unsupport USB device
122 SS_DEV_UNSUPPORT_USB, // Un support USB device
124 * \~english The connected device has no response.
126 SS_DEV_NON_RESPONSE_USB, // Enemuration Error
128 * \~english It detects a USB device of current excess that has been connected to the bus power HUB.
130 SS_DEV_HIGH_POWER_USB, // It detects a USB device of current excess that
131 // has been connected to the bus power HUB.
133 * \~english Over support USB(3 or more units)
135 SS_DEV_OVER_SUPPORT_USB, // Over support USB(3 or more units)
137 * \~english Over number of USB HUB(2 or more units)
139 SS_DEV_OVER_NUM_USB_HUB, // Over number of USB HUB(2 or more units)
143 * \~english RoleSw state
145 typedef enum _SsDevRoleSwState {
149 SS_DEV_ROLE_SW_START,
151 * \~english begin end
153 SS_DEV_ROLE_SW_BEGIN_END,
161 SS_DEV_ROLE_SW_RESTART,
162 } SS_DEV_ROLE_SW_STATE;
165 * \~english Disc Type(eCD, eDVD, eBD)
167 typedef enum _DiscType {
182 #endif /* SS_DEVDETECT_TYPES_H_ */ // NOLINT (build/header_guard)
184 /** @}*/ // end of device_detection_service
185 /** @}*/ // end of system_service
186 /** @}*/ // end of BaseSystem