1 MRAA - Low Level Skeleton Library for Communication on Intel platforms
4 Library in C/C++ to interface with Galileo & other Intel platforms, in a
5 structured and sane API with port nanmes/numbering that match boards & with
6 bindings to javascript & python.
8 The intent is to make it easier for developers and sensor manufacturers to map
9 their sensors & actuators on top of supported hardware and to allow control of
10 low level communication protocol by high level languages & constructs.
14 These interfaces allow you to interact with all libmraa functionality. The C++
15 classes directly wrap the C API and provide a near 1:1 mapping of
19 | C API Modules | C++ API Classes |
20 |:----------------------:|:---------------------------:|
21 | @ref gpio.h "gpio" | @ref mraa::Gpio "Gpio class" |
22 | @ref i2c.h "i2c" | @ref mraa::I2c "I2c class" |
23 | @ref aio.h "aio" | @ref mraa::Aio "Aio class" |
24 | @ref pwm.h "pwm" | @ref mraa::Pwm "Pwm class" |
25 | @ref spi.h "spi" | @ref mraa::Spi "Spi class" |
26 | @ref common.h "common" | @ref common.h "common" |
30 @snippet hellomraa.c Interesting
32 ## Supported platforms
34 Specific platform information for supported platforms is documented here:
38 ### ENV RECOMENDATIONS
40 All of these are 'optional', however they are recommended. Only a C compiler,
41 cmake, libm and pthreads are technically required to compile.
43 - Swig 3.0.1+ built with node.js & python support (0.10.x)
45 - sphinx (requires doxygen)
50 More information on compiling is @ref building page
54 Please see the @ref contributing page
58 This changelog is meant as a quick & rough guide to what has changed between
59 versions. The API is now fairly stable but when new calls/features are added
60 they are listed here. Anything pre 0.2.x is ignored.
63 * Initial Intel Galileo Gen 2 support
64 * mraa_gpio_isr parameters added.
65 * Detection of different supported platforms added.
68 * mraa_i2c_read now returns length of read
71 * Add global mraa.h & mraa.hpp headers
72 * usage of "gpio.h" is not legal you need to use "mraa/gpio.h" unless adding
76 * Added mraa_set_priority call
77 * Added mmap gpio call mraa_gpio_use_mmaped
80 * C++ API now uses basic types and not unistd types as C
81 * Clearer and consistent use of unistd tpyes in C api
84 * C++ examples added, using c++ headers/api.
85 * moved to open instead of fopen in all modules
86 * rename mraa_check functions and made them internal to mraa only.
87 * removed "export" functions from api
88 * Intel Galileo Gen 1 (rev d) fixes, incorrect definition of some items
89 * SPI, implementation completed.
90 * I2C internal function, completed.
91 * PWM fix bug in period set method.
92 * Swig upstream can be used for building.
93 * No longer builds docs on default cmake, needs flag
94 * GPIO/PWM ownership guard prevents closing on existing pins, still can be forced.
97 * C++/Python/Node Enums/const names now do not contain MRAA_GPIO
98 * Enum type declaration for C++ changed
99 * Python/Node get_version() -> GetVersion()
100 * i2c read calls don't use const char* and i2c write calls do
103 * All mraa_ contexts now are pointers to the actual struct which is not
104 delcared in the header. The only end user change is that instead of
105 returning a type mraa_gpio_context pointer mraa_gpio_init() now returns a
106 mraa_gpio_context (which is actually a pointer to struct _gpio internally).
107 * C++ API is available, use the .hpp headers and add stdc++ to the linker
109 * Initial SPI implementation is provided
112 * mraa_aio_read_u16() -> mraa_aio_read()
113 * mraa_aio_read() now returns a uint16_t instead of an unsigned int
116 * First version with API considered 'stable'