Brief description of class DeviceInterface.
More...
#include <armarx/control/ethercat/DeviceInterface.h>
Brief description of class DeviceInterface.
Detailed description of class DeviceInterface.
Definition at line 35 of file DeviceInterface.h.
◆ AllAssignedResult
Enumerator |
---|
ok | Used if assignments were successful. (Expected)
|
slavesMissing | Used if slaves are missing. (Error)
|
Definition at line 107 of file DeviceInterface.h.
◆ TryAssignResult
Enumerator |
---|
assigned | Used if the slave was adpoted by this device. (Expected)
|
unknown | Used if the slave is unknown to this device. (Expected)
|
alreadyAssigned | Used if the slave was already adopted before. (Error)
|
Definition at line 86 of file DeviceInterface.h.
◆ DeviceInterface()
◆ ~DeviceInterface()
◆ execute()
◆ getClassName()
virtual std::string getClassName |
( |
| ) |
const |
|
pure virtual |
◆ getSubDevices()
◆ onAllAssigned()
Method called by the EtherCAT bus after all slaves have been assigned.
This method allows further initialization of assigned slaves and allows indicating missing slaves. When this method was called, all slaves have already been assigned, so if this device is still missing slaves, it should indicate it by returning AllAssignedResult::slavesMissing
. AllAssignedResult::ok
indicates that all expected slaves were assigned.
- Returns
ok
if all expected slaves were assigned, slavesMissing
otherwise.
◆ postSwitchToOp()
virtual void postSwitchToOp |
( |
| ) |
|
|
inlinevirtual |
Hook for executing code after the bus has successfully switched into the Op-State.
Before executing this hook, the PDO of all slaves have been updated at least once. Updates can be sent to slaves via PDO.
Definition at line 77 of file DeviceInterface.h.
◆ postSwitchToSafeOp()
virtual void postSwitchToSafeOp |
( |
| ) |
|
|
inlinevirtual |
Hook for executing code after the bus has successfully switched into the SafeOp-State.
SDO of the slaves can be read and written. PDO data from the slaves have been read after switching to SafeOp, but no new updates to the slaves can bus until the bus in Op-state
Definition at line 66 of file DeviceInterface.h.
◆ tryAssign()
Method called by the EtherCAT bus to try to assign slaves to functional devices.
- See also
- TryAssignResult
- Parameters
-
- Returns
- TryAssignResult holding the outcome of the method.
◆ subDevices
The documentation for this class was generated from the following files: