mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 14:37:02 +00:00
Add the timer class functionality.
This commit is contained in:
parent
db6fde90e0
commit
a9a985182f
6 changed files with 50 additions and 45 deletions
6
IO.cpp
6
IO.cpp
|
|
@ -348,7 +348,6 @@ void CIO::process()
|
|||
}
|
||||
|
||||
if (m_fmEnable) {
|
||||
bool cos = getCOSInt();
|
||||
q15_t FMVals[RX_BLOCK_SIZE];
|
||||
#if defined(USE_DCBLOCKER)
|
||||
for (uint16_t i = 0U; i < RX_BLOCK_SIZE; i++) {
|
||||
|
|
@ -361,7 +360,7 @@ void CIO::process()
|
|||
FMVals[i] = q15_t(__SSAT((res1 >> 15), 16));
|
||||
}
|
||||
#endif
|
||||
fm.samples(cos, FMVals, RX_BLOCK_SIZE);
|
||||
fm.samples(FMVals, RX_BLOCK_SIZE);
|
||||
}
|
||||
} else if (m_modemState == STATE_DSTAR) {
|
||||
if (m_dstarEnable) {
|
||||
|
|
@ -422,7 +421,6 @@ void CIO::process()
|
|||
nxdnRX.samples(NXDNVals, rssi, RX_BLOCK_SIZE);
|
||||
}
|
||||
} else if (m_modemState == STATE_FM) {
|
||||
bool cos = getCOSInt();
|
||||
q15_t FMVals[RX_BLOCK_SIZE];
|
||||
#if defined(USE_DCBLOCKER)
|
||||
for (uint16_t i = 0U; i < RX_BLOCK_SIZE; i++) {
|
||||
|
|
@ -435,7 +433,7 @@ void CIO::process()
|
|||
FMVals[i] = q15_t(__SSAT((res1 >> 15), 16));
|
||||
}
|
||||
#endif
|
||||
fm.samples(cos, FMVals, RX_BLOCK_SIZE);
|
||||
fm.samples(FMVals, RX_BLOCK_SIZE);
|
||||
} else if (m_modemState == STATE_DSTARCAL) {
|
||||
q15_t GMSKVals[RX_BLOCK_SIZE];
|
||||
::arm_fir_fast_q15(&m_gaussianFilter, samples, GMSKVals, RX_BLOCK_SIZE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue