morserino_com

package
v0.0.0-...-5f964a6 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsoleListen

func ConsoleListen(morserinoPortName string, genericEnumPorts comPortEnumerator) error

Main listen function with display to the console

func DetectDevice

func DetectDevice(genericEnumPorts comPortEnumerator) (string, error)

Tries to auto detect the Morserino port

func Get_com_list

func Get_com_list(genericEnumPorts comPortEnumerator) (comPortList, error)

Gets all the ports on the system , checks whether it is a moreserino, and returns an array of port description

func List_com

func List_com(genericEnumPorts comPortEnumerator) (string, error)

Gets the list of COM devices and displays them on the console

func Listen

func Listen(port io.Reader) error

Main receive loop

Types

type EnumeratePorts

type EnumeratePorts struct{}

func (EnumeratePorts) GetDetailedPortsList

func (e EnumeratePorts) GetDetailedPortsList() ([]*enumerator.PortDetails, error)

Jump to

Keyboard shortcuts

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