dbgmcu

package
v0.0.0-...-168ccc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package dbgmcu provides interface to Debug MCU.

Peripheral: DBGMCU_Periph Debug MCU. Instances:

DBGMCU  mmap.DBGMCU_BASE

Registers:

0x00 32  IDCODE MCU device ID code.
0x04 32  CR     Debug MCU configuration register.
0x08 32  APB1FZ Debug MCU APB1 freeze register.
0x0C 32  APB2FZ Debug MCU APB2 freeze register.

Import:

stm32/o/f746xx/mmap

Index

Constants

View Source
const (
	DEV_IDn = 0
	REV_IDn = 16
)
View Source
const (
	DBG_SLEEPn   = 0
	DBG_STOPn    = 1
	DBG_STANDBYn = 2
	TRACE_IOENn  = 5
	TRACE_MODEn  = 6
)

Variables

Functions

This section is empty.

Types

type APB1FZ

type APB1FZ uint32

func (APB1FZ) Field

func (b APB1FZ) Field(mask APB1FZ) int

func (APB1FZ) J

func (mask APB1FZ) J(v int) APB1FZ

type APB2FZ

type APB2FZ uint32

func (APB2FZ) Field

func (b APB2FZ) Field(mask APB2FZ) int

func (APB2FZ) J

func (mask APB2FZ) J(v int) APB2FZ

type CR

type CR uint32
const (
	DBG_SLEEP    CR = 0x01 << 0 //+
	DBG_STOP     CR = 0x01 << 1 //+
	DBG_STANDBY  CR = 0x01 << 2 //+
	TRACE_IOEN   CR = 0x01 << 5 //+
	TRACE_MODE   CR = 0x03 << 6 //+
	TRACE_MODE_0 CR = 0x01 << 6 //  Bit 0.
	TRACE_MODE_1 CR = 0x02 << 6 //  Bit 1.
)

func (CR) Field

func (b CR) Field(mask CR) int

func (CR) J

func (mask CR) J(v int) CR

type DBGMCU_Periph

type DBGMCU_Periph struct {
	IDCODE RIDCODE
	CR     RCR
	APB1FZ RAPB1FZ
	APB2FZ RAPB2FZ
}

func (*DBGMCU_Periph) BaseAddr

func (p *DBGMCU_Periph) BaseAddr() uintptr

func (*DBGMCU_Periph) DBG_SLEEP

func (p *DBGMCU_Periph) DBG_SLEEP() RMCR

func (*DBGMCU_Periph) DBG_STANDBY

func (p *DBGMCU_Periph) DBG_STANDBY() RMCR

func (*DBGMCU_Periph) DBG_STOP

func (p *DBGMCU_Periph) DBG_STOP() RMCR

func (*DBGMCU_Periph) DEV_ID

func (p *DBGMCU_Periph) DEV_ID() RMIDCODE

func (*DBGMCU_Periph) REV_ID

func (p *DBGMCU_Periph) REV_ID() RMIDCODE

func (*DBGMCU_Periph) TRACE_IOEN

func (p *DBGMCU_Periph) TRACE_IOEN() RMCR

func (*DBGMCU_Periph) TRACE_MODE

func (p *DBGMCU_Periph) TRACE_MODE() RMCR

type IDCODE

type IDCODE uint32
const (
	DEV_ID IDCODE = 0xFFF << 0   //+
	REV_ID IDCODE = 0xFFFF << 16 //+
)

func (IDCODE) Field

func (b IDCODE) Field(mask IDCODE) int

func (IDCODE) J

func (mask IDCODE) J(v int) IDCODE

type RAPB1FZ

type RAPB1FZ struct{ mmio.U32 }

func (*RAPB1FZ) AtomicClearBits

func (r *RAPB1FZ) AtomicClearBits(mask APB1FZ)

func (*RAPB1FZ) AtomicSetBits

func (r *RAPB1FZ) AtomicSetBits(mask APB1FZ)

func (*RAPB1FZ) AtomicStoreBits

func (r *RAPB1FZ) AtomicStoreBits(mask, b APB1FZ)

func (*RAPB1FZ) Bits

func (r *RAPB1FZ) Bits(mask APB1FZ) APB1FZ

func (*RAPB1FZ) ClearBits

func (r *RAPB1FZ) ClearBits(mask APB1FZ)

func (*RAPB1FZ) Load

func (r *RAPB1FZ) Load() APB1FZ

