fastcs.transports.epics.ca.util#

Members

cast_from_epics_type

Casts from an EPICS datatype to a FastCS datatype.

cast_to_epics_type

Casts from an attribute's datatype to an EPICS datatype.

create_state_keys

Creates a dictionary of state field keys to names

validate_ca_id

Reject controller ids that wouldn't be safe in an EPICS CA PV name.

fastcs.transports.epics.ca.util.validate_ca_id(controller_api: ControllerAPI) None[source]#

Reject controller ids that wouldn’t be safe in an EPICS CA PV name.

Rejects ids with characters outside [A-Za-z0-9_-] and rejects setups where the longest derivable PV prefix already exceeds the 60-character EPICS PV name limit.

fastcs.transports.epics.ca.util.create_state_keys(datatype: Enum)[source]#

Creates a dictionary of state field keys to names

fastcs.transports.epics.ca.util.cast_from_epics_type(datatype: DataType[DType_T], value: object) DType_T[source]#

Casts from an EPICS datatype to a FastCS datatype.

fastcs.transports.epics.ca.util.cast_to_epics_type(datatype: DataType[DType_T], value: DType_T) Any[source]#

Casts from an attribute’s datatype to an EPICS datatype.