diff options
Diffstat (limited to 'include/mts/MTS_IO_ICellularRadio.h')
-rw-r--r-- | include/mts/MTS_IO_ICellularRadio.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/mts/MTS_IO_ICellularRadio.h b/include/mts/MTS_IO_ICellularRadio.h index e2bf652..57d6f53 100644 --- a/include/mts/MTS_IO_ICellularRadio.h +++ b/include/mts/MTS_IO_ICellularRadio.h @@ -60,12 +60,12 @@ namespace MTS { NOT_INSERTED }; - enum RADIO_NETWORK_MODE : uint8_t { - RADIO_NETWORK_MODE_UNKNOWN = 0, - RADIO_NETWORK_MODE_AUTO, - RADIO_NETWORK_MODE_GSM_ONLY, - RADIO_NETWORK_MODE_UMTS_ONLY, - RADIO_NETWORK_MODE_LTE_ONLY + enum CELLULAR_MODES : uint8_t { + CELLULAR_MODE_NA = 0, // NOT AVAILABLE + CELLULAR_MODE_2G = 1 << 0, // GSM + CELLULAR_MODE_3G = 1 << 1, // WCDMA + CELLULAR_MODE_4G = 1 << 2, // LTE + CELLULAR_MODE_5G = 1 << 3 // 5G }; static CODE convertModelToType(const std::string& sModel, std::string& sType); @@ -220,6 +220,10 @@ namespace MTS { virtual CODE getImsi(std::string& sImsi) = 0; virtual CODE getSimStatus(std::string& sSimStatus) = 0; + virtual CODE getSupportedCellularModes(CELLULAR_MODES &networks) = 0; + virtual CODE getCellularMode(CELLULAR_MODES &networks) = 0; + virtual CODE setCellularMode(CELLULAR_MODES networks) = 0; + /** * @brief getSimStatusSummary - get summary on the SIM card status * (if there is a SIM card inserted, is it locked, etc). @@ -281,8 +285,6 @@ namespace MTS { * or on any other error). */ virtual CODE unlockSimCard(const Json::Value& jArgs) = 0; - virtual CODE getRadioNetworkMode(RADIO_NETWORK_MODE &mode) = 0; - virtual CODE setRadioNetworkMode(RADIO_NETWORK_MODE mode) = 0; //! Gather details of the radio's Mobile IP Profile /*! |