Overview
This group defines all required functions for reading and writing device state specific parameters.
Functions | |
long | NemClearFault (TNemesys *Nemesys) |
Clear fault state of device. More... | |
uint32_t | NemIsEnabled (TNemesys *Nemesys) |
Check if device is in enabled state. More... | |
uint32_t | NemIsInFaultState (TNemesys *Nemesys) |
Query fault state of device Check if device is in fault state. More... | |
long | NemSetEnabled (TNemesys *Nemesys) |
Set single dosing unit into enable state. More... | |
Function Documentation
long NemClearFault | ( | TNemesys * | Nemesys | ) |
Clear fault state of device.
If device is in fault state then it is not possible to enable the device until the fault state is cleared. In fault state the device cannot execute any move. If you need further information about the error occured you can call the function NemGetLastDevErr().
- Parameters
-
[in] Nemesys Device to reset from fault state
- Returns
- Error code - ERR_NOERR indicates success
- See also
- NemIsInFaultState(), NemGetLastDevErr()
uint32_t NemIsEnabled | ( | TNemesys * | Nemesys | ) |
Check if device is in enabled state.
If device is not in enabled state, then dosing is not possible. You need to call NemSetEnabled() to set device in enabled state.
- Parameters
-
[in] Nemesys Device to query
- Return values
-
1 enabled state 0 disabled state <0 Error code
- See also
- NemSetEnabled()
uint32_t NemIsInFaultState | ( | TNemesys * | Nemesys | ) |
Query fault state of device Check if device is in fault state.
- Parameters
-
[in] Nemesys Device to query
- Return values
-
1 fault state 0 not in fault state <0 Error code
- See also
- NemClearFault(), NemGetLastDevErr()
long NemSetEnabled | ( | TNemesys * | Nemesys | ) |
Set single dosing unit into enable state.
Dosing is possible if device is in enable state. If device is in fault state, then you need to clear the fault state first by calling NemClearFault() and then you can set the device into enable state by calling this function.
- Parameters
-
[in] Nemesys Device to set enabled
- Returns
- Error code - ERR_NOERR indicates success
- See also
- NemIsOperational(), NemClearFault()