serial

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package serial controls serial communication over USB

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Serial

type Serial struct {
	Messenger *messenger.Messenger // messenger object
	sync.Mutex
	// contains filtered or unexported fields
}

Serial communicates with a serial port

func NewConnection

func NewConnection(port string, maxPacketLen int, timeout time.Duration, msgr *messenger.Messenger) (*Serial, error)

NewConnection creates a new serial connection with a unix filename

func (*Serial) Start

func (serial *Serial) Start()

Start runs the main loop of listening on the serial port

func (*Serial) Stop

func (serial *Serial) Stop()

Stop stops the main loop listening on the serial port

Jump to

Keyboard shortcuts

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