Goby3  3.1.5a
2024.05.23
queue_constants.h
Go to the documentation of this file.
1 // Copyright 2009-2021:
2 // GobySoft, LLC (2013-)
3 // Massachusetts Institute of Technology (2007-2014)
4 // Community contributors (see AUTHORS file)
5 // File authors:
6 // Toby Schneider <toby@gobysoft.org>
7 //
8 //
9 // This file is part of the Goby Underwater Autonomy Project Libraries
10 // ("The Goby Libraries").
11 //
12 // The Goby Libraries are free software: you can redistribute them and/or modify
13 // them under the terms of the GNU Lesser General Public License as published by
14 // the Free Software Foundation, either version 2.1 of the License, or
15 // (at your option) any later version.
16 //
17 // The Goby Libraries are distributed in the hope that they will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU Lesser General Public License for more details.
21 //
22 // You should have received a copy of the GNU Lesser General Public License
23 // along with Goby. If not, see <http://www.gnu.org/licenses/>.
24 
25 #ifndef GOBY_ACOMMS_QUEUE_QUEUE_CONSTANTS_H
26 #define GOBY_ACOMMS_QUEUE_QUEUE_CONSTANTS_H
27 
29 #include "goby/time.h"
30 
31 namespace goby
32 {
33 namespace acomms
34 {
35 const unsigned MULTIMESSAGE_MASK = 1 << 7;
36 const unsigned BROADCAST_MASK = 1 << 6;
37 const unsigned VAR_ID_MASK = 0xFF ^ MULTIMESSAGE_MASK ^ BROADCAST_MASK;
38 
39 // number of bytes used to store the size of the following user frame
40 const unsigned USER_FRAME_NEXT_SIZE_BYTES = 1;
41 
42 // how old an on_demand message can be before re-encoding
43 const boost::posix_time::time_duration ON_DEMAND_SKEW = boost::posix_time::seconds(1);
44 } // namespace acomms
45 } // namespace goby
46 #endif
goby
The global namespace for the Goby project.
Definition: acomms_constants.h:33
time.h
goby::acomms::USER_FRAME_NEXT_SIZE_BYTES
const unsigned USER_FRAME_NEXT_SIZE_BYTES
Definition: queue_constants.h:40
goby::acomms::MULTIMESSAGE_MASK
const unsigned MULTIMESSAGE_MASK
Definition: queue_constants.h:35
goby::acomms::ON_DEMAND_SKEW
const boost::posix_time::time_duration ON_DEMAND_SKEW
Definition: queue_constants.h:43
goby::acomms::BROADCAST_MASK
const unsigned BROADCAST_MASK
Definition: queue_constants.h:36
goby::acomms::VAR_ID_MASK
const unsigned VAR_ID_MASK
Definition: queue_constants.h:37
acomms_constants.h