openUBMC Chip Abstract Layer
V0.1
载入中...
搜索中...
未找到
include
bcal
usb_drd.h
浏览该文件的文档.
1
/*
2
* Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.
3
*
4
* this file licensed under the Mulan PSL v2.
5
* You can use this software according to the terms and conditions of the Mulan PSL v2.
6
* You may obtain a copy of Mulan PSL v2 at:
7
* http://license.coscl.org.cn/MulanPSL2
8
*
9
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
10
* IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
11
* PURPOSE.
12
* See the Mulan PSL v2 for more details.
13
*/
18
#ifndef DRIVER_USB_DRD_H
19
#define DRIVER_USB_DRD_H
20
21
#include <fstream>
22
#include "
driver.h
"
23
24
namespace
DRIVER_USB_DRD {
25
using namespace
bcal;
26
31
class
UsbDrd
:
public
IDriver
{
32
public
:
39
void
set_role
(int32_t index, uint32_t role)
const
;
40
47
uint32_t
get_role
(int32_t index)
const
;
48
};
49
}
// namespace
50
#endif
DRIVER_USB_DRD::UsbDrd
USB Dual Role Device接口类
Definition
usb_drd.h:31
DRIVER_USB_DRD::UsbDrd::set_role
void set_role(int32_t index, uint32_t role) const
设置USB DRD角色
DRIVER_USB_DRD::UsbDrd::get_role
uint32_t get_role(int32_t index) const
获取USB DRD当前角色
bcal::IDriver
BCAL层驱动公共接口
Definition
driver.h:41
driver.h
BCAL 驱动公共接口定义
制作者
1.9.8