scmplus

package
Version: v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParser

func NewParser(chipLength int) (p protocol.Parser)

Types

type Parser

type Parser struct {
	crc.CRC
	// contains filtered or unexported fields
}

func (*Parser) Cfg

func (p *Parser) Cfg() protocol.PacketConfig

func (Parser) Parse

func (p Parser) Parse(pkts []protocol.Data, msgCh chan protocol.Message, wg *sync.WaitGroup)

func (Parser) SetDecoder added in v0.9.0

func (p Parser) SetDecoder(d *protocol.Decoder)

type SCM

type SCM struct {
	FrameSync    uint16 `xml:",attr"`
	ProtocolID   uint8  `xml:",attr"`
	EndpointType uint8  `xml:",attr"`
	EndpointID   uint32 `xml:",attr"`
	Consumption  uint32 `xml:",attr"`
	Tamper       uint16 `xml:",attr"`
	PacketCRC    uint16 `xml:"Checksum,attr",json:"Checksum"`
}

Standard Consumption Message Plus

func NewSCM

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

func (SCM) Checksum

func (scm SCM) Checksum() []byte

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