libdoip  0.1.0
DoIP (Diagnostics over Internet Protocol) ISO 13400 C++17 Library
DoIPRoutingActivationType.h
Go to the documentation of this file.
1 #ifndef DOIPACTIVATIONTYPE_H
2 #define DOIPACTIVATIONTYPE_H
3 
4 #include <stdint.h>
5 
6 // Table 54
7 enum class DoIPRoutingActivationType : uint8_t {
8  Default = 0,
10  // 0x02 - 0xDF: reserved
11  CentralSecurity = 0xE0,
12 
13 };
14 
15 constexpr std::optional<DoIPRoutingActivationType> toRoutingActivationType(uint8_t value) noexcept {
16  switch(value) {
19  default: break;
20  }
21 
22  return std::nullopt;
23 }
24 
25 #endif /* DOIPACTIVATIONTYPE_H */
DoIPRoutingActivationType
constexpr std::optional< DoIPRoutingActivationType > toRoutingActivationType(uint8_t value) noexcept