All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pruio_c_wrapper.bas File Reference

The main source code of the C wrapper for libpruio. More...

`#include "../pruio/pruio.bas"`
Include dependency graph for pruio_c_wrapper.bas:

Go to the source code of this file.

## Functions

FUNCTION_CDECL_ALIAS_AS_PruIo_PTR | pruio_new (BYVAL_AS_UInt16 Act=PRUIO_DEF_ACTIVE, BYVAL_AS_UInt8 Av=PRUIO_DEF_AVRAGE, BYVAL_AS_UInt32 OpD=PRUIO_DEF_ODELAY, BYVAL_AS_UInt8 SaD=PRUIO_DEF_SDELAY)
| Wrapper function for constructor PruIo::PruIo().
SUB_CDECL_ALIAS | pruio_destroy (BYVAL_AS_PruIo_PTR Io)
| Wrapper function for destructor PruIo::~PruIo.
FUNCTION_CDECL_ALIAS_AS_ZSTRING_PTR | pruio_config (BYVAL_AS_PruIo_PTR Io, BYVAL_AS_UInt32 Samp, BYVAL_AS_UInt32 Mask, BYVAL_AS_UInt32 Tmr, BYVAL_AS_UInt16 Mds)
| Wrapper function for PruIo::config().
FUNCTION_CDECL_ALIAS_AS_ZSTRING_PTR | pruio_Pin (BYVAL_AS_PruIo_PTR Io, BYVAL_AS_UInt8 Ball)
| Wrapper function for PruIo::Pin().
FUNCTION_CDECL_ALIAS_AS_ZSTRING_PTR | pruio_mm_start (BYVAL_AS_PruIo_PTR Io, BYVAL_AS_UInt32 Trg1, BYVAL_AS_UInt32 Trg2, BYVAL_AS_UInt32 Trg3, BYVAL_AS_UInt32 Trg4)
| Wrapper function for PruIo::mm_start().
FUNCTION_CDECL_ALIAS_AS_ZSTRING_PTR | pruio_rb_start (BYVAL_AS_PruIo_PTR Io)
| Wrapper function for PruIo::rb_start().
FUNCTION_CDECL_ALIAS_AS_ZSTRING_PTR | pruio_adc_setStep (BYVAL_AS_PruIo_PTR Io, BYVAL_AS_UInt8 Stp, BYVAL_AS_UInt8 ChN, BYVAL_AS_UInt8 Av, BYVAL_AS_UInt8 SaD, BYVAL_AS_UInt32 OpD)
| Wrapper function for AdcUdt::setStep().
FUNCTION_CDECL_ALIAS_AS_UInt32 | pruio_adc_mm_trg_pin (BYVAL_AS_PruIo_PTR Io, BYVAL_AS_UInt8 Ball, BYVAL_AS_UInt8 GpioV, BYVAL_AS_UInt16 Skip)
| Wrapper function for AdcUdt::mm_trg_pin().
FUNCTION_CDECL_ALIAS_AS_UInt32 | pruio_adc_mm_trg_ain (BYVAL_AS_PruIo_PTR Io, BYVAL_AS_UInt8 Stp, BYVAL_AS_Int32 AdcV, BYVAL_AS_UInt8 Rela, BYVAL_AS_UInt16 Skip)
| Wrapper function for AdcUdt::mm_trg_ain().
FUNCTION_CDECL_ALIAS_AS_UInt32 | pruio_adc_mm_trg_pre (BYVAL_AS_PruIo_PTR Io, BYVAL_AS_UInt8 Stp, BYVAL_AS_Int32 AdcV, BYVAL_AS_UInt16 Samp, BYVAL_AS_UInt8 Rela)
| Wrapper function for AdcUdt::mm_trg_pre().
FUNCTION_CDECL_ALIAS_AS_ZSTRING_PTR | pruio_gpio_config (BYVAL_AS_PruIo_PTR Io, BYVAL_AS_UInt8 Ball, BYVAL_AS_UInt8 Modus)
| Wrapper function for GpioUdt::config().
FUNCTION_CDECL_ALIAS_AS_ZSTRING_PTR | pruio_gpio_setValue (BYVAL_AS_PruIo_PTR Io, BYVAL_AS_UInt8 Ball, BYVAL_AS_UInt8 Modus)
| Wrapper function for GpioUdt::setValue().
FUNCTION_CDECL_ALIAS_AS_UInt32 | pruio_gpio_Value (BYVAL_AS_PruIo_PTR Io, BYVAL_AS_UInt8 Ball)
| Wrapper function for GpioUdt::Value().
FUNCTION_CDECL_ALIAS_AS_ZSTRING_PTR | pruio_cap_config (BYVAL_AS_PruIo_PTR Io, BYVAL_AS_UInt8 Ball, BYVAL_AS_Float_t FLow=0.)
| Wrapper function for CapMod::config().
FUNCTION_CDECL_ALIAS_AS_ZSTRING_PTR | pruio_cap_Value (BYVAL_AS_PruIo_PTR Io, BYVAL_AS_UInt8 Ball, BYVAL_AS_Float_t_PTR Hz=0, BYVAL_AS_Float_t_PTR Du=0)
| Wrapper function for CapMod::Value().
FUNCTION_CDECL_ALIAS_AS_ZSTRING_PTR | pruio_pwm_Value (BYVAL_AS_PruIo_PTR Io, BYVAL_AS_UInt8 Ball, BYVAL_AS_Float_t_PTR Hz=0, BYVAL_AS_Float_t_PTR Du=0)
| Wrapper function for PwmMod::Value().
FUNCTION_CDECL_ALIAS_AS_ZSTRING_PTR | pruio_pwm_setValue (BYVAL_AS_PruIo_PTR Io, BYVAL_AS_UInt8 Ball, BYVAL_AS_Float_t Hz, BYVAL_AS_Float_t Du)
| Wrapper function for PwmMod::setValue().

## Detailed Description

The main source code of the C wrapper for libpruio.

This file provides the libpruio functions in a C compatible syntax to use libpruio in polyglot applications or to create language bindings for non-C languages.

Licence: LGPLv2 (http://www.gnu.org/licenses/lgpl-2.0.html)

Copyright 2014 by Thomas{ dOt ]Freiherr[ At ]gmx[ DoT }net

compile by (static and dynamic library)

./build

Definition in file pruio_c_wrapper.bas.