Versions in this module Expand all Collapse all v0 v0.9.1 Sep 21, 2018 v0.9.0 Sep 1, 2018 Changes in this version + const TimeFormat + func NextPowerOf2(v int) int + func RegisterParser(name string, parserFn NewParserFunc) + type Data struct + Bits string + Bytes []byte + Idx int + func NewData(data []byte) (d Data) + type Decoder struct + Cfg PacketConfig + Quantized []byte + Signal []float64 + func NewDecoder() Decoder + func (d *Decoder) Allocate() + func (d *Decoder) RegisterProtocol(p Parser) + func (d *Decoder) Search(preamble []byte) []int + func (d Decoder) Decode(input []byte) chan Message + func (d Decoder) Filter(input []float64, output []byte) + func (d Decoder) Log() + func (d Decoder) Slice(indices []int) (pkts []Data) + type Demodulator interface + Execute func([]byte, []float64) + type FilterChain []MessageFilter + func (fc *FilterChain) Add(filter MessageFilter) + func (fc FilterChain) Match(msg Message) bool + type LogMessage struct + Length int + Offset int64 + Time time.Time + func (msg LogMessage) Record() (r []string) + func (msg LogMessage) String() string + func (msg LogMessage) StringNoOffset() string + type MagLUT []float64 + func NewMagLUT() (lut MagLUT) + func (lut MagLUT) Execute(input []byte, output []float64) + type Message interface + Checksum func() []byte + MeterID func() uint32 + MeterType func() uint8 + MsgType func() string + type MessageFilter interface + Filter func(Message) bool + type NewParserFunc func(symbolLength int) Parser + type PacketConfig struct + BlockSize int + BlockSize2 int + BufferLength int + CenterFreq uint32 + ChipLength int + DataRate int + PacketLength int + PacketSymbols int + Preamble string + PreambleLength int + PreambleSymbols int + Protocol string + SampleRate int + SymbolLength int + type Parser interface + Cfg func() PacketConfig + Parse func([]Data, chan Message, *sync.WaitGroup) + SetDecoder func(*Decoder) + func NewParser(name string, symbolLength int) (Parser, error)