toolchain

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPySerialCommand

func GetPySerialCommand(args ...string) (*exec.Cmd, error)

This is the command to execute PySerial to get ports information

func GetToolchainPath

func GetToolchainPath() (string, error)

This returns the path to toolchain directory

Types

type SerialPort

type SerialPort struct {
	Port         string
	Description  string
	Hwid         string
	Manufacturer string
	SerialNumber string `json:"serial-number"`
	Vid          string
	Product      string
}

func GetArduinoPort

func GetArduinoPort(ports *SerialPorts) *SerialPort

type SerialPorts

type SerialPorts struct {
	Ports []SerialPort
}

func GetPorts

func GetPorts() (*SerialPorts, error)

Jump to

Keyboard shortcuts

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