Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
Class to write and read the GPREGRET. More...
#include <cs_GpRegRet.h>
Public Types | |
enum | GpRegRetFlag { FLAG_BROWNOUT = CS_GPREGRET_FLAG_BROWNOUT , FLAG_DFU = CS_GPREGRET_FLAG_DFU_RESET , FLAG_STORAGE_RECOVERED = CS_GPREGRET_FLAG_STORAGE_RECOVERED } |
enum | GpRegRetId { GPREGRET = 0 , GPREGRET2 = 1 } |
Static Public Member Functions | |
static uint32_t | getValue (GpRegRetId registerId=GpRegRetId::GPREGRET) |
Get the GPREGRET value. More... | |
static void | clearAll () |
Clear all GPREGRET bits. More... | |
static void | clearCounter () |
Clear counter. More... | |
static uint32_t | getCounter () |
Get the current counter value. More... | |
static void | setCounter (uint32_t value) |
Set counter to a given value. More... | |
static void | clearFlags () |
Clear all flags. More... | |
static void | setFlag (GpRegRetFlag flag) |
Set a flag. More... | |
static void | clearFlag (GpRegRetFlag flag) |
Clear a flag. More... | |
static bool | isFlagSet (GpRegRetFlag flag) |
Returns true when flag is set. More... | |
Static Private Member Functions | |
static void | printRegRet () |
Class to write and read the GPREGRET.
Only to be used when SoftDevice is enabled.
See cs_GpRegRetConfig.h for more info.
enum GpRegRet::GpRegRetId |
|
static |
Clear all GPREGRET bits.
|
static |
Clear counter.
|
static |
Clear a flag.
|
static |
Clear all flags.
|
static |
Get the current counter value.
|
static |
Get the GPREGRET value.
[in] | registerId |
|
static |
Returns true when flag is set.
|
staticprivate |
|
static |
Set counter to a given value.
|
static |
Set a flag.