Motion Master
Loading...
Searching...
No Matches
global.h File Reference
#include <atomic>
#include <csignal>
#include <iostream>
#include <map>
#include <mutex>
#include <queue>
#include <string>
#include <thread>
#include <unordered_map>
#include <vector>
#include "ethercat.h"
#include "loguru.h"
#include "standalone_autotuning.h"
Include dependency graph for global.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  InternalLogger
 Logging class. More...

Macros

#define M_PI   3.14159265358979323846

Enumerations

enum class  MasterType { kUnspecified , kMock , kSoem , kSpoe }

Functions

void g_soem_update_slavecount ()

Variables

StandaloneAutotuning g_standalone_autotuning
uint8 g_pIOmap [4096]
volatile sig_atomic_t g_sig_caught
std::string g_driver_name
MasterType g_master_type
uint16_t g_req_res_port
uint16_t g_pub_sub_port
std::atomic< int > g_slavecount
std::string g_soem_mac_address
std::string g_soem_ifname
std::vector< std::recursive_mutex > g_soem_mailbox_mutexes
std::atomic< bool > g_pdo_mapping_in_progress
std::vector< std::string > g_ethernet_ip_addresses
std::string g_ethernet_pdo_mode
size_t g_mock_devices
std::string g_templates_path
bool g_eol_mode

Macro Definition Documentation

◆ M_PI

#define M_PI   3.14159265358979323846

Enumeration Type Documentation

◆ MasterType

enum class MasterType
strong
Enumerator
kUnspecified 
kMock 
kSoem 
kSpoe 

Function Documentation

◆ g_soem_update_slavecount()

void g_soem_update_slavecount ( )

Variable Documentation

◆ g_driver_name

std::string g_driver_name
extern

◆ g_eol_mode

bool g_eol_mode
extern

◆ g_ethernet_ip_addresses

std::vector<std::string> g_ethernet_ip_addresses
extern

◆ g_ethernet_pdo_mode

std::string g_ethernet_pdo_mode
extern

◆ g_master_type

MasterType g_master_type
extern

◆ g_mock_devices

size_t g_mock_devices
extern

◆ g_pdo_mapping_in_progress

std::atomic<bool> g_pdo_mapping_in_progress
extern

◆ g_pIOmap

uint8 g_pIOmap[4096]
extern

◆ g_pub_sub_port

uint16_t g_pub_sub_port
extern

◆ g_req_res_port

uint16_t g_req_res_port
extern

◆ g_sig_caught

volatile sig_atomic_t g_sig_caught
extern

◆ g_slavecount

std::atomic<int> g_slavecount
extern

◆ g_soem_ifname

std::string g_soem_ifname
extern

◆ g_soem_mac_address

std::string g_soem_mac_address
extern

◆ g_soem_mailbox_mutexes

std::vector<std::recursive_mutex> g_soem_mailbox_mutexes
extern

◆ g_standalone_autotuning

StandaloneAutotuning g_standalone_autotuning
extern

◆ g_templates_path

std::string g_templates_path
extern