|
|
|
|
@ -310,6 +310,7 @@ uint8_t CIO::setFreq(uint32_t frequency_rx, uint32_t frequency_tx, uint8_t rf_po
|
|
|
|
|
// Configure power level
|
|
|
|
|
setPower(rf_power);
|
|
|
|
|
|
|
|
|
|
#if !defined(DISABLE_FREQ_CHECK)
|
|
|
|
|
// Check frequency ranges
|
|
|
|
|
if( !( ((frequency_rx >= VHF1_MIN)&&(frequency_rx < VHF1_MAX)) || ((frequency_tx >= VHF1_MIN)&&(frequency_tx < VHF1_MAX)) || \
|
|
|
|
|
((frequency_rx >= UHF1_MIN)&&(frequency_rx < UHF1_MAX)) || ((frequency_tx >= UHF1_MIN)&&(frequency_tx < UHF1_MAX)) || \
|
|
|
|
|
@ -322,7 +323,9 @@ uint8_t CIO::setFreq(uint32_t frequency_rx, uint32_t frequency_tx, uint8_t rf_po
|
|
|
|
|
((pocsag_freq_tx >= VHF2_MIN)&&(pocsag_freq_tx < VHF2_MAX)) || \
|
|
|
|
|
((pocsag_freq_tx >= UHF2_MIN)&&(pocsag_freq_tx < UHF2_MAX)) ) )
|
|
|
|
|
return 4U;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if !defined(DISABLE_FREQ_BAN)
|
|
|
|
|
// Check banned frequency ranges
|
|
|
|
|
if( ((frequency_rx >= BAN1_MIN)&&(frequency_rx <= BAN1_MAX)) || ((frequency_tx >= BAN1_MIN)&&(frequency_tx <= BAN1_MAX)) || \
|
|
|
|
|
((frequency_rx >= BAN2_MIN)&&(frequency_rx <= BAN2_MAX)) || ((frequency_tx >= BAN2_MIN)&&(frequency_tx <= BAN2_MAX)) )
|
|
|
|
|
@ -331,6 +334,7 @@ uint8_t CIO::setFreq(uint32_t frequency_rx, uint32_t frequency_tx, uint8_t rf_po
|
|
|
|
|
if( ((pocsag_freq_tx >= BAN1_MIN)&&(pocsag_freq_tx <= BAN1_MAX)) || \
|
|
|
|
|
((pocsag_freq_tx >= BAN2_MIN)&&(pocsag_freq_tx <= BAN2_MAX)) )
|
|
|
|
|
return 4U;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Configure frequency
|
|
|
|
|
m_frequency_rx = frequency_rx;
|
|
|
|
|
|