MXC-A36-Demo/MCU/components/btdm/include/app_error.h

40 lines
1.2 KiB
C
Raw Normal View History

/*
****************************************************************************************
*
* @file app_error.h
* @version v1.0
* @brief error code of app layer
* @attention
* Copyright (C) 2023 Freqchip. \n
* All rights reserved. \n
*
*
****************************************************************************************
*/
#ifndef __APP_ERROR_H_
#define __APP_ERROR_H_
typedef enum app_error app_err_t;
enum app_error
{
/// no error
APP_ERR_NO_ERR = 0x00,
/// the input parameter is incorrect
APP_ERR_INVAILD_PARAM = 0x01,
/// the specified conidx has no device connection
APP_ERR_DEVICE_NOT_CONNECTED = 0x02,
// ----------------------------------------------------
// ----------------- GATT API Error -------------------
// ----------------------------------------------------
/// invaild client_id or service_id
APP_ERR_INVAILD_ID = 0x10,
/// GAP AND GATT service is deleted
APP_ERR_SVC_IS_DELETED = 0x11,
/// client handles group is empty
APP_ERR_CLIENT_HDL_IS_EMPTY = 0x12,
};
#endif