1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-22 09:31:10 -05:00

M17: fixed clang undefined reference

This commit is contained in:
f4exb 2022-07-24 19:11:44 +02:00
parent c582df6030
commit 220e033f34
3 changed files with 12 additions and 2 deletions

View File

@ -4,6 +4,7 @@ set(modemm17_SOURCES
Correlator.cpp
FreqDevEstimator.cpp
Golay24.cpp
LinkSetupFrame.cpp
M17Demodulator.cpp
M17Modulator.cpp
)

View File

@ -0,0 +1,9 @@
#include "LinkSetupFrame.h"
namespace modemm17
{
const LinkSetupFrame::encoded_call_t LinkSetupFrame::BROADCAST_ADDRESS = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
const LinkSetupFrame::call_t LinkSetupFrame::BROADCAST_CALL = {'B', 'R', 'O', 'A', 'D', 'C', 'A', 'S', 'T', 0};
}

View File

@ -18,8 +18,8 @@ struct LinkSetupFrame
using gnss_t = std::array<uint8_t, 14>;
using frame_t = std::array<uint8_t, 30>;
static constexpr encoded_call_t BROADCAST_ADDRESS = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
static constexpr call_t BROADCAST_CALL = {'B', 'R', 'O', 'A', 'D', 'C', 'A', 'S', 'T', 0};
static const encoded_call_t BROADCAST_ADDRESS;
static const call_t BROADCAST_CALL;
enum TxType { PACKET, STREAM };
enum DataType { DT_RESERVED, DATA, VOICE, MIXED };