Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
dcc::MMAddress Struct Reference

Strongly typed wrapper representing a marklin-motorola protocol address. More...

#include <Address.hxx>

Public Member Functions

 MMAddress (unsigned v)
 Constructor.
 

Public Attributes

uint8_t value
 Address value.
 

Static Public Attributes

static constexpr unsigned ADDRESS_MAX = 80
 Largest valid address.
 

Detailed Description

Strongly typed wrapper representing a marklin-motorola protocol address.

This address is between 0 and 80.

Definition at line 81 of file Address.hxx.

Constructor & Destructor Documentation

◆ MMAddress()

dcc::MMAddress::MMAddress ( unsigned  v)
inlineexplicit

Constructor.

Parameters
vis the address value (0<=v<81);

Definition at line 88 of file Address.hxx.

Member Data Documentation

◆ ADDRESS_MAX

constexpr unsigned dcc::MMAddress::ADDRESS_MAX = 80
staticconstexpr

Largest valid address.

Definition at line 84 of file Address.hxx.

◆ value

uint8_t dcc::MMAddress::value

Address value.

Definition at line 86 of file Address.hxx.


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