Show / Hide Table of Contents

Method Math2.MakeWord(+ 1 overload)


Overload

Creates ushort by placing (byte)loByte in bits 1-8 and (byte)hiByte in bits 9-16. Like C macro MAKEWORD.

public static ushort MakeWord(int loByte, int hiByte)
Parameters
loByte  (int)
hiByte  (int)
Returns
ushort

Overload(top)

Creates ushort by placing (byte)loByte in bits 1-8 and (byte)hiByte in bits 9-16. Like C macro MAKEWORD.

public static ushort MakeWord(uint loByte, uint hiByte)
Parameters
loByte  (uint)
hiByte  (uint)
Returns
ushort