GPS Device
Loading...
Searching...
No Matches
Error Codes

System-wide error code enumeration. More...

Enumerations

enum  ERR_te {
  ERR_OK , ERR_UNKNOWN , ERR_INVALID_ARGUMENT , ERR_INVALID_POINTER ,
  ERR_INVALID_CONFIGURATION , ERR_ARRAY_OUT_OF_BOUNDS , ERR_UNINITIALZIED_OBJECT , ERR_INITIALIZATION_FAILURE ,
  ERR_DEINITIALIZATION_FAILURE , ERR_CATASTROPHIC_FAILURE , ERR_DATA_COPY_FAILURE , ERR_DATA_ACQUISITION_FAILURE ,
  ERR_BUFFER_FULL , ERR_NOT_ENOUGH_SPACE , ERR_ILLEGAL_ACTION , ERR_UNSUCCESFUL_ACTION ,
  ERR_TIMEOUT , ERR_UNRECOGNIZED_HW , ERR_MODULE_ALREADY_INITIALIZED , ERR_MODULE_STOPPED
}
 Standard return type used by all public API functions. More...

Detailed Description

System-wide error code enumeration.

Enumeration Type Documentation

◆ ERR_te

enum ERR_te

Standard return type used by all public API functions.

Every function that can fail returns an ERR_te value. ERR_OK (0) indicates success; all other values indicate a specific category of failure and are non-zero.

Enumerator
ERR_OK 

Operation completed successfully.

ERR_UNKNOWN 

An unspecified or unexpected error occurred. Typically indicates an invalid subsystem state (e.g. not initialized or already started).

ERR_INVALID_ARGUMENT 

One or more arguments passed to the function are invalid (e.g. out-of-range value or unrecognized name).

ERR_INVALID_POINTER 

A pointer argument is NULL or otherwise invalid.

ERR_INVALID_CONFIGURATION 

A configuration value violates a requirement (e.g. buffer size is not a power of two).

ERR_ARRAY_OUT_OF_BOUNDS 

An array index or offset exceeds the bounds of the target array.

ERR_UNINITIALZIED_OBJECT 

The object or handle has not been initialized, or could not be found in the internal pool.

ERR_INITIALIZATION_FAILURE 

Initialization failed, or the subsystem or handle was already initialized.

ERR_DEINITIALIZATION_FAILURE 

Deinitialization failed because the subsystem is still running, not initialized, or the handle was not found.

ERR_CATASTROPHIC_FAILURE 

A severe, unrecoverable error has occurred.

ERR_DATA_COPY_FAILURE 

A data copy operation did not complete successfully.

ERR_DATA_ACQUISITION_FAILURE 

Data could not be acquired from the expected source.

ERR_BUFFER_FULL 

A write operation could not complete because the target buffer is full.

ERR_NOT_ENOUGH_SPACE 

The internal object pool has no free slots available.

ERR_ILLEGAL_ACTION 

The requested operation is not permitted in the current subsystem state (e.g. subsystem is running or handle is not initialized).

ERR_UNSUCCESFUL_ACTION 

The requested action was attempted but did not produce the expected result.

ERR_TIMEOUT 

The operation did not complete within the allowed time.

ERR_UNRECOGNIZED_HW 

The connected hardware could not be identified or is not supported.

ERR_MODULE_ALREADY_INITIALIZED 

The module or subsystem has already been initialized and cannot be initialized again without deinitialization.

ERR_MODULE_STOPPED 

The operation could not proceed because the module or subsystem is stopped.

Definition at line 35 of file err.h.

35 {
36 ERR_OK,
56} ERR_te;
ERR_te
Standard return type used by all public API functions.
Definition err.h:35
@ ERR_UNINITIALZIED_OBJECT
Definition err.h:42
@ ERR_INVALID_POINTER
Definition err.h:39
@ ERR_BUFFER_FULL
Definition err.h:48
@ ERR_ILLEGAL_ACTION
Definition err.h:50
@ ERR_INVALID_CONFIGURATION
Definition err.h:40
@ ERR_ARRAY_OUT_OF_BOUNDS
Definition err.h:41
@ ERR_DEINITIALIZATION_FAILURE
Definition err.h:44
@ ERR_UNKNOWN
Definition err.h:37
@ ERR_CATASTROPHIC_FAILURE
Definition err.h:45
@ ERR_OK
Definition err.h:36
@ ERR_UNRECOGNIZED_HW
Definition err.h:53
@ ERR_MODULE_ALREADY_INITIALIZED
Definition err.h:54
@ ERR_DATA_COPY_FAILURE
Definition err.h:46
@ ERR_UNSUCCESFUL_ACTION
Definition err.h:51
@ ERR_TIMEOUT
Definition err.h:52
@ ERR_NOT_ENOUGH_SPACE
Definition err.h:49
@ ERR_MODULE_STOPPED
Definition err.h:55
@ ERR_INITIALIZATION_FAILURE
Definition err.h:43
@ ERR_DATA_ACQUISITION_FAILURE
Definition err.h:47
@ ERR_INVALID_ARGUMENT
Definition err.h:38