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
- Variables
- type CFR
- type CR
- type RCFR
- func (r *RCFR) AtomicClearBits(mask CFR)
- func (r *RCFR) AtomicSetBits(mask CFR)
- func (r *RCFR) AtomicStoreBits(mask, b CFR)
- func (r *RCFR) Bits(mask CFR) CFR
- func (r *RCFR) ClearBits(mask CFR)
- func (r *RCFR) Load() CFR
- func (r *RCFR) SetBits(mask CFR)
- func (r *RCFR) Store(b CFR)
- func (r *RCFR) StoreBits(mask, b CFR)
- type RCR
- type RMCFR
- type RMCR
- type RMSR
- type RSR
- type SR
- type WWDG_Periph
Constants ¶
View Source
const ( Tn = 0 WDGAn = 7 )
View Source
const ( Wn = 0 WDGTBn = 7 EWIn = 9 )
View Source
const (
EWIFn = 0
)
Variables ¶
View Source
var WWDG = (*WWDG_Periph)(unsafe.Pointer(uintptr(mmap.WWDG_BASE)))
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. )
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. )
type RCFR ¶
func (*RCFR) AtomicClearBits ¶
func (*RCFR) AtomicSetBits ¶
func (*RCFR) AtomicStoreBits ¶
type WWDG_Periph ¶
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
Click to show internal directories.
Click to hide internal directories.