SysLink API Reference  2.21.03.11
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
RingIOShm.h
Go to the documentation of this file.
1 
12 /*
13  * ============================================================================
14  *
15  * Copyright (c) 2008-2012, Texas Instruments Incorporated
16  *
17  * Redistribution and use in source and binary forms, with or without
18  * modification, are permitted provided that the following conditions
19  * are met:
20  *
21  * * Redistributions of source code must retain the above copyright
22  * notice, this list of conditions and the following disclaimer.
23  *
24  * * Redistributions in binary form must reproduce the above copyright
25  * notice, this list of conditions and the following disclaimer in the
26  * documentation and/or other materials provided with the distribution.
27  *
28  * * Neither the name of Texas Instruments Incorporated nor the names of
29  * its contributors may be used to endorse or promote products derived
30  * from this software without specific prior written permission.
31  *
32  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
33  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
34  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
35  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
36  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
37  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
38  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
39  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
40  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
41  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
42  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43  * Contact information for paper mail:
44  * Texas Instruments
45  * Post Office Box 655303
46  * Dallas, Texas 75265
47  * Contact information:
48  * http://www-k.ext.ti.com/sc/technical-support/product-information-centers.htm?
49  * DCMP=TIHomeTracking&HQS=Other+OT+home_d_contact
50  * ============================================================================
51  *
52  */
53 
54 
55 
56 #ifndef RINGIOSHM_H_
57 #define RINGIOSHM_H_
58 
59 #include <ti/ipc/GateMP.h>
60 #include <ti/syslink/RingIO.h>
61 
62 #if defined (__cplusplus)
63 extern "C" {
64 #endif
65 /* =============================================================================
66  * All success and failure codes for the module
67  * =============================================================================
68  */
69 
74 #define RingIOShm_MODULEID (0x3bff)
75 
76 /* =============================================================================
77  * All success and failure codes for the module
78  * =============================================================================
79  */
80 
85 #define RingIOShm_E_INVALIDARG RingIO_E_INVALIDARG
86 
91 #define RingIOShm_E_INVALIDSTATE RingIO_E_INVALIDSTATE
92 
97 #define RingIOShm_E_BADVERSION RingIO_E_BADVERSION
98 
103 #define RingIOShm_E_FAIL RingIO_E_FAIL
104 
109 #define RingIOShm_E_MEMORY RingIO_E_MEMORY
110 
115 #define RingIOShm_E_OSFAILURE RingIO_E_OSFAILURE
116 
122 #define RingIOShm_E_BUFWRAP RingIO_E_BUFWRAP
123 
128 #define RingIOShm_E_BUFEMPTY RingIO_E_BUFEMPTY
129 
134 #define RingIOShm_E_BUFFULL RingIO_E_BUFFULL
135 
141 #define RingIOShm_E_PENDINGDATA RingIO_E_PENDINGDATA
142 
148 #define RingIOShm_E_VARIABLEATTRIBUTE RingIO_E_VARIABLEATTRIBUTE
149 
154 #define RingIOShm_E_WRONGSTATE RingIO_E_WRONGSTATE
155 
160 #define RingIOShm_E_INVALIDPROCID RingIO_E_INVALIDPROCID
161 
165 #define RingIOShm_E_INVALIDCONTEXT RingIO_E_INVALIDCONTEXT
166 
171 #define RingIOShm_S_SUCCESS RingIO_S_SUCCESS
172 
177 #define RingIOShm_S_ALREADYSETUP RingIO_S_ALREADYSETUP
178 
187 #define RingIOShm_S_PENDINGATTRIBUTE RingIO_S_PENDINGATTRIBUTE
188 
189 
190 /* =============================================================================
191  * Structures & Enums
192  * =============================================================================
193  */
198 typedef struct RingIOShm_Params_Tag {
257 
258 /* =============================================================================
259  * APIs
260  * =============================================================================
261  */
278 Void RingIOShm_Params_init (Void * params);
279 
280 #if defined (__cplusplus)
281 }
282 #endif /* defined (__cplusplus) */
283 
284 
285 #endif /* RINGIOSHM_H_ */
Copyright 2014, Texas Instruments Incorporated