10#include <cs_GpRegRetConfig.h>
Class to write and read the GPREGRET.
Definition: cs_GpRegRet.h:21
static void clearCounter()
Clear counter.
static void setCounter(uint32_t value)
Set counter to a given value.
static void setFlag(GpRegRetFlag flag)
Set a flag.
static void clearFlag(GpRegRetFlag flag)
Clear a flag.
static void clearFlags()
Clear all flags.
static void clearAll()
Clear all GPREGRET bits.
GpRegRetFlag
Definition: cs_GpRegRet.h:23
@ FLAG_BROWNOUT
Definition: cs_GpRegRet.h:24
@ FLAG_DFU
Definition: cs_GpRegRet.h:25
@ FLAG_STORAGE_RECOVERED
Definition: cs_GpRegRet.h:26
static bool isFlagSet(GpRegRetFlag flag)
Returns true when flag is set.
static uint32_t getCounter()
Get the current counter value.
GpRegRetId
Definition: cs_GpRegRet.h:29
@ GPREGRET
Definition: cs_GpRegRet.h:29
@ GPREGRET2
Definition: cs_GpRegRet.h:29
static void printRegRet()
static uint32_t getValue(GpRegRetId registerId=GpRegRetId::GPREGRET)
Get the GPREGRET value.