jlink

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package jlink reads from SeggerRTT with the SEGGER app JLinkRTTLogger.

It provides a ReadCloser interface and makes no assumptiona about the delivered data. It is also agnostic concerning the RTT channel and other setup parameters.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Param contails the command line parameters for JLinkRTTLogger
	Param string
)

Functions

This section is empty.

Types

type RTTL

type RTTL struct {
	// contains filtered or unexported fields
}

RTTL is the Segger RealTime Transfer logger reader interface.

func New

func New(param string) *RTTL

New creates an instance of RTT ReadCloser.

It is intended to be used by receiver.New() which embeds its interface. The param string is used as JLinkRTTLogger parameter string. See SEGGER UM08001_JLink.pdf for details.

func (*RTTL) Close

func (p *RTTL) Close() error

Close is part of the exported interface io.ReadCloser. It ends the connection.

See https://stackoverflow.com/questions/11886531/terminating-a-process-started-with-os-exec-in-golang

func (*RTTL) Open

func (p *RTTL) Open() error

Open starts the JLinkRTTLogger command with a temporary logfile

THe temporary logfile is opened for reading.

func (*RTTL) Read

func (p *RTTL) Read(b []byte) (int, error)

Read() is part of the exported interface io.ReadCloser. It reads a slice of bytes.

Jump to

Keyboard shortcuts

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