w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RethTools.ipp
Go to the documentation of this file.
1// $Id: RethTools.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-04 849 1.0 Initial version
8// ---------------------------------------------------------------------------
9
14// all method definitions in namespace Retro
15namespace Retro {
16namespace RethTools {
17
18//------------------------------------------+-----------------------------------
20
21inline void Mac2WList(uint64_t mac, uint16_t wlist[3])
22{
23 wlist[0] = mac & 0xffff;
24 wlist[1] = (mac>>16) & 0xffff;
25 wlist[2] = (mac>>32) & 0xffff;
26 return;
27}
28
29//------------------------------------------+-----------------------------------
31
32inline uint64_t WList2Mac(const uint16_t wlist[3])
33{
34 return uint64_t(wlist[0]) |
35 (uint64_t(wlist[1])<<16) |
36 (uint64_t(wlist[2])<<32);
37}
38
39} // end namespace RethTools
40} // end namespace Retro
void Mac2WList(uint64_t mac, uint16_t wlist[3])
FIXME_docs.
Definition: RethTools.ipp:21
uint64_t WList2Mac(const uint16_t wlist[3])
FIXME_docs.
Definition: RethTools.ipp:32
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47