Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
utils.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_COMMS_UTILS_HPP_
2#define IV_SRC_COMMS_UTILS_HPP_
3
4#include "core/defines.hpp"
5
6namespace iv::comms
7{
8
10 iv::comms::eInterfaceType interfaceType,
11 iv::comms::eProtocolType protocolType)
12{
13 if (networkType == iv::comms::eNetworkType::Lom)
14 {
15 if (interfaceType == iv::comms::eInterfaceType::PCanGateway)
16 {
17 if (protocolType == iv::comms::eProtocolType::Can)
18 {
19 return true;
20 }
21 }
22 }
23
24 return false;
25}
26
27}// namespace iv::comms
28
29#endif//IV_SRC_COMMS_UTILS_HPP_
Definition ApiCommunicationController.cpp:12
eNetworkType
Definition enums.hpp:250
bool isNetworkValidAsFallbackNetwork(iv::comms::eNetworkType networkType, iv::comms::eInterfaceType interfaceType, iv::comms::eProtocolType protocolType)
Definition utils.hpp:9
eProtocolType
Definition enums.hpp:260
eInterfaceType
Definition enums.hpp:240