Documentation ¶
Overview ¶
Package reg provides primitives for retrieving and modifying hardware registers.
This package is only meant to be used with `GOOS=tamago GOARCH=arm` as supported by the TamaGo framework for bare metal Go on ARM SoCs, see https://github.com/f-secure-foundry/tamago.
Index ¶
- func Clear(addr uint32, pos int)
- func Clear16(addr uint32, pos int)
- func ClearN(addr uint32, pos int, mask int)
- func ClearN16(addr uint32, pos int, mask int)
- func Get(addr uint32, pos int, mask int) uint32
- func Get16(addr uint32, pos int, mask int) uint16
- func Move(dst uint32, src uint32)
- func Or(addr uint32, val uint32)
- func Or16(addr uint32, val uint16)
- func Read(addr uint32) uint32
- func Read16(addr uint32) uint16
- func Set(addr uint32, pos int)
- func Set16(addr uint32, pos int)
- func SetN(addr uint32, pos int, mask int, val uint32)
- func SetN16(addr uint32, pos int, mask int, val uint16)
- func Wait(addr uint32, pos int, mask int, val uint32)
- func Wait16(addr uint32, pos int, mask int, val uint16)
- func WaitFor(timeout time.Duration, addr uint32, pos int, mask int, val uint32) bool
- func WaitFor16(timeout time.Duration, addr uint32, pos int, mask int, val uint16) bool
- func WaitSignal(done chan bool, addr uint32, pos int, mask int, val uint32) bool
- func Write(addr uint32, val uint32)
- func Write16(addr uint32, val uint16)
- func WriteBack(addr uint32)
- func WriteBack16(addr uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Wait ¶
Wait waits for a specific register bit to match a value. This function cannot be used before runtime initialization with `GOOS=tamago`.
func Wait16 ¶
Wait16 waits for a specific register bit to match a value. This function cannot be used before runtime initialization with `GOOS=tamago`.
func WaitFor ¶
WaitFor waits, until a timeout expires, for a specific register bit to match a value. The return boolean indicates whether the wait condition was checked (true) or if it timed out (false). This function cannot be used before runtime initialization.
func WaitFor16 ¶
WaitFor16 waits, until a timeout expires, for a specific register bit to match a value. The return boolean indicates whether the wait condition was checked (true) or if it timed out (false). This function cannot be used before runtime initialization with `GOOS=tamago`.
func WaitSignal ¶
WaitSignal waits, until a channel is closed, for a specific register bit to match a value. The return boolean indicates whether the wait condition was checked (true) or cancelled (false). This function cannot be used before runtime initialization.
func WriteBack16 ¶
func WriteBack16(addr uint32)
Types ¶
This section is empty.