Message_request.cpp
Go to the documentation of this file.
1 
48 
49 namespace clearpath
50 {
51 
52  Request::Request(uint16_t type, uint16_t freq) : Message()
53  {
55  utob(getPayloadPointer(), 2, freq);
56  setType(type);
57 
58  makeValid();
59  }
60 
61  Request::Request(const Request &other) : Message(other)
62  {
63  }
64 
65 }; // namespace clearpath
66 
void utob(void *dest, size_t dest_len, uint64_t src)
Definition: Number.cpp:56
void setType(uint16_t type)
Definition: Message.cpp:245
uint8_t * getPayloadPointer(size_t offset=0)
Definition: Message.cpp:181
Request(uint16_t type, uint16_t freq=0)
void setPayloadLength(uint8_t len)
Definition: Message.cpp:256


husky_base
Author(s): Mike Purvis , Paul Bovbel
autogenerated on Fri Oct 2 2020 03:40:07