Struct syscfg#

Struct Documentation#

struct syscfg#

Register block for various chip control signals

Public Functions

inline bool get_PROC_CONFIG_PROC0_HALTED() volatile#

Get PROC_CONFIG’s PROC0_HALTED bit.

Indication that proc0 has halted

inline bool get_PROC_CONFIG_PROC1_HALTED() volatile#

Get PROC_CONFIG’s PROC1_HALTED bit.

Indication that proc1 has halted

inline uint8_t get_PROC_CONFIG_PROC0_DAP_INSTID() volatile#

Get PROC_CONFIG’s PROC0_DAP_INSTID field.

Configure proc0 DAP instance ID.

Recommend that this is NOT changed until you require debug access in multi-chip environment

WARNING: do not set to 15 as this is reserved for RescueDP

inline void set_PROC_CONFIG_PROC0_DAP_INSTID(uint8_t value) volatile#

Set PROC_CONFIG’s PROC0_DAP_INSTID field.

Configure proc0 DAP instance ID.

Recommend that this is NOT changed until you require debug access in multi-chip environment

WARNING: do not set to 15 as this is reserved for RescueDP

inline uint8_t get_PROC_CONFIG_PROC1_DAP_INSTID() volatile#

Get PROC_CONFIG’s PROC1_DAP_INSTID field.

Configure proc1 DAP instance ID.

Recommend that this is NOT changed until you require debug access in multi-chip environment

WARNING: do not set to 15 as this is reserved for RescueDP

inline void set_PROC_CONFIG_PROC1_DAP_INSTID(uint8_t value) volatile#

Set PROC_CONFIG’s PROC1_DAP_INSTID field.

Configure proc1 DAP instance ID.

Recommend that this is NOT changed until you require debug access in multi-chip environment

WARNING: do not set to 15 as this is reserved for RescueDP

inline void get_PROC_CONFIG(bool &PROC0_HALTED, bool &PROC1_HALTED, uint8_t &PROC0_DAP_INSTID, uint8_t &PROC1_DAP_INSTID) volatile#

Get all of PROC_CONFIG’s bit fields.

(read-write) Configuration for processors

inline void set_PROC_CONFIG(uint8_t PROC0_DAP_INSTID, uint8_t PROC1_DAP_INSTID) volatile#

Set all of PROC_CONFIG’s bit fields.

(read-write) Configuration for processors

inline uint32_t get_PROC_IN_SYNC_BYPASS_PROC_IN_SYNC_BYPASS() volatile#

Get PROC_IN_SYNC_BYPASS’s PROC_IN_SYNC_BYPASS field.

inline void set_PROC_IN_SYNC_BYPASS_PROC_IN_SYNC_BYPASS(uint32_t value) volatile#

Set PROC_IN_SYNC_BYPASS’s PROC_IN_SYNC_BYPASS field.

inline uint8_t get_PROC_IN_SYNC_BYPASS_HI_PROC_IN_SYNC_BYPASS_HI() volatile#

Get PROC_IN_SYNC_BYPASS_HI’s PROC_IN_SYNC_BYPASS_HI field.

inline void set_PROC_IN_SYNC_BYPASS_HI_PROC_IN_SYNC_BYPASS_HI(uint8_t value) volatile#

Set PROC_IN_SYNC_BYPASS_HI’s PROC_IN_SYNC_BYPASS_HI field.

inline bool get_DBGFORCE_PROC0_SWDO() volatile#

Get DBGFORCE’s PROC0_SWDO bit.

Observe the value of processor 0 SWDIO output.

inline bool get_DBGFORCE_PROC0_SWDI() volatile#

Get DBGFORCE’s PROC0_SWDI bit.

Directly drive processor 0 SWDIO input, if PROC0_ATTACH is set

inline void set_DBGFORCE_PROC0_SWDI() volatile#

Set DBGFORCE’s PROC0_SWDI bit.

Directly drive processor 0 SWDIO input, if PROC0_ATTACH is set

inline void clear_DBGFORCE_PROC0_SWDI() volatile#

