3#include <AH/STL/type_traits>
11template <
size_t Bits_out,
size_t Bits_in,
class T_out,
class T_in>
12std::enable_if_t<(Bits_out <= 2 * Bits_in) && (Bits_out > Bits_in), T_out>
19template <
size_t Bits_out,
size_t Bits_in,
class T_out,
class T_in>
25template <
size_t Bits_out,
size_t Bits_in,
class T_out,
class T_in>
76template <
size_t Bits_out,
size_t Bits_in,
class T_out,
class T_in>
79 "Error: Bits_in > bits(T_in)");
81 "Error: Bits_out > bits(T_out)");
82 return detail::increaseBitDepthImpl<Bits_out, Bits_in, T_out>(
in);
124template <
size_t Bits_out,
size_t Bits_in,
class T_out,
class T_in>
127 "Error: Bits_in > bits(T_in)");
129 "Error: Bits_out > bits(T_out)");
#define BEGIN_AH_NAMESPACE
A class for serial-in/parallel-out shift registers, like the 74HC595 that are connected to the SPI bu...
T_out increaseBitDepthMiddle(T_in in)
Increase the bit depth of the given value from Bits_in bits wide to Bits_out bits wide,...
T_out increaseBitDepth(T_in in)
Increase the bit depth of the given value from Bits_in bits wide to Bits_out bits wide,...
std::enable_if_t<(Bits_out<=2 *Bits_in) &&(Bits_out > Bits_in), T_out increaseBitDepthImpl)(T_in in)