pf_r2000_packet_a.cpp
Go to the documentation of this file.
3 
5 {
6  reader.read(*this);
7 }
8 
10 {
11  c[0] = 0x41;
12  c[1] = 0x00;
13 }
14 
15 void PFR2000Packet_A::read_data(uint8_t* buf, size_t num)
16 {
17  Data* data = reinterpret_cast<Data*>(buf);
18  distance.resize(num);
19  for (int i = 0; i < num; i++)
20  {
21  distance[i] = data[i].distance;
22  }
23 }
virtual void get_type(char *c)
virtual void read(std::shared_ptr< PFPacket > packet)
virtual void read_with(PFPacketReader &reader)
virtual void read_data(uint8_t *buf, size_t num)
std::vector< uint32_t > distance
Definition: pf_packet.h:13


pf_driver
Author(s): Harsh Deshpande
autogenerated on Fri Feb 24 2023 03:59:35