C# 클래스 Xedia.Protocol.VSCP.EventHelper

파일 보기 프로젝트 열기: grodansparadis/vscp_firmware

공개 메소드들

메소드 설명
CalcCRC ( byte packet, int length ) : short
EncodeData ( long value, byte dataBytes ) : byte[]
EncodeData ( long value, string data ) : byte[]
EncodeData ( long value, string data, byte dataBytes ) : byte[]
FromHex ( string hexString ) : byte[]
GetByte ( long value, int index ) : byte
GetCRC ( byte packet ) : short
GetDataBuffer ( byte packet ) : byte[]
GetDataCode ( byte packet ) : long
GetDataSize ( byte packet ) : short
GetDataString ( byte packet ) : string
GetEventCode ( byte packet ) : EventCode
HasCRC ( byte packet ) : bool
InZone ( long zone, byte mainZone, byte subZone ) : bool

Check to see if the specified zone covers the main and sub zones If zone is 0xFF then it encompases all zones

IsValidCRC ( byte packet ) : bool
ReadAddress ( byte packet ) : string
ReadPriority ( byte packet ) : EVENT_PRIORITY
SplitData ( string data, int unitSize ) : object[]
ToHex ( byte byteArray, int offset, int length ) : string

메소드 상세

CalcCRC() 공개 정적인 메소드

public static CalcCRC ( byte packet, int length ) : short
packet byte
length int
리턴 short

EncodeData() 공개 정적인 메소드

public static EncodeData ( long value, byte dataBytes ) : byte[]
value long
dataBytes byte
리턴 byte[]

EncodeData() 공개 정적인 메소드

public static EncodeData ( long value, string data ) : byte[]
value long
data string
리턴 byte[]

EncodeData() 공개 정적인 메소드

public static EncodeData ( long value, string data, byte dataBytes ) : byte[]
value long
data string
dataBytes byte
리턴 byte[]

FromHex() 공개 정적인 메소드

public static FromHex ( string hexString ) : byte[]
hexString string
리턴 byte[]

GetByte() 공개 정적인 메소드

public static GetByte ( long value, int index ) : byte
value long
index int
리턴 byte

GetCRC() 공개 정적인 메소드

public static GetCRC ( byte packet ) : short
packet byte
리턴 short

GetDataBuffer() 공개 정적인 메소드

public static GetDataBuffer ( byte packet ) : byte[]
packet byte
리턴 byte[]

GetDataCode() 공개 정적인 메소드

public static GetDataCode ( byte packet ) : long
packet byte
리턴 long

GetDataSize() 공개 정적인 메소드

public static GetDataSize ( byte packet ) : short
packet byte
리턴 short

GetDataString() 공개 정적인 메소드

public static GetDataString ( byte packet ) : string
packet byte
리턴 string

GetEventCode() 공개 정적인 메소드

public static GetEventCode ( byte packet ) : EventCode
packet byte
리턴 EventCode

HasCRC() 공개 정적인 메소드

public static HasCRC ( byte packet ) : bool
packet byte
리턴 bool

InZone() 공개 정적인 메소드

Check to see if the specified zone covers the main and sub zones If zone is 0xFF then it encompases all zones
public static InZone ( long zone, byte mainZone, byte subZone ) : bool
zone long
mainZone byte
subZone byte
리턴 bool

IsValidCRC() 공개 정적인 메소드

public static IsValidCRC ( byte packet ) : bool
packet byte
리턴 bool

ReadAddress() 공개 정적인 메소드

public static ReadAddress ( byte packet ) : string
packet byte
리턴 string

ReadPriority() 공개 정적인 메소드

public static ReadPriority ( byte packet ) : EVENT_PRIORITY
packet byte
리턴 EVENT_PRIORITY

SplitData() 공개 정적인 메소드

public static SplitData ( string data, int unitSize ) : object[]
data string
unitSize int
리턴 object[]

ToHex() 공개 정적인 메소드

public static ToHex ( byte byteArray, int offset, int length ) : string
byteArray byte
offset int
length int
리턴 string