Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: UbloxCellularBase.h
- Revision:
- 24:e26a6ab0dd75
- Parent:
- 23:eaab8e812a5d
- Child:
- 25:e67d3d9d2e7e
--- a/UbloxCellularBase.h Fri May 03 13:43:49 2019 +0500
+++ b/UbloxCellularBase.h Tue May 28 15:39:51 2019 +0500
@@ -199,6 +199,21 @@
NOT_USED = -1
} RAT;
+ /** Module functionality modes. Ref to section 5.3.3 of UBX-13002752 for details.
+ */
+ typedef enum {
+ FUNC_MIN = 0,
+ FUNC_FULL = 1,
+ FUNC_AIRPLANE = 4,
+ FUNC_EN_SIM_TLKT_DEDICATED = 6,
+ FUNC_DS_SIM_TLKT = 7,
+ FUNC_EN_SIM_TLKT_RAW = 9,
+ FUNC_RESET = 15,
+ FUNC_RESET_WITH_SIM = 16,
+ FUNC_MIN_WITH_SIM = 19,
+ FUNC_HALT = 127
+ } FunctionalityMode;
+
#ifdef TARGET_UBLOX_C030_R41XM
/** Supported MNO profiles for SARA-R4.
*/
@@ -264,6 +279,18 @@
*/
bool get_modem_rat(int *selected_rat, int *preferred_rat, int *second_preferred_rat);
+ /** Sets the modem to specified functionality mode.
+ *
+ * @return true if successful, otherwise false.
+ */
+ bool set_functionality_mode(FunctionalityMode mode);
+
+ /** Get the modem functionality mode
+ *
+ * @return true if successful, otherwise false.
+ */
+ bool get_functionality_mode(int *mode);
+
/** reboot the modem using AT+CFUN=15. Application should call init() or connect() before making any other API calls.
*
* @return true if successful, otherwise false.