temp

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TEMP = (*Periph)(unsafe.Pointer(mmap.APB_BASE + 0x0C000))

Functions

This section is empty.

Types

type Event

type Event byte
const (
	DATARDY Event = 0 // Temperature measurement complete, data ready.
)

type Periph

type Periph struct {
	te.Regs
	// contains filtered or unexported fields
}

func (*Periph) A

func (p *Periph) A() []mmio.U32

func (*Periph) B

func (p *Periph) B() []mmio.U32

func (*Periph) Event

func (p *Periph) Event(e Event) *te.Event

func (*Periph) LoadTEMP

func (p *Periph) LoadTEMP() int

LoadTEMP returns temperature (in 0.25 °C units) mesured by last START task.

func (*Periph) T

func (p *Periph) T() []mmio.U32

func (*Periph) Task

func (p *Periph) Task(t Task) *te.Task

type Task

type Task byte
const (
	START Task = 0 // Start temperature measurement.
	STOP  Task = 1 // Stop temperature measurement.
)

Jump to

Keyboard shortcuts

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