mcx::ecat::EthercatBase

mcx::ecat::EthercatBase

Inherited by mcx::ecat::Etherlab, mcx::ecat::Etherlab, mcx::ecat::Simulation

Public Functions

Name
virtual ~EthercatBase() =default
virtual bool createMaster(unsigned int id)
virtual bool setSendInterval(unsigned long dt_micro_s)
virtual int addDomain(DomainBase * domain)
virtual bool startMaster()
virtual bool iterate(const container::TaskTime & system_time, container::UserTime * user_time)
virtual bool stopMaster()
virtual void setSystemMode(utils::SystemMode mode)
virtual bool setCpuAffinity(int cpu_affinity)
utils::SystemMode getSystemMode() const
unsigned int getId() const
virtual const char * getDriverName() const
void setSyncFactor(unsigned int sync_factor)
unsigned int getSyncFactor() const

Protected Attributes

Name
unsigned int master_id_

Public Functions Documentation

function ~EthercatBase

virtual ~EthercatBase() =default

function createMaster

virtual bool createMaster(
    unsigned int id
)

Reimplemented by: mcx::ecat::Etherlab::createMaster, mcx::ecat::Simulation::createMaster

function setSendInterval

virtual bool setSendInterval(
    unsigned long dt_micro_s
)

Reimplemented by: mcx::ecat::Etherlab::setSendInterval, mcx::ecat::Simulation::setSendInterval

function addDomain

virtual int addDomain(
    DomainBase * domain
)

Reimplemented by: mcx::ecat::Etherlab::addDomain, mcx::ecat::Simulation::addDomain

function startMaster

virtual bool startMaster()

Reimplemented by: mcx::ecat::Etherlab::startMaster, mcx::ecat::Simulation::startMaster

function iterate

virtual bool iterate(
    const container::TaskTime & system_time,
    container::UserTime * user_time
)

Reimplemented by: mcx::ecat::Etherlab::iterate, mcx::ecat::Simulation::iterate

function stopMaster

virtual bool stopMaster()

Reimplemented by: mcx::ecat::Etherlab::stopMaster, mcx::ecat::Simulation::stopMaster

function setSystemMode

virtual void setSystemMode(
    utils::SystemMode mode
)

function setCpuAffinity

virtual bool setCpuAffinity(
    int cpu_affinity
)

Reimplemented by: mcx::ecat::Etherlab::setCpuAffinity

function getSystemMode

utils::SystemMode getSystemMode() const

function getId

unsigned int getId() const

function getDriverName

virtual const char * getDriverName() const

Reimplemented by: mcx::ecat::Etherlab::getDriverName, mcx::ecat::Etherlab::getDriverName, mcx::ecat::Simulation::getDriverName

function setSyncFactor

void setSyncFactor(
    unsigned int sync_factor
)

function getSyncFactor

inline unsigned int getSyncFactor() const

Protected Attributes Documentation

variable master_id_

unsigned int master_id_ {0};

Updated on 2022-04-05 at 16:21:27 +0200