BcdConverter Members

Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The BcdConverter type exposes the following members.

GetBcd(Int16)

Returns the specified Int16 value as a BCD Byte value.

C#

public static byte GetBcd(short value)


Parameters

value Int16

A Int16 value.


Returns

Byte

The BCD Byte value.

GetBcd(Int32)

Returns the specified Int32 value as a BCD Byte value.

C#

public static byte GetBcd(int value)


Parameters

value Int32

A Int32 value.


Returns

Byte

The BCD Byte value.

ToInt16(Byte)

Returns a 16-bit signed integer converted from the BCD Byte specified by value.

C#

public static short ToInt16(byte value)


Parameters

value Byte

The BCD Byte value.


Returns

Int16

A 16-bit signed integer formed by the value specified.

ToInt32(Byte)

Returns a 32-bit signed integer converted from the BCD Byte specified by value.

C#

public static int ToInt32(byte value)


Parameters

value Byte

The BCD Byte value.


Returns

Int32

A 32-bit signed integer formed by the value specified.