• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "usb_serial_liteos_adapter.h"
17 #include <cstdint>
18 #include <hdf_base.h>
19 
20 #define HDF_LOG_TAG usb_serial_liteos_adapter
21 
22 namespace OHOS {
23 namespace HDI {
24 namespace Usb {
25 namespace UsbSerialDdk {
26 namespace V1_0 {
27 
SetBaudRate(int32_t fd,uint32_t baudRate)28 int32_t LiteOsUsbSerialOsAdapter::SetBaudRate(int32_t fd, uint32_t baudRate)
29 {
30     return USB_SERIAL_DDK_INVALID_OPERATION;
31 }
32 
SetParams(int32_t fd,const UsbSerialParams & params)33 int32_t LiteOsUsbSerialOsAdapter::SetParams(int32_t fd, const UsbSerialParams &params)
34 {
35     return USB_SERIAL_DDK_INVALID_OPERATION;
36 }
37 
SetTimeout(int32_t fd,int32_t timeout)38 int32_t LiteOsUsbSerialOsAdapter::SetTimeout(int32_t fd, int32_t timeout)
39 {
40     return USB_SERIAL_DDK_INVALID_OPERATION;
41 }
42 
SetFlowControl(int32_t fd,int32_t flowControl)43 int32_t LiteOsUsbSerialOsAdapter::SetFlowControl(int32_t fd, int32_t flowControl)
44 {
45     return USB_SERIAL_DDK_INVALID_OPERATION;
46 }
47 
IsDeviceDisconnect(int32_t fd)48 bool LiteOsUsbSerialOsAdapter::IsDeviceDisconnect(int32_t fd)
49 {
50     return false;
51 }
52 
Flush(int32_t fd)53 int32_t LiteOsUsbSerialOsAdapter::Flush(int32_t fd)
54 {
55     return USB_SERIAL_DDK_INVALID_OPERATION;
56 }
57 
FlushInput(int32_t fd)58 int32_t LiteOsUsbSerialOsAdapter::FlushInput(int32_t fd)
59 {
60     return USB_SERIAL_DDK_INVALID_OPERATION;
61 }
62 
FlushOutput(int32_t fd)63 int32_t LiteOsUsbSerialOsAdapter::FlushOutput(int32_t fd)
64 {
65     return USB_SERIAL_DDK_INVALID_OPERATION;
66 }
67 
68 } // namespace V1_0
69 } // namespace UsbSerialDdk
70 } // namespace Usb
71 } // namespace HDI
72 } // namespace OHOS
73