C# Class MaCRo.Communications.SerialHeader

Mostrar archivo Open project: AlexAlbala/MaCRo Class Usage Examples

Public Properties

Property Type Description
CRC uint
length ushort
magic byte
size ushort

Public Methods

Method Description
GetBytes ( ) : byte[]
Populate ( byte buffer, int offset ) : bool

Retrieves header data and sets buffer CRC positions to zero

SerialHeader ( ) : System

Method Details

GetBytes() public method

public GetBytes ( ) : byte[]
return byte[]

Populate() public method

Retrieves header data and sets buffer CRC positions to zero
public Populate ( byte buffer, int offset ) : bool
buffer byte
offset int
return bool

SerialHeader() public method

public SerialHeader ( ) : System
return System

Property Details

CRC public_oe property

public uint CRC
return uint

length public_oe property

public ushort length
return ushort

magic public_oe property

public byte magic
return byte

size public_oe property

public ushort size
return ushort