emlabcpp
modern opinionated embedded C++ library
emlabcpp::protocol::value_offset< D, Offset > Struct Template Reference

The value defined by D present in the message is offseted by Offset. More...

#include <base.h>

Public Types

using def_type = D
 

Static Public Attributes

static constexpr auto offset = Offset
 

Detailed Description

template<typename D, auto Offset>
struct emlabcpp::protocol::value_offset< D, Offset >

The value defined by D present in the message is offseted by Offset.

If the offset for example 2, value 4 in the message is parsed as 2 and value 1 is serialized as 3.

Member Typedef Documentation

◆ def_type

template<typename D , auto Offset>
using emlabcpp::protocol::value_offset< D, Offset >::def_type = D

Member Data Documentation

◆ offset

template<typename D , auto Offset>
constexpr auto emlabcpp::protocol::value_offset< D, Offset >::offset = Offset
staticconstexpr

The documentation for this struct was generated from the following file: