Previous: , Up: STOutput: The Actuator Abstraction   [Contents]


B.5.3 Value and State Control

Function: gdouble st_output_get_val (const STOutput *self)

Reads the value the actuator currently holds.

self

The output.

Returns: Current value.

Function: gboolean st_output_set_val (STOutput *self, gdouble val, GError **error)

Applies a commanded value (after Core SetOutput, or local/manual update). Snap/range rules match st_input_set_val.

self

The output.

val

Desired value.

error

Filled on hard failure.

Returns: TRUE if accepted.

Function: gdouble st_output_get_min (const STOutput *self)

Reads the lower bound.

self

The output.

Returns: Current minimum.

Function: gboolean st_output_set_min (STOutput *self, gdouble min, GError **error)

Sets the lower bound.

self

The output.

min

New minimum.

error

Filled on failure.

Returns: TRUE on success.

Function: gdouble st_output_get_max (const STOutput *self)

Reads the upper bound.

self

The output.

Returns: Current maximum.

Function: gboolean st_output_set_max (STOutput *self, gdouble max, GError **error)

Sets the upper bound.

self

The output.

max

New maximum.

error

Filled on failure.

Returns: TRUE on success.

Function: gdouble st_output_get_step (const STOutput *self)

Reads the step.

self

The output.

Returns: Current step.

Function: gboolean st_output_set_step (STOutput *self, gdouble step, GError **error)

Changes step and re-grids related fields.

self

The output.

step

New step.

error

Filled on failure.

Returns: TRUE on success.

Function: guint64 st_output_get_flags (const STOutput *self)

Reads flags.

self

The output.

Returns: Current flag bitfield.

Function: gboolean st_output_set_flags (STOutput *self, guint64 flags, GError **error)

Replaces the flag bitfield.

self

The output.

flags

New bitfield.

error

Filled on failure.

Returns: TRUE on success.


Previous: STOutput Metadata Accessors, Up: STOutput: The Actuator Abstraction   [Contents]