C# Class MaCRo.Communications.SerialHeader

Show file 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 property

public uint CRC
return uint

length public property

public ushort length
return ushort

magic public property

public byte magic
return byte

size public property

public ushort size
return ushort