chameleon

package
Version: v0.0.0-...-c44611c Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package chameleon is used to communicate with chameleon devices connected to DUTs. It communicates with chameleon over XML-RPC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chameleon

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

Chameleon holds the chameleond connection information.

func Default

func Default(ctx context.Context) (*Chameleon, error)

Default creates a Chameleon object for communicating with a local chameleond instance using the default port.

func New

func New(ctx context.Context, connSpec string) (*Chameleon, error)

New creates a new Chameleon object for communicating with a chameleond instance. connSpec holds chameleond's location, either as "host:port" or just "host" (to use the default port).

func (*Chameleon) Close

func (ch *Chameleon) Close(ctx context.Context) error

Close releases the chameleon board resources.

func (*Chameleon) NewPort

func (ch *Chameleon) NewPort(ctx context.Context, portID int) (*Port, error)

NewPort creates a new port object for the chameleon board.

func (*Chameleon) SupportedPorts

func (ch *Chameleon) SupportedPorts(ctx context.Context) ([]int, error)

SupportedPorts calls the Chameleon GetSupportedPorts method.

type Port

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

Port holds the chameleon board port information.

func (*Port) Plug

func (p *Port) Plug(ctx context.Context) error

Plug calls the Chameleon plug method.

func (*Port) Unplug

func (p *Port) Unplug(ctx context.Context) error

Unplug calls the Chameleon Unplug method.

func (*Port) WaitVideoInputStable

func (p *Port) WaitVideoInputStable(ctx context.Context, timeout time.Duration) error

WaitVideoInputStable calls the Chameleon WaitVideoInputStable method.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto