osSetLastError function
Declaration:
void osSetLastError(
ERROR ErrorCode
);
Parameters:
ErrorCode

The error code value to be set.

Description:

This function is used to set the error code for the most recent failed operation.

The error code is set by system functions only when a failure occurs and is maintained individually for each task. It can be retrieved using the osGetLastError function or manually set via osSetLastError. The ERROR type is specifically defined for variables that store error codes. A complete list of available error codes can be found in the error codes list section.

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