Method | Description | |
---|---|---|
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 IEEE C37.118 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 IEEE C37.118 command frame. |
|
GetObjectData ( |
Populates a SerializationInfo with the data needed to serialize the target object.
|
Method | Description | |
---|---|---|
CalculateChecksum ( byte buffer, int offset, int length ) : ushort |
Calculates checksum of given buffer.
|
|
CommandFrame ( |
Creates a new CommandFrame from serialization parameters.
|
|
ParseHeaderImage ( byte buffer, int startIndex, int length ) : int |
Parses the binary header image.
|
protected CalculateChecksum ( byte buffer, int offset, int length ) : ushort | ||
buffer | byte | Buffer image over which to calculate checksum. |
offset | int | Start index into |
length | int | Length of data within |
return | ushort |
protected CommandFrame ( |
||
info | The |
|
context | The source |
|
return | System |
public CommandFrame ( byte buffer, int startIndex, int length ) : System | ||
buffer | byte | Binary image to parse. |
startIndex | int | Start index into |
length | int | Length of valid data within |
return | System |
public CommandFrame ( ushort idCode, DeviceCommand command, byte version ) : System | ||
idCode | ushort | The ID code of this |
command | DeviceCommand | The |
version | byte | IEEE C37.118 revision number. |
return | System |
public GetObjectData ( |
||
info | The |
|
context | The destination |
|
return | void |
protected ParseHeaderImage ( byte buffer, int startIndex, int length ) : int | ||
buffer | byte | Binary image to parse. |
startIndex | int | Start index into |
length | int | Length of valid data within |
return | int |