upm.i: add top level interface file which includes std_string.i

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll 2014-06-25 14:02:12 +01:00
parent 0954617a4b
commit 2822d63c9c
38 changed files with 41 additions and 1 deletions

View File

@ -31,7 +31,8 @@ change between the javascript & node.js one is the argument to %module.
The %include parameter defines which functions will be available to the The %include parameter defines which functions will be available to the
node/python module created, Whilst the headers inside %{} will be explicitly node/python module created, Whilst the headers inside %{} will be explicitly
required during compilation. Typically only the top level header is required in required during compilation. Typically only the top level header is required in
either of those args. either of those args. The upm.i is just a shortcut to include some commonly
used swig wrappers for UPM sensors, it's not obligatory but recommended.
### API ### API

View File

@ -1,4 +1,5 @@
%module jsupm_buzzer %module jsupm_buzzer
%include "../upm.i"
%{ %{
#include "buzzer.h" #include "buzzer.h"

View File

@ -1,4 +1,5 @@
%module pyupm_buzzer %module pyupm_buzzer
%include "../upm.i"
%feature("autodoc", "3"); %feature("autodoc", "3");

View File

@ -1,4 +1,5 @@
%module jsupm_grove %module jsupm_grove
%include "../upm.i"
%{ %{
#include "grove.h" #include "grove.h"

View File

@ -1,4 +1,5 @@
%module pyupm_grove %module pyupm_grove
%include "../upm.i"
%feature("autodoc", "3"); %feature("autodoc", "3");

View File

@ -1,4 +1,5 @@
%module jsupm_gy65 %module jsupm_gy65
%include "../upm.i"
%{ %{
#include "gy65.h" #include "gy65.h"

View File

@ -1,4 +1,5 @@
%module pyupm_gy65 %module pyupm_gy65
%include "../upm.i"
%include "stdint.i" %include "stdint.i"

View File

@ -1,4 +1,5 @@
%module jsupm_hcsr04 %module jsupm_hcsr04
%include "../upm.i"
%{ %{
#include "hcsr04.h" #include "hcsr04.h"

View File

@ -1,4 +1,5 @@
%module pyupm_hcsr04 %module pyupm_hcsr04
%include "../upm.i"
%feature("autodoc", "3"); %feature("autodoc", "3");

View File

@ -1,4 +1,5 @@
%module jsupm_hmc5883l %module jsupm_hmc5883l
%include "../upm.i"
%{ %{
#include "hmc5883l.h" #include "hmc5883l.h"

View File

@ -1,4 +1,5 @@
%module pyupm_hmc5883l %module pyupm_hmc5883l
%include "../upm.i"
%feature("autodoc", "3"); %feature("autodoc", "3");

View File

@ -1,4 +1,5 @@
%module jsupm_i2clcd %module jsupm_i2clcd
%include "../upm.i"
%include "i2clcd.h" %include "i2clcd.h"
%{ %{

View File

@ -1,4 +1,5 @@
%module pyupm_i2clcd %module pyupm_i2clcd
%include "../upm.i"
%feature("autodoc", "3"); %feature("autodoc", "3");

View File

@ -1,5 +1,6 @@
//! [Interesting] //! [Interesting]
%module jsupm_max31855 %module jsupm_max31855
%include "../upm.i"
%{ %{
#include "max31855.h" #include "max31855.h"

View File

@ -1,4 +1,5 @@
%module pyupm_max31855 %module pyupm_max31855
%include "../upm.i"
%include "stdint.i" %include "stdint.i"

View File

@ -1,4 +1,5 @@
%module jsupm_max44000 %module jsupm_max44000
%include "../upm.i"
%{ %{
#include "max44000.h" #include "max44000.h"

View File

@ -1,4 +1,5 @@
%module pyupm_max44000 %module pyupm_max44000
%include "../upm.i"
%include "stdint.i" %include "stdint.i"

View File

@ -1,4 +1,5 @@
%module jsupm_mic %module jsupm_mic
%include "../upm.i"
%{ %{
#include "mic.h" #include "mic.h"

View File

@ -1,4 +1,5 @@
%module pyupm_mic %module pyupm_mic
%include "../upm.i"
%include "stdint.i" %include "stdint.i"

View File

@ -1,4 +1,5 @@
%module jsupm_mma7455 %module jsupm_mma7455
%include "../upm.i"
%{ %{
#include "mma7455.h" #include "mma7455.h"

View File

@ -1,4 +1,5 @@
%module pyupm_mma7455 %module pyupm_mma7455
%include "../upm.i"
%feature("autodoc", "3"); %feature("autodoc", "3");

View File

@ -1,4 +1,5 @@
%module jsupm_mpu9150 %module jsupm_mpu9150
%include "../upm.i"
%{ %{
#include "mpu9150.h" #include "mpu9150.h"

View File

@ -1,4 +1,5 @@
%module pyupm_mpu9150 %module pyupm_mpu9150
%include "../upm.i"
%include "stdint.i" %include "stdint.i"

View File

@ -1,4 +1,5 @@
%module jsupm_my9221 %module jsupm_my9221
%include "../upm.i"
%{ %{
#include "my9221.h" #include "my9221.h"

View File

@ -1,4 +1,5 @@
%module pyupm_my9221 %module pyupm_my9221
%include "../upm.i"
%feature("autodoc", "3"); %feature("autodoc", "3");

View File

@ -1,4 +1,5 @@
%module jsupm_nrf24l01 %module jsupm_nrf24l01
%include "../upm.i"
%{ %{
#include "nrf24l01.h" #include "nrf24l01.h"

View File

@ -1,4 +1,5 @@
%module pyupm_nrf24l01 %module pyupm_nrf24l01
%include "../upm.i"
%feature("autodoc", "3"); %feature("autodoc", "3");

View File

@ -1,4 +1,5 @@
%module jsupm_pulsensor %module jsupm_pulsensor
%include "../upm.i"
%{ %{
#include "pulsensor.h" #include "pulsensor.h"

View File

@ -1,4 +1,5 @@
%module pyupm_pulsensor %module pyupm_pulsensor
%include "../upm.i"
%include "stdint.i" %include "stdint.i"

View File

@ -1,4 +1,5 @@
%module jsupm_servo %module jsupm_servo
%include "../upm.i"
%{ %{
#include "servo.h" #include "servo.h"

View File

@ -1,4 +1,5 @@
%module pyupm_servo %module pyupm_servo
%include "../upm.i"
%feature("autodoc", "3"); %feature("autodoc", "3");

View File

@ -1,4 +1,5 @@
%module jsupm_st7735 %module jsupm_st7735
%include "../upm.i"
%{ %{
#include "st7735.h" #include "st7735.h"

View File

@ -1,4 +1,5 @@
%module pyupm_st7735 %module pyupm_st7735
%include "../upm.i"
%feature("autodoc", "3"); %feature("autodoc", "3");

View File

@ -1,4 +1,5 @@
%module jsupm_stepmotor %module jsupm_stepmotor
%include "../upm.i"
%{ %{
#include "stepmotor.h" #include "stepmotor.h"

View File

@ -1,4 +1,5 @@
%module pyupm_stepmotor %module pyupm_stepmotor
%include "../upm.i"
%include "stdint.i" %include "stdint.i"

View File

@ -1,4 +1,5 @@
%module jsupm_tm1637 %module jsupm_tm1637
%include "../upm.i"
%{ %{
#include "tm1637.h" #include "tm1637.h"

View File

@ -1,4 +1,5 @@
%module pyupm_tm1637 %module pyupm_tm1637
%include "../upm.i"
%feature("autodoc", "3"); %feature("autodoc", "3");

3
src/upm.i Normal file
View File

@ -0,0 +1,3 @@
%include "std_string.i"
%typemap(out) mraa_result_t = int;