ref #77 : add MT protocols to ggwave.js + new API for setting freqStart

This commit is contained in:
Georgi Gerganov
2022-09-10 17:57:37 +03:00
parent d2f79fc845
commit d02960259b
7 changed files with 46 additions and 3 deletions

View File

@@ -204,6 +204,20 @@ void ggwave_txToggleProtocol(
GGWave::Protocols::tx().toggle(protocolId, state != 0);
}
extern "C"
void ggwave_rxProtocolSetFreqStart(
ggwave_ProtocolId protocolId,
int freqStart) {
GGWave::Protocols::rx()[protocolId].freqStart = freqStart;
}
extern "C"
void ggwave_txProtocolSetFreqStart(
ggwave_ProtocolId protocolId,
int freqStart) {
GGWave::Protocols::tx()[protocolId].freqStart = freqStart;
}
//
// C++ implementation
//