• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Chipsea Technologies (Shenzhen) Corp., Ltd. All rights reserved.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef _CO_ERRORS_H_
16 #define _CO_ERRORS_H_
17 
18 #include "co_types_def.h"
19 
20 /*---------------------------------------------------------------------------
21  *
22  * common error status.
23  */
24 typedef U8 Co_Error;
25 
26 #define CO_ERROR_ERROR_NONE         0
27 #define CO_ERROR_ERROR              1
28 #define CO_ERROR_PENDING            2
29 #define CO_ERROR_DISCONNECT         3
30 #define CO_ERROR_NOCON              4
31 #define CO_ERROR_IS_USEING          5
32 #define CO_ERROR_PLAY_NOT_DONE      6
33 #define CO_ERROR_PLAY_DONE          7
34 #define CO_ERROR_NO_PROGRESS        8
35 #define CO_ERROR_IS_CON             9
36 #define CO_ERROR_SEND_OUT           10
37 #define CO_ERROR_NOT_DONE           11
38 #define CO_ERROR_NO_RESOURCES       12
39 #define CO_ERROR_NOT_FOUND          13
40 #define CO_ERROR_DEVICE_NOT_FOUND   14
41 #define CO_ERROR_CON_ERROR          15
42 #define CO_ERROR_TIMER_TIMEOUT      16
43 #define CO_ERROR_NO_CONN            17
44 #define CO_ERROR_INVALID_PARAM      18
45 #define CO_ERROR_IS_GOING_ON        19
46 #define CO_ERROR_IS_LIMITED         20
47 #define CO_ERROR_INVALID_TYPE       21
48 #define CO_ERROR_HCI_NOT_OPEN       22
49 #define CO_ERROR_NOT_SUPPORTED      23
50 #define CO_ERROR_CONTINUE           24
51 #define CO_ERROR_CANCELLED          25
52 #define CO_ERROR_UNDEFINED          30
53 /* End of Co_Error */
54 
55 #endif /* _CO_ERRORS_H_ */
56