fastcs.transport.tango.util#

Members

cast_from_tango_type

Casts a value from tango to FastCS datatype.

cast_to_tango_type

Casts a value from FastCS to tango datatype.

get_server_metadata_from_attribute

Gets the metadata for a Tango field from an attribute.

get_server_metadata_from_datatype

Gets the metadata for a Tango field from a FastCS datatype.

fastcs.transport.tango.util.get_server_metadata_from_attribute(attribute: Attribute[T]) dict[str, Any][source]#

Gets the metadata for a Tango field from an attribute.

fastcs.transport.tango.util.get_server_metadata_from_datatype(datatype: DataType[T]) dict[str, str][source]#

Gets the metadata for a Tango field from a FastCS datatype.

fastcs.transport.tango.util.cast_to_tango_type(datatype: DataType[T], value: T) object[source]#

Casts a value from FastCS to tango datatype.

fastcs.transport.tango.util.cast_from_tango_type(datatype: DataType[T], value: object) T[source]#

Casts a value from tango to FastCS datatype.