2026-06-12 12:40:08 -04:00
|
|
|
#ifndef _ERROR_H_
|
|
|
|
|
#define _ERROR_H_
|
|
|
|
|
|
|
|
|
|
#define ERRNO_SUCCESS 0
|
|
|
|
|
#define ERRNO_NULLPOINTER 1
|
|
|
|
|
#define ERRNO_IO 2
|
|
|
|
|
#define ERRNO_TIMEOUT 3
|
|
|
|
|
#define ERRNO_CALIBRATION 4
|
2026-06-16 22:12:30 -04:00
|
|
|
#define ERRNO_OUTOFBOUNDS 5
|
2026-06-12 12:40:08 -04:00
|
|
|
|
|
|
|
|
#define ERROR(x) errno=x; return x;
|
|
|
|
|
|
|
|
|
|
extern int errno;
|
|
|
|
|
|
|
|
|
|
#endif // _ERROR_H_
|