fastcs.transports.epics.pva.types#

Members

cast_from_p4p_value

Converts from a p4p value to a FastCS Attribute value.

cast_to_p4p_value

Converts a FastCS Attribute value to a p4p value

make_p4p_type

Creates a p4p type for a given Attribute DataType.

p4p_alarm_states

Returns the p4p alarm structure for a given severity, status, and message.

p4p_display

Gets the p4p display structure for a given attribute.

p4p_timestamp_now

The p4p timestamp structure for the current time.

fastcs.transports.epics.pva.types.make_p4p_type(attribute: Attribute) NTScalar | NTEnum | NTNDArray | NTTable[source]#

Creates a p4p type for a given Attribute DataType.

fastcs.transports.epics.pva.types.cast_from_p4p_value(attribute: Attribute[DType_T, AttributeIORef], value: object) DType_T[source]#

Converts from a p4p value to a FastCS Attribute value.

fastcs.transports.epics.pva.types.p4p_alarm_states(severity: int = 0, status: int = 0, message: str = '') dict[source]#

Returns the p4p alarm structure for a given severity, status, and message.

fastcs.transports.epics.pva.types.p4p_timestamp_now() dict[source]#

The p4p timestamp structure for the current time.

fastcs.transports.epics.pva.types.p4p_display(attribute: Attribute) dict[source]#

Gets the p4p display structure for a given attribute.

fastcs.transports.epics.pva.types.cast_to_p4p_value(attribute: Attribute[DType_T, AttributeIORef], value: DType_T) object[source]#

Converts a FastCS Attribute value to a p4p value