cmos

package
v3.0.0-...-66753ca Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

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

type Chip struct {
	memio.PortReadWriter
}

func New

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

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

Read reads a register reg from CMOS into data.

func (*Chip) Write

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