Searched refs:USB_PACKET_FLAG (Results 1 – 8 of 8) sorted by relevance
17 import { PACKET_FLAG, USB_PACKET_FLAG } from '../common/ConstantType';122 [USB_PACKET_FLAG.charCodeAt(0), USB_PACKET_FLAG.charCodeAt(1)],
130 if buf[..config::USB_PACKET_FLAG.len()] != config::USB_PACKET_FLAG[..] { in check_protocol_head()163 flag: [config::USB_PACKET_FLAG[0], config::USB_PACKET_FLAG[1]], in build_header()
18 export const USB_PACKET_FLAG: string = 'UB'; constant
71 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()
44 const string USB_PACKET_FLAG = "UB"; // must 2bytes variable
45 const std::string USB_PACKET_FLAG = "UB"; // must 2bytes variable
53 head.flag[i] = USB_PACKET_FLAG.data()[i]; in BuildPacketHeader()
293 pub const USB_PACKET_FLAG: &[u8] = "UB".as_bytes(); constant