pms5003/PMS5003/Utils.cs

16 lines
464 B
C#
Raw Permalink Normal View History

2021-04-10 14:48:03 +00:00
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));;
}
}
}