Skip to main content
Version: 1.0.12

ecfacade::IoModule

High-level digital/analog I/O handle. More...

#include <io_module.hpp>

Inherits from ecfacade::DeviceFacade

Public Functions

Name
voidwriteDigital(std::size_t channel, bool value)
voidwriteAnalog(std::size_t channel, std::int32_t value)
boolreadDigital(std::size_t channel) const
std::int32_treadAnalog(std::size_t channel) const
ecdev::IIoProfile *ioProfile() const
booldigitalOutputState(std::size_t channel) const
std::size_tdigitalOutputCount() const
std::size_tdigitalInputCount() const
std::int32_tanalogOutputState(std::size_t channel) const
std::size_tanalogOutputCount() const
std::size_tanalogInputCount() const
IoModule(ecdev::IIoProfile * io, 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::IoModule;

High-level digital/analog I/O handle.

Thin wrapper over an [ecdev::IIoProfile](/lxmaster/api/classes/IIoProfile); the application reads/writes named-by-index channels without seeing CoE objects, PDO offsets, or the backend. Safe to use from the application thread during the RT cycle.

Public Functions Documentation

function writeDigital

void writeDigital(
std::size_t channel,
bool value
)

function writeAnalog

void writeAnalog(
std::size_t channel,
std::int32_t value
)

function readDigital

bool readDigital(
std::size_t channel
) const

function readAnalog

std::int32_t readAnalog(
std::size_t channel
) const

function ioProfile

ecdev::IIoProfile * ioProfile() const

function digitalOutputState

bool digitalOutputState(
std::size_t channel
) const

function digitalOutputCount

std::size_t digitalOutputCount() const

function digitalInputCount

std::size_t digitalInputCount() const

function analogOutputState

std::int32_t analogOutputState(
std::size_t channel
) const

function analogOutputCount

std::size_t analogOutputCount() const

function analogInputCount

std::size_t analogInputCount() const

function IoModule

IoModule(
ecdev::IIoProfile * io,
std::string name,
ecdev::IEthercatDevice * device
)

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