blob: a99462cb3358050ca82160327ab230fd8cdcc0d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
File: OCTVC1_GENERIC_RC.h
Copyright (c) 2017 Octasic Inc. All rights reserved.
Description: Contains the return codes for the GENERIC API.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Release: OCTSDR Software Development Kit OCTSDR_GSM-02.09.00-B1607 (2017/08/29)
$Octasic_Revision: $
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
#ifndef OCTVC1_GENERIC_RC_H__
#define OCTVC1_GENERIC_RC_H__
/***************************** INCLUDE FILES *******************************/
#include "octvc1_base.h"
/****************************************************************************
GENERIC return codes
****************************************************************************/
#define cOCTVC1_RC_OK ( 0x0000 )
#define cOCTVC1_GENERIC_RC_BAD_PARAM ( 0x0001 + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_NOT_FOUND ( 0x0002 + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_ALREADY_USED ( 0x0003 + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_READ_OBJECT ( 0x0004 + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_WRITE_OBJECT ( 0x0005 + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_INVALID_TRANSACTION_ID ( 0x0006 + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_ID_INVALID ( 0x0007 + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_SUB_ID_INVALID ( 0x0008 + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_GET_MODE_INVALID ( 0x0009 + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_NO_MORE_OBJECT ( 0x000A + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_NO_MORE_SUB_OBJECT ( 0x000B + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_FULL ( 0x000C + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_TIMEOUT ( 0x000D + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_BAD_STATE ( 0x000E + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_ALREADY_START ( 0x000F + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_ALREADY_STOP ( 0x0010 + cOCTVC1_GENERIC_RC_BASE )
/****************************************************************************
API return codes
****************************************************************************/
#define cOCTVC1_GENERIC_API_RC_BASE ( 0x0300 + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_API_CMD_NOT_IMPLEMENTED ( 0x0001 + cOCTVC1_GENERIC_API_RC_BASE )
#define cOCTVC1_GENERIC_RC_API_CMD_REJECT ( 0x0002 + cOCTVC1_GENERIC_API_RC_BASE )
#define cOCTVC1_GENERIC_RC_API_CMD_RETRANSMIT ( 0x0003 + cOCTVC1_GENERIC_API_RC_BASE )
#define cOCTVC1_GENERIC_RC_API_SESSION_INACTIVE ( 0x0004 + cOCTVC1_GENERIC_API_RC_BASE )
#define cOCTVC1_GENERIC_RC_API_INVALID_CMD_LENGTH ( 0x0005 + cOCTVC1_GENERIC_API_RC_BASE )
#define cOCTVC1_GENERIC_RC_API_INVALID_CMD_ID ( 0x0006 + cOCTVC1_GENERIC_API_RC_BASE )
#define cOCTVC1_GENERIC_RC_API_ROUTING_ERROR ( 0x0007 + cOCTVC1_GENERIC_API_RC_BASE )
#define cOCTVC1_GENERIC_RC_API_RSP_ERROR ( 0x0008 + cOCTVC1_GENERIC_API_RC_BASE )
/****************************************************************************
MEMORY return codes
****************************************************************************/
#define cOCTVC1_GENERIC_MEMORY_RC_BASE ( 0x0400 + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_MEMORY_LOCAL_ALLOC ( 0x0001 + cOCTVC1_GENERIC_MEMORY_RC_BASE )
#define cOCTVC1_GENERIC_RC_MEMORY_LOCAL_FREE ( 0x0002 + cOCTVC1_GENERIC_MEMORY_RC_BASE )
#define cOCTVC1_GENERIC_RC_MEMORY_RESIDENT_ALLOC ( 0x0003 + cOCTVC1_GENERIC_MEMORY_RC_BASE )
#define cOCTVC1_GENERIC_RC_MEMORY_RESIDENT_FREE ( 0x0004 + cOCTVC1_GENERIC_MEMORY_RC_BASE )
#define cOCTVC1_GENERIC_RC_MEMORY_EXTERNAL_ALLOC ( 0x0005 + cOCTVC1_GENERIC_MEMORY_RC_BASE )
#define cOCTVC1_GENERIC_RC_MEMORY_EXTERNAL_FREE ( 0x0006 + cOCTVC1_GENERIC_MEMORY_RC_BASE )
#define cOCTVC1_GENERIC_RC_MEMORY_EXTERNAL_READ ( 0x0007 + cOCTVC1_GENERIC_MEMORY_RC_BASE )
#define cOCTVC1_GENERIC_RC_MEMORY_EXTERNAL_WRITE ( 0x0008 + cOCTVC1_GENERIC_MEMORY_RC_BASE )
#define cOCTVC1_GENERIC_RC_MEMORY_IO_READ ( 0x0009 + cOCTVC1_GENERIC_MEMORY_RC_BASE )
#define cOCTVC1_GENERIC_RC_MEMORY_IO_WRITE ( 0x000A + cOCTVC1_GENERIC_MEMORY_RC_BASE )
#define cOCTVC1_GENERIC_RC_MEMORY_CHECKSUM ( 0x000B + cOCTVC1_GENERIC_MEMORY_RC_BASE )
#define cOCTVC1_GENERIC_RC_MEMORY_SIZE ( 0x000C + cOCTVC1_GENERIC_MEMORY_RC_BASE )
/****************************************************************************
INTERNAL return codes
****************************************************************************/
#define cOCTVC1_GENERIC_INTERNAL_RC_BASE ( 0x0500 + cOCTVC1_GENERIC_RC_BASE )
#define cOCTVC1_GENERIC_RC_INTERNAL_ERROR ( 0x0001 + cOCTVC1_GENERIC_INTERNAL_RC_BASE )
#define cOCTVC1_GENERIC_RC_INTERNAL_SERVICE_NOT_INIT ( 0x0002 + cOCTVC1_GENERIC_INTERNAL_RC_BASE )
#define cOCTVC1_GENERIC_RC_INTERNAL_TIMEOUT ( 0x0003 + cOCTVC1_GENERIC_INTERNAL_RC_BASE )
#define cOCTVC1_GENERIC_RC_INTERNAL_MSG_UNKNOWN ( 0x0004 + cOCTVC1_GENERIC_INTERNAL_RC_BASE )
#endif /* OCTVC1_GENERIC_RC_H__ */
|