Home
last modified time | relevance | path

Searched refs:endpoint (Results 1 – 18 of 18) sorted by relevance

/base/usb/usb_manager/interfaces/innerkits/native/include/
Dusb_endpoint.h37 explicit USBEndpoint(const Json::Value &endpoint) in USBEndpoint() argument
39 address_ = endpoint["address"].asUInt(); in USBEndpoint()
40 attributes_ = endpoint["attributes"].asUInt(); in USBEndpoint()
41 interval_ = endpoint["interval"].asInt(); in USBEndpoint()
42 maxPacketSize_ = endpoint["maxPacketSize"].asInt(); in USBEndpoint()
43 interfaceId_ = endpoint["interfaceId"].asUInt(); in USBEndpoint()
141 Json::Value endpoint; in ToJson() local
142 endpoint["address"] = address_; in ToJson()
143 endpoint["attributes"] = attributes_; in ToJson()
144 endpoint["interval"] = interval_; in ToJson()
[all …]
Dusb_request.h29 int32_t Initialize(const USBDevicePipe &pipe, const USBEndpoint &endpoint);
37 void SetEndpoint(const USBEndpoint &endpoint) in SetEndpoint() argument
39 this->endpoint_ = endpoint; in SetEndpoint()
Dusb_srv_client.h60 …int32_t BulkTransfer(USBDevicePipe &pip, const USBEndpoint &endpoint, std::vector<uint8_t> &buffer…
81 …int32_t RegBulkCallback(USBDevicePipe &pip, const USBEndpoint &endpoint, const sptr<IRemoteObject>…
82 int32_t UnRegBulkCallback(USBDevicePipe &pip, const USBEndpoint &endpoint);
83 int32_t BulkRead(USBDevicePipe &pip, const USBEndpoint &endpoint, sptr<Ashmem> &ashmem);
84 int32_t BulkWrite(USBDevicePipe &pip, const USBEndpoint &endpoint, sptr<Ashmem> &ashmem);
85 int32_t BulkCancel(USBDevicePipe &pip, const USBEndpoint &endpoint);
Dusb_device_pipe.h31 …int32_t BulkTransfer(const USBEndpoint &endpoint, std::vector<uint8_t> &bufferData, int32_t timeOu…
Dusb_interface.h163 const USBEndpoint &endpoint = endpoints_[i]; in ToString() local
164 str += endpoint.ToString(); in ToString()
/base/usb/usb_manager/interfaces/innerkits/native/src/
Dusb_srv_client.cpp232 …USBDevicePipe &pipe, const USBEndpoint &endpoint, std::vector<uint8_t> &bufferData, int32_t timeOu… in BulkTransfer() argument
237 const UsbPipe tpipe = {endpoint.GetInterfaceId(), endpoint.GetAddress()}; in BulkTransfer()
238 if (USB_ENDPOINT_DIR_IN == endpoint.GetDirection()) { in BulkTransfer()
240 } else if (USB_ENDPOINT_DIR_OUT == endpoint.GetDirection()) { in BulkTransfer()
325 const USBEndpoint &endpoint = request.GetEndpoint(); in RequestInitialize() local
326 …return proxy_->ClaimInterface(pipe.GetBusNum(), pipe.GetDevAddr(), endpoint.GetInterfaceId(), CLAI… in RequestInitialize()
355 int32_t UsbSrvClient::RegBulkCallback(USBDevicePipe &pip, const USBEndpoint &endpoint, const sptr<I… in RegBulkCallback() argument
359 const UsbPipe tpipe = {endpoint.GetInterfaceId(), endpoint.GetAddress()}; in RegBulkCallback()
367 int32_t UsbSrvClient::UnRegBulkCallback(USBDevicePipe &pip, const USBEndpoint &endpoint) in UnRegBulkCallback() argument
371 const UsbPipe tpipe = {endpoint.GetInterfaceId(), endpoint.GetAddress()}; in UnRegBulkCallback()
[all …]
Dusb_request.cpp22 int32_t UsbRequest::Initialize(const USBDevicePipe &pipe, const USBEndpoint &endpoint) in Initialize() argument
25 this->endpoint_ = endpoint; in Initialize()
Dusb_device_pipe.cpp53 int32_t USBDevicePipe::BulkTransfer(const USBEndpoint &endpoint, std::vector<uint8_t> &bufferData, … in BulkTransfer() argument
55 return UsbSrvClient::GetInstance().BulkTransfer(*this, endpoint, bufferData, timeOut); in BulkTransfer()
/base/usb/usb_manager/services/zidl/src/
Dusb_srv_stub.cpp373 uint8_t endpoint = 0; in DoBulkTransferRead() local
378 READ_PARCEL_WITH_RET(data, Uint8, endpoint, UEC_SERVICE_WRITE_PARCEL_ERROR); in DoBulkTransferRead()
382 const UsbPipe tmpPipe = {interface, endpoint}; in DoBulkTransferRead()
401 uint8_t endpoint = 0; in DoBulkTransferWrite() local
406 READ_PARCEL_WITH_RET(data, Uint8, endpoint, UEC_SERVICE_WRITE_PARCEL_ERROR); in DoBulkTransferWrite()
410 const UsbPipe tmpPipe = {interface, endpoint}; in DoBulkTransferWrite()
548 uint8_t endpoint = 0; in DoRequestQueue() local
552 READ_PARCEL_WITH_RET(data, Uint8, endpoint, UEC_SERVICE_WRITE_PARCEL_ERROR); in DoRequestQueue()
567 const UsbPipe tmpPipe = {ifId, endpoint}; in DoRequestQueue()
757 uint8_t endpoint = 0; in DoRegBulkCallback() local
[all …]
/base/usb/usb_manager/
DREADME.md54 …ipe &pip, const USBEndpoint &endpoint, std::vector<uint8_t> &vdata, int32_t timeout); | Writes dat…
55endpoint 0 of the device. The data transfer direction is determined by the request type. If the re…
57 …ts for isochronous transfer on a specified endpoint. The data transfer direction is determined by …
123 // Read data. Select the corresponding RX endpoint (endpoint.direction == 0x80) from deviceList for…
135 // Send data. Select the corresponding TX endpoint (endpoint.direction == 0) from deviceList for da…
DREADME_zh.md48 | int32_t BulkTransfer(USBDevicePipe &pip, const USBEndpoint &endpoint, std::vector<uint8_t> &vdata…
104 // 读取数据,在device信息中选取对应数据接收的endpoint来做数据传(endpoint.direction == 0x80);dataUint8Array要发送的数据
116 // 发送数据,在device信息中选取对应数据发送的endpoint来做数据传(endpoint.direction == 0)
/base/usb/usb_manager/test/native/js_unittest/
DUsbDevicePipeJsunit.test.js65 var endpoint = testParam.config.interfaces[j].endpoints[k];
66 if (endpoint.type == EventConstants.USB_ENDPOINT_XFER_BULK) {
68 if (endpoint.direction == usb.USB_REQUEST_DIR_TO_DEVICE) {
69 testParam.maxOutSize = endpoint.maxPacketSize;
70 testParam.outEndpoint = endpoint;
71 } else if (endpoint.direction == usb.USB_REQUEST_DIR_FROM_DEVICE) {
72 testParam.maxInSize = endpoint.maxPacketSize;
73 testParam.inEndpoint = endpoint
DUsbDevicePipeJsunitEx.test.js65 var endpoint = testParam.config.interfaces[j].endpoints[k];
66 if (endpoint.type == EventConstants.USB_ENDPOINT_XFER_BULK) {
69 if (endpoint.direction == usb.USB_REQUEST_DIR_TO_DEVICE) {
70 testParam.outEndpoint = endpoint;
71 testParam.maxOutSize = endpoint.maxPacketSize;
72 } else if (endpoint.direction == (usb.USB_REQUEST_DIR_FROM_DEVICE)) {
73 testParam.inEndpoint = endpoint
74 testParam.maxInSize = endpoint.maxPacketSize;
/base/usb/usb_manager/interfaces/kits/js/napi/include/
Dusb_async_context.h106 USBEndpoint endpoint; member
/base/usb/usb_manager/interfaces/kits/js/
D@ohos.usbManager.d.ts269 function bulkTransfer(pipe: USBDevicePipe, endpoint: USBEndpoint, buffer: Uint8Array,
/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_event_test.cpp171 auto endpoint = interface.GetEndpoint(0); variable
172 EXPECT_NE(endpoint.value().GetAttributes(), 0);
/base/usb/usb_manager/test/native/mock/src/
Dusb_event_mock_test.cpp206 auto endpoint = interface.GetEndpoint(0); variable
207 EXPECT_NE(endpoint.value().GetAttributes(), 0);
/base/usb/usb_manager/interfaces/kits/js/napi/src/
Dusb_info.cpp1181 if (asyncContext->endpoint.GetDirection() == USB_ENDPOINT_DIR_OUT) { in __anonfdf92cdc0902()
1188 … ret = asyncContext->pipe.BulkTransfer(asyncContext->endpoint, bufferData, asyncContext->timeOut); in __anonfdf92cdc0902()
1194 if (asyncContext->endpoint.GetDirection() == USB_ENDPOINT_DIR_IN) { in __anonfdf92cdc0902()
1235 asyncContext.endpoint = ep; in GetDescriptorOnBulkTransferParam()