libbladeRF  1.1.0
Nuand bladeRF library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Macros
Error codes

Macros

#define BLADERF_ERR_UNEXPECTED   (-1)
 
#define BLADERF_ERR_RANGE   (-2)
 
#define BLADERF_ERR_INVAL   (-3)
 
#define BLADERF_ERR_MEM   (-4)
 
#define BLADERF_ERR_IO   (-5)
 
#define BLADERF_ERR_TIMEOUT   (-6)
 
#define BLADERF_ERR_NODEV   (-7)
 
#define BLADERF_ERR_UNSUPPORTED   (-8)
 
#define BLADERF_ERR_MISALIGNED   (-9)
 
#define BLADERF_ERR_CHECKSUM   (-10)
 
#define BLADERF_ERR_NO_FILE   (-11)
 
#define BLADERF_ERR_UPDATE_FPGA   (-12)
 
#define BLADERF_ERR_UPDATE_FW   (-13)
 
#define BLADERF_ERR_TIME_PAST   (-14)
 

Detailed Description

bladeRF library routines return negative values to indicate errors. Values >= 0 are used to indicate success.

int status = bladerf_set_txvga1(dev, 2);
if (status < 0)
handle_error();

Macro Definition Documentation

#define BLADERF_ERR_CHECKSUM   (-10)

Invalid checksum

Definition at line 85 of file libbladeRF.h.

#define BLADERF_ERR_INVAL   (-3)

Invalid operation/parameter

Definition at line 78 of file libbladeRF.h.

#define BLADERF_ERR_IO   (-5)

File/Device I/O error

Definition at line 80 of file libbladeRF.h.

#define BLADERF_ERR_MEM   (-4)

Memory allocation error

Definition at line 79 of file libbladeRF.h.

#define BLADERF_ERR_MISALIGNED   (-9)

Misaligned flash access

Definition at line 84 of file libbladeRF.h.

#define BLADERF_ERR_NO_FILE   (-11)

File not found

Definition at line 86 of file libbladeRF.h.

#define BLADERF_ERR_NODEV   (-7)

No device(s) available

Definition at line 82 of file libbladeRF.h.

#define BLADERF_ERR_RANGE   (-2)

Provided parameter is out of range

Definition at line 77 of file libbladeRF.h.

#define BLADERF_ERR_TIME_PAST   (-14)

Requested timestamp is in the past

Definition at line 89 of file libbladeRF.h.

#define BLADERF_ERR_TIMEOUT   (-6)

Operation timed out

Definition at line 81 of file libbladeRF.h.

#define BLADERF_ERR_UNEXPECTED   (-1)

An unexpected failure occurred

Definition at line 76 of file libbladeRF.h.

#define BLADERF_ERR_UNSUPPORTED   (-8)

Operation not supported

Definition at line 83 of file libbladeRF.h.

#define BLADERF_ERR_UPDATE_FPGA   (-12)

An FPGA update is required

Definition at line 87 of file libbladeRF.h.

#define BLADERF_ERR_UPDATE_FW   (-13)

A firmware update is requied

Definition at line 88 of file libbladeRF.h.