drx
Diff: UbloxCellularBase.h
- Revision:
- 27:bea0391bb075
- Parent:
- 26:7a05f60319bc
diff -r 7a05f60319bc -r bea0391bb075 UbloxCellularBase.h --- a/UbloxCellularBase.h Fri Jul 26 15:32:42 2019 +0500 +++ b/UbloxCellularBase.h Tue Jul 30 16:04:29 2019 +0500 @@ -454,10 +454,9 @@ * * @remark See 3GPP TS 27.007 eDRX for details. * - * @return true on success - * false on failure + * @return uint32_t */ - bool get_receive_period(); + uint32_t get_receive_period(); #endif protected: @@ -709,6 +708,16 @@ * @param bit_cnt defines how many bits are filled to buffer started from lsb */ void uint_to_binary_str(uint32_t num, char* str, int str_size, int bit_cnt); + + /** Converts the given binary string to uint. + * For example binary_str_to_uint("0000001001", 10) would return 9 + * + * @param binary_string binary string from where chars are converted to uint + * @param binary_string_length length of the param binary_string + * @return uint represented by the binary string + */ + uint32_t binary_str_to_uint(const char *binary_string, int binary_string_length); + #endif private: @@ -731,13 +740,15 @@ #ifdef TARGET_UBLOX_C030_R412M void UUPSMR_URC(); bool _psm_status; - bool _edrx_configured; void *_cb_param_psm_going_in; Callback<void(void*)> _func_psm_going_in; /**< Callback. */ void *_cb_param_psm_coming_out; Callback<void(void*)> _func_psm_coming_out; /**< Callback. */ void set_modem_psm_state(int state); #endif +#ifdef TARGET_UBLOX_C030_R41XM + bool _edrx_configured; +#endif }; #endif // _UBLOX_CELLULAR_BASE_