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
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 |
Click to show internal directories.
Click to hide internal directories.