11#include " led_ctrl.h"
22#include " log.h"
3+ #include " low_power.h"
34#include " lte.h"
4- #include " power.h"
55#include " sequans_controller.h"
66
77#include < Arduino.h>
100100#endif
101101
102102// Singleton. Defined for use of the rest of the library.
103- PowerClass Power = PowerClass ::instance();
103+ LowPowerClass LowPower = LowPowerClass ::instance();
104104
105105static volatile bool ring_line_activity = false ;
106106static volatile bool modem_is_in_power_save = false ;
@@ -414,7 +414,7 @@ static void disableLDO(void) {
414414 delay (10 );
415415}
416416
417- void PowerClass ::configurePowerDown (void ) {
417+ void LowPowerClass ::configurePowerDown (void ) {
418418
419419 // We need sequans controller to be initialized first before configuration.
420420 // This is because we need to disable the PSM mode so that the modem don't
@@ -428,7 +428,7 @@ void PowerClass::configurePowerDown(void) {
428428 SequansController.writeCommand (AT_COMMAND_DISABLE_PSM);
429429}
430430
431- void PowerClass ::configurePeriodicPowerSave (
431+ void LowPowerClass ::configurePeriodicPowerSave (
432432 const PowerSaveModePeriodMultiplier power_save_mode_period_multiplier,
433433 const uint8_t power_save_mode_period_value) {
434434
@@ -483,7 +483,7 @@ void PowerClass::configurePeriodicPowerSave(
483483 SequansController.writeCommand (command);
484484}
485485
486- void PowerClass ::powerSave (void ) {
486+ void LowPowerClass ::powerSave (void ) {
487487
488488 const uint8_t cell_led_state = digitalRead (LedCtrl.getLedPin (Led::CELL));
489489 const uint8_t con_led_state = digitalRead (LedCtrl.getLedPin (Led::CON));
@@ -549,7 +549,7 @@ void PowerClass::powerSave(void) {
549549 }
550550}
551551
552- void PowerClass ::powerDown (const uint32_t power_down_time_seconds) {
552+ void LowPowerClass ::powerDown (const uint32_t power_down_time_seconds) {
553553
554554 const unsigned long start_time_ms = millis ();
555555
@@ -586,7 +586,7 @@ void PowerClass::powerDown(const uint32_t power_down_time_seconds) {
586586 while (!Lte.begin ()) {}
587587}
588588
589- float PowerClass ::getSupplyVoltage (void ) {
589+ float LowPowerClass ::getSupplyVoltage (void ) {
590590
591591 if (!digitalRead (VOLTAGE_MEASURE_EN_PIN)) {
592592 pinConfigure (VOLTAGE_MEASURE_EN_PIN, PIN_DIR_OUTPUT);
0 commit comments