mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-03-06 23:05:53 +08:00
ref #77 : add MT protocols to ggwave.js + new API for setting freqStart
This commit is contained in:
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user