USRP Hardware Driver and USRP Manual  Version: 003.008.002-0-ge9d11b35
UHD and USRP Manual
status.h File Reference
#include <stdio.h>
#include <stddef.h>
#include <stdint.h>
#include <string>
#include <uhd/config.hpp>
#include <uhd/exception.hpp>
#include "nirio_err_template.h"

Go to the source code of this file.

Classes

struct  uhd::niusrprio::nirio_err_info
 

Namespaces

 uhd
 
 uhd::niusrprio
 

Macros

#define ENABLE_EXTENDED_ERROR_INFO   false
 
#define nirio_status_fatal(status)   ((status) < 0)
 
#define nirio_status_not_fatal(status)   ((status) >= 0)
 
#define nirio_status_chain(func, status)
 
#define NIRIO_ERR_INFO(CONST_NAME, ERR_CODE, ERR_MSG)   static const nirio_status CONST_NAME = ERR_CODE;
 

Typedefs

typedef int32_t nirio_status
 

Functions

UHD_API const std::string uhd::niusrprio::lookup_err_msg (nirio_status code)
 
UHD_API void uhd::niusrprio::nirio_status_to_exception (const nirio_status &status, const std::string &message)
 

Macro Definition Documentation

◆ ENABLE_EXTENDED_ERROR_INFO

#define ENABLE_EXTENDED_ERROR_INFO   false

◆ NIRIO_ERR_INFO

#define NIRIO_ERR_INFO (   CONST_NAME,
  ERR_CODE,
  ERR_MSG 
)    static const nirio_status CONST_NAME = ERR_CODE;

◆ nirio_status_chain

#define nirio_status_chain (   func,
  status 
)
Value:
status = (func); \
fprintf(stderr,"ERROR: The following function call returned status code %d\n%s\n%s:%d\n",status,#func,__FILE__,__LINE__); \
} \
} \
#define ENABLE_EXTENDED_ERROR_INFO
Definition: status.h:29
#define nirio_status_not_fatal(status)
Definition: status.h:50
Definition: msg.hpp:50
#define nirio_status_fatal(status)
Definition: status.h:49

◆ nirio_status_fatal

#define nirio_status_fatal (   status)    ((status) < 0)

◆ nirio_status_not_fatal

#define nirio_status_not_fatal (   status)    ((status) >= 0)

Typedef Documentation

◆ nirio_status

typedef int32_t nirio_status