Energy Core Library
Energy.Base.Bcd Class Reference

Binary-coded decimal (BCD) class More...

Static Public Member Functions

static byte ToByte (byte value)
 Convert BCD value to byte More...
 
static byte FromByte (byte value)
 Convert byte to BCD value More...
 
static ushort ToWord (ushort value)
 Convert BCD value to word More...
 
static ushort FromWord (ushort value)
 Convert word to BCD value More...
 

Detailed Description

Binary-coded decimal (BCD) class

Member Function Documentation

◆ FromByte()

static byte Energy.Base.Bcd.FromByte ( byte  value)
static

Convert byte to BCD value

Parameters
valueByte value
Returns
BCD value

◆ FromWord()

static ushort Energy.Base.Bcd.FromWord ( ushort  value)
static

Convert word to BCD value

Parameters
value
Returns

◆ ToByte()

static byte Energy.Base.Bcd.ToByte ( byte  value)
static

Convert BCD value to byte

Parameters
valueBCD value
Returns
Byte value

◆ ToWord()

static ushort Energy.Base.Bcd.ToWord ( ushort  value)
static

Convert BCD value to word

Parameters
valueBCD value
Returns
Word value

The documentation for this class was generated from the following file: