C# Класс GSF.PhasorProtocols.IEC61850_90_5.CommandFrame

Наследование: CommandFrameBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CommandFrame ( byte buffer, int startIndex, int length ) : System

Creates a new CommandFrame from the given buffer.

This constructor is used by a consumer to parse a received IEC 61850-90-5 command frame. Typically command frames are sent to a device. This constructor would used if this code was being used inside of a phasor measurement device.

CommandFrame ( ushort idCode, DeviceCommand command, byte version ) : System

Creates a new CommandFrame from specified parameters.

This constructor is used by a consumer to generate an IEC 61850-90-5 command frame.

GetObjectData ( SerializationInfo info, StreamingContext context ) : void

Populates a SerializationInfo with the data needed to serialize the target object.

Защищенные методы

Метод Описание
CalculateChecksum ( byte buffer, int offset, int length ) : ushort

Calculates checksum of given buffer.

CommandFrame ( SerializationInfo info, StreamingContext context ) : System

Creates a new CommandFrame from serialization parameters.

ParseHeaderImage ( byte buffer, int startIndex, int length ) : int

Parses the binary header image.

Описание методов

CalculateChecksum() защищенный Метод

Calculates checksum of given buffer.
protected CalculateChecksum ( byte buffer, int offset, int length ) : ushort
buffer byte Buffer image over which to calculate checksum.
offset int Start index into to calculate checksum.
length int Length of data within to calculate checksum.
Результат ushort

CommandFrame() защищенный Метод

Creates a new CommandFrame from serialization parameters.
protected CommandFrame ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo The with populated with data.
context System.Runtime.Serialization.StreamingContext The source for this deserialization.
Результат System

CommandFrame() публичный Метод

Creates a new CommandFrame from the given buffer.
This constructor is used by a consumer to parse a received IEC 61850-90-5 command frame. Typically command frames are sent to a device. This constructor would used if this code was being used inside of a phasor measurement device.
is not large enough to parse frame.
public CommandFrame ( byte buffer, int startIndex, int length ) : System
buffer byte Binary image to parse.
startIndex int Start index into to begin parsing.
length int Length of valid data within .
Результат System

CommandFrame() публичный Метод

Creates a new CommandFrame from specified parameters.
This constructor is used by a consumer to generate an IEC 61850-90-5 command frame.
public CommandFrame ( ushort idCode, DeviceCommand command, byte version ) : System
idCode ushort The ID code of this .
command DeviceCommand The for this .
version byte IEC 61850-90-5 revision number.
Результат System

GetObjectData() публичный Метод

Populates a SerializationInfo with the data needed to serialize the target object.
public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo The to populate with data.
context System.Runtime.Serialization.StreamingContext The destination for this serialization.
Результат void

ParseHeaderImage() защищенный Метод

Parses the binary header image.
protected ParseHeaderImage ( byte buffer, int startIndex, int length ) : int
buffer byte Binary image to parse.
startIndex int Start index into to begin parsing.
length int Length of valid data within .
Результат int