BLE_API v2.1.3

BLE Stack Error Code Definition

## BleStackStatus
Define different BleStackStatus type.
typedef uint8_t | BleStackStatus
#define | BLESTACK_STATUS_SUCCESS 0x00
#define | BLESTACK_STATUS_FREE 0x01
#define | BLESTACK_STATUS_ERR_BUSY 0x02
#define | BLESTACK_STATUS_ERR_INVALID_PARAM 0x03
#define | BLESTACK_STATUS_ERR_INVALID_STATE 0x04
#define | BLESTACK_STATUS_ERR_INVALID_HOSTID 0x05
#define | BLESTACK_STATUS_ERR_INVALID_HOSTCOUNT 0x06
#define | BLESTACK_STATUS_ERR_INVALID_CMD 0x07
#define | BLESTACK_STATUS_ERR_INVALID_HANDLE 0x08
#define | BLESTACK_STATUS_ERR_TIMER_BUSY 0x09
#define | BLESTACK_STATUS_ERR_NOT_SUPPORTED 0x0A
#define | BLESTACK_STATUS_ERR_DB_PARSING_IN_PROGRESS 0x0B
#define | BLESTACK_STATUS_ERR_OTHER_PROCEDURE_IN_PROGRESS 0x0C
#define | BLESTACK_STATUS_ERR_SEQUENTIAL_PROTOCOL_VIOLATION 0x0D
#define | BLESTACK_STATUS_ERR_CLIENT_CONFIGURATION_DISABLE 0x0E

## Detailed Description

BLE Stack error code definition.

## Macro Definition Documentation

## ◆ BLESTACK_STATUS_ERR_BUSY

#define BLESTACK_STATUS_ERR_BUSY 0x02

Stack state busy.

## ◆ BLESTACK_STATUS_ERR_CLIENT_CONFIGURATION_DISABLE

#define BLESTACK_STATUS_ERR_CLIENT_CONFIGURATION_DISABLE 0x0E

Profile client configuration disable

## ◆ BLESTACK_STATUS_ERR_DB_PARSING_IN_PROGRESS

#define BLESTACK_STATUS_ERR_DB_PARSING_IN_PROGRESS 0x0B

Host peripheral database parsing is still in progress.

## ◆ BLESTACK_STATUS_ERR_INVALID_CMD

#define BLESTACK_STATUS_ERR_INVALID_CMD 0x07

Invalid command.

## ◆ BLESTACK_STATUS_ERR_INVALID_HANDLE

#define BLESTACK_STATUS_ERR_INVALID_HANDLE 0x08

Invalid BLE handle.

## ◆ BLESTACK_STATUS_ERR_INVALID_HOSTCOUNT

#define BLESTACK_STATUS_ERR_INVALID_HOSTCOUNT 0x06

Invalid count of Host Links. (MAX_NUM_CONN_HOST shall be less than or equal to BLE_SUPPORT_NUM_CONN_MAX)

## ◆ BLESTACK_STATUS_ERR_INVALID_HOSTID

#define BLESTACK_STATUS_ERR_INVALID_HOSTID 0x05

Invalid Host ID

## ◆ BLESTACK_STATUS_ERR_INVALID_PARAM

#define BLESTACK_STATUS_ERR_INVALID_PARAM 0x03

Invalid parameter.

## ◆ BLESTACK_STATUS_ERR_INVALID_STATE

#define BLESTACK_STATUS_ERR_INVALID_STATE 0x04

Invalid state.

## ◆ BLESTACK_STATUS_ERR_NOT_SUPPORTED

#define BLESTACK_STATUS_ERR_NOT_SUPPORTED 0x0A

Command feature not supported

## ◆ BLESTACK_STATUS_ERR_OTHER_PROCEDURE_IN_PROGRESS

#define BLESTACK_STATUS_ERR_OTHER_PROCEDURE_IN_PROGRESS 0x0C

The other mandatory procedure is still in progress.

## ◆ BLESTACK_STATUS_ERR_SEQUENTIAL_PROTOCOL_VIOLATION

#define BLESTACK_STATUS_ERR_SEQUENTIAL_PROTOCOL_VIOLATION 0x0D

Detecting a sequential protocol violation. Usually happens in there is an another GATT request already in progress please wait and retry.

## ◆ BLESTACK_STATUS_ERR_TIMER_BUSY

#define BLESTACK_STATUS_ERR_TIMER_BUSY 0x09

Command timer busy

## ◆ BLESTACK_STATUS_FREE

#define BLESTACK_STATUS_FREE 0x01

Stack state is free indicates that LL and Host task is NOT running.

## ◆ BLESTACK_STATUS_SUCCESS

#define BLESTACK_STATUS_SUCCESS 0x00

Successful command