MIP_SDK  latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
platform_connection.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "mip/mip_interface.hpp"
4 
5 #include <memory>
6 #include <string_view>
7 
8 namespace mip
9 {
10  namespace platform
11  {
12  std::unique_ptr<microstrain::Connection> createConnectionFromInterfaceName(std::string interface_name, uint32_t parameter);
13 
14  bool isNetworkInterfaceName(std::string_view interface_name);
15  bool isSerialInterfaceName(std::string_view interface_name);
16 
17  } // namespace platform
18 } // namespace mip
mip
A collection of C++ classes and functions covering the full mip api.
Definition: commands_3dm.c:11
mip::platform::isSerialInterfaceName
bool isSerialInterfaceName(const std::string_view interface_name)
Determines if the name corresponds to a serial port device.
Definition: platform_connection.cpp:62
mip::platform::createConnectionFromInterfaceName
std::unique_ptr< microstrain::Connection > createConnectionFromInterfaceName(std::string interface_name, uint32_t parameter)
Creates a connection object given the interface name and a parameter.
Definition: platform_connection.cpp:34
mip_interface.hpp
mip::platform::isNetworkInterfaceName
bool isNetworkInterfaceName(std::string_view interface_name)
Determines if the name corresponds to a URL or IP address.
Definition: platform_connection.cpp:78