mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 22:45:31 +00:00
Also set the OVCM bit in the two supported CSBKs: "Unit to Unit Voice Service Request CSBK" and "Unit to Unit Voice Service Answer Response CSBK"
This commit is contained in:
parent
73bf04ad4b
commit
1993262c52
3 changed files with 35 additions and 0 deletions
25
DMRCSBK.cpp
25
DMRCSBK.cpp
|
|
@ -149,6 +149,31 @@ unsigned char CDMRCSBK::getFID() const
|
|||
return m_FID;
|
||||
}
|
||||
|
||||
bool CDMRCSBK::getOVCM() const
|
||||
{
|
||||
bool bOVCM = false;
|
||||
// Service options informations are only available in
|
||||
// "Unit to Unit Voice Service Request CSBK" and
|
||||
// "Unit to Unit Voice Service Answer Response CSBK"
|
||||
if (m_CSBKO == CSBKO_UUVREQ || m_CSBKO == CSBKO_UUANSRSP)
|
||||
{
|
||||
bOVCM = (m_data[2U] & 0x04U) == 0x04U;
|
||||
}
|
||||
return bOVCM;
|
||||
}
|
||||
|
||||
void CDMRCSBK::setOVCM(bool ovcm)
|
||||
{
|
||||
// Set OVCM only in CSBKs having the service options information
|
||||
if (m_CSBKO == CSBKO_UUVREQ || m_CSBKO == CSBKO_UUANSRSP)
|
||||
{
|
||||
if (ovcm)
|
||||
m_data[2U] |= 0x04U;
|
||||
else
|
||||
m_data[2U] &= 0xFBU;
|
||||
}
|
||||
}
|
||||
|
||||
bool CDMRCSBK::getGI() const
|
||||
{
|
||||
return m_GI;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue