fastcs.attributes#

Members

AttrHandlerR

Protocol for updating the cached readback value of an Attribute.

AttrHandlerRW

Protocol encapsulating both AttrHandlerR and AttHandlerW.

AttrHandlerW

Protocol for setting the value of an Attribute.

AttrMode

Access mode of an Attribute.

AttrR

A read-only Attribute.

AttrRW

A read-write Attribute.

AttrW

A write-only Attribute.

Attribute

Base FastCS attribute.

ONCE

Special value to indicate that an attribute should be updated once on start up.

SimpleAttrHandler

Handler for internal parameters

fastcs.attributes.ONCE = inf#

Special value to indicate that an attribute should be updated once on start up.

class fastcs.attributes.AttrMode(value)[source]#

Access mode of an Attribute.

class fastcs.attributes.AttrHandlerW[source]#

Protocol for setting the value of an Attribute.

class fastcs.attributes.AttrHandlerR[source]#

Protocol for updating the cached readback value of an Attribute.

class fastcs.attributes.AttrHandlerRW[source]#

Protocol encapsulating both AttrHandlerR and AttHandlerW.

class fastcs.attributes.SimpleAttrHandler[source]#

Handler for internal parameters

class fastcs.attributes.Attribute(datatype: DataType[T], access_mode: AttrMode, group: str | None = None, handler: Any = None, description: str | None = None)[source]#

Base FastCS attribute.

Instances of this class added to a Controller will be used by the backend.

class fastcs.attributes.AttrR(datatype: DataType[T], access_mode=AttrMode.READ, group: str | None = None, handler: AttrHandlerR | None = None, initial_value: T | None = None, description: str | None = None)[source]#

A read-only Attribute.

class fastcs.attributes.AttrW(datatype: DataType[T], access_mode=AttrMode.WRITE, group: str | None = None, handler: AttrHandlerW | None = None, description: str | None = None)[source]#

A write-only Attribute.

class fastcs.attributes.AttrRW(datatype: DataType[T], access_mode=AttrMode.READ_WRITE, group: str | None = None, handler: AttrHandlerRW | None = None, initial_value: T | None = None, description: str | None = None)[source]#

A read-write Attribute.