mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Embed: (wiki syntax)

« Back to documentation index

DeepSleepLock Class Reference

DeepSleepLock Class Reference
[DeepSleepLock functions]

RAII object for disabling, then restoring the deep sleep mode Usage: More...

#include <DeepSleepLock.h>

Public Member Functions

void lock ()
 Mark the start of a locked deep sleep section.
void unlock ()
 Mark the end of a locked deep sleep section.
void lock ()
 Mark the start of a locked deep sleep section.
void unlock ()
 Mark the end of a locked deep sleep section.

Detailed Description

RAII object for disabling, then restoring the deep sleep mode Usage:

 void f() {
     // some code here
     {
         DeepSleepLock lock;
         // Code in this block will run with the deep sleep mode locked
     }
     // deep sleep mode will be restored to their previous state
 }

Definition at line 47 of file cmsis/BUILD/mbed/platform/DeepSleepLock.h.


Member Function Documentation

void lock ( void   )

Mark the start of a locked deep sleep section.

Definition at line 66 of file cmsis/BUILD/mbed/platform/DeepSleepLock.h.

void lock ( void   )

Mark the start of a locked deep sleep section.

Definition at line 66 of file platform/DeepSleepLock.h.

void unlock ( void   )

Mark the end of a locked deep sleep section.

Definition at line 79 of file platform/DeepSleepLock.h.

void unlock ( void   )

Mark the end of a locked deep sleep section.

Definition at line 79 of file cmsis/BUILD/mbed/platform/DeepSleepLock.h.