YANE-Framework 1.1.0
Static Public Member Functions

yane::Utils::Code Class Reference

Class with static methods for code conversions. More...

List of all members.

Static Public Member Functions

static uint32_t binaryToGray (uint32_t binary)
static uint32_t grayToBinary (uint32_t gray)

Detailed Description

Static class for code conversions.

Member Function Documentation

LIB_EXPORT uint32_t yane::Utils::Code::binaryToGray ( uint32_t  binary) [static]

Converts a binary coded value to a gray coded value

binarybinary coded value
gray coded value
LIB_EXPORT uint32_t yane::Utils::Code::grayToBinary ( uint32_t  gray) [static]

Converts a gray coded value to a binary coded value

graygray coded value
binary coded value