Clear DBGFORCE’s PROC0_SWDI bit.

Directly drive processor 0 SWDIO input, if PROC0_ATTACH is set

inline void toggle_DBGFORCE_PROC0_SWDI() volatile#

Toggle DBGFORCE’s PROC0_SWDI bit.

Directly drive processor 0 SWDIO input, if PROC0_ATTACH is set

inline bool get_DBGFORCE_PROC0_SWCLK() volatile#

Get DBGFORCE’s PROC0_SWCLK bit.

Directly drive processor 0 SWCLK, if PROC0_ATTACH is set

inline void set_DBGFORCE_PROC0_SWCLK() volatile#

Set DBGFORCE’s PROC0_SWCLK bit.

Directly drive processor 0 SWCLK, if PROC0_ATTACH is set

inline void clear_DBGFORCE_PROC0_SWCLK() volatile#

Clear DBGFORCE’s PROC0_SWCLK bit.

Directly drive processor 0 SWCLK, if PROC0_ATTACH is set

inline void toggle_DBGFORCE_PROC0_SWCLK() volatile#

Toggle DBGFORCE’s PROC0_SWCLK bit.

Directly drive processor 0 SWCLK, if PROC0_ATTACH is set

inline bool get_DBGFORCE_PROC0_ATTACH() volatile#

Get DBGFORCE’s PROC0_ATTACH bit.

Attach processor 0 debug port to syscfg controls, and disconnect it from external SWD pads.

inline void set_DBGFORCE_PROC0_ATTACH() volatile#

Set DBGFORCE’s PROC0_ATTACH bit.

Attach processor 0 debug port to syscfg controls, and disconnect it from external SWD pads.

inline void clear_DBGFORCE_PROC0_ATTACH() volatile#

Clear DBGFORCE’s PROC0_ATTACH bit.

Attach processor 0 debug port to syscfg controls, and disconnect it from external SWD pads.

inline void toggle_DBGFORCE_PROC0_ATTACH() volatile#

Toggle DBGFORCE’s PROC0_ATTACH bit.

Attach processor 0 debug port to syscfg controls, and disconnect it from external SWD pads.

inline bool get_DBGFORCE_PROC1_SWDO() volatile#

Get DBGFORCE’s PROC1_SWDO bit.

Observe the value of processor 1 SWDIO output.

inline bool get_DBGFORCE_PROC1_SWDI() volatile#

Get DBGFORCE’s PROC1_SWDI bit.

Directly drive processor 1 SWDIO input, if PROC1_ATTACH is set

inline void set_DBGFORCE_PROC1_SWDI() volatile#

Set DBGFORCE’s PROC1_SWDI bit.

Directly drive processor 1 SWDIO input, if PROC1_ATTACH is set

inline void clear_DBGFORCE_PROC1_SWDI() volatile#

Clear DBGFORCE’s PROC1_SWDI bit.

Directly drive processor 1 SWDIO input, if PROC1_ATTACH is set

inline void toggle_DBGFORCE_PROC1_SWDI() volatile#

Toggle DBGFORCE’s PROC1_SWDI bit.

Directly drive processor 1 SWDIO input, if PROC1_ATTACH is set

inline bool get_DBGFORCE_PROC1_SWCLK() volatile#

Get DBGFORCE’s PROC1_SWCLK bit.

Directly drive processor 1 SWCLK, if PROC1_ATTACH is set

inline void set_DBGFORCE_PROC1_SWCLK() volatile#

Set DBGFORCE’s PROC1_SWCLK bit.

Directly drive processor 1 SWCLK, if PROC1_ATTACH is set

inline void clear_DBGFORCE_PROC1_SWCLK() volatile#

Clear DBGFORCE’s PROC1_SWCLK bit.

Directly drive processor 1 SWCLK, if PROC1_ATTACH is set

inline void toggle_DBGFORCE_PROC1_SWCLK() volatile#

Toggle DBGFORCE’s PROC1_SWCLK bit.

Directly drive processor 1 SWCLK, if PROC1_ATTACH is set

