mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Add POCSAG processing and display code.
This commit is contained in:
parent
27c7342a48
commit
b398bba1ea
33 changed files with 356 additions and 16 deletions
24
Display.cpp
24
Display.cpp
|
|
@ -298,6 +298,25 @@ void CDisplay::clearNXDN()
|
|||
}
|
||||
}
|
||||
|
||||
void CDisplay::writePOCSAG(uint32_t ric, const std::string& message)
|
||||
{
|
||||
m_timer1.start();
|
||||
m_mode1 = MODE_POCSAG;
|
||||
|
||||
writePOCSAGInt(ric, message);
|
||||
}
|
||||
|
||||
void CDisplay::clearPOCSAG()
|
||||
{
|
||||
if (m_timer1.hasExpired()) {
|
||||
clearPOCSAGInt();
|
||||
m_timer1.stop();
|
||||
m_mode1 = MODE_IDLE;
|
||||
} else {
|
||||
m_mode1 = MODE_POCSAG;
|
||||
}
|
||||
}
|
||||
|
||||
void CDisplay::writeCW()
|
||||
{
|
||||
m_timer1.start();
|
||||
|
|
@ -336,6 +355,11 @@ void CDisplay::clock(unsigned int ms)
|
|||
m_mode1 = MODE_IDLE;
|
||||
m_timer1.stop();
|
||||
break;
|
||||
case MODE_POCSAG:
|
||||
clearPOCSAGInt();
|
||||
m_mode1 = MODE_IDLE;
|
||||
m_timer1.stop();
|
||||
break;
|
||||
case MODE_CW:
|
||||
clearCWInt();
|
||||
m_mode1 = MODE_IDLE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue