wwdg

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 wwdg provides interface to Window WATCHDOG.

Peripheral: WWDG_Periph Window WATCHDOG. Instances:

WWDG  mmap.WWDG_BASE

Registers:

0x00 32  CR
0x04 32  CFR
0x08 32  SR

Import:

stm32/o/f10x_md/mmap

Index

Constants

View Source
const (
	Tn    = 0
	WDGAn = 7
)
View Source
const (
	Wn     = 0
	WDGTBn = 7
	EWIn   = 9
)
View Source
const (
	EWIFn = 0
)

Variables

Functions

This section is empty.

Types

type CFR

type CFR uint32
const (
	W      CFR = 0x7F << 0 //+ W[6:0] bits (7-bit window value).
	W0     CFR = 0x01 << 0 //  Bit 0.
	W1     CFR = 0x02 << 0 //  Bit 1.
	W2     CFR = 0x04 << 0 //  Bit 2.
	W3     CFR = 0x08 << 0 //  Bit 3.
	W4     CFR = 0x10 << 0 //  Bit 4.
	W5     CFR = 0x20 << 0 //  Bit 5.
	W6     CFR = 0x40 << 0 //  Bit 6.
	WDGTB  CFR = 0x03 << 7 //+ WDGTB[1:0] bits (Timer Base).
	WDGTB0 CFR = 0x01 << 7 //  Bit 0.
	WDGTB1 CFR = 0x02 << 7 //  Bit 1.
	EWI    CFR = 0x01 << 9 //+ Early Wakeup Interrupt.
)

func (CFR) Field

func (b CFR) Field(mask CFR) int

func (CFR) J

func (mask CFR) J(v int) CFR

type CR

type CR uint32
const (
	T    CR = 0x7F << 0 //+ T[6:0] bits (7-Bit counter (MSB to LSB)).
	T0   CR = 0x01 << 0 //  Bit 0.
	T1   CR = 0x02 << 0 //  Bit 1.
	T2   CR = 0x04 << 0 //  Bit 2.
	T3   CR = 0x08 << 0 //  Bit 3.
	T4   CR = 0x10 << 0 //  Bit 4.
	T5   CR = 0x20 << 0 //  Bit 5.
	T6   CR = 0x40 << 0 //  Bit 6.
	WDGA CR = 0x01 << 7 //+ Activation bit.
)

func (CR) Field

func (b CR) Field(mask CR) int

func (CR) J

func (mask CR) J(v int) CR

type RCFR

type RCFR struct{ mmio.U32 }

func (*RCFR) AtomicClearBits

func (r *RCFR) AtomicClearBits(mask CFR)

func (*RCFR) AtomicSetBits

func (r *RCFR) AtomicSetBits(mask CFR)

func (*RCFR) AtomicStoreBits

func (r *RCFR) AtomicStoreBits(mask, b CFR)

func (*RCFR) Bits

func (r *RCFR) Bits(mask CFR) CFR

func (*RCFR) ClearBits

func (r *RCFR) ClearBits(mask CFR)

func (*RCFR) Load

func (r *RCFR) Load() CFR

func (*RCFR) SetBits

func (r *RCFR) SetBits(mask CFR)

func (*RCFR) Store

func (r *RCFR) Store(b CFR)

func (*RCFR) StoreBits

func (r *RCFR) StoreBits(mask, b CFR)

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 RMCFR

type RMCFR struct{ mmio.UM32 }

func (RMCFR) Load

func (rm RMCFR) Load() CFR

func (RMCFR) Store

func (rm RMCFR) Store(b CFR)

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 RMSR

type RMSR struct{ mmio.UM32 }

func (RMSR) Load

func (rm RMSR) Load() SR

func (RMSR) Store

func (rm RMSR) Store(b SR)

type RSR

type RSR struct{ mmio.U32 }

func (*RSR) AtomicClearBits

func (r *RSR) AtomicClearBits(mask SR)

func (*RSR) AtomicSetBits

func (r *RSR) AtomicSetBits(mask SR)

func (*RSR) AtomicStoreBits

func (r *RSR) AtomicStoreBits(mask, b SR)

func (*RSR) Bits

func (r *RSR) Bits(mask SR) SR

func (*RSR) ClearBits

func (r *RSR) ClearBits(mask SR)

func (*RSR) Load

func (r *RSR) Load() SR

func (*RSR) SetBits

func (r *RSR) SetBits(mask SR)

func (*RSR) Store

func (r *RSR) Store(b SR)

func (*RSR) StoreBits

func (r *RSR) StoreBits(mask, b SR)

type SR

type SR uint32
const (
	EWIF SR = 0x01 << 0 //+ Early Wakeup Interrupt Flag.
)

func (SR) Field

func (b SR) Field(mask SR) int

func (SR) J

func (mask SR) J(v int) SR

type WWDG_Periph

type WWDG_Periph struct {
	CR  RCR
	CFR RCFR
	SR  RSR
}

func (*WWDG_Periph) BaseAddr

func (p *WWDG_Periph) BaseAddr() uintptr

func (*WWDG_Periph) EWI

func (p *WWDG_Periph) EWI() RMCFR

func (*WWDG_Periph) EWIF

func (p *WWDG_Periph) EWIF() RMSR

func (*WWDG_Periph) T

func (p *WWDG_Periph) T() RMCR

func (*WWDG_Periph) W

func (p *WWDG_Periph) W() RMCFR

func (*WWDG_Periph) WDGA

func (p *WWDG_Periph) WDGA() RMCR

func (*WWDG_Periph) WDGTB

func (p *WWDG_Periph) WDGTB() RMCFR

Jump to

Keyboard shortcuts

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