fastcs_pandablocks.panda.handlers#

Members

ArmSender

A sender for arming and disarming the Pcap.

BitGroupOnUpdate

Bits are tied together in bit groups so that when one is set for capture, they all are.

CaptureHandler

A handler for capture attributes.

DefaultFieldHandler

Default handler for sending and updating introspected attributes.

DefaultFieldSender

Default sender for sending introspected attributes.

DefaultFieldUpdater

Default updater for updating introspected attributes.

TableFieldHandler

A handler for updating Table valued attributes.

attribute_value_to_panda_value

Converts from an attribute value to a value that can be sent to the panda with pandablocks-client.

panda_value_to_attribute_value

Converts from a value received from the panda through pandablock-client to the attribute value.

fastcs_pandablocks.panda.handlers.panda_value_to_attribute_value(fastcs_datatype: DataType[T], value: str) T[source]#

Converts from a value received from the panda through pandablock-client to the attribute value.

fastcs_pandablocks.panda.handlers.attribute_value_to_panda_value(fastcs_datatype: DataType[T], value: T) str[source]#

Converts from an attribute value to a value that can be sent to the panda with pandablocks-client.

class fastcs_pandablocks.panda.handlers.DefaultFieldSender(panda_name: PandaName, put_value_to_panda: Callable[[PandaName, DataType, Any], Coroutine[None, None, None]])[source]#

Default sender for sending introspected attributes.

class fastcs_pandablocks.panda.handlers.DefaultFieldUpdater(panda_name: PandaName)[source]#

Default updater for updating introspected attributes.

update_period: float | None = None#

We update the fields from the top level

class fastcs_pandablocks.panda.handlers.DefaultFieldHandler(panda_name: PandaName, put_value_to_panda: Callable[[PandaName, DataType, Any], Coroutine[None, None, None]])[source]#

Default handler for sending and updating introspected attributes.

class fastcs_pandablocks.panda.handlers.TableFieldHandler(panda_name: PandaName)[source]#

A handler for updating Table valued attributes.

class fastcs_pandablocks.panda.handlers.CaptureHandler(panda_name: PandaName, put_value_to_panda: Callable[[PandaName, DataType, Any], Coroutine[None, None, None]])[source]#

A handler for capture attributes. Not currently used.

class fastcs_pandablocks.panda.handlers.BitGroupOnUpdate(capture_attribute: AttrRW[Enum], bit_attributes: list[AttrRW[bool]])[source]#

Bits are tied together in bit groups so that when one is set for capture, they all are.

This handler sets all capture attributes in the group when one of them is set.

class fastcs_pandablocks.panda.handlers.ArmSender(arm: Callable[[], Coroutine[None, None, None]], disarm: Callable[[], Coroutine[None, None, None]])[source]#

A sender for arming and disarming the Pcap.