mraa
0.4.5
Low Level Skeleton Library for Communication on GNU/Linux platforms
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Pages
api
mraa
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
{
40
MRAA_INTEL_GALILEO_GEN1
= 0,
41
MRAA_INTEL_GALILEO_GEN2
= 1,
43
MRAA_UNKNOWN_PLATFORM
= 99
44
}
mraa_platform_t
;
45
49
typedef
enum
{
50
MRAA_SUCCESS
= 0,
51
MRAA_ERROR_FEATURE_NOT_IMPLEMENTED
= 1,
52
MRAA_ERROR_FEATURE_NOT_SUPPORTED
= 2,
53
MRAA_ERROR_INVALID_VERBOSITY_LEVEL
= 3,
54
MRAA_ERROR_INVALID_PARAMETER
= 4,
55
MRAA_ERROR_INVALID_HANDLE
= 5,
56
MRAA_ERROR_NO_RESOURCES
= 6,
57
MRAA_ERROR_INVALID_RESOURCE
= 7,
58
MRAA_ERROR_INVALID_QUEUE_TYPE
= 8,
59
MRAA_ERROR_NO_DATA_AVAILABLE
= 9,
60
MRAA_ERROR_INVALID_PLATFORM
= 10,
61
MRAA_ERROR_PLATFORM_NOT_INITIALISED
= 11,
62
MRAA_ERROR_PLATFORM_ALREADY_INITIALISED
= 12,
64
MRAA_ERROR_UNSPECIFIED
= 99
65
}
mraa_result_t
;
66
76
int
mraa_set_priority
(
const
unsigned
int
priority);
77
85
const
char
*
mraa_get_version
();
86
92
void
mraa_result_print
(
mraa_result_t
result);
93
99
mraa_platform_t
mraa_get_platform_type
();
100
101
#ifdef __cplusplus
102
}
103
#endif
MRAA_ERROR_INVALID_QUEUE_TYPE
Definition:
types.h:58
MRAA_ERROR_NO_DATA_AVAILABLE
Definition:
types.h:59
MRAA_ERROR_FEATURE_NOT_IMPLEMENTED
Definition:
types.h:51
MRAA_INTEL_GALILEO_GEN1
Definition:
types.h:40
mraa_platform_t
mraa_platform_t
Definition:
types.h:39
mraa_get_version
const char * mraa_get_version()
MRAA_SUCCESS
Definition:
types.h:50
MRAA_ERROR_INVALID_RESOURCE
Definition:
types.h:57
MRAA_ERROR_UNSPECIFIED
Definition:
types.h:64
mraa_result_print
void mraa_result_print(mraa_result_t result)
MRAA_ERROR_NO_RESOURCES
Definition:
types.h:56
MRAA_ERROR_INVALID_PLATFORM
Definition:
types.h:60
MRAA_ERROR_PLATFORM_NOT_INITIALISED
Definition:
types.h:61
MRAA_UNKNOWN_PLATFORM
Definition:
types.h:43
mraa_get_platform_type
mraa_platform_t mraa_get_platform_type()
MRAA_ERROR_INVALID_VERBOSITY_LEVEL
Definition:
types.h:53
MRAA_ERROR_INVALID_PARAMETER
Definition:
types.h:54
mraa_result_t
mraa_result_t
Definition:
types.h:49
MRAA_ERROR_PLATFORM_ALREADY_INITIALISED
Definition:
types.h:62
MRAA_ERROR_INVALID_HANDLE
Definition:
types.h:55
MRAA_INTEL_GALILEO_GEN2
Definition:
types.h:41
mraa_set_priority
int mraa_set_priority(const unsigned int priority)
MRAA_ERROR_FEATURE_NOT_SUPPORTED
Definition:
types.h:52
Generated on Wed Sep 3 2014 09:38:23 for mraa by
1.8.7