Home
last modified time | relevance | path

Searched refs:USB_PACKET_FLAG (Results 1 - 6 of 6) sorted by relevance

/developtools/hdc/hdc_rust/src/cffi/
H A Dusb_types.h43 const std::string USB_PACKET_FLAG = "UB"; // must 2bytes variable
/developtools/hdc/hdc_rust/src/transfer/
H A Dusb.rs163 if buf[..config::USB_PACKET_FLAG.len()] != config::USB_PACKET_FLAG[..] { in check_protocol_head()
166 format!("USB_PACKET_FLAG incorrect, content: {:#?}", buf), in check_protocol_head()
219 flag: [config::USB_PACKET_FLAG[0], config::USB_PACKET_FLAG[1]], in build_header()
/developtools/hdc/src/common/
H A Dusb.cpp71 head.flag[i] = USB_PACKET_FLAG.data()[i]; in BuildPacketHeader()
118 if (memcmp(usbPayloadHeader->flag, USB_PACKET_FLAG.c_str(), USB_PACKET_FLAG.size())) { in IsUsbPacketHeader()
H A Dusb.h45 const string USB_PACKET_FLAG = "UB"; // must 2bytes member in Hdc::HdcUSBBase
/developtools/hdc/hdc_rust/src/host_transfer/
H A Dhost_usb.rs164 if buf[..config::USB_PACKET_FLAG.len()] != config::USB_PACKET_FLAG[..] { in check_protocol_head()
167 format!("USB_PACKET_FLAG incorrect, content: {:#?}", buf), in check_protocol_head()
198 flag: [config::USB_PACKET_FLAG[0], config::USB_PACKET_FLAG[1]], in build_header()
/developtools/hdc/hdc_rust/src/
H A Dconfig.rs313 pub const USB_PACKET_FLAG: &[u8] = "UB".as_bytes(); consts

Completed in 3 milliseconds