func (*RAPB1FZ) SetBits

func (r *RAPB1FZ) SetBits(mask APB1FZ)

func (*RAPB1FZ) Store

func (r *RAPB1FZ) Store(b APB1FZ)

func (*RAPB1FZ) StoreBits

func (r *RAPB1FZ) StoreBits(mask, b APB1FZ)

type RAPB2FZ

type RAPB2FZ struct{ mmio.U32 }

func (*RAPB2FZ) AtomicClearBits

func (r *RAPB2FZ) AtomicClearBits(mask APB2FZ)

func (*RAPB2FZ) AtomicSetBits

func (r *RAPB2FZ) AtomicSetBits(mask APB2FZ)

func (*RAPB2FZ) AtomicStoreBits

func (r *RAPB2FZ) AtomicStoreBits(mask, b APB2FZ)

func (*RAPB2FZ) Bits

func (r *RAPB2FZ) Bits(mask APB2FZ) APB2FZ

func (*RAPB2FZ) ClearBits

func (r *RAPB2FZ) ClearBits(mask APB2FZ)

func (*RAPB2FZ) Load

func (r *RAPB2FZ) Load() APB2FZ

func (*RAPB2FZ) SetBits

func (r *RAPB2FZ) SetBits(mask APB2FZ)

func (*RAPB2FZ) Store

func (r *RAPB2FZ) Store(b APB2FZ)

func (*RAPB2FZ) StoreBits

func (r *RAPB2FZ) StoreBits(mask, b APB2FZ)

type RCR

type RCR struct{ mmio.U32 }

func (*RCR) AtomicClearBits

func (r *RCR) AtomicClearBits(mask CR)

func (*RCR) AtomicSetBits

func (r *RCR) AtomicSetBits(mask CR)

func (*RCR) AtomicStoreBits

func (r *RCR) AtomicStoreBits(mask, b CR)

func (*RCR) Bits

func (r *RCR) Bits(mask CR) CR

func (*RCR) ClearBits

func (r *RCR) ClearBits(mask CR)

func (*RCR) Load

func (r *RCR) Load() CR

func (*RCR) SetBits

func (r *RCR) SetBits(mask CR)

func (*RCR) Store

func (r *RCR) Store(b CR)

func (*RCR) StoreBits

func (r *RCR) StoreBits(mask, b CR)

type RIDCODE

type RIDCODE struct{ mmio.U32 }

func (*RIDCODE) AtomicClearBits

func (r *RIDCODE) AtomicClearBits(mask IDCODE)

func (*RIDCODE) AtomicSetBits

func (r *RIDCODE) AtomicSetBits(mask IDCODE)

func (*RIDCODE) AtomicStoreBits

func (r *RIDCODE) AtomicStoreBits(mask, b IDCODE)

func (*RIDCODE) Bits

func (r *RIDCODE) Bits(mask IDCODE) IDCODE

func (*RIDCODE) ClearBits

func (r *RIDCODE) ClearBits(mask IDCODE)

func (*RIDCODE) Load

func (r *RIDCODE) Load() IDCODE

func (*RIDCODE) SetBits

func (r *RIDCODE) SetBits(mask IDCODE)

func (*RIDCODE) Store

func (r *RIDCODE) Store(b IDCODE)

func (*RIDCODE) StoreBits

func (r *RIDCODE) StoreBits(mask, b IDCODE)

type RMAPB1FZ

type RMAPB1FZ struct{ mmio.UM32 }

func (RMAPB1FZ) Load

func (rm RMAPB1FZ) Load() APB1FZ

func (RMAPB1FZ) Store

func (rm RMAPB1FZ) Store(b APB1FZ)

type RMAPB2FZ

type RMAPB2FZ struct{ mmio.UM32 }

func (RMAPB2FZ) Load

func (rm RMAPB2FZ) Load() APB2FZ

func (RMAPB2FZ) Store

func (rm RMAPB2FZ) Store(b APB2FZ)

type RMCR

type RMCR struct{ mmio.UM32 }

func (RMCR) Load

func (rm RMCR) Load() CR

func (RMCR) Store

func (rm RMCR) Store(b CR)

type RMIDCODE

type RMIDCODE struct{ mmio.UM32 }

func (RMIDCODE) Load

func (rm RMIDCODE) Load() IDCODE

func (RMIDCODE) Store

func (rm RMIDCODE) Store(b IDCODE)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL