Skip to main content
Version: 1.0.12

ecfacade::Encoder

High-level encoder handle. More...

#include <encoder.hpp>

Inherits from ecfacade::DeviceFacade

Public Functions

Name
std::int32_tvelocity() const
std::uint16_tstatus() const
std::int32_tposition() const
ecdev::IEncoderProfile *encoderProfile() const
Encoder(ecdev::IEncoderProfile * enc, std::string name, ecdev::IEthercatDevice * device)

Additional inherited members

Public Functions inherited from ecfacade::DeviceFacade

Name
const std::string &name() const
ENI/ESI slave name this handle maps to (for logs / UI).
ecdev::IDeviceProfile *deviceProfile() const
The underlying device-class profile, for advanced callers that bound a custom profile (e.g.
voidconfigure(ecdev::BringupState maxState)
Opt this device into a maximum bring-up state.
voidconfigure()
Convenience for the common "bring this device fully operational" case (configure(Op)).
DeviceFacade(ecdev::IEthercatDevice * device, std::string name)

Protected Attributes inherited from ecfacade::DeviceFacade

Name
std::stringname_
ecdev::IEthercatDevice *device_

Detailed Description

class ecfacade::Encoder;

High-level encoder handle.

Thin wrapper over an [ecdev::IEncoderProfile](/lxmaster/api/classes/IEncoderProfile); the application reads position/velocity/status without seeing CoE objects or the backend.

Public Functions Documentation

function velocity

std::int32_t velocity() const

function status

std::uint16_t status() const

function position

std::int32_t position() const

function encoderProfile

ecdev::IEncoderProfile * encoderProfile() const

function Encoder

Encoder(
ecdev::IEncoderProfile * enc,
std::string name,
ecdev::IEthercatDevice * device
)

Updated on 2026-07-04 at 20:22:54 +0000