osGetLastError function
ERROR osGetLastError(void);
Return value:

Function returns error code of the last failed operation.


Function is used to obtain error code of the last, failed operation.

The error code is set by system functions only in time when failure occurs, and it is individual for each task. It can be obtained by using osGetLastError function and set by osSetLastError. A special type ERROR is dedicated for variables that can hold error codes. The list of all possible error codes is available in the error codes list section.

Header file:OS_API.h
See also: ERROR, error codes list, error codes management, osSetLastError
SpaceShadow documentation