Source code for dodal.devices.ipin
from ophyd_async.core import HintedSignal, StandardReadable
from ophyd_async.epics.signal import epics_signal_r
[docs]
class IPin(StandardReadable):
"""Simple device to get the ipin reading"""
def __init__(self, prefix: str, name: str = "") -> None:
with self.add_children_as_readables(wrapper=HintedSignal):
self.pin_readback = epics_signal_r(float, prefix + "I")
super().__init__(name)