exats

package
v0.0.0-...-cd37182 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExaTrailer

type ExaTrailer struct {
	OriginFCS [4]byte
	DeviceID  uint8
	PortID    uint8
	EpochSec  [4]byte
	FracSec   [5]byte
	Reserved  uint8
}

ExaTrailer is used to decode Exablaze timestamp trailer

type HPT

type HPT struct {
	TimeStamp *PicoSecondTimeStamp
	DeviceID  uint8
	PortID    uint8
}

ExaTimeStamp is ?

func DecodeExaTS

func DecodeExaTS(pkt gopacket.Packet, freq uint64, lastTS time.Time, lastTick uint64) (time.Time, *HPT, error)

DecodeExaTS is used to decode Exablaze HPT Timestamp trailer

func (*HPT) String

func (e *HPT) String() string

type PicoSecondDuration

type PicoSecondDuration struct {
	Epoch       int32
	PicoSeconds int64
}

PicoSecondDuration is used for picsecond duration

func (*PicoSecondDuration) String

func (e *PicoSecondDuration) String() string

type PicoSecondTimeStamp

type PicoSecondTimeStamp struct {
	Epoch       uint32
	PicoSeconds uint64
}

PicoSecondTimeStamp is used for picosecond timestamp

func (*PicoSecondTimeStamp) Duration

Duration is used to calculate time duration between two PstimeT

type RefClock

type RefClock struct {
	Timestamp int64
	TickCnt   uint64
	Frequency uint64
	LastSync  uint64
}

func DecodeKeyFrame

func DecodeKeyFrame(data []byte) (*RefClock, error)

Jump to

Keyboard shortcuts

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