Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions
DeepSleepLock Class Reference

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. More...
 
void unlock ()
 Mark the end of a locked deep sleep section. More...
 

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 DeepSleepLock.h.

Member Function Documentation

void lock ( void  )

Mark the start of a locked deep sleep section.

Definition at line 66 of file DeepSleepLock.h.

void unlock ( void  )

Mark the end of a locked deep sleep section.

Definition at line 79 of file DeepSleepLock.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.