C# Class PlugwiseLib.UTIL.ConversionClass

Datei anzeigen Open project: GreenCodeLab/Tool-GreenPlugwise

Public Methods

Method Description
GetBytes ( string hexString, int &discarded ) : byte[]
HexStringToFloat ( string pvVal ) : float
HexStringToUInt16 ( string pvVal ) : ushort
HexStringToUInt32 ( string pvVal ) : uint
HexToByte ( string hex ) : byte
IsHexDigit ( char c ) : bool

Private Methods

Method Description
ReverseBytes ( byte lvBytes ) : byte[]

Method Details

GetBytes() public static method

public static GetBytes ( string hexString, int &discarded ) : byte[]
hexString string
discarded int
return byte[]

HexStringToFloat() public static method

public static HexStringToFloat ( string pvVal ) : float
pvVal string
return float

HexStringToUInt16() public static method

public static HexStringToUInt16 ( string pvVal ) : ushort
pvVal string
return ushort

HexStringToUInt32() public static method

public static HexStringToUInt32 ( string pvVal ) : uint
pvVal string
return uint

HexToByte() public static method

public static HexToByte ( string hex ) : byte
hex string
return byte

IsHexDigit() public static method

public static IsHexDigit ( char c ) : bool
c char
return bool