inline bool get_DBGFORCE_PROC1_ATTACH() volatile#

Get DBGFORCE’s PROC1_ATTACH bit.

Attach processor 1 debug port to syscfg controls, and disconnect it from external SWD pads.

inline void set_DBGFORCE_PROC1_ATTACH() volatile#

Set DBGFORCE’s PROC1_ATTACH bit.

Attach processor 1 debug port to syscfg controls, and disconnect it from external SWD pads.

inline void clear_DBGFORCE_PROC1_ATTACH() volatile#

Clear DBGFORCE’s PROC1_ATTACH bit.

Attach processor 1 debug port to syscfg controls, and disconnect it from external SWD pads.

inline void toggle_DBGFORCE_PROC1_ATTACH() volatile#

Toggle DBGFORCE’s PROC1_ATTACH bit.

Attach processor 1 debug port to syscfg controls, and disconnect it from external SWD pads.

inline void get_DBGFORCE(bool &PROC0_SWDO, bool &PROC0_SWDI, bool &PROC0_SWCLK, bool &PROC0_ATTACH, bool &PROC1_SWDO, bool &PROC1_SWDI, bool &PROC1_SWCLK, bool &PROC1_ATTACH) volatile#

Get all of DBGFORCE’s bit fields.

(read-write) Directly control the SWD debug port of either processor

inline void set_DBGFORCE(bool PROC0_SWDI, bool PROC0_SWCLK, bool PROC0_ATTACH, bool PROC1_SWDI, bool PROC1_SWCLK, bool PROC1_ATTACH) volatile#

Set all of DBGFORCE’s bit fields.

(read-write) Directly control the SWD debug port of either processor

inline bool get_MEMPOWERDOWN_SRAM0() volatile#

Get MEMPOWERDOWN’s SRAM0 bit.

inline void set_MEMPOWERDOWN_SRAM0() volatile#

Set MEMPOWERDOWN’s SRAM0 bit.

inline void clear_MEMPOWERDOWN_SRAM0() volatile#

Clear MEMPOWERDOWN’s SRAM0 bit.

inline void toggle_MEMPOWERDOWN_SRAM0() volatile#

Toggle MEMPOWERDOWN’s SRAM0 bit.

inline bool get_MEMPOWERDOWN_SRAM1() volatile#

Get MEMPOWERDOWN’s SRAM1 bit.

inline void set_MEMPOWERDOWN_SRAM1() volatile#

Set MEMPOWERDOWN’s SRAM1 bit.

inline void clear_MEMPOWERDOWN_SRAM1() volatile#

Clear MEMPOWERDOWN’s SRAM1 bit.

inline void toggle_MEMPOWERDOWN_SRAM1() volatile#

Toggle MEMPOWERDOWN’s SRAM1 bit.

inline bool get_MEMPOWERDOWN_SRAM2() volatile#

Get MEMPOWERDOWN’s SRAM2 bit.

inline void set_MEMPOWERDOWN_SRAM2() volatile#

Set MEMPOWERDOWN’s SRAM2 bit.

inline void clear_MEMPOWERDOWN_SRAM2() volatile#

Clear MEMPOWERDOWN’s SRAM2 bit.

inline void toggle_MEMPOWERDOWN_SRAM2() volatile#

Toggle MEMPOWERDOWN’s SRAM2 bit.

inline bool get_MEMPOWERDOWN_SRAM3() volatile#

Get MEMPOWERDOWN’s SRAM3 bit.

inline void set_MEMPOWERDOWN_SRAM3() volatile#

Set MEMPOWERDOWN’s SRAM3 bit.

inline void clear_MEMPOWERDOWN_SRAM3() volatile#

Clear MEMPOWERDOWN’s SRAM3 bit.

inline void toggle_MEMPOWERDOWN_SRAM3() volatile#

Toggle MEMPOWERDOWN’s SRAM3 bit.

inline bool get_MEMPOWERDOWN_SRAM4() volatile#

Get MEMPOWERDOWN’s SRAM4 bit.

inline void set_MEMPOWERDOWN_SRAM4() volatile#

