ob

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 ob provides interface to Option Bytes Registers.

Peripheral: OB_Periph Option Bytes Registers. Instances:

OB  mmap.OB_BASE

Registers:

0x00 16  RDP
0x02 16  USER
0x04 16  Data0
0x06 16  Data1
0x08 16  WRP0
0x0A 16  WRP1
0x0C 16  WRP2
0x0E 16  WRP3

Import:

stm32/o/f10x_md/mmap

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Data0

type Data0 uint16

func (Data0) Field

func (b Data0) Field(mask Data0) int

func (Data0) J

func (mask Data0) J(v int) Data0

type Data1

type Data1 uint16

func (Data1) Field

func (b Data1) Field(mask Data1) int

func (Data1) J

func (mask Data1) J(v int) Data1

type OB_Periph

type OB_Periph struct {
	RDP   RRDP
	USER  RUSER
	Data0 RData0
	Data1 RData1
	WRP0  RWRP0
	WRP1  RWRP1
	WRP2  RWRP2
	WRP3  RWRP3
}

func (*OB_Periph) BaseAddr

func (p *OB_Periph) BaseAddr() uintptr

type RDP

type RDP uint16

func (RDP) Field

func (b RDP) Field(mask RDP) int

func (RDP) J

func (mask RDP) J(v int) RDP

type RData0

type RData0 struct{ mmio.U16 }

func (*RData0) Bits

func (r *RData0) Bits(mask Data0) Data0

func (*RData0) ClearBits

func (r *RData0) ClearBits(mask Data0)

func (*RData0) Load

func (r *RData0) Load() Data0

func (*RData0) SetBits

func (r *RData0) SetBits(mask Data0)

func (*RData0) Store

func (r *RData0) Store(b Data0)

func (*RData0) StoreBits

func (r *RData0) StoreBits(mask, b Data0)

type RData1

type RData1 struct{ mmio.U16 }

func (*RData1) Bits

func (r *RData1) Bits(mask Data1) Data1

func (*RData1) ClearBits

func (r *RData1) ClearBits(mask Data1)

func (*RData1) Load

func (r *RData1) Load() Data1

func (*RData1) SetBits

func (r *RData1) SetBits(mask Data1)

func (*RData1) Store

func (r *RData1) Store(b Data1)

func (*RData1) StoreBits

func (r *RData1) StoreBits(mask, b Data1)

type RMData0

type RMData0 struct{ mmio.UM16 }

func (RMData0) Load

func (rm RMData0) Load() Data0

func (RMData0) Store

func (rm RMData0) Store(b Data0)

type RMData1

type RMData1 struct{ mmio.UM16 }

func (RMData1) Load

func (rm RMData1) Load() Data1

func (RMData1) Store

func (rm RMData1) Store(b Data1)

type RMRDP

type RMRDP struct{ mmio.UM16 }

func (RMRDP) Load

func (rm RMRDP) Load() RDP

func (RMRDP) Store

func (rm RMRDP) Store(b RDP)

type RMUSER

type RMUSER struct{ mmio.UM16 }

func (RMUSER) Load

func (rm RMUSER) Load() USER

func (RMUSER) Store

func (rm RMUSER) Store(b USER)

type RMWRP0

type RMWRP0 struct{ mmio.UM16 }

func (RMWRP0) Load

func (rm RMWRP0) Load() WRP0

func (RMWRP0) Store

func (rm RMWRP0) Store(b WRP0)

type RMWRP1

type RMWRP1 struct{ mmio.UM16 }

func (RMWRP1) Load

func (rm RMWRP1) Load() WRP1

func (RMWRP1) Store

func (rm RMWRP1) Store(b WRP1)

type RMWRP2

type RMWRP2 struct{ mmio.UM16 }

func (RMWRP2) Load

func (rm RMWRP2) Load() WRP2

func (RMWRP2) Store

func (rm RMWRP2) Store(b WRP2)

type RMWRP3

type RMWRP3 struct{ mmio.UM16 }

func (RMWRP3) Load

func (rm RMWRP3) Load() WRP3

func (RMWRP3) Store

func (rm RMWRP3) Store(b WRP3)

type RRDP

type RRDP struct{ mmio.U16 }

func (*RRDP) Bits

func (r *RRDP) Bits(mask RDP) RDP

func (*RRDP) ClearBits

func (r *RRDP) ClearBits(mask RDP)

func (*RRDP) Load

func (r *RRDP) Load() RDP

func (*RRDP) SetBits

func (r *RRDP) SetBits(mask RDP)

func (*RRDP) Store

func (r *RRDP) Store(b RDP)

func (*RRDP) StoreBits

func (r *RRDP) StoreBits(mask, b RDP)

type RUSER

type RUSER struct{ mmio.U16 }

func (*RUSER) Bits

func (r *RUSER) Bits(mask USER) USER

func (*RUSER) ClearBits

func (r *RUSER) ClearBits(mask USER)

func (*RUSER) Load

func (r *RUSER) Load() USER

func (*RUSER) SetBits

func (r *RUSER) SetBits(mask USER)

func (*RUSER) Store

func (r *RUSER) Store(b USER)

func (*RUSER) StoreBits

func (r *RUSER) StoreBits(mask, b USER)

type RWRP0

type RWRP0 struct{ mmio.U16 }

func (*RWRP0) Bits

func (r *RWRP0) Bits(mask WRP0) WRP0

func (*RWRP0) ClearBits

func (r *RWRP0) ClearBits(mask WRP0)

func (*RWRP0) Load

func (r *RWRP0) Load() WRP0

func (*RWRP0) SetBits

func (r *RWRP0) SetBits(mask WRP0)

func (*RWRP0) Store

func (r *RWRP0) Store(b WRP0)

func (*RWRP0) StoreBits

func (r *RWRP0) StoreBits(mask, b WRP0)

type RWRP1

type RWRP1 struct{ mmio.U16 }

func (*RWRP1) Bits

func (r *RWRP1) Bits(mask WRP1) WRP1

func (*RWRP1) ClearBits

func (r *RWRP1) ClearBits(mask WRP1)

func (*RWRP1) Load

func (r *RWRP1) Load() WRP1

func (*RWRP1) SetBits

func (r *RWRP1) SetBits(mask WRP1)

func (*RWRP1) Store

func (r *RWRP1) Store(b WRP1)

func (*RWRP1) StoreBits

func (r *RWRP1) StoreBits(mask, b WRP1)

type RWRP2

type RWRP2 struct{ mmio.U16 }

func (*RWRP2) Bits

func (r *RWRP2) Bits(mask WRP2) WRP2

func (*RWRP2) ClearBits

func (r *RWRP2) ClearBits(mask WRP2)

func (*RWRP2) Load

func (r *RWRP2) Load() WRP2

func (*RWRP2) SetBits

func (r *RWRP2) SetBits(mask WRP2)

func (*RWRP2) Store

func (r *RWRP2) Store(b WRP2)

func (*RWRP2) StoreBits

func (r *RWRP2) StoreBits(mask, b WRP2)

type RWRP3

type RWRP3 struct{ mmio.U16 }

func (*RWRP3) Bits

func (r *RWRP3) Bits(mask WRP3) WRP3

func (*RWRP3) ClearBits

func (r *RWRP3) ClearBits(mask WRP3)

func (*RWRP3) Load

func (r *RWRP3) Load() WRP3

func (*RWRP3) SetBits

func (r *RWRP3) SetBits(mask WRP3)

func (*RWRP3) Store

func (r *RWRP3) Store(b WRP3)

func (*RWRP3) StoreBits

func (r *RWRP3) StoreBits(mask, b WRP3)

type USER

type USER uint16

func (USER) Field

func (b USER) Field(mask USER) int

func (USER) J

func (mask USER) J(v int) USER

type WRP0

type WRP0 uint16

func (WRP0) Field

func (b WRP0) Field(mask WRP0) int

func (WRP0) J

func (mask WRP0) J(v int) WRP0

type WRP1

type WRP1 uint16

func (WRP1) Field

func (b WRP1) Field(mask WRP1) int

func (WRP1) J

func (mask WRP1) J(v int) WRP1

type WRP2

type WRP2 uint16

func (WRP2) Field

func (b WRP2) Field(mask WRP2) int

func (WRP2) J

func (mask WRP2) J(v int) WRP2

type WRP3

type WRP3 uint16

func (WRP3) Field

func (b WRP3) Field(mask WRP3) int

func (WRP3) J

func (mask WRP3) J(v int) WRP3

Jump to

Keyboard shortcuts

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