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 assumptions about the delivered data. It is also agnostic concerning the RTT channel and other setup parameters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // Verbose gives more 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) Open ¶
Open starts the RTT logger command with a temporary logfile. The temporary logfile is opened for reading.