Motion Master
Loading...
Searching...
No Matches
Namespaces | Functions
soempp.cc File Reference
#include "soempp.h"
#include <cstring>
#include <stdexcept>
#include <thread>
#include "common.h"
Include dependency graph for soempp.cc:

Namespaces

namespace  soempp
 

Functions

std::map< std::string, std::string > soempp::mapMacAddressesToInterfaces ()
 Maps MAC addresses to their corresponding network interface names. More...
 
int soempp::setPdoMappingFromUiConfig (ecx_contextt *context, uint16 slave)
 Sets PDO mapping for a specified EtherCAT slave using UI configuration. More...
 
void soempp::checkPdoMapping (ecx_contextt *context, uint16 slave)
 Diagnoses and prints the PDO mapping for a given slave. More...
 
uint16_t soempp::getSlaveState (ecx_contextt *context, uint16_t slave, bool forceRefresh)
 Retrieves the current state of a specific EtherCAT slave. More...
 
std::string soempp::convertSlaveStateToString (int state)
 Converts a numeric EtherCAT state value into a human-readable string. More...
 
bool soempp::transitionToHigherSlaveState (ecx_contextt *context, uint16_t slave, int targetState)
 Transitions a slave to a higher EtherCAT state. More...
 
void soempp::updateMailboxSyncManagersOnNextState (ecx_contextt *context, uint16_t slave, int targetState)
 Updates the mailbox and sync manager (SM) configurations for an EtherCAT slave when transitioning to specific states (e.g., BOOT or INIT). More...
 
void soempp::configureDetectedSmmModule (ecx_contextt *context, uint16_t slave)
 Reads the detected SMM module ID from the slave device and configures the module identification object accordingly. More...
 
bool soempp::setSlaveState (ecx_contextt *context, uint16_t slave, int targetState)
 Sets the state of a specified EtherCAT slave. More...
 
common::PdoMappings soempp::readPdoMappings (ecx_contextt *context, uint16_t slave)
 Read and parse all mapped PDO entries for a given slave. More...
 
void soempp::logPdoMappingEntries (const std::vector< common::PdoMappingEntry > &entries)
 Logs PDO mapping entries grouped by PDO index. More...
 
void soempp::logIoMap (uint8_t *ioMap, size_t totalBytes)
 Logs the I/O map as a formatted hexadecimal string. More...
 
void soempp::initFieldbus (std::unique_ptr< Fieldbus > &fieldbus, const std::string &iface)
 Initializes a Fieldbus instance for EtherCAT communication. More...