nrfcxx  0.1.0
C++-17 Framework for Nordic nRF5 Devices
Data Fields
nrfcxx::systemState::scoped_sleeper Class Reference

RAII instance that configures the operational mode to enter OM_SLEEP when constructed, and to leave OM_SLEEP when destructed. More...

#include <nrfcxx/core.hpp>

Data Fields

const bool track_om
 true iff time-in-mode is being tracked by this instance.
 

Detailed Description

RAII instance that configures the operational mode to enter OM_SLEEP when constructed, and to leave OM_SLEEP when destructed.

This is used in WFE() and can be used when the operational implementation of sleeping is not __WFE(), e.g. when it's sd_app_evt_wait().

See also
make_scoped_sleeper()

The documentation for this class was generated from the following file: