# ex_iec61850 v0.1.0 - API Reference

## Modules

- [ExIEC61850](ExIEC61850.md): Pure Elixir implementation of the IEC 61850 protocol stack.
- [ExIEC61850.Common.Conversions](ExIEC61850.Common.Conversions.md): Binary and integer conversion helpers for IEC 61850 data types.
- [ExIEC61850.Config](ExIEC61850.Config.md): Runtime stack configuration accessors and consistency validation.

- [ExIEC61850.Goose.GoosePublisher](ExIEC61850.Goose.GoosePublisher.md): IEC 61850 GOOSE (Generic Object Oriented Substation Event) frame encoder and publisher.
- [ExIEC61850.Goose.GooseReceiver](ExIEC61850.Goose.GooseReceiver.md): IEC 61850 GOOSE Ethernet receiver GenServer.
- [ExIEC61850.Goose.GooseSubscriber](ExIEC61850.Goose.GooseSubscriber.md): IEC 61850 GOOSE APDU decoder and subscriber filter.
- [ExIEC61850.Hal.Ethernet](ExIEC61850.Hal.Ethernet.md): Linux Layer 2 Ethernet (`AF_PACKET` / `SOCK_RAW`) transport for GOOSE (`0x88B8`) and Sampled Values (`0x88BA`).
Uses Erlang/OTP's `:socket` module (no C NIF required).

- [ExIEC61850.IEC61850.Client.ClientControl](ExIEC61850.IEC61850.Client.ClientControl.md): IEC 61850 client control object helper (Direct, SBO, SBOw, Cancel).
- [ExIEC61850.IEC61850.Client.ClientDataSet](ExIEC61850.IEC61850.Client.ClientDataSet.md): IEC 61850 client DataSet container.
- [ExIEC61850.IEC61850.Client.ClientGooseControl](ExIEC61850.IEC61850.Client.ClientGooseControl.md): IEC 61850 client GOOSE Control Block (GoCB) reader and writer.
- [ExIEC61850.IEC61850.Client.ClientReport](ExIEC61850.IEC61850.Client.ClientReport.md): IEC 61850 client report parser and data structure.
- [ExIEC61850.IEC61850.Client.ClientReportControl](ExIEC61850.IEC61850.Client.ClientReportControl.md): IEC 61850 client Report Control Block (BRCB/URCB) configuration.
- [ExIEC61850.IEC61850.Client.ClientSvControl](ExIEC61850.IEC61850.Client.ClientSvControl.md): IEC 61850 client Sampled Values Control Block (SvCB) reader and writer.
- [ExIEC61850.IEC61850.Client.IedConnection](ExIEC61850.IEC61850.Client.IedConnection.md): IEC 61850 client connection API (sync and async ACSI services).
- [ExIEC61850.IEC61850.Client.ReconnectWorker](ExIEC61850.IEC61850.Client.ReconnectWorker.md): Supervisor-friendly auto-reconnecting IEC 61850 client worker with exponential backoff.
- [ExIEC61850.IEC61850.Common](ExIEC61850.IEC61850.Common.md): IEC 61850 common types: FunctionalConstraint, Quality, TriggerOptions, Timestamp, Dbpos, and PhyComAddress.
- [ExIEC61850.IEC61850.Common.ControlAddCause](ExIEC61850.IEC61850.Common.ControlAddCause.md)
- [ExIEC61850.IEC61850.Common.ControlModel](ExIEC61850.IEC61850.Common.ControlModel.md)
- [ExIEC61850.IEC61850.Common.Dbpos](ExIEC61850.IEC61850.Common.Dbpos.md)
- [ExIEC61850.IEC61850.Common.FunctionalConstraint](ExIEC61850.IEC61850.Common.FunctionalConstraint.md)
- [ExIEC61850.IEC61850.Common.PhyComAddress](ExIEC61850.IEC61850.Common.PhyComAddress.md)
- [ExIEC61850.IEC61850.Common.Quality](ExIEC61850.IEC61850.Common.Quality.md)
- [ExIEC61850.IEC61850.Common.ReportOptions](ExIEC61850.IEC61850.Common.ReportOptions.md)
- [ExIEC61850.IEC61850.Common.Timestamp](ExIEC61850.IEC61850.Common.Timestamp.md)
- [ExIEC61850.IEC61850.Common.TriggerOptions](ExIEC61850.IEC61850.Common.TriggerOptions.md)
- [ExIEC61850.IEC61850.Server.Impl.IedServer](ExIEC61850.IEC61850.Server.Impl.IedServer.md): IEC 61850 Server `GenServer`.
Cleanly delegates MMS transport to `MmsServer` and IEC 61850 mapping to `MmsMapping`, `Control`, `Reporting`, `MmsGoose`, `MmsSv`.

- [ExIEC61850.IEC61850.Server.Impl.IedServerConfig](ExIEC61850.IEC61850.Server.Impl.IedServerConfig.md): Configuration struct for `ExIEC61850.IEC61850.Server.Impl.IedServer`.
- [ExIEC61850.IEC61850.Server.MmsMapping.Control](ExIEC61850.IEC61850.Server.MmsMapping.Control.md): IEC 61850 server control state machine (Direct, SBO, SBOw, Cancel, CommandTermination).
- [ExIEC61850.IEC61850.Server.MmsMapping.Control.ControlObject](ExIEC61850.IEC61850.Server.MmsMapping.Control.ControlObject.md)
- [ExIEC61850.IEC61850.Server.MmsMapping.MmsGoose](ExIEC61850.IEC61850.Server.MmsMapping.MmsGoose.md): IEC 61850 server GOOSE control block publishing integration.
- [ExIEC61850.IEC61850.Server.MmsMapping.MmsMapping](ExIEC61850.IEC61850.Server.MmsMapping.MmsMapping.md): IEC 61850 Data Model to MMS Namespace & Setting Group (SGCB) mapping.

- [ExIEC61850.IEC61850.Server.MmsMapping.MmsMapping.SgcbInstance](ExIEC61850.IEC61850.Server.MmsMapping.MmsMapping.SgcbInstance.md)
- [ExIEC61850.IEC61850.Server.MmsMapping.MmsSv](ExIEC61850.IEC61850.Server.MmsMapping.MmsSv.md): IEC 61850 server Sampled Values control block mapping.
- [ExIEC61850.IEC61850.Server.MmsMapping.Reporting](ExIEC61850.IEC61850.Server.MmsMapping.Reporting.md): IEC 61850 server BRCB/URCB reporting state machine and report dispatcher.
- [ExIEC61850.IEC61850.Server.MmsMapping.Reporting.ReportInstance](ExIEC61850.IEC61850.Server.MmsMapping.Reporting.ReportInstance.md)
- [ExIEC61850.IEC61850.Server.Model](ExIEC61850.IEC61850.Server.Model.md): IEC 61850 hierarchical IED data model structs and reference lookup.
- [ExIEC61850.IEC61850.Server.Model.Cdc](ExIEC61850.IEC61850.Server.Model.Cdc.md): Builders for all 36 IEC 61850 Common Data Classes (CDCs).
- [ExIEC61850.IEC61850.Server.Model.ConfigFileParser](ExIEC61850.IEC61850.Server.Model.ConfigFileParser.md): Parser for `.cfg` IEC 61850 static model configuration files.
- [ExIEC61850.IEC61850.Server.Model.DataAttribute](ExIEC61850.IEC61850.Server.Model.DataAttribute.md)
- [ExIEC61850.IEC61850.Server.Model.DataObject](ExIEC61850.IEC61850.Server.Model.DataObject.md)
- [ExIEC61850.IEC61850.Server.Model.DataSet](ExIEC61850.IEC61850.Server.Model.DataSet.md)
- [ExIEC61850.IEC61850.Server.Model.DataSetEntry](ExIEC61850.IEC61850.Server.Model.DataSetEntry.md)
- [ExIEC61850.IEC61850.Server.Model.DynamicModel](ExIEC61850.IEC61850.Server.Model.DynamicModel.md): Programmatic builder for IEC 61850 IED data models, DataSets, and Control Blocks.
- [ExIEC61850.IEC61850.Server.Model.GSEControlBlock](ExIEC61850.IEC61850.Server.Model.GSEControlBlock.md)
- [ExIEC61850.IEC61850.Server.Model.IedModel](ExIEC61850.IEC61850.Server.Model.IedModel.md)
- [ExIEC61850.IEC61850.Server.Model.Log](ExIEC61850.IEC61850.Server.Model.Log.md)
- [ExIEC61850.IEC61850.Server.Model.LogControlBlock](ExIEC61850.IEC61850.Server.Model.LogControlBlock.md)
- [ExIEC61850.IEC61850.Server.Model.LogicalDevice](ExIEC61850.IEC61850.Server.Model.LogicalDevice.md)
- [ExIEC61850.IEC61850.Server.Model.LogicalNode](ExIEC61850.IEC61850.Server.Model.LogicalNode.md)
- [ExIEC61850.IEC61850.Server.Model.ReportControlBlock](ExIEC61850.IEC61850.Server.Model.ReportControlBlock.md)
- [ExIEC61850.IEC61850.Server.Model.SVControlBlock](ExIEC61850.IEC61850.Server.Model.SVControlBlock.md)
- [ExIEC61850.IEC61850.Server.Model.SclParser](ExIEC61850.IEC61850.Server.Model.SclParser.md): SCL (`.icd`/`.scd`/`.cid`) XML parser for building IEC 61850 IED models.
- [ExIEC61850.IEC61850.Server.Model.SettingGroupControlBlock](ExIEC61850.IEC61850.Server.Model.SettingGroupControlBlock.md)
- [ExIEC61850.Logging.Drivers.MemoryLogStorage](ExIEC61850.Logging.Drivers.MemoryLogStorage.md): In-memory GenServer implementation of `ExIEC61850.Logging.LogStorage`.
- [ExIEC61850.Logging.LogStorage](ExIEC61850.Logging.LogStorage.md): Behaviour for IEC 61850 journal/log storage backends.
- [ExIEC61850.Mms.Asn1.BerDecode](ExIEC61850.Mms.Asn1.BerDecode.md): ASN.1 BER TLV stream decoder.
- [ExIEC61850.Mms.Asn1.BerEncoder](ExIEC61850.Mms.Asn1.BerEncoder.md): ASN.1 BER TLV, OID, boolean, and bit-string encoder.
- [ExIEC61850.Mms.Asn1.BerInteger](ExIEC61850.Mms.Asn1.BerInteger.md): ASN.1 BER signed and unsigned integer encoder and decoder.
- [ExIEC61850.Mms.IsoAcse.Acse](ExIEC61850.Mms.IsoAcse.Acse.md): ISO 8650 ACSE (Association Control Service Element) AARQ, AARE, RLRQ, and RLRE codec.
- [ExIEC61850.Mms.IsoClient.IsoClientConnection](ExIEC61850.Mms.IsoClient.IsoClientConnection.md): ISO Client Connection layer (TCP/TLS + TPKT + COTP + Session + Presentation + ACSE).

- [ExIEC61850.Mms.IsoCommon.IsoConnectionParameters](ExIEC61850.Mms.IsoCommon.IsoConnectionParameters.md): Connection parameters for ISO/MMS TCP, TLS, selector addressing, and ACSE authentication.
- [ExIEC61850.Mms.IsoCotp.Cotp](ExIEC61850.Mms.IsoCotp.Cotp.md): ISO 8073 COTP (Connection-Oriented Transport Protocol) CR, CC, and DT codec.
- [ExIEC61850.Mms.IsoCotp.Tpkt](ExIEC61850.Mms.IsoCotp.Tpkt.md): RFC 1006 TPKT TCP framing encoder and decoder.
- [ExIEC61850.Mms.IsoMms.Client.MmsClientConnection](ExIEC61850.Mms.IsoMms.Client.MmsClientConnection.md): MMS Client Connection `GenServer`.
Delegates transport/ISO handshake to `IsoClientConnection` and PDU codecs to `MmsClient*` modules.

- [ExIEC61850.Mms.IsoMms.Client.MmsClientFiles](ExIEC61850.Mms.IsoMms.Client.MmsClientFiles.md): MMS client file transfer and directory service codec.
- [ExIEC61850.Mms.IsoMms.Client.MmsClientGetNamelist](ExIEC61850.Mms.IsoMms.Client.MmsClientGetNamelist.md): MMS client GetNameList service request encoder and response decoder.
- [ExIEC61850.Mms.IsoMms.Client.MmsClientGetVarAccess](ExIEC61850.Mms.IsoMms.Client.MmsClientGetVarAccess.md): MMS client GetVariableAccessAttributes service codec.
- [ExIEC61850.Mms.IsoMms.Client.MmsClientIdentify](ExIEC61850.Mms.IsoMms.Client.MmsClientIdentify.md): MMS client Identify service codec.
- [ExIEC61850.Mms.IsoMms.Client.MmsClientInitiate](ExIEC61850.Mms.IsoMms.Client.MmsClientInitiate.md): MMS client Initiate request encoder and response decoder.
- [ExIEC61850.Mms.IsoMms.Client.MmsClientJournals](ExIEC61850.Mms.IsoMms.Client.MmsClientJournals.md): MMS client ReadJournal service codec.
- [ExIEC61850.Mms.IsoMms.Client.MmsClientNamedVariableList](ExIEC61850.Mms.IsoMms.Client.MmsClientNamedVariableList.md): MMS client Named Variable List (DataSet) service codec.
- [ExIEC61850.Mms.IsoMms.Client.MmsClientRead](ExIEC61850.Mms.IsoMms.Client.MmsClientRead.md): MMS client Read service request encoder and response decoder.
- [ExIEC61850.Mms.IsoMms.Client.MmsClientStatus](ExIEC61850.Mms.IsoMms.Client.MmsClientStatus.md): MMS client Status service codec.
- [ExIEC61850.Mms.IsoMms.Client.MmsClientWrite](ExIEC61850.Mms.IsoMms.Client.MmsClientWrite.md): MMS client Write service request encoder and response decoder.
- [ExIEC61850.Mms.IsoMms.Common.MmsCommonMsg](ExIEC61850.Mms.IsoMms.Common.MmsCommonMsg.md): Shared MMS confirmed/unconfirmed PDU and AccessResult codecs.
- [ExIEC61850.Mms.IsoMms.Common.MmsTypeSpec](ExIEC61850.Mms.IsoMms.Common.MmsTypeSpec.md): MMS variable type specification representation and BER codec.
- [ExIEC61850.Mms.IsoMms.Common.MmsValue](ExIEC61850.Mms.IsoMms.Common.MmsValue.md): MMS data value representation and ASN.1 BER codec.
- [ExIEC61850.Mms.IsoMms.Server.MmsAssociationService](ExIEC61850.Mms.IsoMms.Server.MmsAssociationService.md): MMS server Initiate/Association service codec.
- [ExIEC61850.Mms.IsoMms.Server.MmsFileService](ExIEC61850.Mms.IsoMms.Server.MmsFileService.md): MMS server file store and file transfer service codec.
- [ExIEC61850.Mms.IsoMms.Server.MmsGetNamelistService](ExIEC61850.Mms.IsoMms.Server.MmsGetNamelistService.md): MMS server GetNameList service codec.
- [ExIEC61850.Mms.IsoMms.Server.MmsGetVarAccessService](ExIEC61850.Mms.IsoMms.Server.MmsGetVarAccessService.md): MMS server GetVariableAccessAttributes service codec.
- [ExIEC61850.Mms.IsoMms.Server.MmsIdentifyService](ExIEC61850.Mms.IsoMms.Server.MmsIdentifyService.md): MMS server Identify service codec.
- [ExIEC61850.Mms.IsoMms.Server.MmsInformationReport](ExIEC61850.Mms.IsoMms.Server.MmsInformationReport.md): MMS server unconfirmed InformationReport encoder.
- [ExIEC61850.Mms.IsoMms.Server.MmsJournalService](ExIEC61850.Mms.IsoMms.Server.MmsJournalService.md): MMS server ReadJournal service codec.
- [ExIEC61850.Mms.IsoMms.Server.MmsNamedVariableListService](ExIEC61850.Mms.IsoMms.Server.MmsNamedVariableListService.md): MMS server Named Variable List (DataSet) service codec.
- [ExIEC61850.Mms.IsoMms.Server.MmsReadService](ExIEC61850.Mms.IsoMms.Server.MmsReadService.md): MMS server Read service request decoder and response encoder.
- [ExIEC61850.Mms.IsoMms.Server.MmsServer](ExIEC61850.Mms.IsoMms.Server.MmsServer.md): MMS Server dispatcher sitting on top of `IsoServer`.

