fastcs.attributes.attribute_io#
Members
Base class for performing IO for an |
- class fastcs.attributes.attribute_io.AttributeIO[source]#
Base class for performing IO for an
AttributeThis class should be inherited to implement reading and writing values from
Attributesvia some API. For read,Attribute``s implement the ``updatemethod and for write,Attributeimplement thesendmethod.Concrete implementations of this class must be parameterised with a specific
AttributeIORefthat defines exactly what part of the API theAttributecorresponds to. See the docstring forAttributeIOReffor more information.- ref_type#
alias of
AttributeIORef
- async update(attr: AttrR[DType_T, AttributeIORefT]) None[source]#
Update
AttrRvalue from deviceThis method will be called in
AttrR.updatein a background task.Exceptions raised by this method will be caught and logged with a full stack trace. If using targeted try-except blocks to log more specific errors, this should be done with stack trace and exceptions should be re-raised to be handled by FastCS.
- async send(attr: AttrW[DType_T, AttributeIORefT], value: DType_T) None[source]#
Send
Attributevalue to deviceThis method will be called in
AttrW.put, generally from aTransport.Exceptions raised by this method will be caught and logged with a full stack trace. If using targetted try-except blocks to log more specific errors, this should be done with stack trace and exceptions should be re-raised to be handled by FastCS..