Struct vreg_and_chip_reset#
Defined in File vreg_and_chip_reset.h
Struct Documentation#
-
struct vreg_and_chip_reset#
control and status for on-chip voltage regulator and chip level reset subsystem
Public Functions
-
inline bool get_VREG_EN() volatile#
Get VREG’s EN bit.
enable
0=not enabled, 1=enabled
-
inline void set_VREG_EN() volatile#
Set VREG’s EN bit.
enable
0=not enabled, 1=enabled
-
inline void clear_VREG_EN() volatile#
Clear VREG’s EN bit.
enable
0=not enabled, 1=enabled
-
inline void toggle_VREG_EN() volatile#
Toggle VREG’s EN bit.
enable
0=not enabled, 1=enabled
-
inline bool get_VREG_HIZ() volatile#
Get VREG’s HIZ bit.
high impedance mode select
0=not in high impedance mode, 1=in high impedance mode
-
inline void set_VREG_HIZ() volatile#
Set VREG’s HIZ bit.
high impedance mode select
0=not in high impedance mode, 1=in high impedance mode
-
inline void clear_VREG_HIZ() volatile#
Clear VREG’s HIZ bit.
high impedance mode select
0=not in high impedance mode, 1=in high impedance mode
-
inline void toggle_VREG_HIZ() volatile#
Toggle VREG’s HIZ bit.
high impedance mode select
0=not in high impedance mode, 1=in high impedance mode
-
inline uint8_t get_VREG_VSEL() volatile#
Get VREG’s VSEL field.
output voltage select
0000 to 0101 - 0.80V
0110 - 0.85V
0111 - 0.90V
1000 - 0.95V
1001 - 1.00V
1010 - 1.05V
1011 - 1.10V (default)
1100 - 1.15V
1101 - 1.20V
1110 - 1.25V
1111 - 1.30V
-
inline void set_VREG_VSEL(uint8_t value) volatile#
Set VREG’s VSEL field.
output voltage select
0000 to 0101 - 0.80V
0110 - 0.85V
0111 - 0.90V
1000 - 0.95V
1001 - 1.00V
1010 - 1.05V
1011 - 1.10V (default)
1100 - 1.15V
1101 - 1.20V
1110 - 1.25V
1111 - 1.30V
-
inline bool get_VREG_ROK() volatile#
Get VREG’s ROK bit.
regulation status
0=not in regulation, 1=in regulation
-
inline void get_VREG(bool &EN, bool &HIZ, uint8_t &VSEL, bool &ROK) volatile#
Get all of VREG’s bit fields.
(read-write) Voltage regulator control and status
-
inline void set_VREG(bool EN, bool HIZ, uint8_t VSEL) volatile#
Set all of VREG’s bit fields.
(read-write) Voltage regulator control and status
-
inline bool get_BOD_EN() volatile#
Get BOD’s EN bit.
enable
0=not enabled, 1=enabled
-
inline void set_BOD_EN() volatile#
Set BOD’s EN bit.
enable
0=not enabled, 1=enabled
-
inline void clear_BOD_EN() volatile#
Clear BOD’s EN bit.
enable
0=not enabled, 1=enabled
-
inline void toggle_BOD_EN() volatile#
Toggle BOD’s EN bit.
enable
0=not enabled, 1=enabled
-
inline uint8_t get_BOD_VSEL() volatile#
Get BOD’s VSEL field.
threshold select
0000 - 0.473V
0001 - 0.516V
0010 - 0.559V
0011 - 0.602V
0100 - 0.645V
0101 - 0.688V
0110 - 0.731V
0111 - 0.774V
1000 - 0.817V
1001 - 0.860V (default)
1010 - 0.903V
1011 - 0.946V
1100 - 0.989V
1101 - 1.032V
1110 - 1.075V
1111 - 1.118V
-
inline void set_BOD_VSEL(uint8_t value) volatile#
Set BOD’s VSEL field.
threshold select
0000 - 0.473V
0001 - 0.516V
0010 - 0.559V
0011 - 0.602V
0100 - 0.645V
0101 - 0.688V
0110 - 0.731V
0111 - 0.774V
1000 - 0.817V
1001 - 0.860V (default)
1010 - 0.903V
1011 - 0.946V
1100 - 0.989V
1101 - 1.032V
1110 - 1.075V
1111 - 1.118V
-
inline void get_BOD(bool &EN, uint8_t &VSEL) volatile#
Get all of BOD’s bit fields.
(read-write) brown-out detection control
-
inline void set_BOD(bool EN, uint8_t VSEL) volatile#
Set all of BOD’s bit fields.
(read-write) brown-out detection control
-
inline bool get_CHIP_RESET_HAD_POR() volatile#
Get CHIP_RESET’s HAD_POR bit.
Last reset was from the power-on reset or brown-out detection blocks
-
inline bool get_CHIP_RESET_HAD_RUN() volatile#
Get CHIP_RESET’s HAD_RUN bit.
Last reset was from the RUN pin
-
inline bool get_CHIP_RESET_HAD_PSM_RESTART() volatile#
Get CHIP_RESET’s HAD_PSM_RESTART bit.
Last reset was from the debug port
-
inline bool get_CHIP_RESET_PSM_RESTART_FLAG() volatile#
Get CHIP_RESET’s PSM_RESTART_FLAG bit.
This is set by psm_restart from the debugger.
Its purpose is to branch bootcode to a safe mode when the debugger has issued a psm_restart in order to recover from a boot lock-up.
In the safe mode the debugger can repair the boot code, clear this flag then reboot the processor.
-
inline void set_CHIP_RESET_PSM_RESTART_FLAG() volatile#
Set CHIP_RESET’s PSM_RESTART_FLAG bit.
This is set by psm_restart from the debugger.
Its purpose is to branch bootcode to a safe mode when the debugger has issued a psm_restart in order to recover from a boot lock-up.
In the safe mode the debugger can repair the boot code, clear this flag then reboot the processor.
-
inline void clear_CHIP_RESET_PSM_RESTART_FLAG() volatile#
Clear CHIP_RESET’s PSM_RESTART_FLAG bit.
This is set by psm_restart from the debugger.
Its purpose is to branch bootcode to a safe mode when the debugger has issued a psm_restart in order to recover from a boot lock-up.
In the safe mode the debugger can repair the boot code, clear this flag then reboot the processor.
-
inline void toggle_CHIP_RESET_PSM_RESTART_FLAG() volatile#
Toggle CHIP_RESET’s PSM_RESTART_FLAG bit.
This is set by psm_restart from the debugger.
Its purpose is to branch bootcode to a safe mode when the debugger has issued a psm_restart in order to recover from a boot lock-up.
In the safe mode the debugger can repair the boot code, clear this flag then reboot the processor.
-
inline void get_CHIP_RESET(bool &HAD_POR, bool &HAD_RUN, bool &HAD_PSM_RESTART, bool &PSM_RESTART_FLAG) volatile#
Get all of CHIP_RESET’s bit fields.
(read-write) Chip reset control and status
Public Members
-
uint32_t VREG#
(read-write) Voltage regulator control and status
-
uint32_t BOD#
(read-write) brown-out detection control
-
uint32_t CHIP_RESET#
(read-write) Chip reset control and status
Public Static Attributes
-
static constexpr std::size_t size = 12#
vreg_and_chip_reset’s size in bytes.
-
inline bool get_VREG_EN() volatile#