pflib
v3.0.0-rc1-29-g3a901ac
Pretty Fine HGCROC Interaction Library
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Functions
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
~
Variables
a
b
c
d
e
f
g
i
l
m
n
o
r
s
t
v
Files
File List
File Members
All
Typedefs
▼
pflib
►
Quickstart
YAML->Register "Compilation"
►
Communication Method
►
Other Dependencies
Directory Structure
Generating docs
Parameter to Register Mappings
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
include
▼
pflib
▼
packing
BufferReader.h
DAQLinkFrame.h
FileReader.h
Hex.h
Mask.h
Reader.h
Sample.h
SingleROCEventPacket.h
TriggerLinkFrame.h
Writer.h
►
rogue
►
zcu
Backend.h
Bias.h
►
Compile.h
DAQ.h
Elinks.h
Exception.h
FastControl.h
GPIO.h
Hcal.h
I2C.h
I2C_Linux.h
ROC.h
Target.h
►
register_maps
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Pages
Loading...
Searching...
No Matches
Hex.h
1
#pragma once
2
3
#include <iomanip>
4
5
namespace
pflib::packing {
6
15
template
<
typename
WordType>
16
struct
hex
{
17
static
const
std::size_t
width_{2*
sizeof
(WordType)};
18
WordType& word_;
19
hex
(WordType& w) : word_{w} {}
20
friend
inline
std::ostream
& operator<<(
21
std::ostream
& os,
const
pflib::packing::hex<WordType>
& h) {
22
os <<
"0x"
<<
std::setfill
(
'0'
) <<
std::setw
(h.width_) <<
std::hex
23
<< h.word_ <<
std::dec
;
24
return
os;
25
}
26
};
16
struct
hex
{
…
};
27
28
}
// namespace pflib::packing
29
std::ostream
std::hex
T hex(T... args)
std::setfill
T setfill(T... args)
std::setw
T setw(T... args)
std::size_t
pflib::packing::hex
A very simple wrapper enabling us to more easily tell the output stream to style the input word in he...
Definition
Hex.h:16
include
pflib
packing
Hex.h
Generated by
1.12.0