IDeviceChannel
Base interface for all hardware device channels (axes, digital IO, analog IO, etc.).
Namespace: ControlBee.Interfaces
Extends: IActorItem
Methods
RefreshCache
Refreshes the cached state from the hardware device.
void RefreshCache(bool alwaysUpdate = false);
Parameters:
alwaysUpdate— Iftrue, forces a cache refresh even if not marked for always-update. Default isfalse.
GetDevice
Returns the underlying hardware device.
IDevice? GetDevice();
Returns: The IDevice instance, or null if no device is assigned.
GetChannel
Returns the channel number on the device.
int GetChannel();
Returns: The zero-based channel index.