Versions in this module Expand all Collapse all v0 v0.3.0 Oct 11, 2026 v0.2.0 Oct 11, 2026 Changes in this version + const Connected + const Disconnected + const ImageActivationFailed + const ImageActivationInitiated + const ImageActivationOK + const ImageInitiated + const ImageNotInitiated + const ImageVerificationFailed + const ImageVerificationInitiated + const ImageVerificationOK + const ReadyForReconnection + func DateTime(t time.Time, loc *time.Location) []byte + func LNOctets(ln string) ([]byte, error) + func LNString(b []byte) string + func ObjectListEntryLN(class uint16, version uint8, ln string, attrAccess []AttributeAccess, ...) *axdr.DlmsData + func ObjectListEntrySN(baseName int16, class uint16, version uint8, ln string) *axdr.DlmsData + func ParseDateTime(b []byte, loc *time.Location) (time.Time, bool) + type ActivityCalendar struct + ActivatePassiveTime []byte + DayActive *axdr.DlmsData + DayPassive *axdr.DlmsData + LN string + NameActive []byte + NamePassive []byte + SeasonActive *axdr.DlmsData + SeasonPassive *axdr.DlmsData + WeekActive *axdr.DlmsData + WeekPassive *axdr.DlmsData + func (o *ActivityCalendar) Action(m int8, _ *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *ActivityCalendar) ActivatePassive() + func (o *ActivityCalendar) ClassID() uint16 + func (o *ActivityCalendar) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *ActivityCalendar) LogicalName() string + func (o *ActivityCalendar) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *ActivityCalendar) Version() uint8 + type AssociationLN struct + ApplicationContextName *axdr.DlmsData + AuthenticationMechanismName *axdr.DlmsData + ClientSAP int8 + CurrentUser *axdr.DlmsData + LN string + ObjectList *axdr.DlmsData + ObjectListFunc func() *axdr.DlmsData + Secret []byte + SecuritySetupReference string + ServerSAP uint16 + Status uint8 + UserList *axdr.DlmsData + XDLMSContextInfo *axdr.DlmsData + func (o *AssociationLN) Action(m int8, _ *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *AssociationLN) ClassID() uint16 + func (o *AssociationLN) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *AssociationLN) LogicalName() string + func (o *AssociationLN) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *AssociationLN) Version() uint8 + type AssociationSN struct + AccessRightsList *axdr.DlmsData + CurrentUser *axdr.DlmsData + LN string + ObjectList *axdr.DlmsData + ObjectListFunc func() *axdr.DlmsData + SecuritySetupReference string + UserList *axdr.DlmsData + func (o *AssociationSN) Action(m int8, _ *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *AssociationSN) ClassID() uint16 + func (o *AssociationSN) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *AssociationSN) LogicalName() string + func (o *AssociationSN) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *AssociationSN) Version() uint8 + type Attribute struct + Index int8 + Name string + Static bool + type AttributeAccess struct + Index int8 + Mode uint8 + Selectors []int8 + type Binder interface + Bind func(r Resolver) + type CaptureObject struct + Attr int8 + Class uint16 + DataIndex uint16 + LN string + type Class struct + Attributes []Attribute + FirstMethodSN uint16 + ID uint16 + Methods []Method + Name string + Version uint8 + func All() []*Class + func Lookup(id uint16) (*Class, bool) + func (c *Class) Attribute(i int8) (Attribute, bool) + func (c *Class) AttributeSN(i int8) uint16 + func (c *Class) Method(i int8) (Method, bool) + func (c *Class) MethodSN(i int8) (uint16, bool) + type Clock struct + ClockBase uint8 + DSTBegin []byte + DSTDeviation int8 + DSTEnabled bool + DSTEnd []byte + LN string + Location *time.Location + MeasuringPeriod time.Duration + Now func() time.Time + Status uint8 + TimeZone int16 + func (o *Clock) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *Clock) ClassID() uint16 + func (o *Clock) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *Clock) LogicalName() string + func (o *Clock) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *Clock) SetTime(t time.Time) + func (o *Clock) Time() time.Time + func (o *Clock) Version() uint8 + type Data struct + LN string + ReadOnly bool + Value *axdr.DlmsData + func (o *Data) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *Data) ClassID() uint16 + func (o *Data) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *Data) LogicalName() string + func (o *Data) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *Data) Version() uint8 + type DemandRegister struct + CaptureTime time.Time + CurrentAverage *axdr.DlmsData + LN string + LastAverage *axdr.DlmsData + Location *time.Location + Now func() time.Time + NumberOfPeriods uint16 + Period uint32 + Scaler int8 + StartTimeCurrent time.Time + Status *axdr.DlmsData + Unit uint8 + func (o *DemandRegister) Action(m int8, _ *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *DemandRegister) ClassID() uint16 + func (o *DemandRegister) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *DemandRegister) LogicalName() string + func (o *DemandRegister) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *DemandRegister) Version() uint8 + type DisconnectControl struct + ControlMode uint8 + ControlState uint8 + LN string + OnChange func(output bool) error + OutputState bool + func (o *DisconnectControl) Action(m int8, _ *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *DisconnectControl) ClassID() uint16 + func (o *DisconnectControl) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *DisconnectControl) LocalDisconnect() error + func (o *DisconnectControl) LocalReconnect() error + func (o *DisconnectControl) LogicalName() string + func (o *DisconnectControl) ManualDisconnect() error + func (o *DisconnectControl) ManualReconnect() error + func (o *DisconnectControl) RemoteDisconnect() error + func (o *DisconnectControl) RemoteReconnect() error + func (o *DisconnectControl) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *DisconnectControl) Version() uint8 + type ExtendedRegister struct + CaptureTime time.Time + LN string + Location *time.Location + Now func() time.Time + Scaler int8 + Status *axdr.DlmsData + Unit uint8 + Value *axdr.DlmsData + func (o *ExtendedRegister) Action(m int8, _ *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *ExtendedRegister) ClassID() uint16 + func (o *ExtendedRegister) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *ExtendedRegister) LogicalName() string + func (o *ExtendedRegister) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *ExtendedRegister) Version() uint8 + type Generic struct + Attrs map[int8]*axdr.DlmsData + Class uint16 + LN string + Methods map[int8]func(param *axdr.DlmsData) (*axdr.DlmsData, error) + Ver uint8 + Writable map[int8]bool + func (o *Generic) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *Generic) ClassID() uint16 + func (o *Generic) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *Generic) LogicalName() string + func (o *Generic) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *Generic) Version() uint8 + type IECHDLCSetup struct + CommSpeed uint8 + DeviceAddress uint16 + InactivityTimeout uint16 + InterOctetTimeout uint16 + LN string + MaxInfoReceive uint16 + MaxInfoTransmit uint16 + WindowReceive uint8 + WindowTransmit uint8 + func (o *IECHDLCSetup) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *IECHDLCSetup) ClassID() uint16 + func (o *IECHDLCSetup) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *IECHDLCSetup) LogicalName() string + func (o *IECHDLCSetup) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *IECHDLCSetup) Version() uint8 + type IECLocalPortSetup struct + DefaultBaud uint8 + DefaultMode uint8 + DeviceAddress []byte + LN string + PasswordP1 []byte + PasswordP2 []byte + PasswordW5 []byte + ProposedBaud uint8 + ResponseTime uint8 + func (o *IECLocalPortSetup) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *IECLocalPortSetup) ClassID() uint16 + func (o *IECLocalPortSetup) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *IECLocalPortSetup) LogicalName() string + func (o *IECLocalPortSetup) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *IECLocalPortSetup) Version() uint8 + type IPv4Setup struct + DataLinkReference string + Gateway uint32 + IPAddress uint32 + IPOptions *axdr.DlmsData + LN string + Multicast []uint32 + PrimaryDNS uint32 + SecondaryDNS uint32 + SubnetMask uint32 + UseDHCP bool + func (o *IPv4Setup) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *IPv4Setup) ClassID() uint16 + func (o *IPv4Setup) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *IPv4Setup) LogicalName() string + func (o *IPv4Setup) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *IPv4Setup) Version() uint8 + type ImageTransfer struct + BlockSize uint32 + Enabled bool + LN string + OnActivate func(id, image []byte) error + OnVerify func(id, image []byte) error + Signature []byte + Status uint8 + func (o *ImageTransfer) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *ImageTransfer) ClassID() uint16 + func (o *ImageTransfer) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *ImageTransfer) Image() (id, image []byte) + func (o *ImageTransfer) LogicalName() string + func (o *ImageTransfer) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *ImageTransfer) Version() uint8 + type Limiter struct + Actions *axdr.DlmsData + EmergencyGroupIDs *axdr.DlmsData + EmergencyProfile *axdr.DlmsData + EmergencyProfileActive bool + LN string + MinOverDuration uint32 + MinUnderDuration uint32 + MonitoredValue ValueRef + ThresholdActive *axdr.DlmsData + ThresholdEmergency *axdr.DlmsData + ThresholdNormal *axdr.DlmsData + func (o *Limiter) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *Limiter) ClassID() uint16 + func (o *Limiter) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *Limiter) LogicalName() string + func (o *Limiter) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *Limiter) Version() uint8 + type Method struct + Index int8 + Name string + type MethodAccess struct + Index int8 + Mode uint8 + type MonitorAction struct + Down ScriptRef + Up ScriptRef + type Object interface + Action func(m int8, param *axdr.DlmsData) (*axdr.DlmsData, error) + ClassID func() uint16 + Get func(attr int8, sel *Selector) (*axdr.DlmsData, error) + LogicalName func() string + Set func(attr int8, v *axdr.DlmsData, sel *Selector) error + Version func() uint8 + type ObjectListItem struct + Attributes []AttributeAccess + BaseName int16 + Class uint16 + LN string + Methods []MethodAccess + Version uint8 + func ParseObjectListLN(d axdr.DlmsData) ([]ObjectListItem, error) + func ParseObjectListSN(d axdr.DlmsData) ([]ObjectListItem, error) + type ProfileGeneric struct + Buffer [][]*axdr.DlmsData + CaptureObjects []CaptureObject + CapturePeriod uint32 + LN string + Location *time.Location + ProfileEntries uint32 + SortMethod uint8 + SortObject CaptureObject + func (o *ProfileGeneric) Action(m int8, _ *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *ProfileGeneric) Bind(r Resolver) + func (o *ProfileGeneric) Capture() error + func (o *ProfileGeneric) ClassID() uint16 + func (o *ProfileGeneric) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *ProfileGeneric) LogicalName() string + func (o *ProfileGeneric) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *ProfileGeneric) Version() uint8 + type PushDestination struct + Address []byte + Message uint8 + Transport uint8 + type PushSetup struct + CommunicationWindow *axdr.DlmsData + Destination PushDestination + LN string + NumberOfRetries uint8 + OnPush func(values []*axdr.DlmsData) error + PushObjectList []CaptureObject + RandomisationStartInterval uint16 + RepetitionDelay uint16 + func (o *PushSetup) Action(m int8, _ *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *PushSetup) Bind(r Resolver) + func (o *PushSetup) ClassID() uint16 + func (o *PushSetup) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *PushSetup) LogicalName() string + func (o *PushSetup) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *PushSetup) Values() ([]*axdr.DlmsData, error) + func (o *PushSetup) Version() uint8 + type Register struct + LN string + Scaler int8 + Unit uint8 + Value *axdr.DlmsData + func (o *Register) Action(m int8, _ *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *Register) ClassID() uint16 + func (o *Register) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *Register) LogicalName() string + func (o *Register) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *Register) Version() uint8 + type RegisterActivation struct + ActiveMask []byte + LN string + MaskList *axdr.DlmsData + RegisterAssignment *axdr.DlmsData + func (o *RegisterActivation) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *RegisterActivation) ClassID() uint16 + func (o *RegisterActivation) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *RegisterActivation) LogicalName() string + func (o *RegisterActivation) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *RegisterActivation) Version() uint8 + type RegisterMonitor struct + Actions []MonitorAction + LN string + MonitoredValue ValueRef + OnScript func(s ScriptRef) error + Thresholds *axdr.DlmsData + func (o *RegisterMonitor) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *RegisterMonitor) Bind(r Resolver) + func (o *RegisterMonitor) Check() error + func (o *RegisterMonitor) ClassID() uint16 + func (o *RegisterMonitor) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *RegisterMonitor) LogicalName() string + func (o *RegisterMonitor) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *RegisterMonitor) Version() uint8 + type Resolver interface + Resolve func(class uint16, ln string, attr int8) (*axdr.DlmsData, error) + type Result uint8 + const BlockNumberInvalid + const BlockUnavailable + const ClassInconsistent + const HardwareFault + const LongAborted + const LongSetAborted + const NoLongInProgress + const NoLongSetProgress + const ObjectUnavailable + const ObjectUndefined + const OtherReason + const ReadWriteDenied + const ScopeViolated + const Success + const TemporaryFailure + const TypeUnmatched + func ResultOf(err error) Result + func (r Result) Error() string + type SAPAssignment struct + LN string + List []SAPEntry + func (o *SAPAssignment) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *SAPAssignment) ClassID() uint16 + func (o *SAPAssignment) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *SAPAssignment) LogicalName() string + func (o *SAPAssignment) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *SAPAssignment) Version() uint8 + type SAPEntry struct + Name []byte + SAP uint16 + type Schedule struct + Entries *axdr.DlmsData + LN string + func (o *Schedule) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *Schedule) ClassID() uint16 + func (o *Schedule) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *Schedule) LogicalName() string + func (o *Schedule) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *Schedule) Version() uint8 + type ScriptRef struct + LN string + Selector uint16 + type ScriptTable struct + LN string + OnExecute func(id uint16) error + Scripts *axdr.DlmsData + func (o *ScriptTable) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *ScriptTable) ClassID() uint16 + func (o *ScriptTable) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *ScriptTable) LogicalName() string + func (o *ScriptTable) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *ScriptTable) Version() uint8 + type SecuritySetup struct + Certificates *axdr.DlmsData + ClientSystemTitle []byte + LN string + OnActivate func(policy uint8) error + OnCertificate func(method int8, param *axdr.DlmsData) (*axdr.DlmsData, error) + OnKeyAgreement func(param *axdr.DlmsData) (*axdr.DlmsData, error) + OnKeyTransfer func(param *axdr.DlmsData) error + SecurityPolicy uint8 + SecuritySuite uint8 + ServerSystemTitle []byte + func (o *SecuritySetup) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *SecuritySetup) ClassID() uint16 + func (o *SecuritySetup) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *SecuritySetup) LogicalName() string + func (o *SecuritySetup) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *SecuritySetup) Version() uint8 + type Selector struct + ID uint8 + Parameters *axdr.DlmsData + type SingleActionSchedule struct + ExecutedScript ScriptRef + ExecutionTime *axdr.DlmsData + LN string + Type uint8 + func (o *SingleActionSchedule) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *SingleActionSchedule) ClassID() uint16 + func (o *SingleActionSchedule) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *SingleActionSchedule) LogicalName() string + func (o *SingleActionSchedule) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *SingleActionSchedule) Version() uint8 + type SpecialDay struct + Date []byte + DayID uint8 + Index uint16 + type SpecialDaysTable struct + Entries []SpecialDay + LN string + func (o *SpecialDaysTable) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *SpecialDaysTable) ClassID() uint16 + func (o *SpecialDaysTable) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *SpecialDaysTable) LogicalName() string + func (o *SpecialDaysTable) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *SpecialDaysTable) Version() uint8 + type TCPUDPSetup struct + IPReference string + InactivityTimeout uint16 + LN string + MSS uint16 + MaxConnections uint8 + Port uint16 + func (o *TCPUDPSetup) Action(m int8, p *axdr.DlmsData) (*axdr.DlmsData, error) + func (o *TCPUDPSetup) ClassID() uint16 + func (o *TCPUDPSetup) Get(a int8, sel *Selector) (*axdr.DlmsData, error) + func (o *TCPUDPSetup) LogicalName() string + func (o *TCPUDPSetup) Set(a int8, v *axdr.DlmsData, sel *Selector) error + func (o *TCPUDPSetup) Version() uint8 + type ValueRef struct + Attr int8 + Class uint16 + LN string