diff options
| author | rodion.shyshkin <rodion.shyshkin@globallogic.com> | 2021-03-31 22:54:54 +0300 | 
|---|---|---|
| committer | rodion.shyshkin <rodion.shyshkin@globallogic.com> | 2021-03-31 22:54:54 +0300 | 
| commit | 76df85f676adde6f31c35f7809f9f7794baca2a1 (patch) | |
| tree | 9cab56d25f4d52c734b578fefc2ac493a3d11b16 /src | |
| parent | 2ff46750ec3f1004a5c153944c18dbb081911a03 (diff) | |
| download | libmts-io-76df85f676adde6f31c35f7809f9f7794baca2a1.tar.gz libmts-io-76df85f676adde6f31c35f7809f9f7794baca2a1.tar.bz2 libmts-io-76df85f676adde6f31c35f7809f9f7794baca2a1.zip | |
[GP-1111] mPower R. Apr 2021: +CEMODE shall be set to CEMODE=2 - libmts-io for Telit
Changes after a code review.
Diffstat (limited to 'src')
| -rw-r--r-- | src/MTS_IO_ICellularRadio.cpp | 21 | 
1 files changed, 21 insertions, 0 deletions
| diff --git a/src/MTS_IO_ICellularRadio.cpp b/src/MTS_IO_ICellularRadio.cpp index 0621740..9f63408 100644 --- a/src/MTS_IO_ICellularRadio.cpp +++ b/src/MTS_IO_ICellularRadio.cpp @@ -540,3 +540,24 @@ MTS::IO::ICellularRadio::CODE MTS::IO::ICellularRadio::convertUeModeToString(MTS      return rc;  } +MTS::IO::ICellularRadio::CODE MTS::IO::ICellularRadio::convertStringToUeMode(const std::string &sMode, UE_MODES_OF_OPERATION& mode) { +    using namespace MTS::IO; +    CODE rc; +    if (sMode == "ps_1") { +        mode = ICellularRadio::UE_MODES_OF_OPERATION::PS_MODE1; +        rc = CODE::SUCCESS; +    } else if (sMode == "ps_2") { +        mode = ICellularRadio::UE_MODES_OF_OPERATION::PS_MODE2; +        rc = CODE::SUCCESS; +    } else if (sMode == "csps_1") { +        mode = ICellularRadio::UE_MODES_OF_OPERATION::CS_PS_MODE1; +        rc = CODE::SUCCESS; +    } else if (sMode == "csps_2") { +        mode = ICellularRadio::UE_MODES_OF_OPERATION::CS_PS_MODE2; +        rc = CODE::SUCCESS; +    } else { +        mode = ICellularRadio::UNKNOWN_MODE; +        rc = CODE::FAILURE; +    } +    return rc; +} | 
