Base class for the ublox-xxx-cellular-xxx classes. Cannot be used standalone, only inherited by classes that do properly useful stuff. Or, to put it another way, if you are using any of the ublox-xxx-cellular-xxx classes, you will need this class also.
Dependents: example-ublox-cellular-interface example-ublox-cellular-driver-gen HelloMQTT example-ublox-cellular-interface_r410M ... more
Diff: UbloxCellularBase.h
- Revision:
- 24:e26a6ab0dd75
- Parent:
- 23:eaab8e812a5d
- Child:
- 25:e67d3d9d2e7e
diff -r eaab8e812a5d -r e26a6ab0dd75 UbloxCellularBase.h --- 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.