void fluke_port_set_state(fluke_port_t *port, fluke_port_state *state, fluke_ref_t *pset_ref);
This operation can be used to set the application-visible state of a port.
- 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.
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.
fluke_port_get_state