next up previous contents
Next: 7 Port Sets Up: 6 Ports Previous: 6.9 fluke_port_reference: associates a

6.10 fluke_port_set_state: set the current state of a port object

SYNOPSIS

void fluke_port_set_state(fluke_port_t *port, fluke_port_state *state, fluke_ref_t *pset_ref);

DESCRIPTION

This operation can be used to set the application-visible state of a port.

PARAMETERS

port
The port whose state is to be modified.
state
If non-null, a pointer to a structure containing the simple (non-reference) state of the port.
pset_ref
If non-null, the address of a port set reference object to be copied into the port's port set reference slot.

ERRORS

If any of the following errors is detected by the Fluke implementation, it causes the current thread to take a synchronous exception with one of the following codes. All of these have an implicit FLUKE_INSANITY_ prefix.
NO_OBJECT
port does not point to an active object.
NOT_PORT
The object pointed to by port is not a port object.
INVALID_OBJECT
The state of the port or reference object has become invalid.
NOT_REF
The object at pset_ref is not a reference object.
NOT_PSET_REF
The object at pset_ref is a reference object, but not a reference to a port set.

RELATED INFORMATION

fluke_port_get_state



Utah Flux Research Group