cmos

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: BSD-3-Clause Imports: 1 Imported by: 7

Documentation

Overview

Package cmos lets you read and write to cmos registers while doing basic checks on valid register selections.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chip added in v0.9.0

type Chip struct {
	memio.PortReadWriter
}

func New added in v0.9.0

func New() (*Chip, error)

GetCMOS() returns the struct to call Read and Write functions for CMOS associated with the correct functions of memio.In and memio.Out

func (*Chip) Read added in v0.9.0

func (c *Chip) Read(reg memio.Uint8, data memio.UintN) error

Read reads a register reg from CMOS into data.

func (*Chip) Write added in v0.9.0

func (c *Chip) Write(reg memio.Uint8, data memio.UintN) error

Write writes value data into CMOS register reg.

Jump to

Keyboard shortcuts

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