ecfacade::IoModule
High-level digital/analog I/O handle. More...
#include <io_module.hpp>
Inherits from ecfacade::DeviceFacade
Public Functions
| Name | |
|---|---|
| void | writeDigital(std::size_t channel, bool value) |
| void | writeAnalog(std::size_t channel, std::int32_t value) |
| bool | readDigital(std::size_t channel) const |
| std::int32_t | readAnalog(std::size_t channel) const |
| ecdev::IIoProfile * | ioProfile() const |
| bool | digitalOutputState(std::size_t channel) const |
| std::size_t | digitalOutputCount() const |
| std::size_t | digitalInputCount() const |
| std::int32_t | analogOutputState(std::size_t channel) const |
| std::size_t | analogOutputCount() const |
| std::size_t | analogInputCount() 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. |
| void | configure(ecdev::BringupState maxState) Opt this device into a maximum bring-up state. |
| void | configure() 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::string | name_ |
| 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