C# 클래스 RFID.RFIDInterface.PacketData

파일 보기 프로젝트 열기: mti-rfid/RFID_Explorer 1 사용 예제들

공개 메소드들

메소드 설명
AppendToNode ( XmlElement elm ) : XmlElement

XmlSerialize

CreatePacket ( PacketType packetType ) : PacketBase

Returns an uninitialized instance of the indicated packetType.

FullPacketBytes ( Byte Buffer, int PacketStartOffset ) : int
FullPacketBytes ( uint pkt_len ) : int

Caculate the size of a packet (including preamble) in bytes

GetPacketType ( PacketData packet ) : PacketType

Returns the packetType for a instance of one of the packet layouts classes.

GetPacketTypeFromBuffer ( byte buffer, int PacketStartOffset ) : PacketType
GetSafePacketType ( UInt16 pkt_type ) : PacketType
GetTypeFromPacketType ( PacketType packetType ) : Type
ParsePacket ( byte buffer, PacketBase &packet, string &errorMessage ) : PacketType

ParsePacket

pkt_len ( int totalBytes ) : UInt16

비공개 메소드들

메소드 설명
Find_String_Length ( PacketBase body, System info ) : int
Parse_Fields ( PacketBase obj, byte buffer, int offset, int size ) : int

Parses a buffer that hold a packet data and updates the packet structure with data from the buffer.

Parse_String ( byte buffer, int offset, int strlen ) : string
Parse_UInt16 ( byte buffer, int offset ) : UInt16
Parse_UInt32 ( byte buffer, int offset ) : UInt32

메소드 상세

AppendToNode() 공개 메소드

XmlSerialize
public AppendToNode ( XmlElement elm ) : XmlElement
elm System.Xml.XmlElement
리턴 System.Xml.XmlElement

CreatePacket() 공개 정적인 메소드

Returns an uninitialized instance of the indicated packetType.
public static CreatePacket ( PacketType packetType ) : PacketBase
packetType PacketType Packet type to create.
리턴 PacketBase

FullPacketBytes() 공개 정적인 메소드

public static FullPacketBytes ( Byte Buffer, int PacketStartOffset ) : int
Buffer Byte
PacketStartOffset int
리턴 int

FullPacketBytes() 공개 정적인 메소드

Caculate the size of a packet (including preamble) in bytes
public static FullPacketBytes ( uint pkt_len ) : int
pkt_len uint value from pkt_len field of preamble
리턴 int

GetPacketType() 공개 정적인 메소드

Returns the packetType for a instance of one of the packet layouts classes.
public static GetPacketType ( PacketData packet ) : PacketType
packet PacketData The packet instance
리턴 PacketType

GetPacketTypeFromBuffer() 공개 정적인 메소드

public static GetPacketTypeFromBuffer ( byte buffer, int PacketStartOffset ) : PacketType
buffer byte
PacketStartOffset int
리턴 PacketType

GetSafePacketType() 공개 정적인 메소드

public static GetSafePacketType ( UInt16 pkt_type ) : PacketType
pkt_type System.UInt16
리턴 PacketType

GetTypeFromPacketType() 공개 정적인 메소드

public static GetTypeFromPacketType ( PacketType packetType ) : Type
packetType PacketType
리턴 System.Type

ParsePacket() 공개 정적인 메소드

ParsePacket
public static ParsePacket ( byte buffer, PacketBase &packet, string &errorMessage ) : PacketType
buffer byte packet data to be parsed.
packet PacketBase
errorMessage string output parameter to hold any error message.
리턴 PacketType

pkt_len() 공개 정적인 메소드

public static pkt_len ( int totalBytes ) : UInt16
totalBytes int
리턴 System.UInt16