Vanetza
 
Loading...
Searching...
No Matches
location_service_header.hpp
1#ifndef LOCATION_SERVICE_HEADER_HPP_0BWHQP7J
2#define LOCATION_SERVICE_HEADER_HPP_0BWHQP7J
3
4#include <vanetza/geonet/address.hpp>
5#include <vanetza/geonet/position_vector.hpp>
6#include <vanetza/geonet/sequence_number.hpp>
7
8namespace vanetza
9{
10namespace geonet
11{
12
14{
15 static constexpr std::size_t length_bytes = 4 +
16 LongPositionVector::length_bytes +
17 Address::length_bytes;
18
19 SequenceNumber sequence_number;
20 uint16_t reserved;
21 LongPositionVector source_position;
22 Address request_addr;
23};
24
26{
27 static constexpr std::size_t length_bytes = 4 +
28 LongPositionVector::length_bytes +
29 ShortPositionVector::length_bytes;
30
31 SequenceNumber sequence_number;
32 uint16_t reserved;
33 LongPositionVector source_position;
34 ShortPositionVector destination_position;
35};
36
37
38} // namespace geonet
39} // namespace vanetza
40
41#endif /* LOCATION_SERVICE_HEADER_HPP_0BWHQP7J */
42