Enter Low Power mode not to use sd_power_system_off() subroutine
Dependents: BLE_EddystoneBeacon_w_ACC_TY51822 BLE_LoopbackUART_low_pwr_w_RTC1 BLE_Paired_Server BLE_Paired_Client
LowPwr Class Reference
Set low power condition only for nRF51822 BLE chip. More...
#include <nRF51_lowpwr.h>
Public Member Functions | |
LowPwr (const nRF51_LOWPWR_TypeDef *param) | |
Configure data pin. |
Detailed Description
Set low power condition only for nRF51822 BLE chip.
#include "mbed.h" #include "BLE.h" #include "nRF51_lowpwr.h" const nRF51_LOWPWR_TypeDef lowpwr_table = { false, // VCOM false, // UART true, // I2C false, // SPI false, // SPI Slave false, // PWM false // ADC }; int main() { LowPwr set_lowpwr(&lowpwr_table); while(1) { ble.waitForEvent(); } }
Definition at line 62 of file nRF51_lowpwr.h.
Constructor & Destructor Documentation
LowPwr | ( | const nRF51_LOWPWR_TypeDef * | param ) |
Configure data pin.
- Parameters:
-
parameters table for Enable/Disable peripheral functions
Definition at line 22 of file nRF51_lowpwr.cpp.
Generated on Mon Aug 22 2022 20:34:32 by 1.7.2