Home
last modified time | relevance | path

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

/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.cpp28 int32_t UsbServerProxy::SetDeviceMessage(MessageParcel &data, uint8_t busNum, uint8_t devAddr) in SetDeviceMessage() argument
31 WRITE_PARCEL_WITH_RET(data, Uint8, devAddr, UEC_SERVICE_WRITE_PARCEL_ERROR); in SetDeviceMessage()
274 int32_t UsbServerProxy::OpenDevice(uint8_t busNum, uint8_t devAddr) in OpenDevice() argument
286 int32_t ret = SetDeviceMessage(data, busNum, devAddr); in OpenDevice()
552 int32_t UsbServerProxy::ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface, uint8_t … in ClaimInterface() argument
563 SetDeviceMessage(data, busNum, devAddr); in ClaimInterface()
575 int32_t UsbServerProxy::ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface) in ReleaseInterface() argument
586 SetDeviceMessage(data, busNum, devAddr); in ReleaseInterface()
608 SetDeviceMessage(data, dev.busNum, dev.devAddr); in BulkTransferRead()
638 SetDeviceMessage(data, dev.busNum, dev.devAddr); in BulkTransferWrite()
[all …]
/base/usb/usb_manager/services/native/src/
Dusb_service.cpp231 int32_t UsbService::OpenDevice(uint8_t busNum, uint8_t devAddr) in OpenDevice() argument
233 std::string name = std::to_string(busNum) + "-" + std::to_string(devAddr); in OpenDevice()
239 const UsbDev dev = {busNum, devAddr}; in OpenDevice()
448 int32_t UsbService::ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface, uint8_t forc… in ClaimInterface() argument
450 const UsbDev dev = {busNum, devAddr}; in ClaimInterface()
458 int32_t UsbService::ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interface) in ReleaseInterface() argument
460 const UsbDev dev = {busNum, devAddr}; in ReleaseInterface()
519 int32_t UsbService::SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configIndex) in SetActiveConfig() argument
521 const UsbDev dev = {busNum, devAddr}; in SetActiveConfig()
529 int32_t UsbService::GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configIndex) in GetActiveConfig() argument
[all …]
Dusb_service_subscriber.cpp83 int32_t devAddr = info.devNum; in DeviceEvent() local
86 pms->AddDevice(busNum, devAddr); in DeviceEvent()
89 pms->DelDevice(busNum, devAddr); in DeviceEvent()
/base/usb/usb_manager/services/native/include/
Dusb_service.h64 int32_t OpenDevice(uint8_t busNum, uint8_t devAddr) override;
77 …int32_t ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t force) overri…
78 int32_t ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid) override;
85 int32_t SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configIndex) override;
86 int32_t GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configIndex) override;
87 …int32_t SetInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t altIndex) overr…
88 …int32_t GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData) overri…
89 int32_t GetFileDescriptor(uint8_t busNum, uint8_t devAddr, int32_t &fd) override;
94 …int32_t RequestCancel(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t endpointId) ov…
95 int32_t Close(uint8_t busNum, uint8_t devAddr) override;
[all …]
/base/usb/usb_manager/services/zidl/include/
Dusb_server_proxy.h35 int32_t OpenDevice(uint8_t busNum, uint8_t devAddr) override;
47 …int32_t ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t force) overri…
48 int32_t ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid) override;
56 int32_t SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configIndex) override;
57 int32_t GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configIndex) override;
58 …int32_t SetInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t altIndex) overr…
59 …int32_t GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData) overri…
60 int32_t GetFileDescriptor(uint8_t busNum, uint8_t devAddr, int32_t &fd) override;
65 …int32_t RequestCancel(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t endpointId) ov…
66 int32_t Close(uint8_t busNum, uint8_t devAddr) override;
[all …]
Dusb_server_stub.h71 int32_t GetDeviceMessage(MessageParcel &data, uint8_t &busNum, uint8_t &devAddr);
/base/usb/usb_manager/interfaces/innerkits/native/include/
Diusb_srv.h65 virtual int32_t OpenDevice(uint8_t busNum, uint8_t devAddr) = 0;
77 virtual int32_t ReleaseInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid) = 0;
78 …virtual int32_t ClaimInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t force…
85 virtual int32_t SetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t configId) = 0;
86 virtual int32_t GetActiveConfig(uint8_t busNum, uint8_t devAddr, uint8_t &configId) = 0;
87 …virtual int32_t SetInterface(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t altInde…
88 …virtual int32_t GetRawDescriptor(uint8_t busNum, uint8_t devAddr, std::vector<uint8_t> &bufferData…
89 virtual int32_t GetFileDescriptor(uint8_t busNum, uint8_t devAddr, int32_t &fd) = 0;
94 …virtual int32_t RequestCancel(uint8_t busNum, uint8_t devAddr, uint8_t interfaceid, uint8_t endpoi…
95 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/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()