Prusa MINI Firmware overview
err.h File Reference
#include "lwip/opt.h"
#include "lwip/arch.h"

Go to the source code of this file.

Macros

#define ERR_IS_FATAL(e)   ((e) <= ERR_ABRT)
 
#define lwip_strerr(x)   ""
 

Typedefs

typedef s8_t err_t
 

Enumerations

enum  err_enum_t {
  ERR_OK = 0, ERR_MEM = -1, ERR_BUF = -2, ERR_TIMEOUT = -3,
  ERR_RTE = -4, ERR_INPROGRESS = -5, ERR_VAL = -6, ERR_WOULDBLOCK = -7,
  ERR_USE = -8, ERR_ALREADY = -9, ERR_ISCONN = -10, ERR_CONN = -11,
  ERR_IF = -12, ERR_ABRT = -13, ERR_RST = -14, ERR_CLSD = -15,
  ERR_ARG = -16
}
 

Functions

int err_to_errno (err_t err)
 

Detailed Description

lwIP Error codes

Macro Definition Documentation

◆ lwip_strerr

#define lwip_strerr (   x)    ""

Function Documentation

◆ err_to_errno()

int err_to_errno ( err_t  err)
70 {
71  if ((err > 0) || (-err >= (err_t)LWIP_ARRAYSIZE(err_to_errno_table))) {
72  return EIO;
73  }
74  return err_to_errno_table[-err];
75 }
LWIP_ARRAYSIZE
#define LWIP_ARRAYSIZE(x)
Definition: def.h:58
err_t
s8_t err_t
Definition: err.h:57
err_to_errno_table
static const int err_to_errno_table[]
Definition: err.c:48