scm

package
Version: v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2015 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPacketConfig

func NewPacketConfig(symbolLength int) (cfg decode.PacketConfig)

Types

type Parser

type Parser struct {
	decode.Decoder
	crc.CRC
}

func NewParser

func NewParser(symbolLength, decimation int, fastMag bool) (p Parser)

func (Parser) Cfg added in v0.6.1

func (p Parser) Cfg() decode.PacketConfig

func (Parser) Dec added in v0.6.1

func (p Parser) Dec() decode.Decoder

func (Parser) Parse

func (p Parser) Parse(indices []int) (msgs []parse.Message)

type SCM

type SCM struct {
	ID          uint32 `xml:",attr"`
	Type        uint8  `xml:",attr"`
	TamperPhy   uint8  `xml:",attr"`
	TamperEnc   uint8  `xml:",attr"`
	Consumption uint32 `xml:",attr"`
	Checksum    uint16 `xml:",attr"`
}

Standard Consumption Message

func NewSCM added in v0.6.2

func NewSCM(data parse.Data) (scm SCM)

func (SCM) MeterID

func (scm SCM) MeterID() uint32

func (SCM) MeterType

func (scm SCM) MeterType() uint8

func (SCM) MsgType

func (scm SCM) MsgType() string

func (SCM) Record

func (scm SCM) Record() (r []string)

func (SCM) String

func (scm SCM) String() string

Source Files

Jump to

Keyboard shortcuts

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