no-OS
Loading...
Searching...
No Matches
no_os_error.h File Reference

Error codes definition. More...

#include <errno.h>
Include dependency graph for no_os_error.h:

Macros

#define __NO_OS_ELASTERROR   2000
 
#define NO_OS_EOVERRUN   (__NO_OS_ELASTERROR + 1) /* Circular buffer overrun */
 
#define NO_OS_IS_ERR_VALUE(x)
 
#define NO_OS_IS_ERR(x)
 
#define NO_OS_PTR_ERR(x)
 
#define NO_OS_ERR_CAST(x)
 

Detailed Description

Error codes definition.

Author
DBogdan (drago.nosp@m.s.bo.nosp@m.gdan@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2019(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ __NO_OS_ELASTERROR

#define __NO_OS_ELASTERROR   2000

◆ NO_OS_EOVERRUN

#define NO_OS_EOVERRUN   (__NO_OS_ELASTERROR + 1) /* Circular buffer overrun */

◆ NO_OS_ERR_CAST

#define NO_OS_ERR_CAST ( x)
Value:
((void *) x)

◆ NO_OS_IS_ERR

#define NO_OS_IS_ERR ( x)
Value:
(NO_OS_IS_ERR_VALUE((unsigned long)x))
#define NO_OS_IS_ERR_VALUE(x)
Definition no_os_error.h:23

◆ NO_OS_IS_ERR_VALUE

#define NO_OS_IS_ERR_VALUE ( x)
Value:
((x) < 0)

◆ NO_OS_PTR_ERR

#define NO_OS_PTR_ERR ( x)
Value:
((long)x)