67template<
typename _Tp,
size_t _Nm >
constexpr size_t size(
const _Tp (& )[_Nm])
noexcept
77template<
typename _Tp >
constexpr size_t size(
const _Tp (& )[0]) noexcept
82template<
class... Ts >
83constexpr uint8_t
ival(Ts... Vs)
85 char vals[
sizeof...(Vs)]{ Vs... };
87 for (uint8_t
i = 0;
i <
sizeof...(Vs);
i++)
90 result += vals[
i] -
'0';
container for datalogging
int16_t temperature_x100[S]
What config.h is written with: its types, constants and helpers.
Encoding of the load map: one packed byte per dump load.
The load priority state machine: which load to switch at each mains cycle.
Some useful but missing stl functions templates.
constexpr uint8_t ival(Ts... Vs)
constexpr size_t size(const _Tp(&)[_Nm]) noexcept
Helper function to retrieve the dimension of a C-array.