Error Handling
Overview
This group defines a set of functions for error handling.
Collaboration diagram for Error Handling:
Functions | |
long | NemGetLastDevErr (TNemesys *Nemesys, int32_t *pLastDevErr) |
Read last device error from error register. More... | |
Function Documentation
long NemGetLastDevErr | ( | TNemesys * | Nemesys, |
int32_t * | pLastDevErr | ||
) |
Read last device error from error register.
If device is in fault state, then a device error occured. The last device error is always stored in the device error register. This function reads the last device error from the device error register. The function NemClearFault() will clear the error register so the application should read the last device error before it clears the fault state.
- Parameters
-
[in] Nemesys Device to query [out] pLastDevErr Stores last device error code
- Returns
- Error code - ERR_NOERR indicates success
- See also
- NemIsInFaultState(), NemClearFault()
long CsiDevReadObject(struct CsiDev *pDev, uint16_t ObjDicIdx, uint8_t ObjDicSub, uint32_t *pRxDWord)
This function reads up to 4 bytes of data from device object dictionary.
Definition: csi_dev.c:157
Here is the call graph for this function: