ftdi

package module
v0.0.0-...-3f2045b Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2014 License: MIT Imports: 4 Imported by: 0

README

GoDoc

Documentation

Overview

Package ftdi is a wrapper around libFTDI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(c Config) (io.ReadWriteCloser, error)

Open returns a serial connection that can be read or written.

Types

type Config

type Config struct {
	// Vendor and Product are IDs uniquely assigned to each USB manufacturer.
	Vendor, Product int
	// Baud specifies the baud rate for the serial connection.
	Baud int
}

Config holds the vendor and product ids for the usb device.

type Version

type Version struct {
	Major, Minor, Micro int
	Version             string // Version as (static) string
	Snapshot            string //Git snapshot version if known. Otherwise "unknown" or empty string.
}

Version represents a version of libFTDI.

func GetVersion

func GetVersion() Version

GetVersion gets the current libFTDI version.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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