Robotics Library  0.7.0
Static Public Member Functions | Private Member Functions | List of all members
rl::hal::Endian Class Reference

#include <Endian.h>

Static Public Member Functions

::std::uint32_t bigDoubleWord (const ::std::uint16_t &highWord, const ::std::uint16_t &lowWord)
 
::std::uint8_t bigHighByte (const ::std::uint16_t &word)
 
::std::uint32_t bigHighDoubleWord (const ::std::uint64_t &quadWord)
 
::std::uint16_t bigHighWord (const ::std::uint32_t &doubleWord)
 
::std::uint8_t bigLowByte (const ::std::uint16_t &word)
 
::std::uint32_t bigLowDoubleWord (const ::std::uint64_t &quadWord)
 
::std::uint16_t bigLowWord (const ::std::uint32_t &doubleWord)
 
::std::uint64_t bigQuadWord (const ::std::uint32_t &highDoubleWord, const ::std::uint32_t &lowDoubleWord)
 
static void bigToHost (::std::int8_t &character)
 
static void bigToHost (::std::uint8_t &character)
 
static void bigToHost (::std::int16_t &word)
 
static void bigToHost (::std::uint16_t &word)
 
static void bigToHost (::std::int32_t &doubleWord)
 
static void bigToHost (::std::uint32_t &doubleWord)
 
static void bigToHost (float &real32)
 
static void bigToHost (::std::int64_t &quadWord)
 
static void bigToHost (::std::uint64_t &quadWord)
 
static void bigToHost (double &real64)
 
::std::uint16_t bigWord (const ::std::uint8_t &highByte, const ::std::uint8_t &lowByte)
 
::std::uint32_t hostDoubleWord (const ::std::uint16_t &highWord, const ::std::uint16_t &lowWord)
 
::std::uint8_t hostHighByte (const ::std::uint16_t &word)
 
::std::uint16_t hostHighWord (const ::std::uint32_t &doubleWord)
 
::std::uint32_t hostHighDoubleWord (const ::std::uint64_t &quadWord)
 
::std::uint8_t hostLowByte (const ::std::uint16_t &word)
 
::std::uint16_t hostLowWord (const ::std::uint32_t &doubleWord)
 
::std::uint32_t hostLowDoubleWord (const ::std::uint64_t &quadWord)
 
::std::uint64_t hostQuadWord (const ::std::uint32_t &highDoubleWord, const ::std::uint32_t &lowDoubleWord)
 
static void hostToBig (::std::int8_t &character)
 
static void hostToBig (::std::uint8_t &character)
 
static void hostToBig (::std::int16_t &word)
 
static void hostToBig (::std::uint16_t &word)
 
static void hostToBig (::std::int32_t &doubleWord)
 
static void hostToBig (::std::uint32_t &doubleWord)
 
static void hostToBig (float &real32)
 
static void hostToBig (::std::int64_t &quadWord)
 
static void hostToBig (::std::uint64_t &quadWord)
 
static void hostToBig (double &real64)
 
static void hostToLittle (::std::int8_t &character)
 
static void hostToLittle (::std::uint8_t &character)
 
static void hostToLittle (::std::int16_t &word)
 
static void hostToLittle (::std::uint16_t &word)
 
static void hostToLittle (::std::int32_t &doubleWord)
 
static void hostToLittle (::std::uint32_t &doubleWord)
 
static void hostToLittle (float &real32)
 
static void hostToLittle (::std::int64_t &quadWord)
 
static void hostToLittle (::std::uint64_t &quadWord)
 
static void hostToLittle (double &real64)
 
::std::uint16_t hostWord (const ::std::uint8_t &highByte, const ::std::uint8_t &lowByte)
 
::std::uint32_t littleDoubleWord (const ::std::uint16_t &highWord, const ::std::uint16_t &lowWord)
 
::std::uint8_t littleHighByte (const ::std::uint16_t &word)
 
::std::uint32_t littleHighDoubleWord (const ::std::uint64_t &quadWord)
 
::std::uint16_t littleHighWord (const ::std::uint32_t &doubleWord)
 
::std::uint8_t littleLowByte (const ::std::uint16_t &word)
 
::std::uint32_t littleLowDoubleWord (const ::std::uint64_t &quadWord)
 
::std::uint16_t littleLowWord (const ::std::uint32_t &doubleWord)
 
::std::uint64_t littleQuadWord (const ::std::uint32_t &highDoubleWord, const ::std::uint32_t &lowDoubleWord)
 
static void littleToHost (::std::int8_t &character)
 
static void littleToHost (::std::uint8_t &character)
 
static void littleToHost (::std::int16_t &word)
 
static void littleToHost (::std::uint16_t &word)
 
static void littleToHost (::std::int32_t &doubleWord)
 
static void littleToHost (::std::uint32_t &doubleWord)
 
static void littleToHost (float &real32)
 
static void littleToHost (::std::int64_t &quadWord)
 
static void littleToHost (::std::uint64_t &quadWord)
 
static void littleToHost (double &real64)
 
::std::uint16_t littleWord (const ::std::uint8_t &highByte, const ::std::uint8_t &lowByte)
 
static void reverse (::std::int8_t &character)
 
static void reverse (::std::uint8_t &character)
 
static void reverse (::std::int16_t &word)
 
static void reverse (::std::uint16_t &word)
 
static void reverse (::std::int32_t &doubleWord)
 
static void reverse (::std::uint32_t &doubleWord)
 
static void reverse (float &real32)
 
static void reverse (::std::int64_t &quadWord)
 
static void reverse (::std::uint64_t &quadWord)
 
static void reverse (double &real64)
 

Private Member Functions

 Endian ()
 
virtual ~Endian ()
 

Constructor & Destructor Documentation

◆ Endian()

rl::hal::Endian::Endian ( )
inlineprivate

Member Function Documentation

◆ bigDoubleWord()

std::uint32_t rl::hal::Endian::bigDoubleWord ( const ::std::uint16_t &  highWord,
const ::std::uint16_t &  lowWord 
)
static

◆ bigHighByte()

std::uint8_t rl::hal::Endian::bigHighByte ( const ::std::uint16_t &  word)
static

◆ bigHighDoubleWord()

std::uint32_t rl::hal::Endian::bigHighDoubleWord ( const ::std::uint64_t &  quadWord)
static

◆ bigHighWord()

std::uint16_t rl::hal::Endian::bigHighWord ( const ::std::uint32_t &  doubleWord)
static

◆ bigLowByte()

std::uint8_t rl::hal::Endian::bigLowByte ( const ::std::uint16_t &  word)
static

◆ bigLowDoubleWord()

std::uint32_t rl::hal::Endian::bigLowDoubleWord ( const ::std::uint64_t &  quadWord)
static

◆ bigLowWord()

std::uint16_t rl::hal::Endian::bigLowWord ( const ::std::uint32_t &  doubleWord)
static

◆ bigQuadWord()

std::uint64_t rl::hal::Endian::bigQuadWord ( const ::std::uint32_t &  highDoubleWord,
const ::std::uint32_t &  lowDoubleWord 
)
static

◆ bigToHost() [1/10]

void rl::hal::Endian::bigToHost ( ::std::int16_t &  word)
static

◆ bigToHost() [2/10]

void rl::hal::Endian::bigToHost ( ::std::int32_t &  doubleWord)
static

◆ bigToHost() [3/10]

void rl::hal::Endian::bigToHost ( ::std::int64_t &  quadWord)
static

◆ bigToHost() [4/10]

static void rl::hal::Endian::bigToHost ( ::std::int8_t &  character)
inlinestatic

◆ bigToHost() [5/10]

void rl::hal::Endian::bigToHost ( ::std::uint16_t &  word)
static

◆ bigToHost() [6/10]

void rl::hal::Endian::bigToHost ( ::std::uint32_t &  doubleWord)
static

◆ bigToHost() [7/10]

void rl::hal::Endian::bigToHost ( ::std::uint64_t &  quadWord)
static

◆ bigToHost() [8/10]

static void rl::hal::Endian::bigToHost ( ::std::uint8_t &  character)
inlinestatic

◆ bigToHost() [9/10]

void rl::hal::Endian::bigToHost ( double &  real64)
static

◆ bigToHost() [10/10]

void rl::hal::Endian::bigToHost ( float &  real32)
static

◆ bigWord()

std::uint16_t rl::hal::Endian::bigWord ( const ::std::uint8_t &  highByte,
const ::std::uint8_t &  lowByte 
)
static

◆ hostDoubleWord()

::std::uint32_t rl::hal::Endian::hostDoubleWord ( const ::std::uint16_t &  highWord,
const ::std::uint16_t &  lowWord 
)
inlinestatic

◆ hostHighByte()

::std::uint8_t rl::hal::Endian::hostHighByte ( const ::std::uint16_t &  word)
inlinestatic

◆ hostHighDoubleWord()

::std::uint32_t rl::hal::Endian::hostHighDoubleWord ( const ::std::uint64_t &  quadWord)
inlinestatic

◆ hostHighWord()

::std::uint16_t rl::hal::Endian::hostHighWord ( const ::std::uint32_t &  doubleWord)
inlinestatic

◆ hostLowByte()

::std::uint8_t rl::hal::Endian::hostLowByte ( const ::std::uint16_t &  word)
inlinestatic

◆ hostLowDoubleWord()

::std::uint32_t rl::hal::Endian::hostLowDoubleWord ( const ::std::uint64_t &  quadWord)
inlinestatic

◆ hostLowWord()

::std::uint16_t rl::hal::Endian::hostLowWord ( const ::std::uint32_t &  doubleWord)
inlinestatic

◆ hostQuadWord()

::std::uint64_t rl::hal::Endian::hostQuadWord ( const ::std::uint32_t &  highDoubleWord,
const ::std::uint32_t &  lowDoubleWord 
)
inlinestatic

◆ hostToBig() [1/10]

void rl::hal::Endian::hostToBig ( ::std::int16_t &  word)
static

◆ hostToBig() [2/10]

void rl::hal::Endian::hostToBig ( ::std::int32_t &  doubleWord)
static

◆ hostToBig() [3/10]

void rl::hal::Endian::hostToBig ( ::std::int64_t &  quadWord)
static

◆ hostToBig() [4/10]

static void rl::hal::Endian::hostToBig ( ::std::int8_t &  character)
inlinestatic

◆ hostToBig() [5/10]

void rl::hal::Endian::hostToBig ( ::std::uint16_t &  word)
static

◆ hostToBig() [6/10]

void rl::hal::Endian::hostToBig ( ::std::uint32_t &  doubleWord)
static

◆ hostToBig() [7/10]

void rl::hal::Endian::hostToBig ( ::std::uint64_t &  quadWord)
static

◆ hostToBig() [8/10]

static void rl::hal::Endian::hostToBig ( ::std::uint8_t &  character)
inlinestatic

◆ hostToBig() [9/10]

void rl::hal::Endian::hostToBig ( double &  real64)
static

◆ hostToBig() [10/10]

void rl::hal::Endian::hostToBig ( float &  real32)
static

◆ hostToLittle() [1/10]

void rl::hal::Endian::hostToLittle ( ::std::int16_t &  word)
static

◆ hostToLittle() [2/10]

void rl::hal::Endian::hostToLittle ( ::std::int32_t &  doubleWord)
static

◆ hostToLittle() [3/10]

void rl::hal::Endian::hostToLittle ( ::std::int64_t &  quadWord)
static

◆ hostToLittle() [4/10]

static void rl::hal::Endian::hostToLittle ( ::std::int8_t &  character)
inlinestatic

◆ hostToLittle() [5/10]

void rl::hal::Endian::hostToLittle ( ::std::uint16_t &  word)
static

◆ hostToLittle() [6/10]

void rl::hal::Endian::hostToLittle ( ::std::uint32_t &  doubleWord)
static

◆ hostToLittle() [7/10]

void rl::hal::Endian::hostToLittle ( ::std::uint64_t &  quadWord)
static

◆ hostToLittle() [8/10]

static void rl::hal::Endian::hostToLittle ( ::std::uint8_t &  character)
inlinestatic

◆ hostToLittle() [9/10]

void rl::hal::Endian::hostToLittle ( double &  real64)
static

◆ hostToLittle() [10/10]

void rl::hal::Endian::hostToLittle ( float &  real32)
static

◆ hostWord()

