fastcs.transport.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, including metadata and alarm states.

make_p4p_type

Creates a p4p type for a given Attribute s fastcs.datatypes.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.transport.epics.pva.types.make_p4p_type(attribute: Attribute) NTScalar | NTEnum | NTNDArray | NTTable[source]#

Creates a p4p type for a given Attribute s fastcs.datatypes.DataType.

fastcs.transport.epics.pva.types.cast_from_p4p_value(attribute: Attribute[T], value: object) T[source]#

Converts from a p4p value to a FastCS Attribute value.

fastcs.transport.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.transport.epics.pva.types.p4p_timestamp_now() dict[source]#

The p4p timestamp structure for the current time.

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

Gets the p4p display structure for a given attribute.

fastcs.transport.epics.pva.types.cast_to_p4p_value(attribute: Attribute[T], value: T) object[source]#

Converts a FastCS Attribute value to a p4p value, including metadata and alarm states.