receiver

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

README

Short overview

com

  • -port COMn

direct

  • device RTTD

http

  • try out

jlinkRTTLogger

  • device jlinkRTTLogger
  • 8 byte TRICE packages

random

  • -device RND

rttfile

  • devive RTTF
  • 4 or 8 byte TRICE packages

segger

  • device RTT

simulator

  • device SIM

Short overview

com

-port COMn

  • format bare|sure

tcp

  • port localhost:19021
  • format bare|sure

random

-port RND

file

  • port file.name
  • format bare|sure

simulator

  • port SIM
  • format bare|sure

jlinkRTTLogger

  • port JLRTT
  • format bare|sure

trice log -src COMn [-speed 115200] [-format bare|sure] trice log -src localhost:19021 trice log -src 127.0.0.1:19021 trice log -src 19021 trice log -src RND trice log -src SIM trice log -src JRTT trice log -src STRTT trice log -src file.name

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Source is the trice receiver to use
	Source string

	// DiscardByte is the function to execute if a data stream byte is to be discarded
	// type DicardFunc func(byte)
	DiscardByte = DiscardWithMessage
)
View Source
var Cipher *xtea.Cipher

Cipher is a pointer to the cryptpo struct filled during initialization

View Source
var Crypto bool

Crypto set to true if a -key other than "none" was given

Functions

func DiscardASCII added in v0.9.2

func DiscardASCII(c byte)

DiscardASCII discards a byte assuming to be printable and prints it.

func DiscardSilent added in v0.9.2

func DiscardSilent(c byte)

DiscardSilent discards a byte silently

func DiscardWithMessage added in v0.9.2

func DiscardWithMessage(b byte)

DiscardWithMessage discards a byte with a verbose message

func ReadNextByte added in v0.9.2

func ReadNextByte(r io.Reader, b []byte) ([]byte, error)

ReadNextByte discards first byte in b and appends next read byte to b

Types

type TriceReceiver added in v0.9.2

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

TriceReceiver is a type definition

func New added in v0.9.2

func New(r io.ReadCloser) *TriceReceiver

NewTriceReceiver creates an instance of the common trice receiver part for a new receiver device

After creation the embedded io.ReadCloser interface is in an opened state. The created Trice receiver is in inactive state.

func (*TriceReceiver) Start added in v0.9.2

func (p *TriceReceiver) Start()

start starts receiving of serial data

func (*TriceReceiver) Stop added in v0.9.2

func (p *TriceReceiver) Stop()

stop stops receiving of serial data

Directories

Path Synopsis
Package baresynchronizer reads 4 byte bare trices and syncs internally if byte stream inconsistent.
Package baresynchronizer reads 4 byte bare trices and syncs internally if byte stream inconsistent.
Package com reads from COM port.
Package com reads from COM port.
Package segger reads from SeggerRTT.
Package segger reads from SeggerRTT.
Package jlink reads from SeggerRTT with the SEGGER app JLinkRTTLogger.
Package jlink reads from SeggerRTT with the SEGGER app JLinkRTTLogger.
Package randomdummy generates random trice data for testing.
Package randomdummy generates random trice data for testing.
Package rttfile reads trice data from file.
Package rttfile reads trice data from file.
Package segger reads from SeggerRTT.
Package segger reads from SeggerRTT.
Package triceFile reads trice data from file.
Package triceFile reads trice data from file.
Package wrapsynchronizer reads 8 byte trice wraps and syncs internally if byte stream inconsistent
Package wrapsynchronizer reads 8 byte trice wraps and syncs internally if byte stream inconsistent

Jump to

Keyboard shortcuts

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