Error codes management

Error codes management stores the error code of the last, failed operation. The error code is set by system functions only in time when failure occurs. It can be obtained by using stGetLastError function and set by stSetLastError. In case the Sirius RTOS is used (OS_USED is set to 1), functions are automatically replaced with their equivalents designed to work in multitasking. Error code should be stored in ERROR type variables. List of the all possible error codes is available in the error codes list section.

SpaceShadow documentation