mcx::ecat
mcx::ecat
Classes
Types
|
Name |
enum |
DomainState { DOMAIN_OFF = 0, DOMAIN_RUNNING = 1, DOMAIN_ERROR = 2} |
enum |
SdoState { SDO_IDLE, SDO_BUSY, SDO_SUCCESS, SDO_ERROR} |
enum class |
MasterType { DEFAULT, ETHERLAB} |
enum |
DataType { NOT_SET, BIT, INT, UINT, BOOL, FLOAT, DOUBLE, STRING} |
enum |
EcatAlState { EC_AL_STATE_INIT = 1, EC_AL_STATE_PREOP = 2, EC_AL_STATE_SAFEOP = 4, EC_AL_STATE_OP = 8} |
enum |
EcatWatchdogMode { EC_WD_DEFAULT, EC_WD_ENABLE, EC_WD_DISABLE, EC_WD_COUNT} |
enum |
EcatDirection { EC_DIR_INVALID, EC_DIR_OUTPUT, EC_DIR_INPUT, EC_DIR_BOTH, EC_DIR_COUNT} |
enum |
ParameterLinkType { PL_DIR_UNKNOWN, PL_DIR_TO, PL_DIR_FROM, PL_SDO_READ, PL_SDO_WRITE} |
enum |
SdoDownloadState { EC_REQUEST_UNUSED, EC_REQUEST_BUSY, EC_REQUEST_SUCCESS, EC_REQUEST_ERROR} |
enum |
SdoType { EC_SDO_TYPE_INVALID, EC_CAN_OVER_ETHERCAT, EC_SERCOS_OVER_ETHERCAT} |
using EcatDirection |
SdoDirection |
using std::vector< ParameterLink > |
Links |
using std::vector< EcatSdoConfig > |
Entries |
using std::vector< ParameterLink > |
SimulationModeLinks |
using std::vector< EcatDeviceConfig > |
Devices |
Functions
|
Name |
template <typename Type > size_t |
toParameter(const Type * src, Type * dst, size_t bit_offset, size_t bit_length) |
template <typename Type > size_t |
fromParameter(const Type * src, Type * dst, size_t bit_offset, size_t bit_length) |
std::shared_ptr< EthercatBase > |
createProductionMaster(MasterType master_type, unsigned int master_id) |
std::shared_ptr< EthercatBase > |
createSimulationMaster(unsigned int master_id) |
std::shared_ptr< EthercatBase > |
createMaster(utils::SystemMode system_mode) |
std::shared_ptr< EthercatBase > |
createMaster(utils::SystemMode system_mode, unsigned int master_id) |
std::shared_ptr< EthercatBase > |
createMaster(utils::SystemMode system_mode, MasterType master_type, unsigned int master_id) |
SdoState |
toSdoState(ec_request_state_t state) |
void |
allocateSdo(EcatSdoConfig & sdo, std::vector< uint8_t * > & sdo_data) |
std::string |
getDataTypeName(DataType type) |
DataTypeDesc |
getDataTypeMap(const std::string & name) |
std::string |
dataTypeToStr(DataTypeDesc data_type) |
DataTypeDesc |
dataTypeDesc(const char * data_type) |
std::tuple< std::string, tinyxml2::XMLElement * > |
loadDomainFromXml(tinyxml2::XMLDocument & xml_doc, const std::string & full_path) |
std::shared_ptr< EtherCatXml > |
createEthercatXmlParser(const std::string & version) |
std::string |
toString(const char * value) |
int |
toInt(const std::string & value) |
int |
toInt(const char * value) |
bool |
hasAttribute(const char * attribute, const tinyxml2::XMLElement * element) |
std::string |
getName(const tinyxml2::XMLElement * element) |
std::string |
getGroup(const tinyxml2::XMLElement * element) |
bool |
isIncluded(const tinyxml2::XMLElement * root) |
bool |
isVisible(const tinyxml2::XMLElement * root) |
std::string |
getFullName(const tinyxml2::XMLElement * element) |
std::string |
getFileName(const tinyxml2::XMLElement * element) |
std::tuple< int, int > |
getAlias(const tinyxml2::XMLElement * element) |
ParameterLink |
getParameterLink(const tinyxml2::XMLElement * element, ParameterLinkType type) |
ParameterLink |
getReadWrite(const tinyxml2::XMLElement * parent_element, const char * tag) |
EcatAlState |
getTransition(const tinyxml2::XMLElement * element) |
std::string |
getComment(const tinyxml2::XMLElement * element) |
unsigned int |
getTimeout(const tinyxml2::XMLElement * element) |
unsigned int |
getOpCode(const tinyxml2::XMLElement * element) |
unsigned int |
getDriveNo(const tinyxml2::XMLElement * element) |
unsigned int |
getIdn(const tinyxml2::XMLElement * element) |
unsigned int |
getElements(const tinyxml2::XMLElement * element) |
unsigned int |
getAttribute(const tinyxml2::XMLElement * element) |
std::tuple< bool, std::vector< unsigned char > > |
getData(const tinyxml2::XMLElement * element) |
SdoType |
getSdoType(const tinyxml2::XMLElement * element) |
unsigned int |
getIndex(const tinyxml2::XMLElement * element) |
unsigned int |
getSubIndex(const tinyxml2::XMLElement * element) |
unsigned int |
getCcs(const tinyxml2::XMLElement * element) |
unsigned int |
getAssignActivate(const tinyxml2::XMLElement * element) |
unsigned int |
getCycleTimeSync0(const tinyxml2::XMLElement * element) |
unsigned int |
getShiftTimeSync0(const tinyxml2::XMLElement * element) |
unsigned int |
getCycleTimeSync1(const tinyxml2::XMLElement * element) |
unsigned int |
getShiftTimeSync1(const tinyxml2::XMLElement * element) |
constexpr auto |
ETHERCAT_INFO_LIST(“EtherCATInfoList” ) |
constexpr auto |
ETHERCAT_INFO(“EtherCATInfo” ) |
constexpr auto |
VENDOR(“Vendor” ) |
constexpr auto |
VENDOR_ID(“VendorId” ) |
constexpr auto |
ID(“Id” ) |
constexpr auto |
POS(“Pos” ) |
constexpr auto |
ALIAS(“Alias” ) |
constexpr auto |
DELIMITER(":" ) |
constexpr auto |
DESC(“Descriptions” ) |
constexpr auto |
DEVS(“Devices” ) |
constexpr auto |
DEV(“Device” ) |
constexpr auto |
TYPE(“Type” ) |
constexpr auto |
PROD_CODE(“ProductCode” ) |
constexpr auto |
SYNC_MANAGER(“Sm” ) |
constexpr auto |
CTRL_BYTE(“ControlByte” ) |
constexpr auto |
RX_PDO(“RxPdo” ) |
constexpr auto |
TX_PDO(“TxPdo” ) |
constexpr auto |
RX_SDO(“RxSdo” ) |
constexpr auto |
TX_SDO(“TxSdo” ) |
constexpr auto |
INDEX(“Index” ) |
constexpr auto |
SUB_INDEX(“SubIndex” ) |
constexpr auto |
NAME(“Name” ) |
constexpr auto |
ENTRY(“Entry” ) |
constexpr auto |
BITLEN(“BitLen” ) |
constexpr auto |
DATA_TYPE(“DataType” ) |
constexpr auto |
EL_INDEX(“Index” ) |
constexpr auto |
EL_OFFSET(“Offset” ) |
constexpr auto |
GAIN(“Gain” ) |
constexpr auto |
DIVIDE(“Divide” ) |
constexpr auto |
GAIN_OFFSET(“GainOffset” ) |
constexpr auto |
GAIN_INV_BOOL(“Invert” ) |
constexpr auto |
SIM_DEPRECATED(“Sim” ) |
constexpr auto |
SIMULATION(“Simulation” ) |
constexpr auto |
CLAMP(“Clamp” ) |
constexpr auto |
DC(“Dc” ) |
constexpr auto |
OP_MODE(“OpMode” ) |
constexpr auto |
ASSIGN_ACTIVATE(“AssignActivate” ) |
constexpr auto |
CYCLE_TIME_SYNC0(“CycleTimeSync0” ) |
constexpr auto |
SHIFT_TIME_SYNC0(“ShiftTimeSync0” ) |
constexpr auto |
CYCLE_TIME_SYNC1(“CycleTimeSync1” ) |
constexpr auto |
SHIFT_TIME_SYNC1(“ShiftTimeSync1” ) |
constexpr auto |
ETHERCAT_MAILBOX(“EtherCATMailbox” ) |
constexpr auto |
CSV(“CSV” ) |
constexpr auto |
COE(“CoE” ) |
constexpr auto |
SOE(“SoE” ) |
constexpr auto |
COMPLETE_ACCESS(“CompleteAccess” ) |
constexpr auto |
INITCMDS(“InitCmds” ) |
constexpr auto |
INITCMD(“InitCmd” ) |
constexpr auto |
TRANSITION(“Transition” ) |
constexpr auto |
COMMENT(“Comment” ) |
constexpr auto |
TIMEOUT(“Timeout” ) |
constexpr auto |
CCS(“Ccs” ) |
constexpr auto |
OPCODE(“OpCode” ) |
constexpr auto |
DRIVENO(“DriveNo” ) |
constexpr auto |
IDN(“IDN” ) |
constexpr auto |
ELEMENTS(“Elements” ) |
constexpr auto |
ATTRIBUTE(“Attribute” ) |
constexpr auto |
DATA(“Data” ) |
constexpr auto |
CONFIG(“Config” ) |
constexpr auto |
DOMAIN_ECAT(“Domain” ) |
constexpr auto |
MAP_ALL(“MapAll” ) |
constexpr auto |
DEVICE(“Device” ) |
constexpr auto |
LINK(“Link” ) |
constexpr auto |
LINK_TO(“LinkTo” ) |
constexpr auto |
LINK_FROM(“LinkFrom” ) |
constexpr auto |
UPLOAD(“Upload” ) |
constexpr auto |
READ(“Read” ) |
constexpr auto |
WRITE(“Write” ) |
constexpr auto |
PDO(“Pdo” ) |
constexpr auto |
SDO(“Sdo” ) |
constexpr auto |
MAILBOX(“Mailbox” ) |
constexpr auto |
FILE(“File” ) |
constexpr auto |
DEVICE_ID(“DeviceId” ) |
constexpr auto |
PDO_ENTRY_ID(“Entry” ) |
constexpr auto |
PDO_ID(“Index” ) |
constexpr auto |
PDO_ADDR_SEP(":" ) |
constexpr auto |
GROUP(“Group” ) |
constexpr auto |
INCLUDED(“Included” ) |
constexpr auto |
VISIBLE(“Visible” ) |
constexpr auto |
SIZE(“Size” ) |
constexpr auto |
LINK_SYSTEM_MODE(“LinkSystemMode” ) |
constexpr auto |
LINK_SIMULATION(“LinkSimulation” ) |
constexpr auto |
MAP(“Map” ) |
constexpr auto |
MAP_OFFSET(“Offset” ) |
constexpr auto |
NO_ERROR_SEC(“NoErrorSec” ) |
constexpr auto |
ERROR_SEC(“ErrorSec” ) |
constexpr auto |
SDO_RECOVERY(“SdoRecovery” ) |
constexpr const char * |
transitionToStr(EcatAlState al_state) |
size_t |
getSdoHash(EcatSdoConfig sdo_config) |
Attributes
Types Documentation
enum DomainState
Enumerator |
Value |
Description |
DOMAIN_OFF |
0 |
|
DOMAIN_RUNNING |
1 |
|
DOMAIN_ERROR |
2 |
|
enum SdoState
Enumerator |
Value |
Description |
SDO_IDLE |
|
|
SDO_BUSY |
|
|
SDO_SUCCESS |
|
|
SDO_ERROR |
|
|
enum MasterType
Enumerator |
Value |
Description |
DEFAULT |
|
|
ETHERLAB |
|
|
enum DataType
Enumerator |
Value |
Description |
NOT_SET |
|
|
BIT |
|
|
INT |
|
|
UINT |
|
|
BOOL |
|
|
FLOAT |
|
|
DOUBLE |
|
|
STRING |
|
|
enum EcatAlState
Enumerator |
Value |
Description |
EC_AL_STATE_INIT |
1 |
Init. |
EC_AL_STATE_PREOP |
2 |
Pre-operational. |
EC_AL_STATE_SAFEOP |
4 |
Safe-operational. |
EC_AL_STATE_OP |
8 |
Operational. |
Application-layer state.
enum EcatWatchdogMode
Enumerator |
Value |
Description |
EC_WD_DEFAULT |
|
Use the default setting of the sync manager. |
EC_WD_ENABLE |
|
Enable the watchdog. |
EC_WD_DISABLE |
|
Disable the watchdog. |
EC_WD_COUNT |
|
|
Watchdog mode for sync manager configuration.
Used to specify, if a sync manager’s watchdog is to be enabled.
enum EcatDirection
Enumerator |
Value |
Description |
EC_DIR_INVALID |
|
Invalid direction. Do not use this value. |
EC_DIR_OUTPUT |
|
Values written by the master. |
EC_DIR_INPUT |
|
Values read by the master. |
EC_DIR_BOTH |
|
Values read and written by the master. |
EC_DIR_COUNT |
|
Number of directions. For internal use only. |
Direction type for PDO assignment functions.
enum ParameterLinkType
Enumerator |
Value |
Description |
PL_DIR_UNKNOWN |
|
|
PL_DIR_TO |
|
|
PL_DIR_FROM |
|
|
PL_SDO_READ |
|
|
PL_SDO_WRITE |
|
|
enum SdoDownloadState
Enumerator |
Value |
Description |
EC_REQUEST_UNUSED |
|
Not requested. |
EC_REQUEST_BUSY |
|
Request is being processed. |
EC_REQUEST_SUCCESS |
|
Request was processed successfully. |
EC_REQUEST_ERROR |
|
Request processing failed. |
Request state.
This is used as return type for ecrt_sdo_request_state() and ecrt_voe_handler_state().
enum SdoType
Enumerator |
Value |
Description |
EC_SDO_TYPE_INVALID |
|
|
EC_CAN_OVER_ETHERCAT |
|
CAN over Ethercat service object. |
EC_SERCOS_OVER_ETHERCAT |
|
SERCOS over Ethercat service object. |
using SdoDirection
using mcx::ecat::SdoDirection = typedef EcatDirection;
using Links
using mcx::ecat::Links = typedef std::vector<ParameterLink>;
using Entries
using mcx::ecat::Entries = typedef std::vector<EcatSdoConfig>;
using SimulationModeLinks
using mcx::ecat::SimulationModeLinks = typedef std::vector<ParameterLink>;
using Devices
using mcx::ecat::Devices = typedef std::vector<EcatDeviceConfig>;
Functions Documentation
function toParameter
template <typename Type >
size_t toParameter(
const Type * src,
Type * dst,
size_t bit_offset,
size_t bit_length
)
function fromParameter
template <typename Type >
size_t fromParameter(
const Type * src,
Type * dst,
size_t bit_offset,
size_t bit_length
)
function createProductionMaster
std::shared_ptr< EthercatBase > createProductionMaster(
MasterType master_type,
unsigned int master_id
)
function createSimulationMaster
std::shared_ptr< EthercatBase > createSimulationMaster(
unsigned int master_id
)
function createMaster
std::shared_ptr< EthercatBase > createMaster(
utils::SystemMode system_mode
)
function createMaster
std::shared_ptr< EthercatBase > createMaster(
utils::SystemMode system_mode,
unsigned int master_id
)
function createMaster
std::shared_ptr< EthercatBase > createMaster(
utils::SystemMode system_mode,
MasterType master_type,
unsigned int master_id
)
function toSdoState
inline SdoState toSdoState(
ec_request_state_t state
)
function allocateSdo
void allocateSdo(
EcatSdoConfig & sdo,
std::vector< uint8_t * > & sdo_data
)
function getDataTypeName
std::string getDataTypeName(
DataType type
)
function getDataTypeMap
DataTypeDesc getDataTypeMap(
const std::string & name
)
function dataTypeToStr
std::string dataTypeToStr(
DataTypeDesc data_type
)
function dataTypeDesc
DataTypeDesc dataTypeDesc(
const char * data_type
)
function loadDomainFromXml
std::tuple< std::string, tinyxml2::XMLElement * > loadDomainFromXml(
tinyxml2::XMLDocument & xml_doc,
const std::string & full_path
)
function createEthercatXmlParser
std::shared_ptr< EtherCatXml > createEthercatXmlParser(
const std::string & version
)
function toString
inline std::string toString(
const char * value
)
function toInt
inline int toInt(
const std::string & value
)
function toInt
inline int toInt(
const char * value
)
function hasAttribute
inline bool hasAttribute(
const char * attribute,
const tinyxml2::XMLElement * element
)
function getName
inline std::string getName(
const tinyxml2::XMLElement * element
)
function getGroup
inline std::string getGroup(
const tinyxml2::XMLElement * element
)
function isIncluded
inline bool isIncluded(
const tinyxml2::XMLElement * root
)
function isVisible
inline bool isVisible(
const tinyxml2::XMLElement * root
)
function getFullName
inline std::string getFullName(
const tinyxml2::XMLElement * element
)
function getFileName
inline std::string getFileName(
const tinyxml2::XMLElement * element
)
function getAlias
inline std::tuple< int, int > getAlias(
const tinyxml2::XMLElement * element
)
function getParameterLink
inline ParameterLink getParameterLink(
const tinyxml2::XMLElement * element,
ParameterLinkType type
)
function getReadWrite
inline ParameterLink getReadWrite(
const tinyxml2::XMLElement * parent_element,
const char * tag
)
function getTransition
inline EcatAlState getTransition(
const tinyxml2::XMLElement * element
)
inline std::string getComment(
const tinyxml2::XMLElement * element
)
function getTimeout
inline unsigned int getTimeout(
const tinyxml2::XMLElement * element
)
function getOpCode
inline unsigned int getOpCode(
const tinyxml2::XMLElement * element
)
function getDriveNo
inline unsigned int getDriveNo(
const tinyxml2::XMLElement * element
)
function getIdn
inline unsigned int getIdn(
const tinyxml2::XMLElement * element
)
function getElements
inline unsigned int getElements(
const tinyxml2::XMLElement * element
)
function getAttribute
inline unsigned int getAttribute(
const tinyxml2::XMLElement * element
)
function getData
inline std::tuple< bool, std::vector< unsigned char > > getData(
const tinyxml2::XMLElement * element
)
function getSdoType
inline SdoType getSdoType(
const tinyxml2::XMLElement * element
)
function getIndex
inline unsigned int getIndex(
const tinyxml2::XMLElement * element
)
function getSubIndex
inline unsigned int getSubIndex(
const tinyxml2::XMLElement * element
)
function getCcs
inline unsigned int getCcs(
const tinyxml2::XMLElement * element
)
function getAssignActivate
inline unsigned int getAssignActivate(
const tinyxml2::XMLElement * element
)
function getCycleTimeSync0
inline unsigned int getCycleTimeSync0(
const tinyxml2::XMLElement * element
)
function getShiftTimeSync0
inline unsigned int getShiftTimeSync0(
const tinyxml2::XMLElement * element
)
function getCycleTimeSync1
inline unsigned int getCycleTimeSync1(
const tinyxml2::XMLElement * element
)
function getShiftTimeSync1
inline unsigned int getShiftTimeSync1(
const tinyxml2::XMLElement * element
)
function ETHERCAT_INFO_LIST
constexpr auto ETHERCAT_INFO_LIST(
"EtherCATInfoList"
)
function ETHERCAT_INFO
constexpr auto ETHERCAT_INFO(
"EtherCATInfo"
)
function VENDOR
constexpr auto VENDOR(
"Vendor"
)
function VENDOR_ID
constexpr auto VENDOR_ID(
"VendorId"
)
function ID
constexpr auto ID(
"Id"
)
function POS
constexpr auto POS(
"Pos"
)
function ALIAS
constexpr auto ALIAS(
"Alias"
)
function DELIMITER
constexpr auto DELIMITER(
":"
)
function DESC
constexpr auto DESC(
"Descriptions"
)
function DEVS
constexpr auto DEVS(
"Devices"
)
function DEV
constexpr auto DEV(
"Device"
)
function TYPE
constexpr auto TYPE(
"Type"
)
function PROD_CODE
constexpr auto PROD_CODE(
"ProductCode"
)
function SYNC_MANAGER
constexpr auto SYNC_MANAGER(
"Sm"
)
function CTRL_BYTE
constexpr auto CTRL_BYTE(
"ControlByte"
)
function RX_PDO
constexpr auto RX_PDO(
"RxPdo"
)
function TX_PDO
constexpr auto TX_PDO(
"TxPdo"
)
function RX_SDO
constexpr auto RX_SDO(
"RxSdo"
)
function TX_SDO
constexpr auto TX_SDO(
"TxSdo"
)
function INDEX
constexpr auto INDEX(
"Index"
)
function SUB_INDEX
constexpr auto SUB_INDEX(
"SubIndex"
)
function NAME
constexpr auto NAME(
"Name"
)
function ENTRY
constexpr auto ENTRY(
"Entry"
)
function BITLEN
constexpr auto BITLEN(
"BitLen"
)
function DATA_TYPE
constexpr auto DATA_TYPE(
"DataType"
)
function EL_INDEX
constexpr auto EL_INDEX(
"Index"
)
function EL_OFFSET
constexpr auto EL_OFFSET(
"Offset"
)
function GAIN
constexpr auto GAIN(
"Gain"
)
function DIVIDE
constexpr auto DIVIDE(
"Divide"
)
function GAIN_OFFSET
constexpr auto GAIN_OFFSET(
"GainOffset"
)
function GAIN_INV_BOOL
constexpr auto GAIN_INV_BOOL(
"Invert"
)
function SIM_DEPRECATED
constexpr auto SIM_DEPRECATED(
"Sim"
)
function SIMULATION
constexpr auto SIMULATION(
"Simulation"
)
function CLAMP
constexpr auto CLAMP(
"Clamp"
)
function DC
constexpr auto DC(
"Dc"
)
function OP_MODE
constexpr auto OP_MODE(
"OpMode"
)
function ASSIGN_ACTIVATE
constexpr auto ASSIGN_ACTIVATE(
"AssignActivate"
)
function CYCLE_TIME_SYNC0
constexpr auto CYCLE_TIME_SYNC0(
"CycleTimeSync0"
)
function SHIFT_TIME_SYNC0
constexpr auto SHIFT_TIME_SYNC0(
"ShiftTimeSync0"
)
function CYCLE_TIME_SYNC1
constexpr auto CYCLE_TIME_SYNC1(
"CycleTimeSync1"
)
function SHIFT_TIME_SYNC1
constexpr auto SHIFT_TIME_SYNC1(
"ShiftTimeSync1"
)
function ETHERCAT_MAILBOX
constexpr auto ETHERCAT_MAILBOX(
"EtherCATMailbox"
)
function CSV
constexpr auto CSV(
"CSV"
)
function COE
constexpr auto COE(
"CoE"
)
function SOE
constexpr auto SOE(
"SoE"
)
function COMPLETE_ACCESS
constexpr auto COMPLETE_ACCESS(
"CompleteAccess"
)
function INITCMDS
constexpr auto INITCMDS(
"InitCmds"
)
function INITCMD
constexpr auto INITCMD(
"InitCmd"
)
function TRANSITION
constexpr auto TRANSITION(
"Transition"
)
constexpr auto COMMENT(
"Comment"
)
function TIMEOUT
constexpr auto TIMEOUT(
"Timeout"
)
function CCS
constexpr auto CCS(
"Ccs"
)
function OPCODE
constexpr auto OPCODE(
"OpCode"
)
function DRIVENO
constexpr auto DRIVENO(
"DriveNo"
)
function IDN
constexpr auto IDN(
"IDN"
)
function ELEMENTS
constexpr auto ELEMENTS(
"Elements"
)
function ATTRIBUTE
constexpr auto ATTRIBUTE(
"Attribute"
)
function DATA
constexpr auto DATA(
"Data"
)
function CONFIG
constexpr auto CONFIG(
"Config"
)
function DOMAIN_ECAT
constexpr auto DOMAIN_ECAT(
"Domain"
)
function MAP_ALL
constexpr auto MAP_ALL(
"MapAll"
)
function DEVICE
constexpr auto DEVICE(
"Device"
)
function LINK
constexpr auto LINK(
"Link"
)
function LINK_TO
constexpr auto LINK_TO(
"LinkTo"
)
function LINK_FROM
constexpr auto LINK_FROM(
"LinkFrom"
)
function UPLOAD
constexpr auto UPLOAD(
"Upload"
)
function READ
constexpr auto READ(
"Read"
)
function WRITE
constexpr auto WRITE(
"Write"
)
function PDO
constexpr auto PDO(
"Pdo"
)
function SDO
constexpr auto SDO(
"Sdo"
)
function MAILBOX
constexpr auto MAILBOX(
"Mailbox"
)
function FILE
constexpr auto FILE(
"File"
)
function DEVICE_ID
constexpr auto DEVICE_ID(
"DeviceId"
)
function PDO_ENTRY_ID
constexpr auto PDO_ENTRY_ID(
"Entry"
)
function PDO_ID
constexpr auto PDO_ID(
"Index"
)
function PDO_ADDR_SEP
constexpr auto PDO_ADDR_SEP(
":"
)
function GROUP
constexpr auto GROUP(
"Group"
)
function INCLUDED
constexpr auto INCLUDED(
"Included"
)
function VISIBLE
constexpr auto VISIBLE(
"Visible"
)
function SIZE
constexpr auto SIZE(
"Size"
)
function LINK_SYSTEM_MODE
constexpr auto LINK_SYSTEM_MODE(
"LinkSystemMode"
)
function LINK_SIMULATION
constexpr auto LINK_SIMULATION(
"LinkSimulation"
)
function MAP
constexpr auto MAP(
"Map"
)
function MAP_OFFSET
constexpr auto MAP_OFFSET(
"Offset"
)
function NO_ERROR_SEC
constexpr auto NO_ERROR_SEC(
"NoErrorSec"
)
function ERROR_SEC
constexpr auto ERROR_SEC(
"ErrorSec"
)
function SDO_RECOVERY
constexpr auto SDO_RECOVERY(
"SdoRecovery"
)
function transitionToStr
constexpr const char * transitionToStr(
EcatAlState al_state
)
function getSdoHash
inline size_t getSdoHash(
EcatSdoConfig sdo_config
)
Attributes Documentation
variable UNDEFINED
constexpr const char UNDEFINED {"Undefined"};
variable PDO_UNDEFINED
constexpr auto PDO_UNDEFINED = ~0U;
variable TransitionToStr
constexpr std::pair< const char *, EcatAlState > TransitionToStr = {{"IP", EcatAlState::EC_AL_STATE_INIT},
{"PS", EcatAlState::EC_AL_STATE_PREOP},
{"SO", EcatAlState::EC_AL_STATE_SAFEOP},
{0x0, EcatAlState::EC_AL_STATE_PREOP}};
variable EcatWdToStr
constexpr std::pair< const char *, EcatWatchdogMode > EcatWdToStr {{"Default", EcatWatchdogMode::EC_WD_DEFAULT},
{"Enable", EcatWatchdogMode::EC_WD_ENABLE},
{"Disable", EcatWatchdogMode::EC_WD_DISABLE},
{0x0, EcatWatchdogMode::EC_WD_COUNT}};
variable EcatDirToStr
constexpr std::pair< const char *, EcatDirection > EcatDirToStr {{"Invalid", EcatDirection::EC_DIR_INVALID},
{"Output", EcatDirection::EC_DIR_OUTPUT},
{"Input", EcatDirection::EC_DIR_INPUT},
{"Both", EcatDirection::EC_DIR_BOTH},
{0x0, EcatDirection::EC_DIR_COUNT}};
variable SdoTypeToStr
constexpr std::pair< const char *, SdoType > SdoTypeToStr {{"Invalid", SdoType::EC_SDO_TYPE_INVALID},
{"COE", SdoType::EC_CAN_OVER_ETHERCAT},
{"SOE", SdoType::EC_SERCOS_OVER_ETHERCAT}};
Updated on 2022-04-05 at 16:21:27 +0200