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.
21 * CommUSB service-to-service interface
23 #ifndef POSITIONING_SERVER_INCLUDE_SERVICEINTERFACE_COMMUSBIF_H_
24 #define POSITIONING_SERVER_INCLUDE_SERVICEINTERFACE_COMMUSBIF_H_
26 /*---------------------------------------------------------------------------------*
28 *---------------------------------------------------------------------------------*/
29 #include <native_service/frameworkunified_types.h>
30 #include <native_service/frameworkunified_framework_if.h>
31 #include <stub/commusb_api.h>
32 #include <stub/commusb_notifications.h>
34 #include <vehicle_service/positioning_base_library.h>
36 /*---------------------------------------------------------------------------------*
38 *---------------------------------------------------------------------------------*/
40 /*---------------------------------------------------------------------------------*
41 * Typedef declaration *
42 *---------------------------------------------------------------------------------*/
44 /*---------------------------------------------------------------------------------*
45 * Struct declaration *
46 *---------------------------------------------------------------------------------*/
48 /*---------------------------------------------------------------------------------*
49 * Prototype Declaration *
50 *---------------------------------------------------------------------------------*/
54 EFrameworkunifiedStatus CommUsbIfAttachCallbacksToDispatcher( // NOLINT(readability/nolint)
55 _FrameworkunifiedProtocolCallbackHandler const* p_msg_handler,
56 unsigned int ui_handler_count);
57 EFrameworkunifiedStatus CommUsbIfDetachCallbacksFromDispatcher(const PUI_32 pui_cmd_array, UI_32 ui_command_count);
58 EFrameworkunifiedStatus CommUsbIfNotifyOnCommUSBAvailability(CbFuncPtr fp_on_cmd);
59 void CommUsbIfSetAvailability(BOOL b_is_available);
64 #endif // POSITIONING_SERVER_INCLUDE_SERVICEINTERFACE_COMMUSBIF_H_