jugg

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

README

Jugg

A simple tool for debugging serial devices

banner

Jugg Serial Port tool
Usage: jugg [mode] <arguments> [options]
Modes:
  list		List the available serial ports
  monitor	Monitors the activity on a serial port 
  send		Send data to a serial port
Arguments:
  --help	-h 	display this help menu
  --output	-o	output file
  --input	-i	input file
  --silent	-s	silent the output
  --verbose	-v 	output more data when available

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MonitorPort

func MonitorPort(port string, baud int, output chan PortData)

func SendData

func SendData(port string, baud int, data []byte) (n int, err error)

Types

type PortData

type PortData struct {
	Data []byte
	Err  error
}

type PortDetails

type PortDetails = enumerator.PortDetails

func ListDevices

func ListDevices() ([]*PortDetails, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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