C# Class GSF.PhasorProtocols.Macrodyne.CommandFrame

Inheritance: CommandFrameBase
Show file Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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 method

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.
return ushort

CommandFrame() public method

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 .
return System

CommandFrame() protected method

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.
return System