Set MEMPOWERDOWN’s SRAM4 bit.

inline void clear_MEMPOWERDOWN_SRAM4() volatile#

Clear MEMPOWERDOWN’s SRAM4 bit.

inline void toggle_MEMPOWERDOWN_SRAM4() volatile#

Toggle MEMPOWERDOWN’s SRAM4 bit.

inline bool get_MEMPOWERDOWN_SRAM5() volatile#

Get MEMPOWERDOWN’s SRAM5 bit.

inline void set_MEMPOWERDOWN_SRAM5() volatile#

Set MEMPOWERDOWN’s SRAM5 bit.

inline void clear_MEMPOWERDOWN_SRAM5() volatile#

Clear MEMPOWERDOWN’s SRAM5 bit.

inline void toggle_MEMPOWERDOWN_SRAM5() volatile#

Toggle MEMPOWERDOWN’s SRAM5 bit.

inline bool get_MEMPOWERDOWN_USB() volatile#

Get MEMPOWERDOWN’s USB bit.

inline void set_MEMPOWERDOWN_USB() volatile#

Set MEMPOWERDOWN’s USB bit.

inline void clear_MEMPOWERDOWN_USB() volatile#

Clear MEMPOWERDOWN’s USB bit.

inline void toggle_MEMPOWERDOWN_USB() volatile#

Toggle MEMPOWERDOWN’s USB bit.

inline bool get_MEMPOWERDOWN_ROM() volatile#

Get MEMPOWERDOWN’s ROM bit.

inline void set_MEMPOWERDOWN_ROM() volatile#

Set MEMPOWERDOWN’s ROM bit.

inline void clear_MEMPOWERDOWN_ROM() volatile#

Clear MEMPOWERDOWN’s ROM bit.

inline void toggle_MEMPOWERDOWN_ROM() volatile#

Toggle MEMPOWERDOWN’s ROM bit.

inline void get_MEMPOWERDOWN(bool &SRAM0, bool &SRAM1, bool &SRAM2, bool &SRAM3, bool &SRAM4, bool &SRAM5, bool &USB, bool &ROM) volatile#

Get all of MEMPOWERDOWN’s bit fields.

(read-write) Control power downs to memories. Set high to power down memories.

Use with extreme caution

inline void set_MEMPOWERDOWN(bool SRAM0, bool SRAM1, bool SRAM2, bool SRAM3, bool SRAM4, bool SRAM5, bool USB, bool ROM) volatile#

Set all of MEMPOWERDOWN’s bit fields.

(read-write) Control power downs to memories. Set high to power down memories.

Use with extreme caution

Public Members

uint32_t PROC0_NMI_MASK#

(read-write) Processor core 0 NMI source mask

Set a bit high to enable NMI from that IRQ

uint32_t PROC1_NMI_MASK#

(read-write) Processor core 1 NMI source mask

Set a bit high to enable NMI from that IRQ

uint32_t PROC_CONFIG#

(read-write) Configuration for processors

uint32_t PROC_IN_SYNC_BYPASS#

(read-write) For each bit, if 1, bypass the input synchronizer between that GPIO

and the GPIO input register in the SIO. The input synchronizers should

generally be unbypassed, to avoid injecting metastabilities into processors.

If you’re feeling brave, you can bypass to save two cycles of input

latency. This register applies to GPIO 0…29.

uint32_t PROC_IN_SYNC_BYPASS_HI#

(read-write) For each bit, if 1, bypass the input synchronizer between that GPIO

and the GPIO input register in the SIO. The input synchronizers should

generally be unbypassed, to avoid injecting metastabilities into processors.

If you’re feeling brave, you can bypass to save two cycles of input

latency. This register applies to GPIO 30…35 (the QSPI IOs).

uint32_t DBGFORCE#

(read-write) Directly control the SWD debug port of either processor

uint32_t MEMPOWERDOWN#

(read-write) Control power downs to memories. Set high to power down memories.

Use with extreme caution

Public Static Attributes

static constexpr std::size_t size = 28#

syscfg’s size in bytes.