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.
Dependencies: nRF51_Vdd TextLCD BME280
Diff: TYBLE16_os5_BASE/features/cellular/framework/AT/AT_CellularPower.h
- Revision:
- 4:e9dfb4ca4277
diff -r c0010c8ad17f -r e9dfb4ca4277 TYBLE16_os5_BASE/features/cellular/framework/AT/AT_CellularPower.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/TYBLE16_os5_BASE/features/cellular/framework/AT/AT_CellularPower.h Sat Dec 08 02:13:04 2018 +0000
@@ -0,0 +1,60 @@
+/*
+ * Copyright (c) 2017, Arm Limited and affiliates.
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef AT_CELLULAR_POWER_H_
+#define AT_CELLULAR_POWER_H_
+
+#include "CellularPower.h"
+#include "AT_CellularBase.h"
+
+namespace mbed {
+
+/**
+ * Class AT_CellularPower
+ *
+ * Class that provides power handling functions for modem/module.
+ */
+class AT_CellularPower : public CellularPower, public AT_CellularBase {
+public:
+ AT_CellularPower(ATHandler &atHandler);
+ virtual ~AT_CellularPower();
+
+public:
+ virtual nsapi_error_t on();
+
+ virtual nsapi_error_t off();
+
+ virtual nsapi_error_t set_at_mode();
+
+ virtual nsapi_error_t set_power_level(int func_level, int do_reset = 0);
+
+ virtual nsapi_error_t reset();
+
+ virtual nsapi_error_t opt_power_save_mode(int periodic_time, int active_time);
+
+ virtual nsapi_error_t opt_receive_period(int mode, EDRXAccessTechnology act_type, uint8_t edrx_value);
+
+ virtual nsapi_error_t is_device_ready();
+
+ virtual nsapi_error_t set_device_ready_urc_cb(mbed::Callback<void()> callback);
+
+ virtual void remove_device_ready_urc_cb(mbed::Callback<void()> callback);
+};
+
+} // namespace mbed
+
+#endif /* AT_CELLULAR_POWER_H_ */