w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
Rtools.ipp
Go to the documentation of this file.
1// $Id: Rtools.ipp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2017- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2017-02-11 850 1.0 Initial version
8// ---------------------------------------------------------------------------
9
14// all method definitions in namespace Retro
15namespace Retro {
16
17//------------------------------------------+-----------------------------------
19
20inline void Rtools::Word2Bytes(uint16_t word, uint16_t& byte0, uint16_t& byte1)
21{
22 byte1 = (word>>8) & 0xff;
23 byte0 = word & 0xff;
24 return;
25}
26
27//------------------------------------------+-----------------------------------
29
30inline uint16_t Rtools::Bytes2Word(uint16_t byte0, uint16_t byte1)
31{
32 return (byte1<<8) | byte0;
33}
34
35
36} // end namespace Retro
void Word2Bytes(uint16_t word, uint16_t &byte0, uint16_t &byte1)
FIXME_docs.
Definition: Rtools.ipp:20
uint16_t Bytes2Word(uint16_t byte0, uint16_t byte1)
FIXME_docs.
Definition: Rtools.ipp:30
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47