Network Developers Kit API 3.61.01.01

Macros
Configuration Manager Error Codes
Configuration Manager

Config API error-related services. More...

Collaboration diagram for Configuration Manager Error Codes:

## Macros
#define | CFGERROR_BADHANDLE -1
#define | CFGERROR_BADPARAM -2
#define | CFGERROR_RESOURCES -3
#define | CFGERROR_REFERROR -4
#define | CFGERROR_ALREADY -5
#define | CFGERROR_SERVICE -100
#define | CFG_MAKE_CFGERROR(x) ((x)+CFGERROR_SERVICE)
#define | CFG_GET_SERVICE_ERROR(x) ((x)-CFGERROR_SERVICE)
| Get the original service error. More...
#define | CFG_IS_SERVICE_ERROR(x) ((x)<=CFGERROR_SERVICE)

## Detailed Description

Config API error-related services.

## Macro Definition Documentation

## § CFGERROR_BADHANDLE

#define CFGERROR_BADHANDLE -1

Invalid Cfg handle

## § CFGERROR_BADPARAM

#define CFGERROR_BADPARAM -2

Invalid function parameter

## § CFGERROR_RESOURCES

#define CFGERROR_RESOURCES -3

Memory allocation error

## § CFGERROR_REFERROR

#define CFGERROR_REFERROR -4

Reference count mismatch

## § CFGERROR_ALREADY

#define CFGERROR_ALREADY -5

Already in desired state

## § CFGERROR_SERVICE

#define CFGERROR_SERVICE -100

First service error

## § CFG_MAKE_CFGERROR

#define CFG_MAKE_CFGERROR | ( |  | x | ) | ((x)+CFGERROR_SERVICE)

## § CFG_GET_SERVICE_ERROR

#define CFG_GET_SERVICE_ERROR | ( |  | x | ) | ((x)-CFGERROR_SERVICE)

Get the original service error.

Parameters

  [in] | x | CfgAddEntry() return value

errorCode = CFG_GET_SERVICE_ERROR(CfgAddEntryRetVal);

See also
  CfgAddEntry()

## § CFG_IS_SERVICE_ERROR

#define CFG_IS_SERVICE_ERROR | ( |  | x | ) | ((x)<=CFGERROR_SERVICE)

© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale