package
0.0.0-20211205205814-168ccc21e67c
Repository: https://github.com/ziutek/emgo.git
Documentation: pkg.go.dev
# Functions
ClearRAMPOWER sets off power configuration of RAM block n according to mask (nRF52).
ClearRESETREAS clears reset reason bits specified by mask.
GPREGRET returns pointer to n-th general purpose retention register.
LoadDCDCEN reports wheter the DC/DC converter is enabled.
LoadPOFCON returns power failure comparator configuration.
LoadRAMON returns configuration of four RAM blocks.
LoadRAMPOWER returns power configuration of RAM block n (nRF52).
LoadRAMSTATUS returns bitfield that lists RAM blocks that are powered up.
LoadRESET reports wheter pin reset is enabled in debug mode (nRF51).
LoadRESETREAS returns reset reason bits.
SetRAMPOWER sets on power configuration of RAM block n according to mask (nRF52).
SetSYSTEMOFF sets system into OFF state.
StoreDCDCEN enables/disables DC/DC converter.
StorePOFCON sets power failure comparator configuration.
StoreRAMON sets configuration of four RAM blocks.
LoadRAMPOWER power configuration of RAM block n (nRF52).
StoreRESET enables/disables pin reset in debug mode (nRF51).
# Constants
Enable constant latency mode.
Wake up from OFF mode by debug interface.
Reset from watchdog.
Reset from CPU lock-up.
Enable low power mode (variable latency).
Wake up from OFF mode by LPCOMP ANADETECT.
Wake up from OFF mode by NFC.
Wake up from OFF mode by GPIO DETECT.
Set if power failure comparoator is enabled.
Power failure warning.
RAM block 0.
RAM block 1.
RAM block 2.
RAM block 3.
Reset from pin-reset.
Keep RAM section S0 on in system on mode.
Keep retention of S0 when RAM is off.
Keep RAM section S1 on in system on mode.
Keep retention of S1 when RAM is off.
CPU entered WFI/WFE sleep (nRF52).
CPU exited WFI/WFE sleep (nRF52).
Reset from AIRCR.SYSRESETREQ.
Power failure comparator threshold mask.
Threshold: 1.7 V (nRF52).
Threshold: 1.8 V (nRF52).
Threshold: 1.9 V (nRF52).
Threshold: 2.1 V (nrF51).
Threshold: 2.3 V (nrF51).
Threshold: 2.5 V (nrF51).
Threshold: 2.5 V (nrF51).
Threshold: 2.0 V (nRF52).
Threshold: 2.1 V (nRF52).
Threshold: 2.2 V (nRF52).
Threshold: 2.3 V (nRF52).
Threshold: 2.4 V (nRF52).
Threshold: 2.5 V (nRF52).
Threshold: 2.6 V (nRF52).
Threshold: 2.7 V (nRF52).
Threshold: 2.8 V (nRF52).