API specific initialisation functions This groups defines all functions to setup and initialize the labbCAN pump API properly.
◆ LCP_GetNoOfPumps()
LCP_Func long LCP_CALL LCP_GetNoOfPumps |
( |
| ) |
|
Query number of detected pump devices.
- Return values
-
>= | 0 Number of detected pump devices |
< | 0 Error code |
- Examples:
- capi_nemesys_test.cpp.
◆ LCP_GetPumpHandle()
LCP_Func long LCP_CALL LCP_GetPumpHandle |
( |
unsigned char |
Index, |
|
|
dev_hdl * |
PumpHandle |
|
) |
| |
◆ LCP_LookupPumpByName()
LCP_Func long LCP_CALL LCP_LookupPumpByName |
( |
const char * |
pPumpName, |
|
|
dev_hdl * |
PumpHandle |
|
) |
| |
Lookup for a pump device by its name.
- Parameters
-
[in] | pPumpName | The name of the device to lookup for |
[out] | PumpHandle | Handle to pump device or 0 if no pump with given name exists |
- Return values
-
-ERR_NODEV | No device with the given name found |
ERR_NOERR | indicates success |
- Examples:
- capi_nemesys_test.cpp, capi_nemesys_valve_test.cpp, and Pump_CAPI_Init.cpp.