Lines Matching refs:rx_data
125 ssize_t SendData(Id id, const uint8_t* tx_data, size_t tx_length, uint8_t* rx_data,
131 uint8_t* rx_data, size_t rx_length, int attempts,
154 uint8_t rx_data[4]; in InitializeProtocol() local
161 ssize_t rx_bytes = SendData(kIdDeviceQuery, nullptr, 0, rx_data, sizeof(rx_data), in InitializeProtocol()
170 sequence_ = ExtractUint16(rx_data); in InitializeProtocol()
175 rx_bytes = SendData(kIdInitialization, init_data, sizeof(init_data), rx_data, sizeof(rx_data), in InitializeProtocol()
186 uint16_t version = ExtractUint16(rx_data); in InitializeProtocol()
192 uint16_t packet_size = ExtractUint16(rx_data + 2); in InitializeProtocol()
207 ssize_t UdpTransport::SendData(Id id, const uint8_t* tx_data, size_t tx_length, uint8_t* rx_data, in SendData() argument
229 ssize_t bytes = SendSinglePacketHelper(&header, tx_data, packet_data_length, rx_data, in SendData()
237 rx_data += bytes; in SendData()
240 rx_data = nullptr; in SendData()
254 Header* header, const uint8_t* tx_data, size_t tx_length, uint8_t* rx_data, in SendSinglePacketHelper() argument
295 memcpy(rx_data, rx_packet_.data() + kHeaderSize, rx_data_bytes); in SendSinglePacketHelper()
296 rx_data += rx_data_bytes; in SendSinglePacketHelper()