Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ShowInputBytes displays incoming bytes if set true. ShowInputBytes bool // Port is the trice receiver to use. Port string // PortArguments are the trice receiver device specific arguments. PortArguments string )
Functions ¶
func NewBytesViewer ¶ added in v0.18.4
func NewBytesViewer(from io.ReadCloser) (in io.ReadCloser)
NewBytesViewer returns a ReadCloser `in` which is internally using reader `from`. Calling the `in` Read method leads to internally calling the `from` Read method but lets to do some additional action like logging
func NewReadCloser ¶ added in v0.18.4
func NewReadCloser(port, args string) (r io.ReadCloser, err error)
NewReadCloser returns a ReadCloser for the specified port and its args. err is nil on successful open. When port is "COMn" args can be used to be "TARM" to use a different driver for dynamic testing. When port is "BUFFER", args is expected to be a byte sequence in the same format as for example coming from one of the other ports. When port is "JLINK" args contains JLinkRTTLogger.exe specific parameters described inside UM08001_JLink.pdf. When port is "STLINK" args has the same format as for "JLINK"
Types ¶
This section is empty.