tzsp

package module
v0.0.0-...-7230b77 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	TZSPTypeReceived = 0
	TZSPEncap80211   = 18 << 8
	TZSPTagSignal    = 10
	TZSPTagRate      = 12
	TZSPTagFCS       = 17
	TZSPTagChannel   = 18
	TZSPTagOrigLen   = 41
	TZSPTagSensorMAC = 60
	TZSPTagEnd       = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

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

func NewFromFile

func NewFromFile(fname string) (*Decoder, error)

func NewFromNetwork

func NewFromNetwork() (*Decoder, error)

func (*Decoder) Next

func (tzsp *Decoder) Next() (*Frame, error)

type Frame

type Frame map[string]interface{}

func (*Frame) DecodeIEEE80211

func (f *Frame) DecodeIEEE80211(buf []byte)

func (*Frame) DecodeTZSP

func (f *Frame) DecodeTZSP(buf []byte) (int, error)

func (*Frame) Print

func (f *Frame) Print()

type FrameIEEE80211

type FrameIEEE80211 struct {
	Control     uint16
	Duration    uint16
	Receiver    [6]uint8
	Transmitter [6]uint8
	Source      [6]uint8
}

type FrameTZSP

type FrameTZSP struct {
	Version       uint8
	Type          uint8
	Encapsulation uint16
	Tag           uint8
}

type TZSPTag

type TZSPTag struct {
	TZSPTag uint8
	Len     uint8
	Val     [6]uint8
}

Jump to

Keyboard shortcuts

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