JZsdk_ErrorCode.h 1.8 KB
/**
 ********************************************************************
 * @file   JZsdk_ErrorCode.h
 *          用于错误码的表
 *
 *********************************************************************
 */

/* Define to prevent recursive inclusion 避免重定义 -------------------------------------*/
#ifndef JZSDK_ERRORCODE_H
#define JZSDK_ERRORCODE_H

/* Includes ------------------------------------------------------------------*/

#ifdef __cplusplus
extern "C" {
#endif

/* Exported constants --------------------------------------------------------*/
/* 常亮定义*/


/* Exported types ------------------------------------------------------------*/
typedef enum {
    JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS = 0x0000,
    JZ_ERROR_SYSTEM_MODULE_CODE_FAILURE = 0x0001,
    JZ_ERROR_SYSTEM_MODULE_CODE_INVALID_PARAMETER = 0x0002, //文件指针错误
} JZ_SYSTEM_Code;

typedef enum {
    JZ_ERROR_SYSTEM_FRAME_ERROR = 0x0100,
    
} JZ_Syetem_frame_ErrorCode;

typedef enum {
    JZ_ERRORCODE_MUSIC_NOT_FOUND_IN_LIST = 0x1000
    
} JZ_Megaphone_music_ErrorCode;

typedef enum {
    JZ_ERRORCODE_REALTIMEVOICE_HAS_BEEN_ON = 0x1201
    
} JZ_Megaphone_opus_ErrorCode;

typedef enum {
    JZ_ERRORCODE_TTS_INVALID_TONE = 0x1300,
    JZ_ERRORCODE_TTS_INVALID_SPEED = 0x1301,
    JZ_ERRORCODE_TTS_INVALID_ADDTONE = 0x1302,  

} JZ_Megaphone_TTS_ErrorCode;

typedef enum {
    JZ_ERRORCODE_GIMBAL_INVALID_PITCH   = 0x4000,
    JZ_ERRORCODE_GIMBAL_INVALID_YAW     = 0x4001,
    JZ_ERRORCODE_GIMBAL_INVALID_ROLL    = 0x4002,

} JZ_Gimbal_ErrorCode;


typedef enum {
    JZ_ERROR_CHECKCODE_CHECK_ERROR   = 0x5000,  //校验码错误
    JZ_ERROR_CHECKCODE_DECODE_ERROR = 0x5001, //解码错误

} JZ_CheckCode; //检查校验码

/* Exported functions --------------------------------------------------------*/

#ifdef __cplusplus
}
#endif

#endif