Home
last modified time | relevance | path

Searched refs:devAddr (Results 1 – 16 of 16) sorted by relevance

/base/usb/usb_manager/test/native/mock/src/
Dusb_device_pipe_mock_test.cpp111 ret = usbSrv_->OpenDevice(dev_.busNum, dev_.devAddr); in SetUpTestCase()
119 auto ret = usbSrv_->Close(dev_.busNum, dev_.devAddr); in TearDownTestCase()
162 auto ret = usbSrv_->Close(dev_.busNum, dev_.devAddr);
166 ret = usbSrv_->OpenDevice(dev_.busNum, dev_.devAddr);
214 dev_.devAddr = DEV_ADDR_INVALID;
223 dev_.devAddr = DEV_ADDR_OK;
272 dev_.devAddr = DEV_ADDR_INVALID;
282 dev_.devAddr = DEV_ADDR_OK;
331 dev_.devAddr = DEV_ADDR_INVALID;
341 dev_.devAddr = DEV_ADDR_OK;
[all …]
Dusb_request_mock_test.cpp87 ret = usbSrv_->OpenDevice(dev_.busNum, dev_.devAddr); in SetUpTestCase()
93 ret = usbSrv_->ClaimInterface(dev_.busNum, dev_.devAddr, interfaceId, true); in SetUpTestCase()
101 auto ret = usbSrv_->Close(dev_.busNum, dev_.devAddr); in TearDownTestCase()
191 dev_.devAddr = DEV_ADDR_INVALID;
198 dev_.devAddr = DEV_ADDR_OK;
235 dev_.devAddr = DEV_ADDR_INVALID;
242 dev_.devAddr = DEV_ADDR_OK;
257 auto ret = usbSrv_->RequestCancel(dev_.busNum, dev_.devAddr, interfaceId, endpointId);
275 auto ret = usbSrv_->RequestCancel(dev_.busNum, dev_.devAddr, interfaceId, endpointId);
293 dev_.devAddr = DEV_ADDR_INVALID;
[all …]
Dusb_impl_mock.cpp58 if ((BUS_NUM_OK != dev.busNum) || (DEV_ADDR_OK != dev.devAddr)) { in GetRawDescriptor()
68 if ((BUS_NUM_OK != dev.busNum) || (DEV_ADDR_OK != dev.devAddr)) { in GetStringDescriptor()
Dusb_bulkcallback_mock_test.cpp119 ret = usbSrv_->OpenDevice(dev_.busNum, dev_.devAddr); in SetUpTestCase()
125 ret = usbSrv_->ClaimInterface(dev_.busNum, dev_.devAddr, interfaceId, true); in SetUpTestCase()
133 auto ret = usbSrv_->Close(dev_.busNum, dev_.devAddr); in TearDownTestCase()
240 dev_.devAddr = DEV_ADDR_INVALID;
251 dev_.devAddr = DEV_ADDR_OK;
378 dev_.devAddr = DEV_ADDR_INVALID;
384 dev_.devAddr = DEV_ADDR_OK;
518 dev_.devAddr = DEV_ADDR_INVALID;
524 dev_.devAddr = DEV_ADDR_OK;
642 dev_.devAddr = DEV_ADDR_INVALID;
[all …]
/base/usb/usb_manager/services/zidl/src/
Dusb_srv_stub.cpp26 int32_t UsbServerStub::GetDeviceMessage(MessageParcel &data, uint8_t &busNum, uint8_t &devAddr) in GetDeviceMessage() argument
31 if (!data.ReadUint8(devAddr)) { in GetDeviceMessage()
250 uint8_t devAddr = 0; in DoOpenDevice() local
252 READ_PARCEL_WITH_RET(data, Uint8, devAddr, UEC_SERVICE_READ_PARCEL_ERROR); in DoOpenDevice()
253 int32_t ret = OpenDevice(busNum, devAddr); in DoOpenDevice()
344 uint8_t devAddr = 0; in DoClaimInterface() local
348 READ_PARCEL_WITH_RET(data, Uint8, devAddr, UEC_SERVICE_READ_PARCEL_ERROR); in DoClaimInterface()
352 … reply, Int32, ClaimInterface(busNum, devAddr, interface, force), UEC_SERVICE_WRITE_PARCEL_ERROR); in DoClaimInterface()
359 uint8_t devAddr = 0; in DoReleaseInterface() local
362 READ_PARCEL_WITH_RET(data, Uint8, devAddr, UEC_SERVICE_READ_PARCEL_ERROR); in DoReleaseInterface()
[all …]
Dusb_srv_proxy.cpp35 int32_t UsbServerProxy::SetDeviceMessage(MessageParcel &data, uint8_t busNum, uint8_t devAddr) in SetDeviceMessage() argument
38 WRITE_PARCEL_WITH_RET(data, Uint8, devAddr, UEC_SERVICE_WRITE_PARCEL_ERROR); in SetDeviceMessage()
296 int32_t UsbServerProxy::OpenDevice(uint8_t busNum, uint8_t devAddr) in OpenDevice() argument
308 int32_t ret = SetDeviceMessage(data, busNum, devAddr); in OpenDevice()
582 int32_t UsbServerProxy::ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface, uint8_t … in ClaimInterface() argument
593 SetDeviceMessage(data, busNum, devAddr); in ClaimInterface()
606 int32_t UsbServerProxy::ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface) in ReleaseInterface() argument
617 SetDeviceMessage(data, busNum, devAddr); in ReleaseInterface()
640 SetDeviceMessage(data, dev.busNum, dev.devAddr); in BulkTransferRead()
671 SetDeviceMessage(data, dev.busNum, dev.devAddr); in BulkTransferWrite()
[all …]
/base/usb/usb_manager/interfaces/innerkits/native/include/
Diusb_srv.h29 virtual int32_t OpenDevice(uint8_t busNum, uint8_t devAddr) = 0;
41 virtual int32_t ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid) = 0;
42 …virtual int32_t ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t force…
49 virtual int32_t SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configId) = 0;
50 virtual int32_t GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configId) = 0;
51 …virtual int32_t SetInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t altInde…
52 …virtual int32_t GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData…
53 virtual int32_t GetFileDescriptor(uint8_t busNum, uint8_t devAddr, int32_t &fd) = 0;
58 …virtual int32_t RequestCancel(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t endpoi…
59 virtual int32_t Close(uint8_t busNum, uint8_t devAddr) = 0;
Dusb_device_pipe.h28 USBDevicePipe(uint8_t busNum, uint8_t devAddr);
38 void SetDevAddr(uint8_t devAddr);
Dusb_device.h32 …uint8_t devAddr, uint8_t busNum, int32_t vendorId, int32_t productId, int32_t klass, int32_t subCl… in UsbDevice() argument
39 this->devAddr_ = devAddr; in UsbDevice()
/base/usb/usb_manager/services/native/include/
Dusb_service.h68 int32_t OpenDevice(uint8_t busNum, uint8_t devAddr) override;
81 …int32_t ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t force) overri…
82 int32_t ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid) override;
89 int32_t SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configIndex) override;
90 int32_t GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configIndex) override;
91 …int32_t SetInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t altIndex) overr…
92 …int32_t GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData) overri…
93 int32_t GetFileDescriptor(uint8_t busNum, uint8_t devAddr, int32_t &fd) override;
98 …int32_t RequestCancel(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t endpointId) ov…
99 int32_t Close(uint8_t busNum, uint8_t devAddr) override;
[all …]
/base/usb/usb_manager/services/zidl/include/
Dusb_server_proxy.h36 int32_t OpenDevice(uint8_t busNum, uint8_t devAddr) override;
48 …int32_t ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t force) overri…
49 int32_t ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid) override;
57 int32_t SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configIndex) override;
58 int32_t GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configIndex) override;
59 …int32_t SetInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t altIndex) overr…
60 …int32_t GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData) overri…
61 int32_t GetFileDescriptor(uint8_t busNum, uint8_t devAddr, int32_t &fd) override;
66 …int32_t RequestCancel(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t endpointId) ov…
67 int32_t Close(uint8_t busNum, uint8_t devAddr) override;
[all …]
Dusb_server_stub.h72 int32_t GetDeviceMessage(MessageParcel &data, uint8_t &busNum, uint8_t &devAddr);
/base/usb/usb_manager/services/native/src/
Dusb_service.cpp268 int32_t UsbService::OpenDevice(uint8_t busNum, uint8_t devAddr) in OpenDevice() argument
270 std::string name = std::to_string(busNum) + "-" + std::to_string(devAddr); in OpenDevice()
276 const UsbDev dev = {busNum, devAddr}; in OpenDevice()
517 int32_t UsbService::ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface, uint8_t forc… in ClaimInterface() argument
519 const UsbDev dev = {busNum, devAddr}; in ClaimInterface()
527 int32_t UsbService::ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface) in ReleaseInterface() argument
529 const UsbDev dev = {busNum, devAddr}; in ReleaseInterface()
588 int32_t UsbService::SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configIndex) in SetActiveConfig() argument
590 const UsbDev dev = {busNum, devAddr}; in SetActiveConfig()
598 int32_t UsbService::GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configIndex) in GetActiveConfig() argument
[all …]
Dusb_service_subscriber.cpp84 int32_t devAddr = info.devNum; in DeviceEvent() local
87 pms->AddDevice(busNum, devAddr); in DeviceEvent()
90 pms->DelDevice(busNum, devAddr); in DeviceEvent()
/base/usb/usb_manager/interfaces/innerkits/native/src/
Dusb_device_pipe.cpp28 USBDevicePipe::USBDevicePipe(uint8_t busNum, uint8_t devAddr) in USBDevicePipe() argument
29 : busNum_(busNum), devAddr_(devAddr) in USBDevicePipe()
78 void USBDevicePipe::SetDevAddr(uint8_t devAddr) in SetDevAddr() argument
80 this->devAddr_ = devAddr; in SetDevAddr()
/base/usb/usb_manager/interfaces/kits/js/napi/src/
Dusb_info.cpp65 int32_t devAddr = 0; in ParseUsbDevicePipe() local
66 NapiUtil::JsObjectToInt(env, obj, "devAddress", devAddr); in ParseUsbDevicePipe()
67 pipe.SetDevAddr(static_cast<uint8_t>(devAddr)); in ParseUsbDevicePipe()
366 int32_t devAddr = 0; in ParseDeviceObj() local
367 NapiUtil::JsObjectToInt(env, deviceObj, "devAddress", devAddr); in ParseDeviceObj()
382 …dev = UsbDevice(name, manufacturerName, productName, version, devAddr, busNum, vendorId, productId… in ParseDeviceObj()