- [ExIEC61850.Mms.IsoMms.Server.MmsStatusService](ExIEC61850.Mms.IsoMms.Server.MmsStatusService.md): MMS server Status service codec.
- [ExIEC61850.Mms.IsoMms.Server.MmsWriteService](ExIEC61850.Mms.IsoMms.Server.MmsWriteService.md): MMS server Write service request decoder and response encoder.
- [ExIEC61850.Mms.IsoPresentation](ExIEC61850.Mms.IsoPresentation.md): ISO 8823 Presentation layer CP, CPA, and User-Data PPDU codec.
- [ExIEC61850.Mms.IsoServer.IsoConnection](ExIEC61850.Mms.IsoServer.IsoConnection.md): Per-client ISO Server Connection handler (TPKT + COTP + Session + Presentation + ACSE).

- [ExIEC61850.Mms.IsoServer.IsoServer](ExIEC61850.Mms.IsoServer.IsoServer.md): ISO Server TCP/TLS listener & active `IsoConnection` registry.

- [ExIEC61850.Mms.IsoSession](ExIEC61850.Mms.IsoSession.md): ISO 8327 Session layer Connect, Accept, and Data SPDU codec.
- [ExIEC61850.RSession.RSession](ExIEC61850.RSession.RSession.md): IEC 61850-90-5 R-Session UDP session protocol for R-GOOSE and R-SV.
- [ExIEC61850.RSession.RSession.PayloadElement](ExIEC61850.RSession.RSession.PayloadElement.md)
- [ExIEC61850.RSession.RSessionCrypto](ExIEC61850.RSession.RSessionCrypto.md): AES-GCM encryption and HMAC-SHA256 authentication for R-Session SPDUs using Erlang `:crypto`.
- [ExIEC61850.SampledValues.SvPublisher](ExIEC61850.SampledValues.SvPublisher.md): IEC 61850-9-2 Sampled Values (SV) APDU encoder and publisher.
- [ExIEC61850.SampledValues.SvPublisher.ASDU](ExIEC61850.SampledValues.SvPublisher.ASDU.md)
- [ExIEC61850.SampledValues.SvSubscriber](ExIEC61850.SampledValues.SvSubscriber.md): IEC 61850-9-2 Sampled Values (SV) APDU decoder and subscriber.
- [ExIEC61850.SampledValues.SvSubscriber.ASDU](ExIEC61850.SampledValues.SvSubscriber.ASDU.md)
- [ExIEC61850.SampledValues.SvSubscriber.SvReceiver](ExIEC61850.SampledValues.SvSubscriber.SvReceiver.md)
- [ExIEC61850.Sntp.SntpClient](ExIEC61850.Sntp.SntpClient.md): SNTP (RFC 4330) time synchronization client.
- [ExIEC61850.Telemetry](ExIEC61850.Telemetry.md): Telemetry instrumentation for `ExIEC61850` using `:telemetry ~> 1.4`.

## Mix Tasks

- [mix iec61850.gen.config](Mix.Tasks.Iec61850.Gen.Config.md): Generates an IEC 61850 `.cfg` model file from an SCL file.
- [mix iec61850.gen.model](Mix.Tasks.Iec61850.Gen.Model.md): Generates an Elixir `IedModel` module from an IEC 61850 SCL file.

