mirror of
https://github.com/eclipse/upm.git
synced 2025-11-01 07:34:51 +03:00
Since UPM uses doxy2swig, there is no need for the swig interface
file autodoc for python.
Also, turned on the doxy2swig --quiet switch which cleans up the build
log a tiny bit.
This removes a redundant chunk of documentation from python modules
(per each function).
Old:
def pH(self, samples=15):
+-> """
| pH(DFRPH self, unsigned int samples=15) -> float
|
| Parameters
| ----------
swig| samples: unsigned int
|
| pH(DFRPH self) -> float
|
| Parameters
| ----------
+-> self: upm::DFRPH *
+-> float pH(unsigned int
| samples=15)
|
| Take a number of samples and return the detected pH value. The default
| number of samples is 15.
|
doxy2swig| Parameters:
| -----------
|
| samples: The number of samples to average over, default 15
|
| The pH value detected
| """
+-> return _pyupm_dfrph.DFRPH_pH(self, samples)
New:
def pH(self, samples=15):
+-> """
| float pH(unsigned int
| samples=15)
|
| Take a number of samples and return the detected pH value. The default
| number of samples is 15.
|
doxy2swig| Parameters:
| -----------
|
| samples: The number of samples to average over, default 15
|
| The pH value detected
+-> """
Signed-off-by: Noel Eck <noel.eck@intel.com>
25 lines
550 B
OpenEdge ABL
25 lines
550 B
OpenEdge ABL
// Include doxygen-generated documentation
|
|
%include "pyupm_doxy2swig.i"
|
|
%module pyupm_bno055
|
|
%include "../upm.i"
|
|
%include "cpointer.i"
|
|
%include "../upm_vectortypes.i"
|
|
|
|
/* Send "int *" and "float *" to python as intp and floatp, though
|
|
* using the vector return (upm_vectortypes.i) functions instead of
|
|
* the pointer argument functions is preferable.
|
|
*/
|
|
%pointer_functions(int, intp);
|
|
%pointer_functions(float, floatp);
|
|
|
|
|
|
#ifdef DOXYGEN
|
|
%include "bno055_doc.i"
|
|
#endif
|
|
|
|
%include "bno055_regs.h"
|
|
%include "bno055.hpp"
|
|
%{
|
|
#include "bno055.hpp"
|
|
%}
|