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

Structure that represents definition of one register in the map. More...

#include <register_map.h>

Public Types

using def_type = D
 
using key_type = decltype(Key)
 
using traits = proto_traits< def_type >
 
using value_type = typename traits::value_type
 

Public Attributes

value_type value
 

Static Public Attributes

static constexpr key_type key = Key
 
static constexpr std::size_t size = traits::max_size
 

Friends

constexpr friend auto operator<=> (register_pair const &, register_pair const &)=default
 

Detailed Description

template<auto Key, convertible D>
struct emlabcpp::protocol::register_pair< Key, D >

Structure that represents definition of one register in the map.

It also contains the value itself.

Member Typedef Documentation

◆ def_type

template<auto Key, convertible D>
using emlabcpp::protocol::register_pair< Key, D >::def_type = D

◆ key_type

template<auto Key, convertible D>
using emlabcpp::protocol::register_pair< Key, D >::key_type = decltype( Key )

◆ traits

template<auto Key, convertible D>
using emlabcpp::protocol::register_pair< Key, D >::traits = proto_traits< def_type >

◆ value_type

template<auto Key, convertible D>
using emlabcpp::protocol::register_pair< Key, D >::value_type = typename traits::value_type

Friends And Related Function Documentation

◆ operator<=>

template<auto Key, convertible D>
constexpr friend auto operator<=> ( register_pair< Key, D > const &  ,
register_pair< Key, D > const &   
)
friend

Member Data Documentation

◆ key

template<auto Key, convertible D>
constexpr key_type emlabcpp::protocol::register_pair< Key, D >::key = Key
staticconstexpr

◆ size

template<auto Key, convertible D>
constexpr std::size_t emlabcpp::protocol::register_pair< Key, D >::size = traits::max_size
staticconstexpr

◆ value

template<auto Key, convertible D>
value_type emlabcpp::protocol::register_pair< Key, D >::value

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