AdsLib
Loading...
Searching...
No Matches
Router.h
1// SPDX-License-Identifier: MIT
6#pragma once
7
8#include "AdsDef.h"
9
10struct Router {
11 static const size_t NUM_PORTS_MAX = 128;
12 static const uint16_t PORT_BASE = 30000;
13 static_assert(NUM_PORTS_MAX + PORT_BASE <= UINT16_MAX, "Port limit is out of range");
14 virtual ~Router() {}
15
16 virtual long GetLocalAddress(uint16_t port, AmsAddr* pAddr) = 0;
17};
The complete address of an ADS device can be stored in this structure.
Definition: AdsDef.h:237
Definition: Router.h:10