emlabcpp
modern opinionated embedded C++ library
emlabcpp::testing::packet_def Struct Reference

#include <protocol.h>

+ Collaboration diagram for emlabcpp::testing::packet_def:

Public Types

using size_type = uint16_t
 
using checksum_type = std::byte
 

Static Public Member Functions

static constexpr checksum_type get_checksum (view< std::byte const * > const msg)
 

Static Public Attributes

static constexpr std::endian endianess = std::endian::big
 
static constexpr std::array< std::byte, 4 > prefix = bytes( 0x42, 0x42, 0x42, 0x42 )
 

Member Typedef Documentation

◆ checksum_type

◆ size_type

Member Function Documentation

◆ get_checksum()

static constexpr checksum_type emlabcpp::testing::packet_def::get_checksum ( view< std::byte const * > const  msg)
inlinestaticconstexpr

Member Data Documentation

◆ endianess

constexpr std::endian emlabcpp::testing::packet_def::endianess = std::endian::big
staticconstexpr

◆ prefix

constexpr std::array< std::byte, 4 > emlabcpp::testing::packet_def::prefix = bytes( 0x42, 0x42, 0x42, 0x42 )
staticconstexpr

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