::std::uint16_t rl::hal::Endian::hostWord ( const ::std::uint8_t &  highByte,
const ::std::uint8_t &  lowByte 
)
inlinestatic

◆ littleDoubleWord()

std::uint32_t rl::hal::Endian::littleDoubleWord ( const ::std::uint16_t &  highWord,
const ::std::uint16_t &  lowWord 
)
static

◆ littleHighByte()

std::uint8_t rl::hal::Endian::littleHighByte ( const ::std::uint16_t &  word)
static

◆ littleHighDoubleWord()

std::uint32_t rl::hal::Endian::littleHighDoubleWord ( const ::std::uint64_t &  quadWord)
static

◆ littleHighWord()

std::uint16_t rl::hal::Endian::littleHighWord ( const ::std::uint32_t &  doubleWord)
static

◆ littleLowByte()

std::uint8_t rl::hal::Endian::littleLowByte ( const ::std::uint16_t &  word)
static

◆ littleLowDoubleWord()

std::uint32_t rl::hal::Endian::littleLowDoubleWord ( const ::std::uint64_t &  quadWord)
static

◆ littleLowWord()

std::uint16_t rl::hal::Endian::littleLowWord ( const ::std::uint32_t &  doubleWord)
static

◆ littleQuadWord()

std::uint64_t rl::hal::Endian::littleQuadWord ( const ::std::uint32_t &  highDoubleWord,
const ::std::uint32_t &  lowDoubleWord 
)
static

◆ littleToHost() [1/10]

void rl::hal::Endian::littleToHost ( ::std::int16_t &  word)
static

◆ littleToHost() [2/10]

void rl::hal::Endian::littleToHost ( ::std::int32_t &  doubleWord)
static

◆ littleToHost() [3/10]

void rl::hal::Endian::littleToHost ( ::std::int64_t &  quadWord)
static

◆ littleToHost() [4/10]

static void rl::hal::Endian::littleToHost ( ::std::int8_t &  character)
inlinestatic

◆ littleToHost() [5/10]

void rl::hal::Endian::littleToHost ( ::std::uint16_t &  word)
static

◆ littleToHost() [6/10]

void rl::hal::Endian::littleToHost ( ::std::uint32_t &  doubleWord)
static

◆ littleToHost() [7/10]

void rl::hal::Endian::littleToHost ( ::std::uint64_t &  quadWord)
static

◆ littleToHost() [8/10]

static void rl::hal::Endian::littleToHost ( ::std::uint8_t &  character)
inlinestatic

◆ littleToHost() [9/10]

void rl::hal::Endian::littleToHost ( double &  real64)
static

◆ littleToHost() [10/10]

void rl::hal::Endian::littleToHost ( float &  real32)
static

◆ littleWord()

std::uint16_t rl::hal::Endian::littleWord ( const ::std::uint8_t &  highByte,
const ::std::uint8_t &  lowByte 
)
static

◆ reverse() [1/10]

static void rl::hal::Endian::reverse ( ::std::int16_t &  word)
inlinestatic

◆ reverse() [2/10]

static void rl::hal::Endian::reverse ( ::std::int32_t &  doubleWord)
inlinestatic

◆ reverse() [3/10]

static void rl::hal::Endian::reverse ( ::std::int64_t &  quadWord)
inlinestatic

◆ reverse() [4/10]

static void rl::hal::Endian::reverse ( ::std::int8_t &  character)
inlinestatic

◆ reverse() [5/10]

static void rl::hal::Endian::reverse ( ::std::uint16_t &  word)
inlinestatic

◆ reverse() [6/10]

static void rl::hal::Endian::reverse ( ::std::uint32_t &  doubleWord)
inlinestatic

◆ reverse() [7/10]

static void rl::hal::Endian::reverse ( ::std::uint64_t &  quadWord)
inlinestatic

◆ reverse() [8/10]

static void rl::hal::Endian::reverse ( ::std::uint8_t &  character)
inlinestatic

◆ reverse() [9/10]

static void rl::hal::Endian::reverse ( double &  real64)
inlinestatic

◆ reverse() [10/10]

static void rl::hal::Endian::reverse ( float &  real32)
inlinestatic

◆ ~Endian()

virtual rl::hal::Endian::~Endian ( )
inlineprivatevirtual

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