PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
Loading...
Searching...
No Matches
device.cpp File Reference

Implements the high-level PROFINET IO device controller front and device lifecycle orchestration. More...

#include "profinet/device.h"
#include <algorithm>
#include <cctype>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <sstream>
#include "profinet/exceptions.h"
#include "profinet/indices.h"
#include "profinet/wire.h"
+ Include dependency graph for device.cpp:

Go to the source code of this file.

Namespaces

namespace  profinet
 
namespace  profinet::device
 

Functions

std::optional< MacAddressprofinet::device::ParseMac (const std::string &macStr)
 Parse a MAC address string in any common separator style.
 
bool profinet::device::IsMacAddress (const std::string &identifier)
 Whether a string parses as a MAC address.
 
std::vector< ProfinetDeviceprofinet::device::Scan (const std::string &interface="eth0", double timeoutSec=3.0)
 Scan the network for PROFINET devices via DCP Identify.
 
std::map< std::string, DeviceInfoprofinet::device::ScanDict (const std::string &interface="eth0", double timeoutSec=3.0)
 Scan the network and return a name -> DeviceInfo map.
 

Detailed Description

Implements the high-level PROFINET IO device controller front and device lifecycle orchestration.

Definition in file device.cpp.