pms5003/PMS5003/Utils.cs
2021-04-10 17:49:36 +03:00

16 lines
No EOL
464 B
C#

namespace PMS5003
{
public class Utils
{
/// <summary>
/// Combines two bytes and returns the results ((High RSHIFT 8) | Low)
/// </summary>
/// <param name="high">The high byte.</param>
/// <param name="low">The low byte.</param>
/// <returns></returns>
public static uint CombineBytes(byte high, byte low)
{
return (uint)(low | (high << 8));;
}
}
}