Documentation ¶
Overview ¶
Package link reads from SeggerRTT with the SEGGER app JLinkRTTLogger or with the open source app stRttLogger.exe.
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 ( // Verbose gives mor information on output if set. The value is injected from main packages. Verbose bool )
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { Exec string // linkBinary is the RTT logger executable . Lib string // linkDynLib is the RTT used dynamic library name. Err error Done chan bool // contains filtered or unexported fields }
Device is the RTT logger reader interface.
func NewDevice ¶
NewDevice creates an instance of RTT ReadCloser of type Port. The Args string is used as parameter string. See SEGGER UM08001_JLink.pdf for details.
func (*Device) Close ¶
Close is part of the exported interface io.ReadCloser. It ends the connection.
func (*Device) ErrorFatal ¶
func (p *Device) ErrorFatal()
ErrorFatal ends in osExit(1) if p.Err not nil.
Click to show internal directories.
Click to hide internal directories.