C# Class GSF.PhasorProtocols.Macrodyne.CommandFrame

Inheritance: CommandFrameBase
Afficher le fichier Open project: GridProtectionAlliance/gsf Class Usage Examples

Méthodes publiques

Méthode Description
CommandFrame ( PhasorProtocols command ) : System

Creates a new CommandFrame from specified parameters.

This constructor is used by a consumer to generate an Macrodyne command frame.

Méthodes protégées

Méthode Description
CalculateChecksum ( byte buffer, int offset, int length ) : ushort

Calculates checksum of given buffer.

The Macrodyne does not use checksums for sending commands.

CommandFrame ( SerializationInfo info, StreamingContext context ) : System

Creates a new CommandFrame from serialization parameters.

Method Details

CalculateChecksum() protected méthode

Calculates checksum of given buffer.
The Macrodyne does not use checksums for sending commands.
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.
Résultat ushort

CommandFrame() public méthode

Creates a new CommandFrame from specified parameters.
This constructor is used by a consumer to generate an Macrodyne command frame.
public CommandFrame ( PhasorProtocols command ) : System
command PhasorProtocols The for this .
Résultat System

CommandFrame() protected méthode

Creates a new CommandFrame from serialization parameters.
protected CommandFrame ( SerializationInfo info, StreamingContext context ) : System
info SerializationInfo The with populated with data.
context StreamingContext The source for this deserialization.
Résultat System