direct

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: 6 Imported by: 0

Documentation

Overview

Package segger reads from SeggerRTT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RTT

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

RTT is the Segger RealTime Transfer reader interface.

func New

func New() *RTT

New creates an instance of RTT ReadCloser.

It is intended to be used by receiver.New() which embeds its interface.

func (*RTT) Close

func (p *RTT) Close() error

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

func (*RTT) Open

func (p *RTT) Open() error

Open initializes the SeggerRTT receiver

It connects over TCP. It reads and discards bytes until it gets a sync message.

func (*RTT) Read

func (p *RTT) Read(buf []byte) (int, error)

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

Usually t is empty when Read is executed, so otherwise Read returns only some or all unread bytes from t.

Jump to

Keyboard shortcuts

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