@ -67,10 +67,11 @@ using namespace modem;
/// <param name="fdmaPreamble">Count of FDMA preambles to transmit before data. (P25/DMR DMO)</param>
/// <param name="fdmaPreamble">Count of FDMA preambles to transmit before data. (P25/DMR DMO)</param>
/// <param name="dmrRxDelay">Compensate for delay in receiver audio chain in ms. Usually DSP based.</param>
/// <param name="dmrRxDelay">Compensate for delay in receiver audio chain in ms. Usually DSP based.</param>
/// <param name="disableOFlowReset">Flag indicating whether the ADC/DAC overflow reset logic is disabled.</param>
/// <param name="disableOFlowReset">Flag indicating whether the ADC/DAC overflow reset logic is disabled.</param>
/// <param name="packetPlayoutTime">Length of time in MS between packets to send to modem.</param>
/// <param name="trace">Flag indicating whether modem DSP trace is enabled.</param>
/// <param name="trace">Flag indicating whether modem DSP trace is enabled.</param>
/// <param name="debug">Flag indicating whether modem DSP debug is enabled.</param>
/// <param name="debug">Flag indicating whether modem DSP debug is enabled.</param>
Modem : : Modem ( const std : : string & port , bool duplex , bool rxInvert , bool txInvert , bool pttInvert , bool dcBlocker ,
Modem : : Modem ( const std : : string & port , bool duplex , bool rxInvert , bool txInvert , bool pttInvert , bool dcBlocker ,
bool cosLockout , uint8_t fdmaPreamble , uint8_t dmrRxDelay , bool disableOFlowReset , bool trace , bool debug ) :
bool cosLockout , uint8_t fdmaPreamble , uint8_t dmrRxDelay , uint8_t packetPlayoutTime , bool disableOFlowReset , bool trace , bool debug ) :
m_port ( port ) ,
m_port ( port ) ,
m_dmrColorCode ( 0U ) ,
m_dmrColorCode ( 0U ) ,
m_duplex ( duplex ) ,
m_duplex ( duplex ) ,
@ -106,7 +107,7 @@ Modem::Modem(const std::string& port, bool duplex, bool rxInvert, bool txInvert,
m_txP25Data ( 1000U , " Modem TX P25 " ) ,
m_txP25Data ( 1000U , " Modem TX P25 " ) ,
m_statusTimer ( 1000U , 0U , 250U ) ,
m_statusTimer ( 1000U , 0U , 250U ) ,
m_inactivityTimer ( 1000U , 4U ) ,
m_inactivityTimer ( 1000U , 4U ) ,
m_playoutTimer ( 1000U , 0U , 10U ) ,
m_playoutTimer ( 1000U , 0U , packetPlayoutTime ) ,
m_dmrSpace1 ( 0U ) ,
m_dmrSpace1 ( 0U ) ,
m_dmrSpace2 ( 0U ) ,
m_dmrSpace2 ( 0U ) ,
m_p25Space ( 0U ) ,
m_p25Space ( 0U ) ,
@ -1030,17 +1031,18 @@ bool Modem::sendCWId(const std::string& callsign)
/// <param name="cosLockout">Flag indicating whether the COS signal should be used to lockout the modem.</param>
/// <param name="cosLockout">Flag indicating whether the COS signal should be used to lockout the modem.</param>
/// <param name="fdmaPreamble">Count of FDMA preambles to transmit before data. (P25/DMR DMO)</param>
/// <param name="fdmaPreamble">Count of FDMA preambles to transmit before data. (P25/DMR DMO)</param>
/// <param name="dmrRxDelay">Compensate for delay in receiver audio chain in ms. Usually DSP based.</param>
/// <param name="dmrRxDelay">Compensate for delay in receiver audio chain in ms. Usually DSP based.</param>
/// <param name="packetPlayoutTime">Length of time in MS between packets to send to modem.</param>
/// <param name="disableOFlowReset">Flag indicating whether the ADC/DAC overflow reset logic is disabled.</param>
/// <param name="disableOFlowReset">Flag indicating whether the ADC/DAC overflow reset logic is disabled.</param>
/// <param name="trace">Flag indicating whether modem DSP trace is enabled.</param>
/// <param name="trace">Flag indicating whether modem DSP trace is enabled.</param>
/// <param name="debug">Flag indicating whether modem DSP debug is enabled.</param>
/// <param name="debug">Flag indicating whether modem DSP debug is enabled.</param>
Modem * Modem : : createModem ( const std : : string & port , bool duplex , bool rxInvert , bool txInvert , bool pttInvert , bool dcBlocker ,
Modem * Modem : : createModem ( const std : : string & port , bool duplex , bool rxInvert , bool txInvert , bool pttInvert , bool dcBlocker ,
bool cosLockout , uint8_t fdmaPreamble , uint8_t dmrRxDelay , bool disableOFlowReset , bool trace , bool debug )
bool cosLockout , uint8_t fdmaPreamble , uint8_t dmrRxDelay , uint8_t packetPlayoutTime , bool disableOFlowReset , bool trace , bool debug )
{
{
if ( port = = NULL_MODEM ) {
if ( port = = NULL_MODEM ) {
return new NullModem ( port , duplex , rxInvert , txInvert , pttInvert , dcBlocker , cosLockout , fdmaPreamble , dmrRxDelay , disableOFlowReset, trace , debug ) ;
return new NullModem ( port , duplex , rxInvert , txInvert , pttInvert , dcBlocker , cosLockout , fdmaPreamble , dmrRxDelay , packetPlayoutTime, disableOFlowReset, trace , debug ) ;
}
}
else {
else {
return new Modem ( port , duplex , rxInvert , txInvert , pttInvert , dcBlocker , cosLockout , fdmaPreamble , dmrRxDelay , disableOFlowReset, trace , debug ) ;
return new Modem ( port , duplex , rxInvert , txInvert , pttInvert , dcBlocker , cosLockout , fdmaPreamble , dmrRxDelay , packetPlayoutTime, disableOFlowReset, trace , debug ) ;
}
}
}
}