added genHexLeftStr, genHexRightStr, genBinStr, genXstateStr and hasXstate functions.
added genHexLeftStr, genHexRightStr, genBinStr, genXstateStr and hasXstate functions.

mklight/eCMD,open-power/eCMD,mklight/eCMD,mklight/eCMD,open-power/eCMD,open-power/eCMD,mklight/eCMD,mklight/eCMD,open-power/eCMD,open-power/eCMD