From 3deb81275e3938d40f0f5bb39a575a64ae7e4721 Mon Sep 17 00:00:00 2001 From: liangqi Date: Sat, 26 Oct 2024 17:24:42 +0800 Subject: [PATCH 1/2] add accessory mode Signed-off-by: liangqi --- framework/model/usb/include/hdf_usb_pnp_manage.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/model/usb/include/hdf_usb_pnp_manage.h b/framework/model/usb/include/hdf_usb_pnp_manage.h index 943707dda..d2b3aab68 100644 --- a/framework/model/usb/include/hdf_usb_pnp_manage.h +++ b/framework/model/usb/include/hdf_usb_pnp_manage.h @@ -32,6 +32,9 @@ enum UsbPnpNotifyServiceCmd { USB_PNP_DRIVER_PORT_HOST = 40, USB_PNP_DRIVER_PORT_DEVICE, USB_PNP_DRIVER_GET_GADGET_LINK_STATUS, + USB_ACCESSORY_START = 50, + USB_ACCESSORY_STOP, + USB_ACCESSORY_SEND }; enum UsbPnpNotifyRemoveType { -- Gitee From 994e0fb7ef2e44533f10393d027decf57e827fd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=90=A6?= Date: Tue, 29 Oct 2024 13:48:49 +0000 Subject: [PATCH 2/2] update framework/model/usb/include/hdf_usb_pnp_manage.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 梁琦 --- framework/model/usb/include/hdf_usb_pnp_manage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/model/usb/include/hdf_usb_pnp_manage.h b/framework/model/usb/include/hdf_usb_pnp_manage.h index d2b3aab68..14b8b2cb3 100644 --- a/framework/model/usb/include/hdf_usb_pnp_manage.h +++ b/framework/model/usb/include/hdf_usb_pnp_manage.h @@ -34,7 +34,7 @@ enum UsbPnpNotifyServiceCmd { USB_PNP_DRIVER_GET_GADGET_LINK_STATUS, USB_ACCESSORY_START = 50, USB_ACCESSORY_STOP, - USB_ACCESSORY_SEND + USB_ACCESSORY_SEND, }; enum UsbPnpNotifyRemoveType { -- Gitee