SatNOGS-COMMS  4.1.0
A COMMS subsystem for CubeSats
Loading...
Searching...
No Matches
errno_extended.hpp File Reference

Defines custom error codes for the SatNOGS-COMMS control library. More...

#include <errno.h>

Go to the source code of this file.

Macros

#define EINVALSENS   (__ELASTERROR + 1)
 Invalid sensor.
#define EUNINIT   (__ELASTERROR + 2)
 Singleton not initialized (init() not called).
#define EINIT   (__ELASTERROR + 3)
 Singleton already initialized.
#define ETHERMSHUT   (__ELASTERROR + 4)
 Thermal shutdown is required.
#define EBADINFSENS   (__ELASTERROR + 5)
 Parsing bad sensor info.
#define EBUSYSENS   (__ELASTERROR + 6)
 Readings from sensor not available yet.
#define EHWNOTCONF   (__ELASTERROR + 7)
 Pin is not configured.
#define ERADIO   (__ELASTERROR + 8)
 Error in radio.
#define EBADFREQ   (__ELASTERROR + 9)
 Unsupported frequency.
#define ERFFE24   (__ELASTERROR + 10)
 Error in rf_frontend24.
#define EMIXLOCK   (__ELASTERROR + 11)
 Error in mixer lock.
#define EI2C   (__ELASTERROR + 12)
 Error in I2C.
#define ESPI   (__ELASTERROR + 13)
 Error in SPI.
#define ECANENBL   (__ELASTERROR + 14)
 Error in enabling CAN device.
#define EISOTPBIND   (__ELASTERROR + 15)
 Error in ISOTP device binding.
#define EISOTPRECV   (__ELASTERROR + 16)
 Error in receiving from ISOTP device.
#define EDEVNOTREADY   (__ELASTERROR + 17)
 Device not ready.
#define EVBAT   (__ELASTERROR + 18)
 Error in VBAT readings.
#define EADCINIT   (__ELASTERROR + 19)
 Error in ADC readings.
#define EDEVNOTCONF   (__ELASTERROR + 20)
 Device not configured.
#define EWDT   (__ELASTERROR + 21)
 Watchdog error.
#define EPLL   (__ELASTERROR + 22)
 PLL unlocked.
#define ESTORAGE   (__ELASTERROR + 23)
 Error on storage.
#define EFLASHINIT   (__ELASTERROR + 24)
 Error in FLASH initialization.
#define EFLASHREAD
 Error in FLASH reading (ECC error / Uncorrectable double error).

Detailed Description

Defines custom error codes for the SatNOGS-COMMS control library.

This file introduces a set of error codes specific to the SatNOGS-COMMS control library, extending the standard error codes provided by <errno.h>.

Note
The error codes start from __ELASTERROR + 1 to ensure they do not conflict with standard error codes.

Definition in file errno_extended.hpp.

Macro Definition Documentation

◆ EADCINIT

#define EADCINIT   (__ELASTERROR + 19)

Error in ADC readings.

Definition at line 56 of file errno_extended.hpp.

◆ EBADFREQ

#define EBADFREQ   (__ELASTERROR + 9)

Unsupported frequency.

Definition at line 46 of file errno_extended.hpp.

◆ EBADINFSENS

#define EBADINFSENS   (__ELASTERROR + 5)

Parsing bad sensor info.

Definition at line 42 of file errno_extended.hpp.

◆ EBUSYSENS

#define EBUSYSENS   (__ELASTERROR + 6)

Readings from sensor not available yet.

Definition at line 43 of file errno_extended.hpp.

◆ ECANENBL

#define ECANENBL   (__ELASTERROR + 14)

Error in enabling CAN device.

Definition at line 51 of file errno_extended.hpp.

◆ EDEVNOTCONF

#define EDEVNOTCONF   (__ELASTERROR + 20)

Device not configured.

Definition at line 57 of file errno_extended.hpp.

◆ EDEVNOTREADY

#define EDEVNOTREADY   (__ELASTERROR + 17)

Device not ready.

Definition at line 54 of file errno_extended.hpp.

◆ EFLASHINIT

#define EFLASHINIT   (__ELASTERROR + 24)

Error in FLASH initialization.

Definition at line 61 of file errno_extended.hpp.

◆ EFLASHREAD

#define EFLASHREAD
Value:
(__ELASTERROR + \
25)

Error in FLASH reading (ECC error / Uncorrectable double error).

Definition at line 62 of file errno_extended.hpp.

◆ EHWNOTCONF

#define EHWNOTCONF   (__ELASTERROR + 7)

Pin is not configured.

Definition at line 44 of file errno_extended.hpp.

◆ EI2C

#define EI2C   (__ELASTERROR + 12)

Error in I2C.

Definition at line 49 of file errno_extended.hpp.

◆ EINIT

#define EINIT   (__ELASTERROR + 3)

Singleton already initialized.

Definition at line 40 of file errno_extended.hpp.

◆ EINVALSENS

#define EINVALSENS   (__ELASTERROR + 1)

Invalid sensor.

Definition at line 37 of file errno_extended.hpp.

◆ EISOTPBIND

#define EISOTPBIND   (__ELASTERROR + 15)

Error in ISOTP device binding.

Definition at line 52 of file errno_extended.hpp.

◆ EISOTPRECV

#define EISOTPRECV   (__ELASTERROR + 16)

Error in receiving from ISOTP device.

Definition at line 53 of file errno_extended.hpp.

◆ EMIXLOCK

#define EMIXLOCK   (__ELASTERROR + 11)

Error in mixer lock.

Definition at line 48 of file errno_extended.hpp.

◆ EPLL

#define EPLL   (__ELASTERROR + 22)

PLL unlocked.

Definition at line 59 of file errno_extended.hpp.

◆ ERADIO

#define ERADIO   (__ELASTERROR + 8)

Error in radio.

Definition at line 45 of file errno_extended.hpp.

◆ ERFFE24

#define ERFFE24   (__ELASTERROR + 10)

Error in rf_frontend24.

Definition at line 47 of file errno_extended.hpp.

◆ ESPI

#define ESPI   (__ELASTERROR + 13)

Error in SPI.

Definition at line 50 of file errno_extended.hpp.

◆ ESTORAGE

#define ESTORAGE   (__ELASTERROR + 23)

Error on storage.

Definition at line 60 of file errno_extended.hpp.

◆ ETHERMSHUT

#define ETHERMSHUT   (__ELASTERROR + 4)

Thermal shutdown is required.

Definition at line 41 of file errno_extended.hpp.

◆ EUNINIT

#define EUNINIT   (__ELASTERROR + 2)

Singleton not initialized (init() not called).

Definition at line 38 of file errno_extended.hpp.

◆ EVBAT

#define EVBAT   (__ELASTERROR + 18)

Error in VBAT readings.

Definition at line 55 of file errno_extended.hpp.

◆ EWDT

#define EWDT   (__ELASTERROR + 21)

Watchdog error.

Definition at line 58 of file errno_extended.hpp.