Functions to access the optional valve that may be assigned to a certain pump device.
◆ LCP_GetValveHandle()
LCP_Func long LCP_CALL LCP_GetValveHandle |
( |
dev_hdl |
hPump, |
|
|
dev_hdl * |
ValveHandle |
|
) |
| |
Returns the valve handle of a pump valve for the pump given in hPump parameter.
- Parameters
-
[in] | hPump | A valid pump handle |
[out] | ValveHandle | Handle to valve device or 0 if no valve with given name exists |
- Return values
-
-ERR_NODEV | No device with the given name found |
ERR_NOERR | indicates success |
- Examples:
- capi_nemesys_test.cpp, and capi_nemesys_valve_test.cpp.
◆ LCP_HasValve()
LCP_Func long LCP_CALL LCP_HasValve |
( |
dev_hdl |
hPump | ) |
|
Returns 1 if this pump has an valve assigned.
- Parameters
-
[in] | hPump | A valid pump handle |
- Return values
-
0 | - No valve assigned to this pump |
1 | - Valve assigned to this pump |
<0 | - Error code |
- Examples:
- capi_nemesys_test.cpp, and capi_nemesys_valve_test.cpp.