mraa  1.7.0
Low Level Skeleton Library for Communication on GNU/Linux platforms
 All Data Structures Namespaces Files Functions Typedefs Enumerations Enumerator Macros Pages
types.h
Go to the documentation of this file.
1 /*
2  * Author: Brendan Le Foll <brendan.le.foll@intel.com>
3  * Copyright © 2014 Intel Corporation
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy
6  * of this software and associated documentation files (the "Software"), to
7  * deal in the Software without restriction, including without limitation the
8  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9  * sell copies of the Software, and to permit persons to whom the Software is
10  * furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in
13  * all copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21  * IN THE SOFTWARE.
22  */
23 
24 #pragma once
25 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
39 typedef enum {
52  MRAA_UP = 12,
54 #if __STDC_VERSION__ >= 199901L
55  MRAA_INTEL_GT_TUCHUCK = MRAA_INTEL_JOULE_EXPANSION, // deprecated
56 #endif
60  // USB platform extenders start at 256
63  // contains bit 9 so is subplatform
71  99
73 
77 typedef enum {
78  MRAA_INTEL_EDISON_MINIBOARD_J17_1 = 0,
79  MRAA_INTEL_EDISON_MINIBOARD_J17_5 = 4,
80  MRAA_INTEL_EDISON_MINIBOARD_J17_7 = 6,
81  MRAA_INTEL_EDISON_MINIBOARD_J17_8 = 7,
82  MRAA_INTEL_EDISON_MINIBOARD_J17_9 = 8,
83  MRAA_INTEL_EDISON_MINIBOARD_J17_10 = 9,
84  MRAA_INTEL_EDISON_MINIBOARD_J17_11 = 10,
85  MRAA_INTEL_EDISON_MINIBOARD_J17_12 = 11,
86  MRAA_INTEL_EDISON_MINIBOARD_J17_14 = 13,
87  MRAA_INTEL_EDISON_MINIBOARD_J18_1 = 14,
88  MRAA_INTEL_EDISON_MINIBOARD_J18_2 = 15,
89  MRAA_INTEL_EDISON_MINIBOARD_J18_6 = 19,
90  MRAA_INTEL_EDISON_MINIBOARD_J18_7 = 20,
91  MRAA_INTEL_EDISON_MINIBOARD_J18_8 = 21,
92  MRAA_INTEL_EDISON_MINIBOARD_J18_10 = 23,
93  MRAA_INTEL_EDISON_MINIBOARD_J18_11 = 24,
94  MRAA_INTEL_EDISON_MINIBOARD_J18_12 = 25,
95  MRAA_INTEL_EDISON_MINIBOARD_J18_13 = 26,
96  MRAA_INTEL_EDISON_MINIBOARD_J19_4 = 31,
97  MRAA_INTEL_EDISON_MINIBOARD_J19_5 = 32,
98  MRAA_INTEL_EDISON_MINIBOARD_J19_6 = 33,
99  MRAA_INTEL_EDISON_MINIBOARD_J19_8 = 35,
100  MRAA_INTEL_EDISON_MINIBOARD_J19_9 = 36,
101  MRAA_INTEL_EDISON_MINIBOARD_J19_10 = 37,
102  MRAA_INTEL_EDISON_MINIBOARD_J19_11 = 38,
103  MRAA_INTEL_EDISON_MINIBOARD_J19_12 = 39,
104  MRAA_INTEL_EDISON_MINIBOARD_J19_13 = 40,
105  MRAA_INTEL_EDISON_MINIBOARD_J19_14 = 41,
106  MRAA_INTEL_EDISON_MINIBOARD_J20_3 = 44,
107  MRAA_INTEL_EDISON_MINIBOARD_J20_4 = 45,
108  MRAA_INTEL_EDISON_MINIBOARD_J20_5 = 46,
109  MRAA_INTEL_EDISON_MINIBOARD_J20_6 = 47,
110  MRAA_INTEL_EDISON_MINIBOARD_J20_7 = 48,
111  MRAA_INTEL_EDISON_MINIBOARD_J20_8 = 49,
112  MRAA_INTEL_EDISON_MINIBOARD_J20_9 = 50,
113  MRAA_INTEL_EDISON_MINIBOARD_J20_10 = 51,
114  MRAA_INTEL_EDISON_MINIBOARD_J20_11 = 52,
115  MRAA_INTEL_EDISON_MINIBOARD_J20_12 = 53,
116  MRAA_INTEL_EDISON_MINIBOARD_J20_13 = 54,
117  MRAA_INTEL_EDISON_MINIBOARD_J20_14 = 55
119 
123 typedef enum {
124  MRAA_INTEL_EDISON_GP182 = 0,
125  MRAA_INTEL_EDISON_GP135 = 4,
126  MRAA_INTEL_EDISON_GP27 = 6,
127  MRAA_INTEL_EDISON_GP20 = 7,
128  MRAA_INTEL_EDISON_GP28 = 8,
129  MRAA_INTEL_EDISON_GP111 = 0,
130  MRAA_INTEL_EDISON_GP109 = 10,
131  MRAA_INTEL_EDISON_GP115 = 11,
132  MRAA_INTEL_EDISON_GP128 = 13,
133  MRAA_INTEL_EDISON_GP13 = 14,
134  MRAA_INTEL_EDISON_GP165 = 15,
135  MRAA_INTEL_EDISON_GP19 = 19,
136  MRAA_INTEL_EDISON_GP12 = 20,
137  MRAA_INTEL_EDISON_GP183 = 21,
138  MRAA_INTEL_EDISON_GP110 = 23,
139  MRAA_INTEL_EDISON_GP114 = 24,
140  MRAA_INTEL_EDISON_GP129 = 25,
141  MRAA_INTEL_EDISON_GP130 = 26,
142  MRAA_INTEL_EDISON_GP44 = 31,
143  MRAA_INTEL_EDISON_GP46 = 32,
144  MRAA_INTEL_EDISON_GP48 = 33,
145  MRAA_INTEL_EDISON_GP131 = 35,
146  MRAA_INTEL_EDISON_GP14 = 36,
147  MRAA_INTEL_EDISON_GP40 = 37,
148  MRAA_INTEL_EDISON_GP43 = 38,
149  MRAA_INTEL_EDISON_GP77 = 39,
150  MRAA_INTEL_EDISON_GP82 = 40,
151  MRAA_INTEL_EDISON_GP83 = 41,
152  MRAA_INTEL_EDISON_GP134 = 44,
153  MRAA_INTEL_EDISON_GP45 = 45,
154  MRAA_INTEL_EDISON_GP47 = 46,
155  MRAA_INTEL_EDISON_GP49 = 47,
156  MRAA_INTEL_EDISON_GP15 = 48,
157  MRAA_INTEL_EDISON_GP84 = 49,
158  MRAA_INTEL_EDISON_GP42 = 50,
159  MRAA_INTEL_EDISON_GP41 = 51,
160  MRAA_INTEL_EDISON_GP78 = 52,
161  MRAA_INTEL_EDISON_GP79 = 53,
162  MRAA_INTEL_EDISON_GP80 = 54,
163  MRAA_INTEL_EDISON_GP81 = 55
165 
169 typedef enum {
170  MRAA_RASPBERRY_WIRING_PIN8 = 3,
171  MRAA_RASPBERRY_WIRING_PIN9 = 5,
172  MRAA_RASPBERRY_WIRING_PIN7 = 7,
173  MRAA_RASPBERRY_WIRING_PIN15 = 8,
174  MRAA_RASPBERRY_WIRING_PIN16 = 10,
175  MRAA_RASPBERRY_WIRING_PIN0 = 11,
176  MRAA_RASPBERRY_WIRING_PIN1 = 12,
177  MRAA_RASPBERRY_WIRING_PIN2 = 13,
178  MRAA_RASPBERRY_WIRING_PIN3 = 15,
179  MRAA_RASPBERRY_WIRING_PIN4 = 16,
180  MRAA_RASPBERRY_WIRING_PIN5 = 18,
181  MRAA_RASPBERRY_WIRING_PIN12 = 19,
182  MRAA_RASPBERRY_WIRING_PIN13 = 21,
183  MRAA_RASPBERRY_WIRING_PIN6 = 22,
184  MRAA_RASPBERRY_WIRING_PIN14 = 23,
185  MRAA_RASPBERRY_WIRING_PIN10 = 24,
186  MRAA_RASPBERRY_WIRING_PIN11 = 26,
187  MRAA_RASPBERRY_WIRING_PIN17 = 29, // RPi B V2
188  MRAA_RASPBERRY_WIRING_PIN21 = 29,
189  MRAA_RASPBERRY_WIRING_PIN18 = 30, // RPi B V2
190  MRAA_RASPBERRY_WIRING_PIN19 = 31, // RPI B V2
191  MRAA_RASPBERRY_WIRING_PIN22 = 31,
192  MRAA_RASPBERRY_WIRING_PIN20 = 32, // RPi B V2
193  MRAA_RASPBERRY_WIRING_PIN26 = 32,
194  MRAA_RASPBERRY_WIRING_PIN23 = 33,
195  MRAA_RASPBERRY_WIRING_PIN24 = 35,
196  MRAA_RASPBERRY_WIRING_PIN27 = 36,
197  MRAA_RASPBERRY_WIRING_PIN25 = 37,
198  MRAA_RASPBERRY_WIRING_PIN28 = 38,
199  MRAA_RASPBERRY_WIRING_PIN29 = 40
201 
205 typedef enum {
223 } mraa_result_t;
224 
228 typedef enum {
238 
242 typedef enum {
247 
248 typedef enum {
249  MRAA_UART_PARITY_NONE = 0,
250  MRAA_UART_PARITY_EVEN = 1,
251  MRAA_UART_PARITY_ODD = 2,
252  MRAA_UART_PARITY_MARK = 3,
253  MRAA_UART_PARITY_SPACE = 4
254 } mraa_uart_parity_t;
255 
256 #ifdef __cplusplus
257 }
258 #endif
Definition: types.h:214
Definition: types.h:52
Definition: types.h:215
mraa_i2c_mode_t
Definition: types.h:242
Definition: types.h:50
Definition: types.h:219
mraa_intel_edison_miniboard_t
Definition: types.h:77
Definition: types.h:218
Definition: types.h:42
Definition: types.h:207
Definition: types.h:51
Definition: types.h:40
mraa_platform_t
Definition: types.h:39
Definition: types.h:229
Definition: types.h:44
Definition: types.h:43
Definition: types.h:206
Definition: types.h:213
Definition: types.h:45
Definition: types.h:61
Definition: types.h:222
Definition: types.h:47
mraa_intel_edison_t
Definition: types.h:123
Definition: types.h:48
Definition: types.h:234
Definition: types.h:212
Definition: types.h:57
Definition: types.h:230
Definition: types.h:233
Definition: types.h:216
Definition: types.h:64
Definition: types.h:69
Definition: types.h:220
Definition: types.h:70
mraa_raspberry_wiring_t
Definition: types.h:169
Definition: types.h:243
Definition: types.h:49
Definition: types.h:58
Definition: types.h:235
Definition: types.h:209
Definition: types.h:210
Definition: types.h:67
Definition: types.h:236
mraa_result_t
Definition: types.h:205
Definition: types.h:66
mraa_pinmodes_t
Definition: types.h:228
Definition: types.h:211
Definition: types.h:232
Definition: types.h:53
Definition: types.h:46
Definition: types.h:231
Definition: types.h:41
Definition: types.h:245
Definition: types.h:68
Definition: types.h:244
Definition: types.h:208