gtio

package
v0.0.0-...-0ff6af8 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package gtio gt65xx网关

Index

Constants

View Source
const (
	WdtTimeout1s  = 1
	WdtTimeout3s  = 3
	WdtTimeout14s = 14 // default timeout
)

defined timeout

Variables

This section is empty.

Functions

This section is empty.

Types

type IO

type IO struct {
	// contains filtered or unexported fields
}

IO µÖ«ÚÇÜio

func OpenIO

func OpenIO(name string) (*IO, error)

OpenIO open io

func (IO) Close

func (sf IO) Close() error

Close io close

func (IO) Off

func (sf IO) Off() error

Off io off│

func (IO) On

func (sf IO) On() error

On io on

type Key

type Key struct {
	// contains filtered or unexported fields
}

Key key

func OpenKey

func OpenKey(name string) (*Key, error)

OpenKey open key

func (Key) Close

func (sf Key) Close() error

Close close

func (Key) Read

func (sf Key) Read() (int, error)

Read read key ioctl(fd,0,0)

type Watchdog

type Watchdog struct {
	// contains filtered or unexported fields
}

Watchdog watch dog

func OpenWatchDog

func OpenWatchDog(name string) (*Watchdog, error)

OpenWatchDog open dog

func (Watchdog) Close

func (sf Watchdog) Close() error

Close close dog

func (Watchdog) Feed

func (sf Watchdog) Feed() error

Feed feed dog

func (Watchdog) SetTimeout

func (sf Watchdog) SetTimeout(_ int)

SetTimeout set timeout WDIOC_SETTIMEOUT 1,3,14þºÆ

Jump to

Keyboard shortcuts

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