Goby v2
acomms_constants.h
1 // Copyright 2009-2018 Toby Schneider (http://gobysoft.org/index.wt/people/toby)
2 // GobySoft, LLC (2013-)
3 // Massachusetts Institute of Technology (2007-2014)
4 // Community contributors (see AUTHORS file)
5 //
6 //
7 // This file is part of the Goby Underwater Autonomy Project Libraries
8 // ("The Goby Libraries").
9 //
10 // The Goby Libraries are free software: you can redistribute them and/or modify
11 // them under the terms of the GNU Lesser General Public License as published by
12 // the Free Software Foundation, either version 2.1 of the License, or
13 // (at your option) any later version.
14 //
15 // The Goby Libraries are distributed in the hope that they will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public License
21 // along with Goby. If not, see <http://www.gnu.org/licenses/>.
22 
23 #ifndef AcommsConstants20091122H
24 #define AcommsConstants20091122H
25 
26 #include <bitset>
27 #include <limits>
28 #include <string>
29 
30 namespace goby
31 {
32 namespace acomms
33 {
34 const unsigned BITS_IN_BYTE = 8;
35 // one hex char is a nibble (4 bits), two nibbles per byte
36 const unsigned NIBS_IN_BYTE = 2;
37 
39 const int BROADCAST_ID = 0;
41 const int QUERY_DESTINATION_ID = -1;
42 
43 const int QUERY_SOURCE_ID = -1;
44 
45 const unsigned char DCCL_CCL_HEADER = 32;
46 
47 //const double NaN = std::numeric_limits<double>::quiet_NaN();
48 
49 } // namespace acomms
50 } // namespace goby
51 #endif
const int BROADCAST_ID
special modem id for the broadcast destination - no one is assigned this address. Analogous to 192...
The global namespace for the Goby project.
const int QUERY_DESTINATION_ID
special modem id used internally to goby-acomms for indicating that the MAC layer (amac) is agnostic ...