ftn

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

README

This is experimental driver fo newer FTDI chips

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

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

func (*Conn) Description

func (c *Conn) Description() (string, error)

func (*Conn) Serial

func (c *Conn) Serial() (string, error)

type Device

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

Device represents some FTDI device

func FindDevices

func FindDevices(vendor, product int) ([]*Device, error)

func (*Device) Connect

func (d *Device) Connect() (*Conn, error)

type Mode

type Mode byte
const (
	ModeReset Mode = iota
	ModeBitbang
	ModeMPSSE
	ModeSyncBB
	ModeMCU
	ModeOpto
	ModeCBUS
	ModeSyncFF
	ModeFT1284
)

type USBError

type USBError int

func (USBError) Error

func (e USBError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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