wiringpi-ruby 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/wiringpi/wiringpi_wrap.c +584 -616
- data/lib/wiringpi.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8e1a9fe0cfb4a81d29656f0e72d63087d2f12faca17f5392dba41af6367faa8
|
4
|
+
data.tar.gz: 54f0259322e9c9452851f0fa0164729d732515003ba24f37c3ad3e91bf539847
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ef0edcf70afb6cd9c8f4718d2971bb2e856b8e5b4d191b277d66fa32a2cdfebb93790aefee593901644238235220f9f09cfa9476be7a4c4b2b0a2d1e17cf238
|
7
|
+
data.tar.gz: a1d747fd269893da88ea699cb0a716e2a1501fd2ac5d81349c6abb9ee37f1f95bcbc040cae17cf3e4d39d8a5ee4c48cebb06d148f1eec71dd6829ea54b80cf22
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version
|
3
|
+
* Version 4.0.2
|
4
4
|
*
|
5
5
|
* This file is not intended to be easily readable and contains a number of
|
6
6
|
* coding conventions designed to improve portability and efficiency. Do not make
|
@@ -307,6 +307,7 @@
|
|
307
307
|
/* Flags for pointer conversions */
|
308
308
|
#define SWIG_POINTER_DISOWN 0x1
|
309
309
|
#define SWIG_CAST_NEW_MEMORY 0x2
|
310
|
+
#define SWIG_POINTER_NO_NULL 0x4
|
310
311
|
|
311
312
|
/* Flags for new pointer objects */
|
312
313
|
#define SWIG_POINTER_OWN 0x1
|
@@ -945,42 +946,53 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
945
946
|
#ifndef RSTRUCT_PTR
|
946
947
|
# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
|
947
948
|
#endif
|
949
|
+
#ifndef RTYPEDDATA_P
|
950
|
+
# define RTYPEDDATA_P(x) (TYPE(x) != T_DATA)
|
951
|
+
#endif
|
948
952
|
|
949
953
|
|
950
954
|
|
951
955
|
/*
|
952
|
-
*
|
953
|
-
*
|
956
|
+
* The following macros are used for providing the correct type of a
|
957
|
+
* function pointer to the Ruby C API.
|
958
|
+
* Starting with Ruby 2.7 (corresponding to RB_METHOD_DEFINITION_DECL being
|
959
|
+
* defined) these macros act transparently due to Ruby's moving away from
|
960
|
+
* ANYARGS and instead employing strict function signatures.
|
961
|
+
*
|
962
|
+
* Note: In case of C (not C++) the macros are transparent even before
|
963
|
+
* Ruby 2.7 due to the fact that the Ruby C API used function declarators
|
964
|
+
* with empty parentheses, which allows for an unspecified number of
|
965
|
+
* arguments.
|
966
|
+
*
|
967
|
+
* PROTECTFUNC(f) is used for the function pointer argument of the Ruby
|
968
|
+
* C API function rb_protect().
|
954
969
|
*
|
955
|
-
* VALUEFUNC(f) is
|
956
|
-
*
|
957
|
-
* like rb_define_method() and rb_define_singleton_method().
|
970
|
+
* VALUEFUNC(f) is used for the function pointer argument(s) of Ruby C API
|
971
|
+
* functions like rb_define_method() and rb_define_singleton_method().
|
958
972
|
*
|
959
|
-
* VOIDFUNC(f) is
|
960
|
-
*
|
961
|
-
*
|
973
|
+
* VOIDFUNC(f) is used to typecast a C function that implements either
|
974
|
+
* the "mark" or "free" stuff for a Ruby Data object, so that it can be
|
975
|
+
* passed as an argument to Ruby C API functions like Data_Wrap_Struct()
|
962
976
|
* and Data_Make_Struct().
|
977
|
+
*
|
978
|
+
* SWIG_RUBY_VOID_ANYARGS_FUNC(f) is used for the function pointer
|
979
|
+
* argument(s) of Ruby C API functions like rb_define_virtual_variable().
|
980
|
+
*
|
981
|
+
* SWIG_RUBY_INT_ANYARGS_FUNC(f) is used for the function pointer
|
982
|
+
* argument(s) of Ruby C API functions like st_foreach().
|
963
983
|
*/
|
964
|
-
|
965
|
-
#
|
966
|
-
#
|
967
|
-
#
|
968
|
-
#
|
969
|
-
#
|
970
|
-
# else
|
971
|
-
# ifndef ANYARGS /* These definitions should work for Ruby 1.6 */
|
972
|
-
# define PROTECTFUNC(f) ((VALUE (*)()) f)
|
973
|
-
# define VALUEFUNC(f) ((VALUE (*)()) f)
|
974
|
-
# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
|
975
|
-
# else /* These definitions should work for Ruby 1.7+ */
|
976
|
-
# define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
|
977
|
-
# define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
|
978
|
-
# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
|
979
|
-
# endif
|
980
|
-
# endif
|
984
|
+
#if defined(__cplusplus) && !defined(RB_METHOD_DEFINITION_DECL)
|
985
|
+
# define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
|
986
|
+
# define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
|
987
|
+
# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
|
988
|
+
# define SWIG_RUBY_VOID_ANYARGS_FUNC(f) ((void (*)(ANYARGS))(f))
|
989
|
+
# define SWIG_RUBY_INT_ANYARGS_FUNC(f) ((int (*)(ANYARGS))(f))
|
981
990
|
#else
|
991
|
+
# define PROTECTFUNC(f) (f)
|
982
992
|
# define VALUEFUNC(f) (f)
|
983
993
|
# define VOIDFUNC(f) (f)
|
994
|
+
# define SWIG_RUBY_VOID_ANYARGS_FUNC(f) (f)
|
995
|
+
# define SWIG_RUBY_INT_ANYARGS_FUNC(f) (f)
|
984
996
|
#endif
|
985
997
|
|
986
998
|
/* Don't use for expressions have side effect */
|
@@ -1023,7 +1035,7 @@ static VALUE _mSWIG = Qnil;
|
|
1023
1035
|
exceptions. Note this only works for C++ since a global cannot be
|
1024
1036
|
initialized by a function in C. For C, fallback to rb_eRuntimeError.*/
|
1025
1037
|
|
1026
|
-
SWIGINTERN VALUE
|
1038
|
+
SWIGINTERN VALUE
|
1027
1039
|
getNullReferenceError(void) {
|
1028
1040
|
static int init = 0;
|
1029
1041
|
static VALUE rb_eNullReferenceError ;
|
@@ -1032,9 +1044,9 @@ getNullReferenceError(void) {
|
|
1032
1044
|
rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
|
1033
1045
|
}
|
1034
1046
|
return rb_eNullReferenceError;
|
1035
|
-
}
|
1047
|
+
}
|
1036
1048
|
|
1037
|
-
SWIGINTERN VALUE
|
1049
|
+
SWIGINTERN VALUE
|
1038
1050
|
getObjectPreviouslyDeletedError(void) {
|
1039
1051
|
static int init = 0;
|
1040
1052
|
static VALUE rb_eObjectPreviouslyDeleted ;
|
@@ -1043,7 +1055,7 @@ getObjectPreviouslyDeletedError(void) {
|
|
1043
1055
|
rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
|
1044
1056
|
}
|
1045
1057
|
return rb_eObjectPreviouslyDeleted;
|
1046
|
-
}
|
1058
|
+
}
|
1047
1059
|
|
1048
1060
|
|
1049
1061
|
SWIGINTERN VALUE
|
@@ -1102,10 +1114,10 @@ SWIG_Ruby_ErrorType(int SWIG_code) {
|
|
1102
1114
|
/* This function is called when a user inputs a wrong argument to
|
1103
1115
|
a method.
|
1104
1116
|
*/
|
1105
|
-
SWIGINTERN
|
1117
|
+
SWIGINTERN
|
1106
1118
|
const char* Ruby_Format_TypeError( const char* msg,
|
1107
|
-
const char* type,
|
1108
|
-
const char* name,
|
1119
|
+
const char* type,
|
1120
|
+
const char* name,
|
1109
1121
|
const int argn,
|
1110
1122
|
VALUE input )
|
1111
1123
|
{
|
@@ -1150,17 +1162,17 @@ const char* Ruby_Format_TypeError( const char* msg,
|
|
1150
1162
|
}
|
1151
1163
|
|
1152
1164
|
/* This function is called when an overloaded method fails */
|
1153
|
-
SWIGINTERN
|
1165
|
+
SWIGINTERN
|
1154
1166
|
void Ruby_Format_OverloadedError(
|
1155
1167
|
const int argc,
|
1156
1168
|
const int maxargs,
|
1157
|
-
const char* method,
|
1158
|
-
const char* prototypes
|
1169
|
+
const char* method,
|
1170
|
+
const char* prototypes
|
1159
1171
|
)
|
1160
1172
|
{
|
1161
1173
|
const char* msg = "Wrong # of arguments";
|
1162
1174
|
if ( argc <= maxargs ) msg = "Wrong arguments";
|
1163
|
-
rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
|
1175
|
+
rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
|
1164
1176
|
"Possible C/C++ prototypes are:\n%s",
|
1165
1177
|
msg, method, prototypes);
|
1166
1178
|
}
|
@@ -1199,7 +1211,7 @@ extern "C" {
|
|
1199
1211
|
*/
|
1200
1212
|
static st_table* swig_ruby_trackings = NULL;
|
1201
1213
|
|
1202
|
-
static VALUE swig_ruby_trackings_count(
|
1214
|
+
static VALUE swig_ruby_trackings_count(ID id, VALUE *var) {
|
1203
1215
|
return SWIG2NUM(swig_ruby_trackings->num_entries);
|
1204
1216
|
}
|
1205
1217
|
|
@@ -1236,7 +1248,9 @@ SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
|
|
1236
1248
|
swig_ruby_trackings = (st_table*)NUM2SWIG(trackings_value);
|
1237
1249
|
}
|
1238
1250
|
|
1239
|
-
rb_define_virtual_variable("SWIG_TRACKINGS_COUNT",
|
1251
|
+
rb_define_virtual_variable("SWIG_TRACKINGS_COUNT",
|
1252
|
+
VALUEFUNC(swig_ruby_trackings_count),
|
1253
|
+
SWIG_RUBY_VOID_ANYARGS_FUNC((rb_gvar_setter_t*)NULL));
|
1240
1254
|
}
|
1241
1255
|
|
1242
1256
|
/* Add a Tracking from a C/C++ struct to a Ruby object */
|
@@ -1268,13 +1282,14 @@ SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) {
|
|
1268
1282
|
|
1269
1283
|
/* This is a helper method that unlinks a Ruby object from its
|
1270
1284
|
underlying C++ object. This is needed if the lifetime of the
|
1271
|
-
Ruby object is longer than the C++ object */
|
1285
|
+
Ruby object is longer than the C++ object. */
|
1272
1286
|
SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
|
1273
1287
|
VALUE object = SWIG_RubyInstanceFor(ptr);
|
1274
1288
|
|
1275
1289
|
if (object != Qnil) {
|
1276
|
-
|
1277
|
-
|
1290
|
+
// object might have the T_ZOMBIE type, but that's just
|
1291
|
+
// because the GC has flagged it as such for a deferred
|
1292
|
+
// destruction. Until then, it's still a T_DATA object.
|
1278
1293
|
DATA_PTR(object) = 0;
|
1279
1294
|
}
|
1280
1295
|
}
|
@@ -1284,13 +1299,15 @@ SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
|
|
1284
1299
|
to the passed callback function. */
|
1285
1300
|
|
1286
1301
|
/* Proxy method to abstract the internal trackings datatype */
|
1287
|
-
static int swig_ruby_internal_iterate_callback(
|
1288
|
-
(*meth)(ptr, obj);
|
1302
|
+
static int swig_ruby_internal_iterate_callback(st_data_t ptr, st_data_t obj, st_data_t meth) {
|
1303
|
+
((void (*) (void *, VALUE))meth)((void *)ptr, (VALUE)obj);
|
1289
1304
|
return ST_CONTINUE;
|
1290
1305
|
}
|
1291
1306
|
|
1292
1307
|
SWIGRUNTIME void SWIG_RubyIterateTrackings( void(*meth)(void* ptr, VALUE obj) ) {
|
1293
|
-
st_foreach(swig_ruby_trackings,
|
1308
|
+
st_foreach(swig_ruby_trackings,
|
1309
|
+
SWIG_RUBY_INT_ANYARGS_FUNC(swig_ruby_internal_iterate_callback),
|
1310
|
+
(st_data_t)meth);
|
1294
1311
|
}
|
1295
1312
|
|
1296
1313
|
#ifdef __cplusplus
|
@@ -1377,18 +1394,18 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1377
1394
|
|
1378
1395
|
/* Error manipulation */
|
1379
1396
|
|
1380
|
-
#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
|
1397
|
+
#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
|
1381
1398
|
#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg)
|
1382
|
-
#define SWIG_fail goto fail
|
1399
|
+
#define SWIG_fail goto fail
|
1383
1400
|
|
1384
1401
|
|
1385
1402
|
/* Ruby-specific SWIG API */
|
1386
1403
|
|
1387
|
-
#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
|
1404
|
+
#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
|
1388
1405
|
#define SWIG_define_class(ty) SWIG_Ruby_define_class(ty)
|
1389
1406
|
#define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty)
|
1390
|
-
#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
|
1391
|
-
#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
|
1407
|
+
#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
|
1408
|
+
#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
|
1392
1409
|
|
1393
1410
|
#include "assert.h"
|
1394
1411
|
|
@@ -1419,9 +1436,9 @@ static ID swig_call_id = 0;
|
|
1419
1436
|
|
1420
1437
|
/*
|
1421
1438
|
If your swig extension is to be run within an embedded ruby and has
|
1422
|
-
director callbacks, you should set -DRUBY_EMBEDDED during compilation.
|
1423
|
-
This will reset ruby's stack frame on each entry point from the main
|
1424
|
-
program the first time a virtual director function is invoked (in a
|
1439
|
+
director callbacks, you should set -DRUBY_EMBEDDED during compilation.
|
1440
|
+
This will reset ruby's stack frame on each entry point from the main
|
1441
|
+
program the first time a virtual director function is invoked (in a
|
1425
1442
|
non-recursive way).
|
1426
1443
|
If this is not done, you run the risk of Ruby trashing the stack.
|
1427
1444
|
*/
|
@@ -1447,7 +1464,7 @@ static ID swig_call_id = 0;
|
|
1447
1464
|
#endif /* RUBY_EMBEDDED */
|
1448
1465
|
|
1449
1466
|
|
1450
|
-
SWIGRUNTIME VALUE
|
1467
|
+
SWIGRUNTIME VALUE
|
1451
1468
|
getExceptionClass(void) {
|
1452
1469
|
static int init = 0;
|
1453
1470
|
static VALUE rubyExceptionClass ;
|
@@ -1456,7 +1473,7 @@ getExceptionClass(void) {
|
|
1456
1473
|
rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
|
1457
1474
|
}
|
1458
1475
|
return rubyExceptionClass;
|
1459
|
-
}
|
1476
|
+
}
|
1460
1477
|
|
1461
1478
|
/* This code checks to see if the Ruby object being raised as part
|
1462
1479
|
of an exception inherits from the Ruby class Exception. If so,
|
@@ -1501,7 +1518,7 @@ SWIG_Ruby_define_class(swig_type_info *type)
|
|
1501
1518
|
SWIGRUNTIME VALUE
|
1502
1519
|
SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
1503
1520
|
{
|
1504
|
-
int own = flags & SWIG_POINTER_OWN;
|
1521
|
+
int own = flags & SWIG_POINTER_OWN;
|
1505
1522
|
int track;
|
1506
1523
|
char *klass_name;
|
1507
1524
|
swig_class *sklass;
|
@@ -1511,21 +1528,22 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1511
1528
|
if (!ptr)
|
1512
1529
|
return Qnil;
|
1513
1530
|
|
1531
|
+
assert(type);
|
1514
1532
|
if (type->clientdata) {
|
1515
1533
|
sklass = (swig_class *) type->clientdata;
|
1516
|
-
|
1534
|
+
|
1517
1535
|
/* Are we tracking this class and have we already returned this Ruby object? */
|
1518
1536
|
track = sklass->trackObjects;
|
1519
1537
|
if (track) {
|
1520
1538
|
obj = SWIG_RubyInstanceFor(ptr);
|
1521
1539
|
|
1522
1540
|
/* Check the object's type and make sure it has the correct type.
|
1523
|
-
It might not in cases where methods do things like
|
1541
|
+
It might not in cases where methods do things like
|
1524
1542
|
downcast methods. */
|
1525
1543
|
if (obj != Qnil) {
|
1526
1544
|
VALUE value = rb_iv_get(obj, "@__swigtype__");
|
1527
1545
|
const char* type_name = RSTRING_PTR(value);
|
1528
|
-
|
1546
|
+
|
1529
1547
|
if (strcmp(type->name, type_name) == 0) {
|
1530
1548
|
return obj;
|
1531
1549
|
}
|
@@ -1533,8 +1551,8 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1533
1551
|
}
|
1534
1552
|
|
1535
1553
|
/* Create a new Ruby object */
|
1536
|
-
obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
|
1537
|
-
( own ? VOIDFUNC(sklass->destroy) :
|
1554
|
+
obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
|
1555
|
+
( own ? VOIDFUNC(sklass->destroy) :
|
1538
1556
|
(track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
|
1539
1557
|
), ptr);
|
1540
1558
|
|
@@ -1570,6 +1588,8 @@ SWIGRUNTIMEINLINE char *
|
|
1570
1588
|
SWIG_Ruby_MangleStr(VALUE obj)
|
1571
1589
|
{
|
1572
1590
|
VALUE stype = rb_iv_get(obj, "@__swigtype__");
|
1591
|
+
if (NIL_P(stype))
|
1592
|
+
return NULL;
|
1573
1593
|
return StringValuePtr(stype);
|
1574
1594
|
}
|
1575
1595
|
|
@@ -1582,7 +1602,7 @@ typedef struct {
|
|
1582
1602
|
SWIGRUNTIME swig_ruby_owntype
|
1583
1603
|
SWIG_Ruby_AcquirePtr(VALUE obj, swig_ruby_owntype own) {
|
1584
1604
|
swig_ruby_owntype oldown = {0, 0};
|
1585
|
-
if (obj) {
|
1605
|
+
if (TYPE(obj) == T_DATA && !RTYPEDDATA_P(obj)) {
|
1586
1606
|
oldown.datafree = RDATA(obj)->dfree;
|
1587
1607
|
RDATA(obj)->dfree = own.datafree;
|
1588
1608
|
}
|
@@ -1601,23 +1621,23 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1601
1621
|
if (NIL_P(obj)) {
|
1602
1622
|
if (ptr)
|
1603
1623
|
*ptr = 0;
|
1604
|
-
return SWIG_OK;
|
1624
|
+
return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
|
1605
1625
|
} else {
|
1606
|
-
if (TYPE(obj) != T_DATA) {
|
1626
|
+
if (TYPE(obj) != T_DATA || (TYPE(obj) == T_DATA && RTYPEDDATA_P(obj))) {
|
1607
1627
|
return SWIG_ERROR;
|
1608
1628
|
}
|
1609
1629
|
Data_Get_Struct(obj, void, vptr);
|
1610
1630
|
}
|
1611
|
-
|
1631
|
+
|
1612
1632
|
if (own) {
|
1613
1633
|
own->datafree = RDATA(obj)->dfree;
|
1614
1634
|
own->own = 0;
|
1615
1635
|
}
|
1616
|
-
|
1636
|
+
|
1617
1637
|
/* Check to see if the input object is giving up ownership
|
1618
1638
|
of the underlying C struct or C++ object. If so then we
|
1619
|
-
need to reset the destructor since the Ruby object no
|
1620
|
-
longer owns the underlying C++ object.*/
|
1639
|
+
need to reset the destructor since the Ruby object no
|
1640
|
+
longer owns the underlying C++ object.*/
|
1621
1641
|
if (flags & SWIG_POINTER_DISOWN) {
|
1622
1642
|
/* Is tracking on for this class? */
|
1623
1643
|
int track = 0;
|
@@ -1625,16 +1645,16 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1625
1645
|
swig_class *sklass = (swig_class *) ty->clientdata;
|
1626
1646
|
track = sklass->trackObjects;
|
1627
1647
|
}
|
1628
|
-
|
1648
|
+
|
1629
1649
|
if (track) {
|
1630
1650
|
/* We are tracking objects for this class. Thus we change the destructor
|
1631
1651
|
* to SWIG_RubyRemoveTracking. This allows us to
|
1632
1652
|
* remove the mapping from the C++ to Ruby object
|
1633
1653
|
* when the Ruby object is garbage collected. If we don't
|
1634
|
-
* do this, then it is possible we will return a reference
|
1654
|
+
* do this, then it is possible we will return a reference
|
1635
1655
|
* to a Ruby object that no longer exists thereby crashing Ruby. */
|
1636
1656
|
RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
|
1637
|
-
} else {
|
1657
|
+
} else {
|
1638
1658
|
RDATA(obj)->dfree = 0;
|
1639
1659
|
}
|
1640
1660
|
}
|
@@ -1674,7 +1694,7 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1674
1694
|
if (ptr)
|
1675
1695
|
*ptr = vptr;
|
1676
1696
|
}
|
1677
|
-
|
1697
|
+
|
1678
1698
|
return SWIG_OK;
|
1679
1699
|
}
|
1680
1700
|
|
@@ -1698,7 +1718,7 @@ SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
|
|
1698
1718
|
return rb_str_new2(result);
|
1699
1719
|
}
|
1700
1720
|
|
1701
|
-
/* Convert a packed
|
1721
|
+
/* Convert a packed pointer value */
|
1702
1722
|
SWIGRUNTIME int
|
1703
1723
|
SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
|
1704
1724
|
swig_cast_info *tc;
|
@@ -1729,7 +1749,7 @@ SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata))
|
|
1729
1749
|
|
1730
1750
|
/* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
|
1731
1751
|
rb_gv_set("VERBOSE", Qfalse);
|
1732
|
-
|
1752
|
+
|
1733
1753
|
/* first check if pointer already created */
|
1734
1754
|
pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
|
1735
1755
|
if (pointer != Qnil) {
|
@@ -1741,7 +1761,7 @@ SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata))
|
|
1741
1761
|
return ret;
|
1742
1762
|
}
|
1743
1763
|
|
1744
|
-
SWIGRUNTIME void
|
1764
|
+
SWIGRUNTIME void
|
1745
1765
|
SWIG_Ruby_SetModule(swig_module_info *pointer)
|
1746
1766
|
{
|
1747
1767
|
/* register a new class */
|
@@ -1792,9 +1812,9 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1792
1812
|
|
1793
1813
|
|
1794
1814
|
|
1795
|
-
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
|
1815
|
+
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
|
1796
1816
|
|
1797
|
-
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
|
1817
|
+
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
|
1798
1818
|
|
1799
1819
|
|
1800
1820
|
|
@@ -1821,12 +1841,12 @@ static VALUE mWiringpi;
|
|
1821
1841
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
1822
1842
|
|
1823
1843
|
|
1824
|
-
#define SWIGVERSION
|
1844
|
+
#define SWIGVERSION 0x040002
|
1825
1845
|
#define SWIG_VERSION SWIGVERSION
|
1826
1846
|
|
1827
1847
|
|
1828
|
-
#define SWIG_as_voidptr(a) (void *)((const void *)(a))
|
1829
|
-
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
|
1848
|
+
#define SWIG_as_voidptr(a) (void *)((const void *)(a))
|
1849
|
+
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
|
1830
1850
|
|
1831
1851
|
|
1832
1852
|
#include "WiringPi/wiringPi/wiringPi.h"
|
@@ -1887,15 +1907,16 @@ static VALUE mWiringpi;
|
|
1887
1907
|
|
1888
1908
|
|
1889
1909
|
SWIGINTERN VALUE
|
1890
|
-
SWIG_ruby_failed(
|
1910
|
+
SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
|
1891
1911
|
{
|
1892
1912
|
return Qnil;
|
1893
|
-
}
|
1913
|
+
}
|
1894
1914
|
|
1895
1915
|
|
1896
|
-
/*@SWIG:/usr/share/
|
1897
|
-
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE
|
1916
|
+
/*@SWIG:/usr/local/Cellar/swig/4.0.2/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
1917
|
+
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE arg)
|
1898
1918
|
{
|
1919
|
+
VALUE *args = (VALUE *)arg;
|
1899
1920
|
VALUE obj = args[0];
|
1900
1921
|
VALUE type = TYPE(obj);
|
1901
1922
|
long *res = (long *)(args[1]);
|
@@ -1913,7 +1934,7 @@ SWIG_AsVal_long (VALUE obj, long* val)
|
|
1913
1934
|
VALUE a[2];
|
1914
1935
|
a[0] = obj;
|
1915
1936
|
a[1] = (VALUE)(&v);
|
1916
|
-
if (rb_rescue(
|
1937
|
+
if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2LONG), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
|
1917
1938
|
if (val) *val = v;
|
1918
1939
|
return SWIG_OK;
|
1919
1940
|
}
|
@@ -1933,7 +1954,7 @@ SWIG_AsVal_int (VALUE obj, int *val)
|
|
1933
1954
|
} else {
|
1934
1955
|
if (val) *val = (int)(v);
|
1935
1956
|
}
|
1936
|
-
}
|
1957
|
+
}
|
1937
1958
|
return res;
|
1938
1959
|
}
|
1939
1960
|
|
@@ -1955,7 +1976,7 @@ SWIGINTERN int
|
|
1955
1976
|
SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
1956
1977
|
{
|
1957
1978
|
if (TYPE(obj) == T_STRING) {
|
1958
|
-
char *cstr = StringValuePtr(obj);
|
1979
|
+
char *cstr = StringValuePtr(obj);
|
1959
1980
|
size_t size = RSTRING_LEN(obj) + 1;
|
1960
1981
|
if (cptr) {
|
1961
1982
|
if (alloc) {
|
@@ -1980,7 +2001,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
1980
2001
|
return SWIG_OK;
|
1981
2002
|
}
|
1982
2003
|
}
|
1983
|
-
}
|
2004
|
+
}
|
1984
2005
|
return SWIG_TypeError;
|
1985
2006
|
}
|
1986
2007
|
|
@@ -1988,33 +2009,20 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
1988
2009
|
|
1989
2010
|
|
1990
2011
|
|
1991
|
-
#define SWIG_From_long LONG2NUM
|
2012
|
+
#define SWIG_From_long LONG2NUM
|
1992
2013
|
|
1993
2014
|
|
1994
2015
|
SWIGINTERNINLINE VALUE
|
1995
2016
|
SWIG_From_int (int value)
|
1996
|
-
{
|
2017
|
+
{
|
1997
2018
|
return SWIG_From_long (value);
|
1998
2019
|
}
|
1999
2020
|
|
2000
2021
|
|
2001
|
-
|
2002
|
-
|
2003
|
-
{
|
2004
|
-
return ULONG2NUM(value);
|
2005
|
-
}
|
2006
|
-
|
2007
|
-
|
2008
|
-
SWIGINTERNINLINE VALUE
|
2009
|
-
SWIG_From_unsigned_SS_int (unsigned int value)
|
2010
|
-
{
|
2011
|
-
return SWIG_From_unsigned_SS_long (value);
|
2012
|
-
}
|
2013
|
-
|
2014
|
-
|
2015
|
-
/*@SWIG:/usr/share/swig3.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2016
|
-
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
2022
|
+
/*@SWIG:/usr/local/Cellar/swig/4.0.2/share/swig/4.0.2/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
2023
|
+
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE arg)
|
2017
2024
|
{
|
2025
|
+
VALUE *args = (VALUE *)arg;
|
2018
2026
|
VALUE obj = args[0];
|
2019
2027
|
VALUE type = TYPE(obj);
|
2020
2028
|
unsigned long *res = (unsigned long *)(args[1]);
|
@@ -2024,7 +2032,7 @@ SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
|
2024
2032
|
/*@SWIG@*/
|
2025
2033
|
|
2026
2034
|
SWIGINTERN int
|
2027
|
-
SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
2035
|
+
SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
2028
2036
|
{
|
2029
2037
|
VALUE type = TYPE(obj);
|
2030
2038
|
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
@@ -2032,7 +2040,7 @@ SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
|
2032
2040
|
VALUE a[2];
|
2033
2041
|
a[0] = obj;
|
2034
2042
|
a[1] = (VALUE)(&v);
|
2035
|
-
if (rb_rescue(
|
2043
|
+
if (rb_rescue(VALUEFUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, VALUEFUNC(SWIG_ruby_failed), 0) != Qnil) {
|
2036
2044
|
if (val) *val = v;
|
2037
2045
|
return SWIG_OK;
|
2038
2046
|
}
|
@@ -2052,11 +2060,25 @@ SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
|
|
2052
2060
|
} else {
|
2053
2061
|
if (val) *val = (unsigned int)(v);
|
2054
2062
|
}
|
2055
|
-
}
|
2063
|
+
}
|
2056
2064
|
return res;
|
2057
2065
|
}
|
2058
2066
|
|
2059
2067
|
|
2068
|
+
SWIGINTERNINLINE VALUE
|
2069
|
+
SWIG_From_unsigned_SS_long (unsigned long value)
|
2070
|
+
{
|
2071
|
+
return ULONG2NUM(value);
|
2072
|
+
}
|
2073
|
+
|
2074
|
+
|
2075
|
+
SWIGINTERNINLINE VALUE
|
2076
|
+
SWIG_From_unsigned_SS_int (unsigned int value)
|
2077
|
+
{
|
2078
|
+
return SWIG_From_unsigned_SS_long (value);
|
2079
|
+
}
|
2080
|
+
|
2081
|
+
|
2060
2082
|
SWIGINTERN int
|
2061
2083
|
SWIG_AsVal_unsigned_SS_char (VALUE obj, unsigned char *val)
|
2062
2084
|
{
|
@@ -2068,14 +2090,14 @@ SWIG_AsVal_unsigned_SS_char (VALUE obj, unsigned char *val)
|
|
2068
2090
|
} else {
|
2069
2091
|
if (val) *val = (unsigned char)(v);
|
2070
2092
|
}
|
2071
|
-
}
|
2093
|
+
}
|
2072
2094
|
return res;
|
2073
2095
|
}
|
2074
2096
|
|
2075
2097
|
|
2076
2098
|
SWIGINTERNINLINE VALUE
|
2077
2099
|
SWIG_From_unsigned_SS_char (unsigned char value)
|
2078
|
-
{
|
2100
|
+
{
|
2079
2101
|
return SWIG_From_unsigned_SS_long (value);
|
2080
2102
|
}
|
2081
2103
|
|
@@ -2091,14 +2113,14 @@ _wrap_wiringPiFailure(int argc, VALUE *argv, VALUE self) {
|
|
2091
2113
|
int alloc2 = 0 ;
|
2092
2114
|
int result;
|
2093
2115
|
VALUE vresult = Qnil;
|
2094
|
-
|
2116
|
+
|
2095
2117
|
if (argc < 2) {
|
2096
2118
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2097
2119
|
}
|
2098
2120
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2099
2121
|
if (!SWIG_IsOK(ecode1)) {
|
2100
2122
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiFailure", 1, argv[0] ));
|
2101
|
-
}
|
2123
|
+
}
|
2102
2124
|
arg1 = (int)(val1);
|
2103
2125
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
2104
2126
|
if (!SWIG_IsOK(res2)) {
|
@@ -2122,14 +2144,14 @@ _wrap_wiringPiFindNode(int argc, VALUE *argv, VALUE self) {
|
|
2122
2144
|
int ecode1 = 0 ;
|
2123
2145
|
struct wiringPiNodeStruct *result = 0 ;
|
2124
2146
|
VALUE vresult = Qnil;
|
2125
|
-
|
2147
|
+
|
2126
2148
|
if ((argc < 1) || (argc > 1)) {
|
2127
2149
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2128
2150
|
}
|
2129
2151
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2130
2152
|
if (!SWIG_IsOK(ecode1)) {
|
2131
2153
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiFindNode", 1, argv[0] ));
|
2132
|
-
}
|
2154
|
+
}
|
2133
2155
|
arg1 = (int)(val1);
|
2134
2156
|
result = (struct wiringPiNodeStruct *)wiringPiFindNode(arg1);
|
2135
2157
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wiringPiNodeStruct, 0 | 0 );
|
@@ -2149,19 +2171,19 @@ _wrap_wiringPiNewNode(int argc, VALUE *argv, VALUE self) {
|
|
2149
2171
|
int ecode2 = 0 ;
|
2150
2172
|
struct wiringPiNodeStruct *result = 0 ;
|
2151
2173
|
VALUE vresult = Qnil;
|
2152
|
-
|
2174
|
+
|
2153
2175
|
if ((argc < 2) || (argc > 2)) {
|
2154
2176
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2155
2177
|
}
|
2156
2178
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2157
2179
|
if (!SWIG_IsOK(ecode1)) {
|
2158
2180
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiNewNode", 1, argv[0] ));
|
2159
|
-
}
|
2181
|
+
}
|
2160
2182
|
arg1 = (int)(val1);
|
2161
2183
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2162
2184
|
if (!SWIG_IsOK(ecode2)) {
|
2163
2185
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiNewNode", 2, argv[1] ));
|
2164
|
-
}
|
2186
|
+
}
|
2165
2187
|
arg2 = (int)(val2);
|
2166
2188
|
result = (struct wiringPiNodeStruct *)wiringPiNewNode(arg1,arg2);
|
2167
2189
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wiringPiNodeStruct, 0 | 0 );
|
@@ -2179,18 +2201,18 @@ _wrap_wiringPiVersion(int argc, VALUE *argv, VALUE self) {
|
|
2179
2201
|
int res1 = 0 ;
|
2180
2202
|
void *argp2 = 0 ;
|
2181
2203
|
int res2 = 0 ;
|
2182
|
-
|
2204
|
+
|
2183
2205
|
if ((argc < 2) || (argc > 2)) {
|
2184
2206
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2185
2207
|
}
|
2186
2208
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_int, 0 | 0 );
|
2187
2209
|
if (!SWIG_IsOK(res1)) {
|
2188
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","wiringPiVersion", 1, argv[0] ));
|
2210
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","wiringPiVersion", 1, argv[0] ));
|
2189
2211
|
}
|
2190
2212
|
arg1 = (int *)(argp1);
|
2191
2213
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
|
2192
2214
|
if (!SWIG_IsOK(res2)) {
|
2193
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","wiringPiVersion", 2, argv[1] ));
|
2215
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","wiringPiVersion", 2, argv[1] ));
|
2194
2216
|
}
|
2195
2217
|
arg2 = (int *)(argp2);
|
2196
2218
|
wiringPiVersion(arg1,arg2);
|
@@ -2204,7 +2226,7 @@ SWIGINTERN VALUE
|
|
2204
2226
|
_wrap_wiringPiSetup(int argc, VALUE *argv, VALUE self) {
|
2205
2227
|
int result;
|
2206
2228
|
VALUE vresult = Qnil;
|
2207
|
-
|
2229
|
+
|
2208
2230
|
if ((argc < 0) || (argc > 0)) {
|
2209
2231
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2210
2232
|
}
|
@@ -2220,7 +2242,7 @@ SWIGINTERN VALUE
|
|
2220
2242
|
_wrap_wiringPiSetupSys(int argc, VALUE *argv, VALUE self) {
|
2221
2243
|
int result;
|
2222
2244
|
VALUE vresult = Qnil;
|
2223
|
-
|
2245
|
+
|
2224
2246
|
if ((argc < 0) || (argc > 0)) {
|
2225
2247
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2226
2248
|
}
|
@@ -2236,7 +2258,7 @@ SWIGINTERN VALUE
|
|
2236
2258
|
_wrap_wiringPiSetupGpio(int argc, VALUE *argv, VALUE self) {
|
2237
2259
|
int result;
|
2238
2260
|
VALUE vresult = Qnil;
|
2239
|
-
|
2261
|
+
|
2240
2262
|
if ((argc < 0) || (argc > 0)) {
|
2241
2263
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2242
2264
|
}
|
@@ -2252,7 +2274,7 @@ SWIGINTERN VALUE
|
|
2252
2274
|
_wrap_wiringPiSetupPhys(int argc, VALUE *argv, VALUE self) {
|
2253
2275
|
int result;
|
2254
2276
|
VALUE vresult = Qnil;
|
2255
|
-
|
2277
|
+
|
2256
2278
|
if ((argc < 0) || (argc > 0)) {
|
2257
2279
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2258
2280
|
}
|
@@ -2272,19 +2294,19 @@ _wrap_pinModeAlt(int argc, VALUE *argv, VALUE self) {
|
|
2272
2294
|
int ecode1 = 0 ;
|
2273
2295
|
int val2 ;
|
2274
2296
|
int ecode2 = 0 ;
|
2275
|
-
|
2297
|
+
|
2276
2298
|
if ((argc < 2) || (argc > 2)) {
|
2277
2299
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2278
2300
|
}
|
2279
2301
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2280
2302
|
if (!SWIG_IsOK(ecode1)) {
|
2281
2303
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pinModeAlt", 1, argv[0] ));
|
2282
|
-
}
|
2304
|
+
}
|
2283
2305
|
arg1 = (int)(val1);
|
2284
2306
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2285
2307
|
if (!SWIG_IsOK(ecode2)) {
|
2286
2308
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pinModeAlt", 2, argv[1] ));
|
2287
|
-
}
|
2309
|
+
}
|
2288
2310
|
arg2 = (int)(val2);
|
2289
2311
|
pinModeAlt(arg1,arg2);
|
2290
2312
|
return Qnil;
|
@@ -2301,19 +2323,19 @@ _wrap_pinMode(int argc, VALUE *argv, VALUE self) {
|
|
2301
2323
|
int ecode1 = 0 ;
|
2302
2324
|
int val2 ;
|
2303
2325
|
int ecode2 = 0 ;
|
2304
|
-
|
2326
|
+
|
2305
2327
|
if ((argc < 2) || (argc > 2)) {
|
2306
2328
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2307
2329
|
}
|
2308
2330
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2309
2331
|
if (!SWIG_IsOK(ecode1)) {
|
2310
2332
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pinMode", 1, argv[0] ));
|
2311
|
-
}
|
2333
|
+
}
|
2312
2334
|
arg1 = (int)(val1);
|
2313
2335
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2314
2336
|
if (!SWIG_IsOK(ecode2)) {
|
2315
2337
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pinMode", 2, argv[1] ));
|
2316
|
-
}
|
2338
|
+
}
|
2317
2339
|
arg2 = (int)(val2);
|
2318
2340
|
pinMode(arg1,arg2);
|
2319
2341
|
return Qnil;
|
@@ -2330,19 +2352,19 @@ _wrap_pullUpDnControl(int argc, VALUE *argv, VALUE self) {
|
|
2330
2352
|
int ecode1 = 0 ;
|
2331
2353
|
int val2 ;
|
2332
2354
|
int ecode2 = 0 ;
|
2333
|
-
|
2355
|
+
|
2334
2356
|
if ((argc < 2) || (argc > 2)) {
|
2335
2357
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2336
2358
|
}
|
2337
2359
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2338
2360
|
if (!SWIG_IsOK(ecode1)) {
|
2339
2361
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pullUpDnControl", 1, argv[0] ));
|
2340
|
-
}
|
2362
|
+
}
|
2341
2363
|
arg1 = (int)(val1);
|
2342
2364
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2343
2365
|
if (!SWIG_IsOK(ecode2)) {
|
2344
2366
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pullUpDnControl", 2, argv[1] ));
|
2345
|
-
}
|
2367
|
+
}
|
2346
2368
|
arg2 = (int)(val2);
|
2347
2369
|
pullUpDnControl(arg1,arg2);
|
2348
2370
|
return Qnil;
|
@@ -2358,14 +2380,14 @@ _wrap_digitalRead(int argc, VALUE *argv, VALUE self) {
|
|
2358
2380
|
int ecode1 = 0 ;
|
2359
2381
|
int result;
|
2360
2382
|
VALUE vresult = Qnil;
|
2361
|
-
|
2383
|
+
|
2362
2384
|
if ((argc < 1) || (argc > 1)) {
|
2363
2385
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2364
2386
|
}
|
2365
2387
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2366
2388
|
if (!SWIG_IsOK(ecode1)) {
|
2367
2389
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","digitalRead", 1, argv[0] ));
|
2368
|
-
}
|
2390
|
+
}
|
2369
2391
|
arg1 = (int)(val1);
|
2370
2392
|
result = (int)digitalRead(arg1);
|
2371
2393
|
vresult = SWIG_From_int((int)(result));
|
@@ -2383,19 +2405,19 @@ _wrap_digitalWrite(int argc, VALUE *argv, VALUE self) {
|
|
2383
2405
|
int ecode1 = 0 ;
|
2384
2406
|
int val2 ;
|
2385
2407
|
int ecode2 = 0 ;
|
2386
|
-
|
2408
|
+
|
2387
2409
|
if ((argc < 2) || (argc > 2)) {
|
2388
2410
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2389
2411
|
}
|
2390
2412
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2391
2413
|
if (!SWIG_IsOK(ecode1)) {
|
2392
2414
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","digitalWrite", 1, argv[0] ));
|
2393
|
-
}
|
2415
|
+
}
|
2394
2416
|
arg1 = (int)(val1);
|
2395
2417
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2396
2418
|
if (!SWIG_IsOK(ecode2)) {
|
2397
2419
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","digitalWrite", 2, argv[1] ));
|
2398
|
-
}
|
2420
|
+
}
|
2399
2421
|
arg2 = (int)(val2);
|
2400
2422
|
digitalWrite(arg1,arg2);
|
2401
2423
|
return Qnil;
|
@@ -2404,59 +2426,6 @@ fail:
|
|
2404
2426
|
}
|
2405
2427
|
|
2406
2428
|
|
2407
|
-
SWIGINTERN VALUE
|
2408
|
-
_wrap_digitalRead8(int argc, VALUE *argv, VALUE self) {
|
2409
|
-
int arg1 ;
|
2410
|
-
int val1 ;
|
2411
|
-
int ecode1 = 0 ;
|
2412
|
-
unsigned int result;
|
2413
|
-
VALUE vresult = Qnil;
|
2414
|
-
|
2415
|
-
if ((argc < 1) || (argc > 1)) {
|
2416
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2417
|
-
}
|
2418
|
-
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2419
|
-
if (!SWIG_IsOK(ecode1)) {
|
2420
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","digitalRead8", 1, argv[0] ));
|
2421
|
-
}
|
2422
|
-
arg1 = (int)(val1);
|
2423
|
-
result = (unsigned int)digitalRead8(arg1);
|
2424
|
-
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
|
2425
|
-
return vresult;
|
2426
|
-
fail:
|
2427
|
-
return Qnil;
|
2428
|
-
}
|
2429
|
-
|
2430
|
-
|
2431
|
-
SWIGINTERN VALUE
|
2432
|
-
_wrap_digitalWrite8(int argc, VALUE *argv, VALUE self) {
|
2433
|
-
int arg1 ;
|
2434
|
-
int arg2 ;
|
2435
|
-
int val1 ;
|
2436
|
-
int ecode1 = 0 ;
|
2437
|
-
int val2 ;
|
2438
|
-
int ecode2 = 0 ;
|
2439
|
-
|
2440
|
-
if ((argc < 2) || (argc > 2)) {
|
2441
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2442
|
-
}
|
2443
|
-
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2444
|
-
if (!SWIG_IsOK(ecode1)) {
|
2445
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","digitalWrite8", 1, argv[0] ));
|
2446
|
-
}
|
2447
|
-
arg1 = (int)(val1);
|
2448
|
-
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2449
|
-
if (!SWIG_IsOK(ecode2)) {
|
2450
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","digitalWrite8", 2, argv[1] ));
|
2451
|
-
}
|
2452
|
-
arg2 = (int)(val2);
|
2453
|
-
digitalWrite8(arg1,arg2);
|
2454
|
-
return Qnil;
|
2455
|
-
fail:
|
2456
|
-
return Qnil;
|
2457
|
-
}
|
2458
|
-
|
2459
|
-
|
2460
2429
|
SWIGINTERN VALUE
|
2461
2430
|
_wrap_pwmWrite(int argc, VALUE *argv, VALUE self) {
|
2462
2431
|
int arg1 ;
|
@@ -2465,19 +2434,19 @@ _wrap_pwmWrite(int argc, VALUE *argv, VALUE self) {
|
|
2465
2434
|
int ecode1 = 0 ;
|
2466
2435
|
int val2 ;
|
2467
2436
|
int ecode2 = 0 ;
|
2468
|
-
|
2437
|
+
|
2469
2438
|
if ((argc < 2) || (argc > 2)) {
|
2470
2439
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2471
2440
|
}
|
2472
2441
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2473
2442
|
if (!SWIG_IsOK(ecode1)) {
|
2474
2443
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pwmWrite", 1, argv[0] ));
|
2475
|
-
}
|
2444
|
+
}
|
2476
2445
|
arg1 = (int)(val1);
|
2477
2446
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2478
2447
|
if (!SWIG_IsOK(ecode2)) {
|
2479
2448
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pwmWrite", 2, argv[1] ));
|
2480
|
-
}
|
2449
|
+
}
|
2481
2450
|
arg2 = (int)(val2);
|
2482
2451
|
pwmWrite(arg1,arg2);
|
2483
2452
|
return Qnil;
|
@@ -2493,14 +2462,14 @@ _wrap_analogRead(int argc, VALUE *argv, VALUE self) {
|
|
2493
2462
|
int ecode1 = 0 ;
|
2494
2463
|
int result;
|
2495
2464
|
VALUE vresult = Qnil;
|
2496
|
-
|
2465
|
+
|
2497
2466
|
if ((argc < 1) || (argc > 1)) {
|
2498
2467
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2499
2468
|
}
|
2500
2469
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2501
2470
|
if (!SWIG_IsOK(ecode1)) {
|
2502
2471
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","analogRead", 1, argv[0] ));
|
2503
|
-
}
|
2472
|
+
}
|
2504
2473
|
arg1 = (int)(val1);
|
2505
2474
|
result = (int)analogRead(arg1);
|
2506
2475
|
vresult = SWIG_From_int((int)(result));
|
@@ -2518,19 +2487,19 @@ _wrap_analogWrite(int argc, VALUE *argv, VALUE self) {
|
|
2518
2487
|
int ecode1 = 0 ;
|
2519
2488
|
int val2 ;
|
2520
2489
|
int ecode2 = 0 ;
|
2521
|
-
|
2490
|
+
|
2522
2491
|
if ((argc < 2) || (argc > 2)) {
|
2523
2492
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2524
2493
|
}
|
2525
2494
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2526
2495
|
if (!SWIG_IsOK(ecode1)) {
|
2527
2496
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","analogWrite", 1, argv[0] ));
|
2528
|
-
}
|
2497
|
+
}
|
2529
2498
|
arg1 = (int)(val1);
|
2530
2499
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2531
2500
|
if (!SWIG_IsOK(ecode2)) {
|
2532
2501
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","analogWrite", 2, argv[1] ));
|
2533
|
-
}
|
2502
|
+
}
|
2534
2503
|
arg2 = (int)(val2);
|
2535
2504
|
analogWrite(arg1,arg2);
|
2536
2505
|
return Qnil;
|
@@ -2543,7 +2512,7 @@ SWIGINTERN VALUE
|
|
2543
2512
|
_wrap_piGpioLayout(int argc, VALUE *argv, VALUE self) {
|
2544
2513
|
int result;
|
2545
2514
|
VALUE vresult = Qnil;
|
2546
|
-
|
2515
|
+
|
2547
2516
|
if ((argc < 0) || (argc > 0)) {
|
2548
2517
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2549
2518
|
}
|
@@ -2559,7 +2528,7 @@ SWIGINTERN VALUE
|
|
2559
2528
|
_wrap_piBoardRev(int argc, VALUE *argv, VALUE self) {
|
2560
2529
|
int result;
|
2561
2530
|
VALUE vresult = Qnil;
|
2562
|
-
|
2531
|
+
|
2563
2532
|
if ((argc < 0) || (argc > 0)) {
|
2564
2533
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2565
2534
|
}
|
@@ -2588,33 +2557,33 @@ _wrap_piBoardId(int argc, VALUE *argv, VALUE self) {
|
|
2588
2557
|
int res4 = 0 ;
|
2589
2558
|
void *argp5 = 0 ;
|
2590
2559
|
int res5 = 0 ;
|
2591
|
-
|
2560
|
+
|
2592
2561
|
if ((argc < 5) || (argc > 5)) {
|
2593
2562
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
2594
2563
|
}
|
2595
2564
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_int, 0 | 0 );
|
2596
2565
|
if (!SWIG_IsOK(res1)) {
|
2597
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","piBoardId", 1, argv[0] ));
|
2566
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","piBoardId", 1, argv[0] ));
|
2598
2567
|
}
|
2599
2568
|
arg1 = (int *)(argp1);
|
2600
2569
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
|
2601
2570
|
if (!SWIG_IsOK(res2)) {
|
2602
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","piBoardId", 2, argv[1] ));
|
2571
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","piBoardId", 2, argv[1] ));
|
2603
2572
|
}
|
2604
2573
|
arg2 = (int *)(argp2);
|
2605
2574
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
|
2606
2575
|
if (!SWIG_IsOK(res3)) {
|
2607
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "int *","piBoardId", 3, argv[2] ));
|
2576
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "int *","piBoardId", 3, argv[2] ));
|
2608
2577
|
}
|
2609
2578
|
arg3 = (int *)(argp3);
|
2610
2579
|
res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_int, 0 | 0 );
|
2611
2580
|
if (!SWIG_IsOK(res4)) {
|
2612
|
-
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "int *","piBoardId", 4, argv[3] ));
|
2581
|
+
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "int *","piBoardId", 4, argv[3] ));
|
2613
2582
|
}
|
2614
2583
|
arg4 = (int *)(argp4);
|
2615
2584
|
res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_int, 0 | 0 );
|
2616
2585
|
if (!SWIG_IsOK(res5)) {
|
2617
|
-
SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "int *","piBoardId", 5, argv[4] ));
|
2586
|
+
SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "int *","piBoardId", 5, argv[4] ));
|
2618
2587
|
}
|
2619
2588
|
arg5 = (int *)(argp5);
|
2620
2589
|
piBoardId(arg1,arg2,arg3,arg4,arg5);
|
@@ -2631,14 +2600,14 @@ _wrap_wpiPinToGpio(int argc, VALUE *argv, VALUE self) {
|
|
2631
2600
|
int ecode1 = 0 ;
|
2632
2601
|
int result;
|
2633
2602
|
VALUE vresult = Qnil;
|
2634
|
-
|
2603
|
+
|
2635
2604
|
if ((argc < 1) || (argc > 1)) {
|
2636
2605
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2637
2606
|
}
|
2638
2607
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2639
2608
|
if (!SWIG_IsOK(ecode1)) {
|
2640
2609
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wpiPinToGpio", 1, argv[0] ));
|
2641
|
-
}
|
2610
|
+
}
|
2642
2611
|
arg1 = (int)(val1);
|
2643
2612
|
result = (int)wpiPinToGpio(arg1);
|
2644
2613
|
vresult = SWIG_From_int((int)(result));
|
@@ -2655,14 +2624,14 @@ _wrap_physPinToGpio(int argc, VALUE *argv, VALUE self) {
|
|
2655
2624
|
int ecode1 = 0 ;
|
2656
2625
|
int result;
|
2657
2626
|
VALUE vresult = Qnil;
|
2658
|
-
|
2627
|
+
|
2659
2628
|
if ((argc < 1) || (argc > 1)) {
|
2660
2629
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2661
2630
|
}
|
2662
2631
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2663
2632
|
if (!SWIG_IsOK(ecode1)) {
|
2664
2633
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","physPinToGpio", 1, argv[0] ));
|
2665
|
-
}
|
2634
|
+
}
|
2666
2635
|
arg1 = (int)(val1);
|
2667
2636
|
result = (int)physPinToGpio(arg1);
|
2668
2637
|
vresult = SWIG_From_int((int)(result));
|
@@ -2680,19 +2649,19 @@ _wrap_setPadDrive(int argc, VALUE *argv, VALUE self) {
|
|
2680
2649
|
int ecode1 = 0 ;
|
2681
2650
|
int val2 ;
|
2682
2651
|
int ecode2 = 0 ;
|
2683
|
-
|
2652
|
+
|
2684
2653
|
if ((argc < 2) || (argc > 2)) {
|
2685
2654
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2686
2655
|
}
|
2687
2656
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2688
2657
|
if (!SWIG_IsOK(ecode1)) {
|
2689
2658
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","setPadDrive", 1, argv[0] ));
|
2690
|
-
}
|
2659
|
+
}
|
2691
2660
|
arg1 = (int)(val1);
|
2692
2661
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2693
2662
|
if (!SWIG_IsOK(ecode2)) {
|
2694
2663
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setPadDrive", 2, argv[1] ));
|
2695
|
-
}
|
2664
|
+
}
|
2696
2665
|
arg2 = (int)(val2);
|
2697
2666
|
setPadDrive(arg1,arg2);
|
2698
2667
|
return Qnil;
|
@@ -2708,14 +2677,14 @@ _wrap_getAlt(int argc, VALUE *argv, VALUE self) {
|
|
2708
2677
|
int ecode1 = 0 ;
|
2709
2678
|
int result;
|
2710
2679
|
VALUE vresult = Qnil;
|
2711
|
-
|
2680
|
+
|
2712
2681
|
if ((argc < 1) || (argc > 1)) {
|
2713
2682
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2714
2683
|
}
|
2715
2684
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2716
2685
|
if (!SWIG_IsOK(ecode1)) {
|
2717
2686
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","getAlt", 1, argv[0] ));
|
2718
|
-
}
|
2687
|
+
}
|
2719
2688
|
arg1 = (int)(val1);
|
2720
2689
|
result = (int)getAlt(arg1);
|
2721
2690
|
vresult = SWIG_From_int((int)(result));
|
@@ -2733,19 +2702,19 @@ _wrap_pwmToneWrite(int argc, VALUE *argv, VALUE self) {
|
|
2733
2702
|
int ecode1 = 0 ;
|
2734
2703
|
int val2 ;
|
2735
2704
|
int ecode2 = 0 ;
|
2736
|
-
|
2705
|
+
|
2737
2706
|
if ((argc < 2) || (argc > 2)) {
|
2738
2707
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2739
2708
|
}
|
2740
2709
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2741
2710
|
if (!SWIG_IsOK(ecode1)) {
|
2742
2711
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pwmToneWrite", 1, argv[0] ));
|
2743
|
-
}
|
2712
|
+
}
|
2744
2713
|
arg1 = (int)(val1);
|
2745
2714
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2746
2715
|
if (!SWIG_IsOK(ecode2)) {
|
2747
2716
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pwmToneWrite", 2, argv[1] ));
|
2748
|
-
}
|
2717
|
+
}
|
2749
2718
|
arg2 = (int)(val2);
|
2750
2719
|
pwmToneWrite(arg1,arg2);
|
2751
2720
|
return Qnil;
|
@@ -2759,14 +2728,14 @@ _wrap_pwmSetMode(int argc, VALUE *argv, VALUE self) {
|
|
2759
2728
|
int arg1 ;
|
2760
2729
|
int val1 ;
|
2761
2730
|
int ecode1 = 0 ;
|
2762
|
-
|
2731
|
+
|
2763
2732
|
if ((argc < 1) || (argc > 1)) {
|
2764
2733
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2765
2734
|
}
|
2766
2735
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2767
2736
|
if (!SWIG_IsOK(ecode1)) {
|
2768
2737
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pwmSetMode", 1, argv[0] ));
|
2769
|
-
}
|
2738
|
+
}
|
2770
2739
|
arg1 = (int)(val1);
|
2771
2740
|
pwmSetMode(arg1);
|
2772
2741
|
return Qnil;
|
@@ -2780,14 +2749,14 @@ _wrap_pwmSetRange(int argc, VALUE *argv, VALUE self) {
|
|
2780
2749
|
unsigned int arg1 ;
|
2781
2750
|
unsigned int val1 ;
|
2782
2751
|
int ecode1 = 0 ;
|
2783
|
-
|
2752
|
+
|
2784
2753
|
if ((argc < 1) || (argc > 1)) {
|
2785
2754
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2786
2755
|
}
|
2787
2756
|
ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
|
2788
2757
|
if (!SWIG_IsOK(ecode1)) {
|
2789
2758
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned int","pwmSetRange", 1, argv[0] ));
|
2790
|
-
}
|
2759
|
+
}
|
2791
2760
|
arg1 = (unsigned int)(val1);
|
2792
2761
|
pwmSetRange(arg1);
|
2793
2762
|
return Qnil;
|
@@ -2801,14 +2770,14 @@ _wrap_pwmSetClock(int argc, VALUE *argv, VALUE self) {
|
|
2801
2770
|
int arg1 ;
|
2802
2771
|
int val1 ;
|
2803
2772
|
int ecode1 = 0 ;
|
2804
|
-
|
2773
|
+
|
2805
2774
|
if ((argc < 1) || (argc > 1)) {
|
2806
2775
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2807
2776
|
}
|
2808
2777
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2809
2778
|
if (!SWIG_IsOK(ecode1)) {
|
2810
2779
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pwmSetClock", 1, argv[0] ));
|
2811
|
-
}
|
2780
|
+
}
|
2812
2781
|
arg1 = (int)(val1);
|
2813
2782
|
pwmSetClock(arg1);
|
2814
2783
|
return Qnil;
|
@@ -2825,19 +2794,19 @@ _wrap_gpioClockSet(int argc, VALUE *argv, VALUE self) {
|
|
2825
2794
|
int ecode1 = 0 ;
|
2826
2795
|
int val2 ;
|
2827
2796
|
int ecode2 = 0 ;
|
2828
|
-
|
2797
|
+
|
2829
2798
|
if ((argc < 2) || (argc > 2)) {
|
2830
2799
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2831
2800
|
}
|
2832
2801
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2833
2802
|
if (!SWIG_IsOK(ecode1)) {
|
2834
2803
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","gpioClockSet", 1, argv[0] ));
|
2835
|
-
}
|
2804
|
+
}
|
2836
2805
|
arg1 = (int)(val1);
|
2837
2806
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2838
2807
|
if (!SWIG_IsOK(ecode2)) {
|
2839
2808
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","gpioClockSet", 2, argv[1] ));
|
2840
|
-
}
|
2809
|
+
}
|
2841
2810
|
arg2 = (int)(val2);
|
2842
2811
|
gpioClockSet(arg1,arg2);
|
2843
2812
|
return Qnil;
|
@@ -2850,7 +2819,7 @@ SWIGINTERN VALUE
|
|
2850
2819
|
_wrap_digitalReadByte(int argc, VALUE *argv, VALUE self) {
|
2851
2820
|
unsigned int result;
|
2852
2821
|
VALUE vresult = Qnil;
|
2853
|
-
|
2822
|
+
|
2854
2823
|
if ((argc < 0) || (argc > 0)) {
|
2855
2824
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2856
2825
|
}
|
@@ -2866,7 +2835,7 @@ SWIGINTERN VALUE
|
|
2866
2835
|
_wrap_digitalReadByte2(int argc, VALUE *argv, VALUE self) {
|
2867
2836
|
unsigned int result;
|
2868
2837
|
VALUE vresult = Qnil;
|
2869
|
-
|
2838
|
+
|
2870
2839
|
if ((argc < 0) || (argc > 0)) {
|
2871
2840
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2872
2841
|
}
|
@@ -2883,14 +2852,14 @@ _wrap_digitalWriteByte(int argc, VALUE *argv, VALUE self) {
|
|
2883
2852
|
int arg1 ;
|
2884
2853
|
int val1 ;
|
2885
2854
|
int ecode1 = 0 ;
|
2886
|
-
|
2855
|
+
|
2887
2856
|
if ((argc < 1) || (argc > 1)) {
|
2888
2857
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2889
2858
|
}
|
2890
2859
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2891
2860
|
if (!SWIG_IsOK(ecode1)) {
|
2892
2861
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","digitalWriteByte", 1, argv[0] ));
|
2893
|
-
}
|
2862
|
+
}
|
2894
2863
|
arg1 = (int)(val1);
|
2895
2864
|
digitalWriteByte(arg1);
|
2896
2865
|
return Qnil;
|
@@ -2904,14 +2873,14 @@ _wrap_digitalWriteByte2(int argc, VALUE *argv, VALUE self) {
|
|
2904
2873
|
int arg1 ;
|
2905
2874
|
int val1 ;
|
2906
2875
|
int ecode1 = 0 ;
|
2907
|
-
|
2876
|
+
|
2908
2877
|
if ((argc < 1) || (argc > 1)) {
|
2909
2878
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2910
2879
|
}
|
2911
2880
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2912
2881
|
if (!SWIG_IsOK(ecode1)) {
|
2913
2882
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","digitalWriteByte2", 1, argv[0] ));
|
2914
|
-
}
|
2883
|
+
}
|
2915
2884
|
arg1 = (int)(val1);
|
2916
2885
|
digitalWriteByte2(arg1);
|
2917
2886
|
return Qnil;
|
@@ -2930,19 +2899,19 @@ _wrap_waitForInterrupt(int argc, VALUE *argv, VALUE self) {
|
|
2930
2899
|
int ecode2 = 0 ;
|
2931
2900
|
int result;
|
2932
2901
|
VALUE vresult = Qnil;
|
2933
|
-
|
2902
|
+
|
2934
2903
|
if ((argc < 2) || (argc > 2)) {
|
2935
2904
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2936
2905
|
}
|
2937
2906
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2938
2907
|
if (!SWIG_IsOK(ecode1)) {
|
2939
2908
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","waitForInterrupt", 1, argv[0] ));
|
2940
|
-
}
|
2909
|
+
}
|
2941
2910
|
arg1 = (int)(val1);
|
2942
2911
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2943
2912
|
if (!SWIG_IsOK(ecode2)) {
|
2944
2913
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","waitForInterrupt", 2, argv[1] ));
|
2945
|
-
}
|
2914
|
+
}
|
2946
2915
|
arg2 = (int)(val2);
|
2947
2916
|
result = (int)waitForInterrupt(arg1,arg2);
|
2948
2917
|
vresult = SWIG_From_int((int)(result));
|
@@ -2957,14 +2926,14 @@ _wrap_piThreadCreate(int argc, VALUE *argv, VALUE self) {
|
|
2957
2926
|
void *(*arg1)(void *) = (void *(*)(void *)) 0 ;
|
2958
2927
|
int result;
|
2959
2928
|
VALUE vresult = Qnil;
|
2960
|
-
|
2929
|
+
|
2961
2930
|
if ((argc < 1) || (argc > 1)) {
|
2962
2931
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2963
2932
|
}
|
2964
2933
|
{
|
2965
2934
|
int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg1), SWIGTYPE_p_f_p_void__p_void);
|
2966
2935
|
if (!SWIG_IsOK(res)) {
|
2967
|
-
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void *(*)(void *)","piThreadCreate", 1, argv[0] ));
|
2936
|
+
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void *(*)(void *)","piThreadCreate", 1, argv[0] ));
|
2968
2937
|
}
|
2969
2938
|
}
|
2970
2939
|
result = (int)piThreadCreate(arg1);
|
@@ -2980,14 +2949,14 @@ _wrap_piLock(int argc, VALUE *argv, VALUE self) {
|
|
2980
2949
|
int arg1 ;
|
2981
2950
|
int val1 ;
|
2982
2951
|
int ecode1 = 0 ;
|
2983
|
-
|
2952
|
+
|
2984
2953
|
if ((argc < 1) || (argc > 1)) {
|
2985
2954
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2986
2955
|
}
|
2987
2956
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2988
2957
|
if (!SWIG_IsOK(ecode1)) {
|
2989
2958
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piLock", 1, argv[0] ));
|
2990
|
-
}
|
2959
|
+
}
|
2991
2960
|
arg1 = (int)(val1);
|
2992
2961
|
piLock(arg1);
|
2993
2962
|
return Qnil;
|
@@ -3001,14 +2970,14 @@ _wrap_piUnlock(int argc, VALUE *argv, VALUE self) {
|
|
3001
2970
|
int arg1 ;
|
3002
2971
|
int val1 ;
|
3003
2972
|
int ecode1 = 0 ;
|
3004
|
-
|
2973
|
+
|
3005
2974
|
if ((argc < 1) || (argc > 1)) {
|
3006
2975
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3007
2976
|
}
|
3008
2977
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3009
2978
|
if (!SWIG_IsOK(ecode1)) {
|
3010
2979
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piUnlock", 1, argv[0] ));
|
3011
|
-
}
|
2980
|
+
}
|
3012
2981
|
arg1 = (int)(val1);
|
3013
2982
|
piUnlock(arg1);
|
3014
2983
|
return Qnil;
|
@@ -3024,14 +2993,14 @@ _wrap_piHiPri(int argc, VALUE *argv, VALUE self) {
|
|
3024
2993
|
int ecode1 = 0 ;
|
3025
2994
|
int result;
|
3026
2995
|
VALUE vresult = Qnil;
|
3027
|
-
|
2996
|
+
|
3028
2997
|
if ((argc < 1) || (argc > 1)) {
|
3029
2998
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3030
2999
|
}
|
3031
3000
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3032
3001
|
if (!SWIG_IsOK(ecode1)) {
|
3033
3002
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piHiPri", 1, argv[0] ));
|
3034
|
-
}
|
3003
|
+
}
|
3035
3004
|
arg1 = (int)(val1);
|
3036
3005
|
result = (int)piHiPri(arg1);
|
3037
3006
|
vresult = SWIG_From_int((int)(result));
|
@@ -3046,14 +3015,14 @@ _wrap_delay(int argc, VALUE *argv, VALUE self) {
|
|
3046
3015
|
unsigned int arg1 ;
|
3047
3016
|
unsigned int val1 ;
|
3048
3017
|
int ecode1 = 0 ;
|
3049
|
-
|
3018
|
+
|
3050
3019
|
if ((argc < 1) || (argc > 1)) {
|
3051
3020
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3052
3021
|
}
|
3053
3022
|
ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
|
3054
3023
|
if (!SWIG_IsOK(ecode1)) {
|
3055
3024
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned int","delay", 1, argv[0] ));
|
3056
|
-
}
|
3025
|
+
}
|
3057
3026
|
arg1 = (unsigned int)(val1);
|
3058
3027
|
delay(arg1);
|
3059
3028
|
return Qnil;
|
@@ -3067,14 +3036,14 @@ _wrap_delayMicroseconds(int argc, VALUE *argv, VALUE self) {
|
|
3067
3036
|
unsigned int arg1 ;
|
3068
3037
|
unsigned int val1 ;
|
3069
3038
|
int ecode1 = 0 ;
|
3070
|
-
|
3039
|
+
|
3071
3040
|
if ((argc < 1) || (argc > 1)) {
|
3072
3041
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3073
3042
|
}
|
3074
3043
|
ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
|
3075
3044
|
if (!SWIG_IsOK(ecode1)) {
|
3076
3045
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned int","delayMicroseconds", 1, argv[0] ));
|
3077
|
-
}
|
3046
|
+
}
|
3078
3047
|
arg1 = (unsigned int)(val1);
|
3079
3048
|
delayMicroseconds(arg1);
|
3080
3049
|
return Qnil;
|
@@ -3087,7 +3056,7 @@ SWIGINTERN VALUE
|
|
3087
3056
|
_wrap_millis(int argc, VALUE *argv, VALUE self) {
|
3088
3057
|
unsigned int result;
|
3089
3058
|
VALUE vresult = Qnil;
|
3090
|
-
|
3059
|
+
|
3091
3060
|
if ((argc < 0) || (argc > 0)) {
|
3092
3061
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3093
3062
|
}
|
@@ -3103,7 +3072,7 @@ SWIGINTERN VALUE
|
|
3103
3072
|
_wrap_micros(int argc, VALUE *argv, VALUE self) {
|
3104
3073
|
unsigned int result;
|
3105
3074
|
VALUE vresult = Qnil;
|
3106
|
-
|
3075
|
+
|
3107
3076
|
if ((argc < 0) || (argc > 0)) {
|
3108
3077
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3109
3078
|
}
|
@@ -3122,14 +3091,14 @@ _wrap_wiringPiI2CRead(int argc, VALUE *argv, VALUE self) {
|
|
3122
3091
|
int ecode1 = 0 ;
|
3123
3092
|
int result;
|
3124
3093
|
VALUE vresult = Qnil;
|
3125
|
-
|
3094
|
+
|
3126
3095
|
if ((argc < 1) || (argc > 1)) {
|
3127
3096
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3128
3097
|
}
|
3129
3098
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3130
3099
|
if (!SWIG_IsOK(ecode1)) {
|
3131
3100
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CRead", 1, argv[0] ));
|
3132
|
-
}
|
3101
|
+
}
|
3133
3102
|
arg1 = (int)(val1);
|
3134
3103
|
result = (int)wiringPiI2CRead(arg1);
|
3135
3104
|
vresult = SWIG_From_int((int)(result));
|
@@ -3149,19 +3118,19 @@ _wrap_wiringPiI2CReadReg8(int argc, VALUE *argv, VALUE self) {
|
|
3149
3118
|
int ecode2 = 0 ;
|
3150
3119
|
int result;
|
3151
3120
|
VALUE vresult = Qnil;
|
3152
|
-
|
3121
|
+
|
3153
3122
|
if ((argc < 2) || (argc > 2)) {
|
3154
3123
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3155
3124
|
}
|
3156
3125
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3157
3126
|
if (!SWIG_IsOK(ecode1)) {
|
3158
3127
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CReadReg8", 1, argv[0] ));
|
3159
|
-
}
|
3128
|
+
}
|
3160
3129
|
arg1 = (int)(val1);
|
3161
3130
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3162
3131
|
if (!SWIG_IsOK(ecode2)) {
|
3163
3132
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CReadReg8", 2, argv[1] ));
|
3164
|
-
}
|
3133
|
+
}
|
3165
3134
|
arg2 = (int)(val2);
|
3166
3135
|
result = (int)wiringPiI2CReadReg8(arg1,arg2);
|
3167
3136
|
vresult = SWIG_From_int((int)(result));
|
@@ -3181,19 +3150,19 @@ _wrap_wiringPiI2CReadReg16(int argc, VALUE *argv, VALUE self) {
|
|
3181
3150
|
int ecode2 = 0 ;
|
3182
3151
|
int result;
|
3183
3152
|
VALUE vresult = Qnil;
|
3184
|
-
|
3153
|
+
|
3185
3154
|
if ((argc < 2) || (argc > 2)) {
|
3186
3155
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3187
3156
|
}
|
3188
3157
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3189
3158
|
if (!SWIG_IsOK(ecode1)) {
|
3190
3159
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CReadReg16", 1, argv[0] ));
|
3191
|
-
}
|
3160
|
+
}
|
3192
3161
|
arg1 = (int)(val1);
|
3193
3162
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3194
3163
|
if (!SWIG_IsOK(ecode2)) {
|
3195
3164
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CReadReg16", 2, argv[1] ));
|
3196
|
-
}
|
3165
|
+
}
|
3197
3166
|
arg2 = (int)(val2);
|
3198
3167
|
result = (int)wiringPiI2CReadReg16(arg1,arg2);
|
3199
3168
|
vresult = SWIG_From_int((int)(result));
|
@@ -3213,19 +3182,19 @@ _wrap_wiringPiI2CWrite(int argc, VALUE *argv, VALUE self) {
|
|
3213
3182
|
int ecode2 = 0 ;
|
3214
3183
|
int result;
|
3215
3184
|
VALUE vresult = Qnil;
|
3216
|
-
|
3185
|
+
|
3217
3186
|
if ((argc < 2) || (argc > 2)) {
|
3218
3187
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3219
3188
|
}
|
3220
3189
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3221
3190
|
if (!SWIG_IsOK(ecode1)) {
|
3222
3191
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CWrite", 1, argv[0] ));
|
3223
|
-
}
|
3192
|
+
}
|
3224
3193
|
arg1 = (int)(val1);
|
3225
3194
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3226
3195
|
if (!SWIG_IsOK(ecode2)) {
|
3227
3196
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CWrite", 2, argv[1] ));
|
3228
|
-
}
|
3197
|
+
}
|
3229
3198
|
arg2 = (int)(val2);
|
3230
3199
|
result = (int)wiringPiI2CWrite(arg1,arg2);
|
3231
3200
|
vresult = SWIG_From_int((int)(result));
|
@@ -3248,24 +3217,24 @@ _wrap_wiringPiI2CWriteReg8(int argc, VALUE *argv, VALUE self) {
|
|
3248
3217
|
int ecode3 = 0 ;
|
3249
3218
|
int result;
|
3250
3219
|
VALUE vresult = Qnil;
|
3251
|
-
|
3220
|
+
|
3252
3221
|
if ((argc < 3) || (argc > 3)) {
|
3253
3222
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3254
3223
|
}
|
3255
3224
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3256
3225
|
if (!SWIG_IsOK(ecode1)) {
|
3257
3226
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg8", 1, argv[0] ));
|
3258
|
-
}
|
3227
|
+
}
|
3259
3228
|
arg1 = (int)(val1);
|
3260
3229
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3261
3230
|
if (!SWIG_IsOK(ecode2)) {
|
3262
3231
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg8", 2, argv[1] ));
|
3263
|
-
}
|
3232
|
+
}
|
3264
3233
|
arg2 = (int)(val2);
|
3265
3234
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
3266
3235
|
if (!SWIG_IsOK(ecode3)) {
|
3267
3236
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg8", 3, argv[2] ));
|
3268
|
-
}
|
3237
|
+
}
|
3269
3238
|
arg3 = (int)(val3);
|
3270
3239
|
result = (int)wiringPiI2CWriteReg8(arg1,arg2,arg3);
|
3271
3240
|
vresult = SWIG_From_int((int)(result));
|
@@ -3288,24 +3257,24 @@ _wrap_wiringPiI2CWriteReg16(int argc, VALUE *argv, VALUE self) {
|
|
3288
3257
|
int ecode3 = 0 ;
|
3289
3258
|
int result;
|
3290
3259
|
VALUE vresult = Qnil;
|
3291
|
-
|
3260
|
+
|
3292
3261
|
if ((argc < 3) || (argc > 3)) {
|
3293
3262
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3294
3263
|
}
|
3295
3264
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3296
3265
|
if (!SWIG_IsOK(ecode1)) {
|
3297
3266
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg16", 1, argv[0] ));
|
3298
|
-
}
|
3267
|
+
}
|
3299
3268
|
arg1 = (int)(val1);
|
3300
3269
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3301
3270
|
if (!SWIG_IsOK(ecode2)) {
|
3302
3271
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg16", 2, argv[1] ));
|
3303
|
-
}
|
3272
|
+
}
|
3304
3273
|
arg2 = (int)(val2);
|
3305
3274
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
3306
3275
|
if (!SWIG_IsOK(ecode3)) {
|
3307
3276
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg16", 3, argv[2] ));
|
3308
|
-
}
|
3277
|
+
}
|
3309
3278
|
arg3 = (int)(val3);
|
3310
3279
|
result = (int)wiringPiI2CWriteReg16(arg1,arg2,arg3);
|
3311
3280
|
vresult = SWIG_From_int((int)(result));
|
@@ -3326,7 +3295,7 @@ _wrap_wiringPiI2CSetupInterface(int argc, VALUE *argv, VALUE self) {
|
|
3326
3295
|
int ecode2 = 0 ;
|
3327
3296
|
int result;
|
3328
3297
|
VALUE vresult = Qnil;
|
3329
|
-
|
3298
|
+
|
3330
3299
|
if ((argc < 2) || (argc > 2)) {
|
3331
3300
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3332
3301
|
}
|
@@ -3338,7 +3307,7 @@ _wrap_wiringPiI2CSetupInterface(int argc, VALUE *argv, VALUE self) {
|
|
3338
3307
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3339
3308
|
if (!SWIG_IsOK(ecode2)) {
|
3340
3309
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CSetupInterface", 2, argv[1] ));
|
3341
|
-
}
|
3310
|
+
}
|
3342
3311
|
arg2 = (int)(val2);
|
3343
3312
|
result = (int)wiringPiI2CSetupInterface((char const *)arg1,arg2);
|
3344
3313
|
vresult = SWIG_From_int((int)(result));
|
@@ -3357,14 +3326,14 @@ _wrap_wiringPiI2CSetup(int argc, VALUE *argv, VALUE self) {
|
|
3357
3326
|
int ecode1 = 0 ;
|
3358
3327
|
int result;
|
3359
3328
|
VALUE vresult = Qnil;
|
3360
|
-
|
3329
|
+
|
3361
3330
|
if ((argc < 1) || (argc > 1)) {
|
3362
3331
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3363
3332
|
}
|
3364
3333
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3365
3334
|
if (!SWIG_IsOK(ecode1)) {
|
3366
3335
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CSetup", 1, argv[0] ));
|
3367
|
-
}
|
3336
|
+
}
|
3368
3337
|
arg1 = (int)(val1);
|
3369
3338
|
result = (int)wiringPiI2CSetup(arg1);
|
3370
3339
|
vresult = SWIG_From_int((int)(result));
|
@@ -3381,14 +3350,14 @@ _wrap_wiringPiSPIGetFd(int argc, VALUE *argv, VALUE self) {
|
|
3381
3350
|
int ecode1 = 0 ;
|
3382
3351
|
int result;
|
3383
3352
|
VALUE vresult = Qnil;
|
3384
|
-
|
3353
|
+
|
3385
3354
|
if ((argc < 1) || (argc > 1)) {
|
3386
3355
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3387
3356
|
}
|
3388
3357
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3389
3358
|
if (!SWIG_IsOK(ecode1)) {
|
3390
3359
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiSPIGetFd", 1, argv[0] ));
|
3391
|
-
}
|
3360
|
+
}
|
3392
3361
|
arg1 = (int)(val1);
|
3393
3362
|
result = (int)wiringPiSPIGetFd(arg1);
|
3394
3363
|
vresult = SWIG_From_int((int)(result));
|
@@ -3407,14 +3376,14 @@ _wrap_wiringPiSPIDataRW(int argc, VALUE *argv, VALUE self) {
|
|
3407
3376
|
int ecode1 = 0 ;
|
3408
3377
|
int result;
|
3409
3378
|
VALUE vresult = Qnil;
|
3410
|
-
|
3379
|
+
|
3411
3380
|
if ((argc < 2) || (argc > 2)) {
|
3412
3381
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3413
3382
|
}
|
3414
3383
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3415
3384
|
if (!SWIG_IsOK(ecode1)) {
|
3416
3385
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiSPIDataRW", 1, argv[0] ));
|
3417
|
-
}
|
3386
|
+
}
|
3418
3387
|
arg1 = (int)(val1);
|
3419
3388
|
{
|
3420
3389
|
arg2 = StringValuePtr(argv[1]);
|
@@ -3441,24 +3410,24 @@ _wrap_wiringPiSPISetupMode(int argc, VALUE *argv, VALUE self) {
|
|
3441
3410
|
int ecode3 = 0 ;
|
3442
3411
|
int result;
|
3443
3412
|
VALUE vresult = Qnil;
|
3444
|
-
|
3413
|
+
|
3445
3414
|
if ((argc < 3) || (argc > 3)) {
|
3446
3415
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3447
3416
|
}
|
3448
3417
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3449
3418
|
if (!SWIG_IsOK(ecode1)) {
|
3450
3419
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiSPISetupMode", 1, argv[0] ));
|
3451
|
-
}
|
3420
|
+
}
|
3452
3421
|
arg1 = (int)(val1);
|
3453
3422
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3454
3423
|
if (!SWIG_IsOK(ecode2)) {
|
3455
3424
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiSPISetupMode", 2, argv[1] ));
|
3456
|
-
}
|
3425
|
+
}
|
3457
3426
|
arg2 = (int)(val2);
|
3458
3427
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
3459
3428
|
if (!SWIG_IsOK(ecode3)) {
|
3460
3429
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","wiringPiSPISetupMode", 3, argv[2] ));
|
3461
|
-
}
|
3430
|
+
}
|
3462
3431
|
arg3 = (int)(val3);
|
3463
3432
|
result = (int)wiringPiSPISetupMode(arg1,arg2,arg3);
|
3464
3433
|
vresult = SWIG_From_int((int)(result));
|
@@ -3478,19 +3447,19 @@ _wrap_wiringPiSPISetup(int argc, VALUE *argv, VALUE self) {
|
|
3478
3447
|
int ecode2 = 0 ;
|
3479
3448
|
int result;
|
3480
3449
|
VALUE vresult = Qnil;
|
3481
|
-
|
3450
|
+
|
3482
3451
|
if ((argc < 2) || (argc > 2)) {
|
3483
3452
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3484
3453
|
}
|
3485
3454
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3486
3455
|
if (!SWIG_IsOK(ecode1)) {
|
3487
3456
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiSPISetup", 1, argv[0] ));
|
3488
|
-
}
|
3457
|
+
}
|
3489
3458
|
arg1 = (int)(val1);
|
3490
3459
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3491
3460
|
if (!SWIG_IsOK(ecode2)) {
|
3492
3461
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiSPISetup", 2, argv[1] ));
|
3493
|
-
}
|
3462
|
+
}
|
3494
3463
|
arg2 = (int)(val2);
|
3495
3464
|
result = (int)wiringPiSPISetup(arg1,arg2);
|
3496
3465
|
vresult = SWIG_From_int((int)(result));
|
@@ -3511,7 +3480,7 @@ _wrap_serialOpen(int argc, VALUE *argv, VALUE self) {
|
|
3511
3480
|
int ecode2 = 0 ;
|
3512
3481
|
int result;
|
3513
3482
|
VALUE vresult = Qnil;
|
3514
|
-
|
3483
|
+
|
3515
3484
|
if ((argc < 2) || (argc > 2)) {
|
3516
3485
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3517
3486
|
}
|
@@ -3523,7 +3492,7 @@ _wrap_serialOpen(int argc, VALUE *argv, VALUE self) {
|
|
3523
3492
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3524
3493
|
if (!SWIG_IsOK(ecode2)) {
|
3525
3494
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","serialOpen", 2, argv[1] ));
|
3526
|
-
}
|
3495
|
+
}
|
3527
3496
|
arg2 = (int)(val2);
|
3528
3497
|
result = (int)serialOpen((char const *)arg1,arg2);
|
3529
3498
|
vresult = SWIG_From_int((int)(result));
|
@@ -3540,14 +3509,14 @@ _wrap_serialClose(int argc, VALUE *argv, VALUE self) {
|
|
3540
3509
|
int arg1 ;
|
3541
3510
|
int val1 ;
|
3542
3511
|
int ecode1 = 0 ;
|
3543
|
-
|
3512
|
+
|
3544
3513
|
if ((argc < 1) || (argc > 1)) {
|
3545
3514
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3546
3515
|
}
|
3547
3516
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3548
3517
|
if (!SWIG_IsOK(ecode1)) {
|
3549
3518
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialClose", 1, argv[0] ));
|
3550
|
-
}
|
3519
|
+
}
|
3551
3520
|
arg1 = (int)(val1);
|
3552
3521
|
serialClose(arg1);
|
3553
3522
|
return Qnil;
|
@@ -3561,14 +3530,14 @@ _wrap_serialFlush(int argc, VALUE *argv, VALUE self) {
|
|
3561
3530
|
int arg1 ;
|
3562
3531
|
int val1 ;
|
3563
3532
|
int ecode1 = 0 ;
|
3564
|
-
|
3533
|
+
|
3565
3534
|
if ((argc < 1) || (argc > 1)) {
|
3566
3535
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3567
3536
|
}
|
3568
3537
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3569
3538
|
if (!SWIG_IsOK(ecode1)) {
|
3570
3539
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialFlush", 1, argv[0] ));
|
3571
|
-
}
|
3540
|
+
}
|
3572
3541
|
arg1 = (int)(val1);
|
3573
3542
|
serialFlush(arg1);
|
3574
3543
|
return Qnil;
|
@@ -3585,19 +3554,19 @@ _wrap_serialPutchar(int argc, VALUE *argv, VALUE self) {
|
|
3585
3554
|
int ecode1 = 0 ;
|
3586
3555
|
unsigned char val2 ;
|
3587
3556
|
int ecode2 = 0 ;
|
3588
|
-
|
3557
|
+
|
3589
3558
|
if ((argc < 2) || (argc > 2)) {
|
3590
3559
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3591
3560
|
}
|
3592
3561
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3593
3562
|
if (!SWIG_IsOK(ecode1)) {
|
3594
3563
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialPutchar", 1, argv[0] ));
|
3595
|
-
}
|
3564
|
+
}
|
3596
3565
|
arg1 = (int)(val1);
|
3597
3566
|
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
|
3598
3567
|
if (!SWIG_IsOK(ecode2)) {
|
3599
3568
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned char","serialPutchar", 2, argv[1] ));
|
3600
|
-
}
|
3569
|
+
}
|
3601
3570
|
arg2 = (unsigned char)(val2);
|
3602
3571
|
serialPutchar(arg1,arg2);
|
3603
3572
|
return Qnil;
|
@@ -3615,14 +3584,14 @@ _wrap_serialPuts(int argc, VALUE *argv, VALUE self) {
|
|
3615
3584
|
int res2 ;
|
3616
3585
|
char *buf2 = 0 ;
|
3617
3586
|
int alloc2 = 0 ;
|
3618
|
-
|
3587
|
+
|
3619
3588
|
if ((argc < 2) || (argc > 2)) {
|
3620
3589
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3621
3590
|
}
|
3622
3591
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3623
3592
|
if (!SWIG_IsOK(ecode1)) {
|
3624
3593
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialPuts", 1, argv[0] ));
|
3625
|
-
}
|
3594
|
+
}
|
3626
3595
|
arg1 = (int)(val1);
|
3627
3596
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
3628
3597
|
if (!SWIG_IsOK(res2)) {
|
@@ -3648,14 +3617,14 @@ _wrap_serialPrintf(int argc, VALUE *argv, VALUE self) {
|
|
3648
3617
|
int res2 ;
|
3649
3618
|
char *buf2 = 0 ;
|
3650
3619
|
int alloc2 = 0 ;
|
3651
|
-
|
3620
|
+
|
3652
3621
|
if (argc < 2) {
|
3653
3622
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3654
3623
|
}
|
3655
3624
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3656
3625
|
if (!SWIG_IsOK(ecode1)) {
|
3657
3626
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialPrintf", 1, argv[0] ));
|
3658
|
-
}
|
3627
|
+
}
|
3659
3628
|
arg1 = (int)(val1);
|
3660
3629
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
3661
3630
|
if (!SWIG_IsOK(res2)) {
|
@@ -3678,14 +3647,14 @@ _wrap_serialDataAvail(int argc, VALUE *argv, VALUE self) {
|
|
3678
3647
|
int ecode1 = 0 ;
|
3679
3648
|
int result;
|
3680
3649
|
VALUE vresult = Qnil;
|
3681
|
-
|
3650
|
+
|
3682
3651
|
if ((argc < 1) || (argc > 1)) {
|
3683
3652
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3684
3653
|
}
|
3685
3654
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3686
3655
|
if (!SWIG_IsOK(ecode1)) {
|
3687
3656
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialDataAvail", 1, argv[0] ));
|
3688
|
-
}
|
3657
|
+
}
|
3689
3658
|
arg1 = (int)(val1);
|
3690
3659
|
result = (int)serialDataAvail(arg1);
|
3691
3660
|
vresult = SWIG_From_int((int)(result));
|
@@ -3702,14 +3671,14 @@ _wrap_serialGetchar(int argc, VALUE *argv, VALUE self) {
|
|
3702
3671
|
int ecode1 = 0 ;
|
3703
3672
|
int result;
|
3704
3673
|
VALUE vresult = Qnil;
|
3705
|
-
|
3674
|
+
|
3706
3675
|
if ((argc < 1) || (argc > 1)) {
|
3707
3676
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3708
3677
|
}
|
3709
3678
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3710
3679
|
if (!SWIG_IsOK(ecode1)) {
|
3711
3680
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialGetchar", 1, argv[0] ));
|
3712
|
-
}
|
3681
|
+
}
|
3713
3682
|
arg1 = (int)(val1);
|
3714
3683
|
result = (int)serialGetchar(arg1);
|
3715
3684
|
vresult = SWIG_From_int((int)(result));
|
@@ -3732,24 +3701,24 @@ _wrap_shiftIn(int argc, VALUE *argv, VALUE self) {
|
|
3732
3701
|
int ecode3 = 0 ;
|
3733
3702
|
uint8_t result;
|
3734
3703
|
VALUE vresult = Qnil;
|
3735
|
-
|
3704
|
+
|
3736
3705
|
if ((argc < 3) || (argc > 3)) {
|
3737
3706
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3738
3707
|
}
|
3739
3708
|
ecode1 = SWIG_AsVal_unsigned_SS_char(argv[0], &val1);
|
3740
3709
|
if (!SWIG_IsOK(ecode1)) {
|
3741
3710
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint8_t","shiftIn", 1, argv[0] ));
|
3742
|
-
}
|
3711
|
+
}
|
3743
3712
|
arg1 = (uint8_t)(val1);
|
3744
3713
|
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
|
3745
3714
|
if (!SWIG_IsOK(ecode2)) {
|
3746
3715
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","shiftIn", 2, argv[1] ));
|
3747
|
-
}
|
3716
|
+
}
|
3748
3717
|
arg2 = (uint8_t)(val2);
|
3749
3718
|
ecode3 = SWIG_AsVal_unsigned_SS_char(argv[2], &val3);
|
3750
3719
|
if (!SWIG_IsOK(ecode3)) {
|
3751
3720
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint8_t","shiftIn", 3, argv[2] ));
|
3752
|
-
}
|
3721
|
+
}
|
3753
3722
|
arg3 = (uint8_t)(val3);
|
3754
3723
|
result = shiftIn(arg1,arg2,arg3);
|
3755
3724
|
vresult = SWIG_From_unsigned_SS_char((unsigned char)(result));
|
@@ -3773,29 +3742,29 @@ _wrap_shiftOut(int argc, VALUE *argv, VALUE self) {
|
|
3773
3742
|
int ecode3 = 0 ;
|
3774
3743
|
unsigned char val4 ;
|
3775
3744
|
int ecode4 = 0 ;
|
3776
|
-
|
3745
|
+
|
3777
3746
|
if ((argc < 4) || (argc > 4)) {
|
3778
3747
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
3779
3748
|
}
|
3780
3749
|
ecode1 = SWIG_AsVal_unsigned_SS_char(argv[0], &val1);
|
3781
3750
|
if (!SWIG_IsOK(ecode1)) {
|
3782
3751
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint8_t","shiftOut", 1, argv[0] ));
|
3783
|
-
}
|
3752
|
+
}
|
3784
3753
|
arg1 = (uint8_t)(val1);
|
3785
3754
|
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
|
3786
3755
|
if (!SWIG_IsOK(ecode2)) {
|
3787
3756
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","shiftOut", 2, argv[1] ));
|
3788
|
-
}
|
3757
|
+
}
|
3789
3758
|
arg2 = (uint8_t)(val2);
|
3790
3759
|
ecode3 = SWIG_AsVal_unsigned_SS_char(argv[2], &val3);
|
3791
3760
|
if (!SWIG_IsOK(ecode3)) {
|
3792
3761
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint8_t","shiftOut", 3, argv[2] ));
|
3793
|
-
}
|
3762
|
+
}
|
3794
3763
|
arg3 = (uint8_t)(val3);
|
3795
3764
|
ecode4 = SWIG_AsVal_unsigned_SS_char(argv[3], &val4);
|
3796
3765
|
if (!SWIG_IsOK(ecode4)) {
|
3797
3766
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint8_t","shiftOut", 4, argv[3] ));
|
3798
|
-
}
|
3767
|
+
}
|
3799
3768
|
arg4 = (uint8_t)(val4);
|
3800
3769
|
shiftOut(arg1,arg2,arg3,arg4);
|
3801
3770
|
return Qnil;
|
@@ -3821,19 +3790,19 @@ _wrap_drcSetupSerial(int argc, VALUE *argv, VALUE self) {
|
|
3821
3790
|
int ecode4 = 0 ;
|
3822
3791
|
int result;
|
3823
3792
|
VALUE vresult = Qnil;
|
3824
|
-
|
3793
|
+
|
3825
3794
|
if ((argc < 4) || (argc > 4)) {
|
3826
3795
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
3827
3796
|
}
|
3828
3797
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3829
3798
|
if (!SWIG_IsOK(ecode1)) {
|
3830
3799
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","drcSetupSerial", 1, argv[0] ));
|
3831
|
-
}
|
3800
|
+
}
|
3832
3801
|
arg1 = (int)(val1);
|
3833
3802
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3834
3803
|
if (!SWIG_IsOK(ecode2)) {
|
3835
3804
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","drcSetupSerial", 2, argv[1] ));
|
3836
|
-
}
|
3805
|
+
}
|
3837
3806
|
arg2 = (int)(val2);
|
3838
3807
|
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
|
3839
3808
|
if (!SWIG_IsOK(res3)) {
|
@@ -3843,7 +3812,7 @@ _wrap_drcSetupSerial(int argc, VALUE *argv, VALUE self) {
|
|
3843
3812
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
3844
3813
|
if (!SWIG_IsOK(ecode4)) {
|
3845
3814
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","drcSetupSerial", 4, argv[3] ));
|
3846
|
-
}
|
3815
|
+
}
|
3847
3816
|
arg4 = (int)(val4);
|
3848
3817
|
result = (int)drcSetupSerial(arg1,arg2,(char const *)arg3,arg4);
|
3849
3818
|
vresult = SWIG_From_int((int)(result));
|
@@ -3865,19 +3834,19 @@ _wrap_ads1115Setup(int argc, VALUE *argv, VALUE self) {
|
|
3865
3834
|
int ecode2 = 0 ;
|
3866
3835
|
int result;
|
3867
3836
|
VALUE vresult = Qnil;
|
3868
|
-
|
3837
|
+
|
3869
3838
|
if ((argc < 2) || (argc > 2)) {
|
3870
3839
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3871
3840
|
}
|
3872
3841
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3873
3842
|
if (!SWIG_IsOK(ecode1)) {
|
3874
3843
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ads1115Setup", 1, argv[0] ));
|
3875
|
-
}
|
3844
|
+
}
|
3876
3845
|
arg1 = (int)(val1);
|
3877
3846
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3878
3847
|
if (!SWIG_IsOK(ecode2)) {
|
3879
3848
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ads1115Setup", 2, argv[1] ));
|
3880
|
-
}
|
3849
|
+
}
|
3881
3850
|
arg2 = (int)(val2);
|
3882
3851
|
result = (int)ads1115Setup(arg1,arg2);
|
3883
3852
|
vresult = SWIG_From_int((int)(result));
|
@@ -3897,19 +3866,19 @@ _wrap_max31855Setup(int argc, VALUE *argv, VALUE self) {
|
|
3897
3866
|
int ecode2 = 0 ;
|
3898
3867
|
int result;
|
3899
3868
|
VALUE vresult = Qnil;
|
3900
|
-
|
3869
|
+
|
3901
3870
|
if ((argc < 2) || (argc > 2)) {
|
3902
3871
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3903
3872
|
}
|
3904
3873
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3905
3874
|
if (!SWIG_IsOK(ecode1)) {
|
3906
3875
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","max31855Setup", 1, argv[0] ));
|
3907
|
-
}
|
3876
|
+
}
|
3908
3877
|
arg1 = (int)(val1);
|
3909
3878
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3910
3879
|
if (!SWIG_IsOK(ecode2)) {
|
3911
3880
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","max31855Setup", 2, argv[1] ));
|
3912
|
-
}
|
3881
|
+
}
|
3913
3882
|
arg2 = (int)(val2);
|
3914
3883
|
result = (int)max31855Setup(arg1,arg2);
|
3915
3884
|
vresult = SWIG_From_int((int)(result));
|
@@ -3929,19 +3898,19 @@ _wrap_max5322Setup(int argc, VALUE *argv, VALUE self) {
|
|
3929
3898
|
int ecode2 = 0 ;
|
3930
3899
|
int result;
|
3931
3900
|
VALUE vresult = Qnil;
|
3932
|
-
|
3901
|
+
|
3933
3902
|
if ((argc < 2) || (argc > 2)) {
|
3934
3903
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3935
3904
|
}
|
3936
3905
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3937
3906
|
if (!SWIG_IsOK(ecode1)) {
|
3938
3907
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","max5322Setup", 1, argv[0] ));
|
3939
|
-
}
|
3908
|
+
}
|
3940
3909
|
arg1 = (int)(val1);
|
3941
3910
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3942
3911
|
if (!SWIG_IsOK(ecode2)) {
|
3943
3912
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","max5322Setup", 2, argv[1] ));
|
3944
|
-
}
|
3913
|
+
}
|
3945
3914
|
arg2 = (int)(val2);
|
3946
3915
|
result = (int)max5322Setup(arg1,arg2);
|
3947
3916
|
vresult = SWIG_From_int((int)(result));
|
@@ -3961,19 +3930,19 @@ _wrap_mcp23008Setup(int argc, VALUE *argv, VALUE self) {
|
|
3961
3930
|
int ecode2 = 0 ;
|
3962
3931
|
int result;
|
3963
3932
|
VALUE vresult = Qnil;
|
3964
|
-
|
3933
|
+
|
3965
3934
|
if ((argc < 2) || (argc > 2)) {
|
3966
3935
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3967
3936
|
}
|
3968
3937
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3969
3938
|
if (!SWIG_IsOK(ecode1)) {
|
3970
3939
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp23008Setup", 1, argv[0] ));
|
3971
|
-
}
|
3940
|
+
}
|
3972
3941
|
arg1 = (int)(val1);
|
3973
3942
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3974
3943
|
if (!SWIG_IsOK(ecode2)) {
|
3975
3944
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp23008Setup", 2, argv[1] ));
|
3976
|
-
}
|
3945
|
+
}
|
3977
3946
|
arg2 = (int)(val2);
|
3978
3947
|
result = (int)mcp23008Setup(arg1,arg2);
|
3979
3948
|
vresult = SWIG_From_int((int)(result));
|
@@ -3993,19 +3962,19 @@ _wrap_mcp23016Setup(int argc, VALUE *argv, VALUE self) {
|
|
3993
3962
|
int ecode2 = 0 ;
|
3994
3963
|
int result;
|
3995
3964
|
VALUE vresult = Qnil;
|
3996
|
-
|
3965
|
+
|
3997
3966
|
if ((argc < 2) || (argc > 2)) {
|
3998
3967
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3999
3968
|
}
|
4000
3969
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4001
3970
|
if (!SWIG_IsOK(ecode1)) {
|
4002
3971
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp23016Setup", 1, argv[0] ));
|
4003
|
-
}
|
3972
|
+
}
|
4004
3973
|
arg1 = (int)(val1);
|
4005
3974
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4006
3975
|
if (!SWIG_IsOK(ecode2)) {
|
4007
3976
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp23016Setup", 2, argv[1] ));
|
4008
|
-
}
|
3977
|
+
}
|
4009
3978
|
arg2 = (int)(val2);
|
4010
3979
|
result = (int)mcp23016Setup(arg1,arg2);
|
4011
3980
|
vresult = SWIG_From_int((int)(result));
|
@@ -4025,19 +3994,19 @@ _wrap_mcp23017Setup(int argc, VALUE *argv, VALUE self) {
|
|
4025
3994
|
int ecode2 = 0 ;
|
4026
3995
|
int result;
|
4027
3996
|
VALUE vresult = Qnil;
|
4028
|
-
|
3997
|
+
|
4029
3998
|
if ((argc < 2) || (argc > 2)) {
|
4030
3999
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4031
4000
|
}
|
4032
4001
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4033
4002
|
if (!SWIG_IsOK(ecode1)) {
|
4034
4003
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp23017Setup", 1, argv[0] ));
|
4035
|
-
}
|
4004
|
+
}
|
4036
4005
|
arg1 = (int)(val1);
|
4037
4006
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4038
4007
|
if (!SWIG_IsOK(ecode2)) {
|
4039
4008
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp23017Setup", 2, argv[1] ));
|
4040
|
-
}
|
4009
|
+
}
|
4041
4010
|
arg2 = (int)(val2);
|
4042
4011
|
result = (int)mcp23017Setup(arg1,arg2);
|
4043
4012
|
vresult = SWIG_From_int((int)(result));
|
@@ -4060,24 +4029,24 @@ _wrap_mcp23s08Setup(int argc, VALUE *argv, VALUE self) {
|
|
4060
4029
|
int ecode3 = 0 ;
|
4061
4030
|
int result;
|
4062
4031
|
VALUE vresult = Qnil;
|
4063
|
-
|
4032
|
+
|
4064
4033
|
if ((argc < 3) || (argc > 3)) {
|
4065
4034
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4066
4035
|
}
|
4067
4036
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4068
4037
|
if (!SWIG_IsOK(ecode1)) {
|
4069
4038
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp23s08Setup", 1, argv[0] ));
|
4070
|
-
}
|
4039
|
+
}
|
4071
4040
|
arg1 = (int)(val1);
|
4072
4041
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4073
4042
|
if (!SWIG_IsOK(ecode2)) {
|
4074
4043
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp23s08Setup", 2, argv[1] ));
|
4075
|
-
}
|
4044
|
+
}
|
4076
4045
|
arg2 = (int)(val2);
|
4077
4046
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4078
4047
|
if (!SWIG_IsOK(ecode3)) {
|
4079
4048
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","mcp23s08Setup", 3, argv[2] ));
|
4080
|
-
}
|
4049
|
+
}
|
4081
4050
|
arg3 = (int)(val3);
|
4082
4051
|
result = (int)mcp23s08Setup(arg1,arg2,arg3);
|
4083
4052
|
vresult = SWIG_From_int((int)(result));
|
@@ -4100,24 +4069,24 @@ _wrap_mcp23s17Setup(int argc, VALUE *argv, VALUE self) {
|
|
4100
4069
|
int ecode3 = 0 ;
|
4101
4070
|
int result;
|
4102
4071
|
VALUE vresult = Qnil;
|
4103
|
-
|
4072
|
+
|
4104
4073
|
if ((argc < 3) || (argc > 3)) {
|
4105
4074
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4106
4075
|
}
|
4107
4076
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4108
4077
|
if (!SWIG_IsOK(ecode1)) {
|
4109
4078
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp23s17Setup", 1, argv[0] ));
|
4110
|
-
}
|
4079
|
+
}
|
4111
4080
|
arg1 = (int)(val1);
|
4112
4081
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4113
4082
|
if (!SWIG_IsOK(ecode2)) {
|
4114
4083
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp23s17Setup", 2, argv[1] ));
|
4115
|
-
}
|
4084
|
+
}
|
4116
4085
|
arg2 = (int)(val2);
|
4117
4086
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4118
4087
|
if (!SWIG_IsOK(ecode3)) {
|
4119
4088
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","mcp23s17Setup", 3, argv[2] ));
|
4120
|
-
}
|
4089
|
+
}
|
4121
4090
|
arg3 = (int)(val3);
|
4122
4091
|
result = (int)mcp23s17Setup(arg1,arg2,arg3);
|
4123
4092
|
vresult = SWIG_From_int((int)(result));
|
@@ -4137,19 +4106,19 @@ _wrap_mcp3002Setup(int argc, VALUE *argv, VALUE self) {
|
|
4137
4106
|
int ecode2 = 0 ;
|
4138
4107
|
int result;
|
4139
4108
|
VALUE vresult = Qnil;
|
4140
|
-
|
4109
|
+
|
4141
4110
|
if ((argc < 2) || (argc > 2)) {
|
4142
4111
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4143
4112
|
}
|
4144
4113
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4145
4114
|
if (!SWIG_IsOK(ecode1)) {
|
4146
4115
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp3002Setup", 1, argv[0] ));
|
4147
|
-
}
|
4116
|
+
}
|
4148
4117
|
arg1 = (int)(val1);
|
4149
4118
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4150
4119
|
if (!SWIG_IsOK(ecode2)) {
|
4151
4120
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp3002Setup", 2, argv[1] ));
|
4152
|
-
}
|
4121
|
+
}
|
4153
4122
|
arg2 = (int)(val2);
|
4154
4123
|
result = (int)mcp3002Setup(arg1,arg2);
|
4155
4124
|
vresult = SWIG_From_int((int)(result));
|
@@ -4169,19 +4138,19 @@ _wrap_mcp3004Setup(int argc, VALUE *argv, VALUE self) {
|
|
4169
4138
|
int ecode2 = 0 ;
|
4170
4139
|
int result;
|
4171
4140
|
VALUE vresult = Qnil;
|
4172
|
-
|
4141
|
+
|
4173
4142
|
if ((argc < 2) || (argc > 2)) {
|
4174
4143
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4175
4144
|
}
|
4176
4145
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4177
4146
|
if (!SWIG_IsOK(ecode1)) {
|
4178
4147
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp3004Setup", 1, argv[0] ));
|
4179
|
-
}
|
4148
|
+
}
|
4180
4149
|
arg1 = (int)(val1);
|
4181
4150
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4182
4151
|
if (!SWIG_IsOK(ecode2)) {
|
4183
4152
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp3004Setup", 2, argv[1] ));
|
4184
|
-
}
|
4153
|
+
}
|
4185
4154
|
arg2 = (int)(val2);
|
4186
4155
|
result = (int)mcp3004Setup(arg1,arg2);
|
4187
4156
|
vresult = SWIG_From_int((int)(result));
|
@@ -4207,29 +4176,29 @@ _wrap_mcp3422Setup(int argc, VALUE *argv, VALUE self) {
|
|
4207
4176
|
int ecode4 = 0 ;
|
4208
4177
|
int result;
|
4209
4178
|
VALUE vresult = Qnil;
|
4210
|
-
|
4179
|
+
|
4211
4180
|
if ((argc < 4) || (argc > 4)) {
|
4212
4181
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
4213
4182
|
}
|
4214
4183
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4215
4184
|
if (!SWIG_IsOK(ecode1)) {
|
4216
4185
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp3422Setup", 1, argv[0] ));
|
4217
|
-
}
|
4186
|
+
}
|
4218
4187
|
arg1 = (int)(val1);
|
4219
4188
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4220
4189
|
if (!SWIG_IsOK(ecode2)) {
|
4221
4190
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp3422Setup", 2, argv[1] ));
|
4222
|
-
}
|
4191
|
+
}
|
4223
4192
|
arg2 = (int)(val2);
|
4224
4193
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4225
4194
|
if (!SWIG_IsOK(ecode3)) {
|
4226
4195
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","mcp3422Setup", 3, argv[2] ));
|
4227
|
-
}
|
4196
|
+
}
|
4228
4197
|
arg3 = (int)(val3);
|
4229
4198
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
4230
4199
|
if (!SWIG_IsOK(ecode4)) {
|
4231
4200
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","mcp3422Setup", 4, argv[3] ));
|
4232
|
-
}
|
4201
|
+
}
|
4233
4202
|
arg4 = (int)(val4);
|
4234
4203
|
result = (int)mcp3422Setup(arg1,arg2,arg3,arg4);
|
4235
4204
|
vresult = SWIG_From_int((int)(result));
|
@@ -4249,19 +4218,19 @@ _wrap_mcp4802Setup(int argc, VALUE *argv, VALUE self) {
|
|
4249
4218
|
int ecode2 = 0 ;
|
4250
4219
|
int result;
|
4251
4220
|
VALUE vresult = Qnil;
|
4252
|
-
|
4221
|
+
|
4253
4222
|
if ((argc < 2) || (argc > 2)) {
|
4254
4223
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4255
4224
|
}
|
4256
4225
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4257
4226
|
if (!SWIG_IsOK(ecode1)) {
|
4258
4227
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp4802Setup", 1, argv[0] ));
|
4259
|
-
}
|
4228
|
+
}
|
4260
4229
|
arg1 = (int)(val1);
|
4261
4230
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4262
4231
|
if (!SWIG_IsOK(ecode2)) {
|
4263
4232
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp4802Setup", 2, argv[1] ));
|
4264
|
-
}
|
4233
|
+
}
|
4265
4234
|
arg2 = (int)(val2);
|
4266
4235
|
result = (int)mcp4802Setup(arg1,arg2);
|
4267
4236
|
vresult = SWIG_From_int((int)(result));
|
@@ -4281,19 +4250,19 @@ _wrap_pcf8574Setup(int argc, VALUE *argv, VALUE self) {
|
|
4281
4250
|
int ecode2 = 0 ;
|
4282
4251
|
int result;
|
4283
4252
|
VALUE vresult = Qnil;
|
4284
|
-
|
4253
|
+
|
4285
4254
|
if ((argc < 2) || (argc > 2)) {
|
4286
4255
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4287
4256
|
}
|
4288
4257
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4289
4258
|
if (!SWIG_IsOK(ecode1)) {
|
4290
4259
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pcf8574Setup", 1, argv[0] ));
|
4291
|
-
}
|
4260
|
+
}
|
4292
4261
|
arg1 = (int)(val1);
|
4293
4262
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4294
4263
|
if (!SWIG_IsOK(ecode2)) {
|
4295
4264
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pcf8574Setup", 2, argv[1] ));
|
4296
|
-
}
|
4265
|
+
}
|
4297
4266
|
arg2 = (int)(val2);
|
4298
4267
|
result = (int)pcf8574Setup(arg1,arg2);
|
4299
4268
|
vresult = SWIG_From_int((int)(result));
|
@@ -4313,19 +4282,19 @@ _wrap_pcf8591Setup(int argc, VALUE *argv, VALUE self) {
|
|
4313
4282
|
int ecode2 = 0 ;
|
4314
4283
|
int result;
|
4315
4284
|
VALUE vresult = Qnil;
|
4316
|
-
|
4285
|
+
|
4317
4286
|
if ((argc < 2) || (argc > 2)) {
|
4318
4287
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4319
4288
|
}
|
4320
4289
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4321
4290
|
if (!SWIG_IsOK(ecode1)) {
|
4322
4291
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pcf8591Setup", 1, argv[0] ));
|
4323
|
-
}
|
4292
|
+
}
|
4324
4293
|
arg1 = (int)(val1);
|
4325
4294
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4326
4295
|
if (!SWIG_IsOK(ecode2)) {
|
4327
4296
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pcf8591Setup", 2, argv[1] ));
|
4328
|
-
}
|
4297
|
+
}
|
4329
4298
|
arg2 = (int)(val2);
|
4330
4299
|
result = (int)pcf8591Setup(arg1,arg2);
|
4331
4300
|
vresult = SWIG_From_int((int)(result));
|
@@ -4342,14 +4311,14 @@ _wrap_sn3218Setup(int argc, VALUE *argv, VALUE self) {
|
|
4342
4311
|
int ecode1 = 0 ;
|
4343
4312
|
int result;
|
4344
4313
|
VALUE vresult = Qnil;
|
4345
|
-
|
4314
|
+
|
4346
4315
|
if ((argc < 1) || (argc > 1)) {
|
4347
4316
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4348
4317
|
}
|
4349
4318
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4350
4319
|
if (!SWIG_IsOK(ecode1)) {
|
4351
4320
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","sn3218Setup", 1, argv[0] ));
|
4352
|
-
}
|
4321
|
+
}
|
4353
4322
|
arg1 = (int)(val1);
|
4354
4323
|
result = (int)sn3218Setup(arg1);
|
4355
4324
|
vresult = SWIG_From_int((int)(result));
|
@@ -4372,24 +4341,24 @@ _wrap_softPwmCreate(int argc, VALUE *argv, VALUE self) {
|
|
4372
4341
|
int ecode3 = 0 ;
|
4373
4342
|
int result;
|
4374
4343
|
VALUE vresult = Qnil;
|
4375
|
-
|
4344
|
+
|
4376
4345
|
if ((argc < 3) || (argc > 3)) {
|
4377
4346
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4378
4347
|
}
|
4379
4348
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4380
4349
|
if (!SWIG_IsOK(ecode1)) {
|
4381
4350
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softPwmCreate", 1, argv[0] ));
|
4382
|
-
}
|
4351
|
+
}
|
4383
4352
|
arg1 = (int)(val1);
|
4384
4353
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4385
4354
|
if (!SWIG_IsOK(ecode2)) {
|
4386
4355
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","softPwmCreate", 2, argv[1] ));
|
4387
|
-
}
|
4356
|
+
}
|
4388
4357
|
arg2 = (int)(val2);
|
4389
4358
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4390
4359
|
if (!SWIG_IsOK(ecode3)) {
|
4391
4360
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","softPwmCreate", 3, argv[2] ));
|
4392
|
-
}
|
4361
|
+
}
|
4393
4362
|
arg3 = (int)(val3);
|
4394
4363
|
result = (int)softPwmCreate(arg1,arg2,arg3);
|
4395
4364
|
vresult = SWIG_From_int((int)(result));
|
@@ -4407,19 +4376,19 @@ _wrap_softPwmWrite(int argc, VALUE *argv, VALUE self) {
|
|
4407
4376
|
int ecode1 = 0 ;
|
4408
4377
|
int val2 ;
|
4409
4378
|
int ecode2 = 0 ;
|
4410
|
-
|
4379
|
+
|
4411
4380
|
if ((argc < 2) || (argc > 2)) {
|
4412
4381
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4413
4382
|
}
|
4414
4383
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4415
4384
|
if (!SWIG_IsOK(ecode1)) {
|
4416
4385
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softPwmWrite", 1, argv[0] ));
|
4417
|
-
}
|
4386
|
+
}
|
4418
4387
|
arg1 = (int)(val1);
|
4419
4388
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4420
4389
|
if (!SWIG_IsOK(ecode2)) {
|
4421
4390
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","softPwmWrite", 2, argv[1] ));
|
4422
|
-
}
|
4391
|
+
}
|
4423
4392
|
arg2 = (int)(val2);
|
4424
4393
|
softPwmWrite(arg1,arg2);
|
4425
4394
|
return Qnil;
|
@@ -4433,14 +4402,14 @@ _wrap_softPwmStop(int argc, VALUE *argv, VALUE self) {
|
|
4433
4402
|
int arg1 ;
|
4434
4403
|
int val1 ;
|
4435
4404
|
int ecode1 = 0 ;
|
4436
|
-
|
4405
|
+
|
4437
4406
|
if ((argc < 1) || (argc > 1)) {
|
4438
4407
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4439
4408
|
}
|
4440
4409
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4441
4410
|
if (!SWIG_IsOK(ecode1)) {
|
4442
4411
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softPwmStop", 1, argv[0] ));
|
4443
|
-
}
|
4412
|
+
}
|
4444
4413
|
arg1 = (int)(val1);
|
4445
4414
|
softPwmStop(arg1);
|
4446
4415
|
return Qnil;
|
@@ -4457,19 +4426,19 @@ _wrap_softServoWrite(int argc, VALUE *argv, VALUE self) {
|
|
4457
4426
|
int ecode1 = 0 ;
|
4458
4427
|
int val2 ;
|
4459
4428
|
int ecode2 = 0 ;
|
4460
|
-
|
4429
|
+
|
4461
4430
|
if ((argc < 2) || (argc > 2)) {
|
4462
4431
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4463
4432
|
}
|
4464
4433
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4465
4434
|
if (!SWIG_IsOK(ecode1)) {
|
4466
4435
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softServoWrite", 1, argv[0] ));
|
4467
|
-
}
|
4436
|
+
}
|
4468
4437
|
arg1 = (int)(val1);
|
4469
4438
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4470
4439
|
if (!SWIG_IsOK(ecode2)) {
|
4471
4440
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","softServoWrite", 2, argv[1] ));
|
4472
|
-
}
|
4441
|
+
}
|
4473
4442
|
arg2 = (int)(val2);
|
4474
4443
|
softServoWrite(arg1,arg2);
|
4475
4444
|
return Qnil;
|
@@ -4506,49 +4475,49 @@ _wrap_softServoSetup(int argc, VALUE *argv, VALUE self) {
|
|
4506
4475
|
int ecode8 = 0 ;
|
4507
4476
|
int result;
|
4508
4477
|
VALUE vresult = Qnil;
|
4509
|
-
|
4478
|
+
|
4510
4479
|
if ((argc < 8) || (argc > 8)) {
|
4511
4480
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
|
4512
4481
|
}
|
4513
4482
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4514
4483
|
if (!SWIG_IsOK(ecode1)) {
|
4515
4484
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softServoSetup", 1, argv[0] ));
|
4516
|
-
}
|
4485
|
+
}
|
4517
4486
|
arg1 = (int)(val1);
|
4518
4487
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4519
4488
|
if (!SWIG_IsOK(ecode2)) {
|
4520
4489
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","softServoSetup", 2, argv[1] ));
|
4521
|
-
}
|
4490
|
+
}
|
4522
4491
|
arg2 = (int)(val2);
|
4523
4492
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4524
4493
|
if (!SWIG_IsOK(ecode3)) {
|
4525
4494
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","softServoSetup", 3, argv[2] ));
|
4526
|
-
}
|
4495
|
+
}
|
4527
4496
|
arg3 = (int)(val3);
|
4528
4497
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
4529
4498
|
if (!SWIG_IsOK(ecode4)) {
|
4530
4499
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","softServoSetup", 4, argv[3] ));
|
4531
|
-
}
|
4500
|
+
}
|
4532
4501
|
arg4 = (int)(val4);
|
4533
4502
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
4534
4503
|
if (!SWIG_IsOK(ecode5)) {
|
4535
4504
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","softServoSetup", 5, argv[4] ));
|
4536
|
-
}
|
4505
|
+
}
|
4537
4506
|
arg5 = (int)(val5);
|
4538
4507
|
ecode6 = SWIG_AsVal_int(argv[5], &val6);
|
4539
4508
|
if (!SWIG_IsOK(ecode6)) {
|
4540
4509
|
SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","softServoSetup", 6, argv[5] ));
|
4541
|
-
}
|
4510
|
+
}
|
4542
4511
|
arg6 = (int)(val6);
|
4543
4512
|
ecode7 = SWIG_AsVal_int(argv[6], &val7);
|
4544
4513
|
if (!SWIG_IsOK(ecode7)) {
|
4545
4514
|
SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","softServoSetup", 7, argv[6] ));
|
4546
|
-
}
|
4515
|
+
}
|
4547
4516
|
arg7 = (int)(val7);
|
4548
4517
|
ecode8 = SWIG_AsVal_int(argv[7], &val8);
|
4549
4518
|
if (!SWIG_IsOK(ecode8)) {
|
4550
4519
|
SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "int","softServoSetup", 8, argv[7] ));
|
4551
|
-
}
|
4520
|
+
}
|
4552
4521
|
arg8 = (int)(val8);
|
4553
4522
|
result = (int)softServoSetup(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
4554
4523
|
vresult = SWIG_From_int((int)(result));
|
@@ -4565,14 +4534,14 @@ _wrap_softToneCreate(int argc, VALUE *argv, VALUE self) {
|
|
4565
4534
|
int ecode1 = 0 ;
|
4566
4535
|
int result;
|
4567
4536
|
VALUE vresult = Qnil;
|
4568
|
-
|
4537
|
+
|
4569
4538
|
if ((argc < 1) || (argc > 1)) {
|
4570
4539
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4571
4540
|
}
|
4572
4541
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4573
4542
|
if (!SWIG_IsOK(ecode1)) {
|
4574
4543
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softToneCreate", 1, argv[0] ));
|
4575
|
-
}
|
4544
|
+
}
|
4576
4545
|
arg1 = (int)(val1);
|
4577
4546
|
result = (int)softToneCreate(arg1);
|
4578
4547
|
vresult = SWIG_From_int((int)(result));
|
@@ -4587,14 +4556,14 @@ _wrap_softToneStop(int argc, VALUE *argv, VALUE self) {
|
|
4587
4556
|
int arg1 ;
|
4588
4557
|
int val1 ;
|
4589
4558
|
int ecode1 = 0 ;
|
4590
|
-
|
4559
|
+
|
4591
4560
|
if ((argc < 1) || (argc > 1)) {
|
4592
4561
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4593
4562
|
}
|
4594
4563
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4595
4564
|
if (!SWIG_IsOK(ecode1)) {
|
4596
4565
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softToneStop", 1, argv[0] ));
|
4597
|
-
}
|
4566
|
+
}
|
4598
4567
|
arg1 = (int)(val1);
|
4599
4568
|
softToneStop(arg1);
|
4600
4569
|
return Qnil;
|
@@ -4611,19 +4580,19 @@ _wrap_softToneWrite(int argc, VALUE *argv, VALUE self) {
|
|
4611
4580
|
int ecode1 = 0 ;
|
4612
4581
|
int val2 ;
|
4613
4582
|
int ecode2 = 0 ;
|
4614
|
-
|
4583
|
+
|
4615
4584
|
if ((argc < 2) || (argc > 2)) {
|
4616
4585
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4617
4586
|
}
|
4618
4587
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4619
4588
|
if (!SWIG_IsOK(ecode1)) {
|
4620
4589
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softToneWrite", 1, argv[0] ));
|
4621
|
-
}
|
4590
|
+
}
|
4622
4591
|
arg1 = (int)(val1);
|
4623
4592
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4624
4593
|
if (!SWIG_IsOK(ecode2)) {
|
4625
4594
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","softToneWrite", 2, argv[1] ));
|
4626
|
-
}
|
4595
|
+
}
|
4627
4596
|
arg2 = (int)(val2);
|
4628
4597
|
softToneWrite(arg1,arg2);
|
4629
4598
|
return Qnil;
|
@@ -4651,34 +4620,34 @@ _wrap_sr595Setup(int argc, VALUE *argv, VALUE self) {
|
|
4651
4620
|
int ecode5 = 0 ;
|
4652
4621
|
int result;
|
4653
4622
|
VALUE vresult = Qnil;
|
4654
|
-
|
4623
|
+
|
4655
4624
|
if ((argc < 5) || (argc > 5)) {
|
4656
4625
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
4657
4626
|
}
|
4658
4627
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4659
4628
|
if (!SWIG_IsOK(ecode1)) {
|
4660
4629
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","sr595Setup", 1, argv[0] ));
|
4661
|
-
}
|
4630
|
+
}
|
4662
4631
|
arg1 = (int)(val1);
|
4663
4632
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4664
4633
|
if (!SWIG_IsOK(ecode2)) {
|
4665
4634
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","sr595Setup", 2, argv[1] ));
|
4666
|
-
}
|
4635
|
+
}
|
4667
4636
|
arg2 = (int)(val2);
|
4668
4637
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4669
4638
|
if (!SWIG_IsOK(ecode3)) {
|
4670
4639
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","sr595Setup", 3, argv[2] ));
|
4671
|
-
}
|
4640
|
+
}
|
4672
4641
|
arg3 = (int)(val3);
|
4673
4642
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
4674
4643
|
if (!SWIG_IsOK(ecode4)) {
|
4675
4644
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","sr595Setup", 4, argv[3] ));
|
4676
|
-
}
|
4645
|
+
}
|
4677
4646
|
arg4 = (int)(val4);
|
4678
4647
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
4679
4648
|
if (!SWIG_IsOK(ecode5)) {
|
4680
4649
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","sr595Setup", 5, argv[4] ));
|
4681
|
-
}
|
4650
|
+
}
|
4682
4651
|
arg5 = (int)(val5);
|
4683
4652
|
result = (int)sr595Setup(arg1,arg2,arg3,arg4,arg5);
|
4684
4653
|
vresult = SWIG_From_int((int)(result));
|
@@ -4695,14 +4664,14 @@ _wrap_bmp180Setup(int argc, VALUE *argv, VALUE self) {
|
|
4695
4664
|
int ecode1 = 0 ;
|
4696
4665
|
int result;
|
4697
4666
|
VALUE vresult = Qnil;
|
4698
|
-
|
4667
|
+
|
4699
4668
|
if ((argc < 1) || (argc > 1)) {
|
4700
4669
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4701
4670
|
}
|
4702
4671
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4703
4672
|
if (!SWIG_IsOK(ecode1)) {
|
4704
4673
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","bmp180Setup", 1, argv[0] ));
|
4705
|
-
}
|
4674
|
+
}
|
4706
4675
|
arg1 = (int)(val1);
|
4707
4676
|
result = (int)bmp180Setup(arg1);
|
4708
4677
|
vresult = SWIG_From_int((int)(result));
|
@@ -4734,19 +4703,19 @@ _wrap_drcSetupNet(int argc, VALUE *argv, VALUE self) {
|
|
4734
4703
|
int alloc5 = 0 ;
|
4735
4704
|
int result;
|
4736
4705
|
VALUE vresult = Qnil;
|
4737
|
-
|
4706
|
+
|
4738
4707
|
if ((argc < 5) || (argc > 5)) {
|
4739
4708
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
4740
4709
|
}
|
4741
4710
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4742
4711
|
if (!SWIG_IsOK(ecode1)) {
|
4743
4712
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","drcSetupNet", 1, argv[0] ));
|
4744
|
-
}
|
4713
|
+
}
|
4745
4714
|
arg1 = (int)(val1);
|
4746
4715
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4747
4716
|
if (!SWIG_IsOK(ecode2)) {
|
4748
4717
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","drcSetupNet", 2, argv[1] ));
|
4749
|
-
}
|
4718
|
+
}
|
4750
4719
|
arg2 = (int)(val2);
|
4751
4720
|
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
|
4752
4721
|
if (!SWIG_IsOK(res3)) {
|
@@ -4788,14 +4757,14 @@ _wrap_ds18b20Setup(int argc, VALUE *argv, VALUE self) {
|
|
4788
4757
|
int alloc2 = 0 ;
|
4789
4758
|
int result;
|
4790
4759
|
VALUE vresult = Qnil;
|
4791
|
-
|
4760
|
+
|
4792
4761
|
if ((argc < 2) || (argc > 2)) {
|
4793
4762
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4794
4763
|
}
|
4795
4764
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4796
4765
|
if (!SWIG_IsOK(ecode1)) {
|
4797
4766
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ds18b20Setup", 1, argv[0] ));
|
4798
|
-
}
|
4767
|
+
}
|
4799
4768
|
arg1 = (int)(val1);
|
4800
4769
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
4801
4770
|
if (!SWIG_IsOK(res2)) {
|
@@ -4819,14 +4788,14 @@ _wrap_htu21dSetup(int argc, VALUE *argv, VALUE self) {
|
|
4819
4788
|
int ecode1 = 0 ;
|
4820
4789
|
int result;
|
4821
4790
|
VALUE vresult = Qnil;
|
4822
|
-
|
4791
|
+
|
4823
4792
|
if ((argc < 1) || (argc > 1)) {
|
4824
4793
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4825
4794
|
}
|
4826
4795
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4827
4796
|
if (!SWIG_IsOK(ecode1)) {
|
4828
4797
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","htu21dSetup", 1, argv[0] ));
|
4829
|
-
}
|
4798
|
+
}
|
4830
4799
|
arg1 = (int)(val1);
|
4831
4800
|
result = (int)htu21dSetup(arg1);
|
4832
4801
|
vresult = SWIG_From_int((int)(result));
|
@@ -4843,14 +4812,14 @@ _wrap_pseudoPinsSetup(int argc, VALUE *argv, VALUE self) {
|
|
4843
4812
|
int ecode1 = 0 ;
|
4844
4813
|
int result;
|
4845
4814
|
VALUE vresult = Qnil;
|
4846
|
-
|
4815
|
+
|
4847
4816
|
if ((argc < 1) || (argc > 1)) {
|
4848
4817
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4849
4818
|
}
|
4850
4819
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4851
4820
|
if (!SWIG_IsOK(ecode1)) {
|
4852
4821
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pseudoPinsSetup", 1, argv[0] ));
|
4853
|
-
}
|
4822
|
+
}
|
4854
4823
|
arg1 = (int)(val1);
|
4855
4824
|
result = (int)pseudoPinsSetup(arg1);
|
4856
4825
|
vresult = SWIG_From_int((int)(result));
|
@@ -4870,19 +4839,19 @@ _wrap_rht03Setup(int argc, VALUE *argv, VALUE self) {
|
|
4870
4839
|
int ecode2 = 0 ;
|
4871
4840
|
int result;
|
4872
4841
|
VALUE vresult = Qnil;
|
4873
|
-
|
4842
|
+
|
4874
4843
|
if ((argc < 2) || (argc > 2)) {
|
4875
4844
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4876
4845
|
}
|
4877
4846
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4878
4847
|
if (!SWIG_IsOK(ecode1)) {
|
4879
4848
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","rht03Setup", 1, argv[0] ));
|
4880
|
-
}
|
4849
|
+
}
|
4881
4850
|
arg1 = (int)(val1);
|
4882
4851
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4883
4852
|
if (!SWIG_IsOK(ecode2)) {
|
4884
4853
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","rht03Setup", 2, argv[1] ));
|
4885
|
-
}
|
4854
|
+
}
|
4886
4855
|
arg2 = (int)(val2);
|
4887
4856
|
result = (int)rht03Setup(arg1,arg2);
|
4888
4857
|
vresult = SWIG_From_int((int)(result));
|
@@ -4907,7 +4876,7 @@ _wrap_loadWPiExtension(int argc, VALUE *argv, VALUE self) {
|
|
4907
4876
|
int ecode3 = 0 ;
|
4908
4877
|
int result;
|
4909
4878
|
VALUE vresult = Qnil;
|
4910
|
-
|
4879
|
+
|
4911
4880
|
if ((argc < 3) || (argc > 3)) {
|
4912
4881
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4913
4882
|
}
|
@@ -4924,7 +4893,7 @@ _wrap_loadWPiExtension(int argc, VALUE *argv, VALUE self) {
|
|
4924
4893
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4925
4894
|
if (!SWIG_IsOK(ecode3)) {
|
4926
4895
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","loadWPiExtension", 3, argv[2] ));
|
4927
|
-
}
|
4896
|
+
}
|
4928
4897
|
arg3 = (int)(val3);
|
4929
4898
|
result = (int)loadWPiExtension(arg1,arg2,arg3);
|
4930
4899
|
vresult = SWIG_From_int((int)(result));
|
@@ -4945,14 +4914,14 @@ _wrap_ds1302rtcRead(int argc, VALUE *argv, VALUE self) {
|
|
4945
4914
|
int ecode1 = 0 ;
|
4946
4915
|
unsigned int result;
|
4947
4916
|
VALUE vresult = Qnil;
|
4948
|
-
|
4917
|
+
|
4949
4918
|
if ((argc < 1) || (argc > 1)) {
|
4950
4919
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4951
4920
|
}
|
4952
4921
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4953
4922
|
if (!SWIG_IsOK(ecode1)) {
|
4954
4923
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ds1302rtcRead", 1, argv[0] ));
|
4955
|
-
}
|
4924
|
+
}
|
4956
4925
|
arg1 = (int)(val1);
|
4957
4926
|
result = (unsigned int)ds1302rtcRead(arg1);
|
4958
4927
|
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
|
@@ -4970,19 +4939,19 @@ _wrap_ds1302rtcWrite(int argc, VALUE *argv, VALUE self) {
|
|
4970
4939
|
int ecode1 = 0 ;
|
4971
4940
|
unsigned int val2 ;
|
4972
4941
|
int ecode2 = 0 ;
|
4973
|
-
|
4942
|
+
|
4974
4943
|
if ((argc < 2) || (argc > 2)) {
|
4975
4944
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4976
4945
|
}
|
4977
4946
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4978
4947
|
if (!SWIG_IsOK(ecode1)) {
|
4979
4948
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ds1302rtcWrite", 1, argv[0] ));
|
4980
|
-
}
|
4949
|
+
}
|
4981
4950
|
arg1 = (int)(val1);
|
4982
4951
|
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
|
4983
4952
|
if (!SWIG_IsOK(ecode2)) {
|
4984
4953
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ds1302rtcWrite", 2, argv[1] ));
|
4985
|
-
}
|
4954
|
+
}
|
4986
4955
|
arg2 = (unsigned int)(val2);
|
4987
4956
|
ds1302rtcWrite(arg1,arg2);
|
4988
4957
|
return Qnil;
|
@@ -4998,14 +4967,14 @@ _wrap_ds1302ramRead(int argc, VALUE *argv, VALUE self) {
|
|
4998
4967
|
int ecode1 = 0 ;
|
4999
4968
|
unsigned int result;
|
5000
4969
|
VALUE vresult = Qnil;
|
5001
|
-
|
4970
|
+
|
5002
4971
|
if ((argc < 1) || (argc > 1)) {
|
5003
4972
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5004
4973
|
}
|
5005
4974
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5006
4975
|
if (!SWIG_IsOK(ecode1)) {
|
5007
4976
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ds1302ramRead", 1, argv[0] ));
|
5008
|
-
}
|
4977
|
+
}
|
5009
4978
|
arg1 = (int)(val1);
|
5010
4979
|
result = (unsigned int)ds1302ramRead(arg1);
|
5011
4980
|
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
|
@@ -5023,19 +4992,19 @@ _wrap_ds1302ramWrite(int argc, VALUE *argv, VALUE self) {
|
|
5023
4992
|
int ecode1 = 0 ;
|
5024
4993
|
unsigned int val2 ;
|
5025
4994
|
int ecode2 = 0 ;
|
5026
|
-
|
4995
|
+
|
5027
4996
|
if ((argc < 2) || (argc > 2)) {
|
5028
4997
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5029
4998
|
}
|
5030
4999
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5031
5000
|
if (!SWIG_IsOK(ecode1)) {
|
5032
5001
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ds1302ramWrite", 1, argv[0] ));
|
5033
|
-
}
|
5002
|
+
}
|
5034
5003
|
arg1 = (int)(val1);
|
5035
5004
|
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
|
5036
5005
|
if (!SWIG_IsOK(ecode2)) {
|
5037
5006
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ds1302ramWrite", 2, argv[1] ));
|
5038
|
-
}
|
5007
|
+
}
|
5039
5008
|
arg2 = (unsigned int)(val2);
|
5040
5009
|
ds1302ramWrite(arg1,arg2);
|
5041
5010
|
return Qnil;
|
@@ -5049,14 +5018,14 @@ _wrap_ds1302clockRead(int argc, VALUE *argv, VALUE self) {
|
|
5049
5018
|
int *arg1 ;
|
5050
5019
|
void *argp1 = 0 ;
|
5051
5020
|
int res1 = 0 ;
|
5052
|
-
|
5021
|
+
|
5053
5022
|
if ((argc < 1) || (argc > 1)) {
|
5054
5023
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5055
5024
|
}
|
5056
5025
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_int, 0 | 0 );
|
5057
5026
|
if (!SWIG_IsOK(res1)) {
|
5058
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int [8]","ds1302clockRead", 1, argv[0] ));
|
5059
|
-
}
|
5027
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int [8]","ds1302clockRead", 1, argv[0] ));
|
5028
|
+
}
|
5060
5029
|
arg1 = (int *)(argp1);
|
5061
5030
|
ds1302clockRead(arg1);
|
5062
5031
|
return Qnil;
|
@@ -5070,14 +5039,14 @@ _wrap_ds1302clockWrite(int argc, VALUE *argv, VALUE self) {
|
|
5070
5039
|
int *arg1 ;
|
5071
5040
|
void *argp1 = 0 ;
|
5072
5041
|
int res1 = 0 ;
|
5073
|
-
|
5042
|
+
|
5074
5043
|
if ((argc < 1) || (argc > 1)) {
|
5075
5044
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5076
5045
|
}
|
5077
5046
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_int, 0 | 0 );
|
5078
5047
|
if (!SWIG_IsOK(res1)) {
|
5079
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int const [8]","ds1302clockWrite", 1, argv[0] ));
|
5080
|
-
}
|
5048
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int const [8]","ds1302clockWrite", 1, argv[0] ));
|
5049
|
+
}
|
5081
5050
|
arg1 = (int *)(argp1);
|
5082
5051
|
ds1302clockWrite((int const (*))arg1);
|
5083
5052
|
return Qnil;
|
@@ -5094,19 +5063,19 @@ _wrap_ds1302trickleCharge(int argc, VALUE *argv, VALUE self) {
|
|
5094
5063
|
int ecode1 = 0 ;
|
5095
5064
|
int val2 ;
|
5096
5065
|
int ecode2 = 0 ;
|
5097
|
-
|
5066
|
+
|
5098
5067
|
if ((argc < 2) || (argc > 2)) {
|
5099
5068
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5100
5069
|
}
|
5101
5070
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5102
5071
|
if (!SWIG_IsOK(ecode1)) {
|
5103
5072
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ds1302trickleCharge", 1, argv[0] ));
|
5104
|
-
}
|
5073
|
+
}
|
5105
5074
|
arg1 = (int)(val1);
|
5106
5075
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5107
5076
|
if (!SWIG_IsOK(ecode2)) {
|
5108
5077
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ds1302trickleCharge", 2, argv[1] ));
|
5109
|
-
}
|
5078
|
+
}
|
5110
5079
|
arg2 = (int)(val2);
|
5111
5080
|
ds1302trickleCharge(arg1,arg2);
|
5112
5081
|
return Qnil;
|
@@ -5126,24 +5095,24 @@ _wrap_ds1302setup(int argc, VALUE *argv, VALUE self) {
|
|
5126
5095
|
int ecode2 = 0 ;
|
5127
5096
|
int val3 ;
|
5128
5097
|
int ecode3 = 0 ;
|
5129
|
-
|
5098
|
+
|
5130
5099
|
if ((argc < 3) || (argc > 3)) {
|
5131
5100
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
5132
5101
|
}
|
5133
5102
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5134
5103
|
if (!SWIG_IsOK(ecode1)) {
|
5135
5104
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ds1302setup", 1, argv[0] ));
|
5136
|
-
}
|
5105
|
+
}
|
5137
5106
|
arg1 = (int)(val1);
|
5138
5107
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5139
5108
|
if (!SWIG_IsOK(ecode2)) {
|
5140
5109
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ds1302setup", 2, argv[1] ));
|
5141
|
-
}
|
5110
|
+
}
|
5142
5111
|
arg2 = (int)(val2);
|
5143
5112
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5144
5113
|
if (!SWIG_IsOK(ecode3)) {
|
5145
5114
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ds1302setup", 3, argv[2] ));
|
5146
|
-
}
|
5115
|
+
}
|
5147
5116
|
arg3 = (int)(val3);
|
5148
5117
|
ds1302setup(arg1,arg2,arg3);
|
5149
5118
|
return Qnil;
|
@@ -5160,19 +5129,19 @@ _wrap_gertboardAnalogWrite(int argc, VALUE *argv, VALUE self) {
|
|
5160
5129
|
int ecode1 = 0 ;
|
5161
5130
|
int val2 ;
|
5162
5131
|
int ecode2 = 0 ;
|
5163
|
-
|
5132
|
+
|
5164
5133
|
if ((argc < 2) || (argc > 2)) {
|
5165
5134
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5166
5135
|
}
|
5167
5136
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5168
5137
|
if (!SWIG_IsOK(ecode1)) {
|
5169
5138
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","gertboardAnalogWrite", 1, argv[0] ));
|
5170
|
-
}
|
5139
|
+
}
|
5171
5140
|
arg1 = (int)(val1);
|
5172
5141
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5173
5142
|
if (!SWIG_IsOK(ecode2)) {
|
5174
5143
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","gertboardAnalogWrite", 2, argv[1] ));
|
5175
|
-
}
|
5144
|
+
}
|
5176
5145
|
arg2 = (int)(val2);
|
5177
5146
|
gertboardAnalogWrite(arg1,arg2);
|
5178
5147
|
return Qnil;
|
@@ -5188,14 +5157,14 @@ _wrap_gertboardAnalogRead(int argc, VALUE *argv, VALUE self) {
|
|
5188
5157
|
int ecode1 = 0 ;
|
5189
5158
|
int result;
|
5190
5159
|
VALUE vresult = Qnil;
|
5191
|
-
|
5160
|
+
|
5192
5161
|
if ((argc < 1) || (argc > 1)) {
|
5193
5162
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5194
5163
|
}
|
5195
5164
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5196
5165
|
if (!SWIG_IsOK(ecode1)) {
|
5197
5166
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","gertboardAnalogRead", 1, argv[0] ));
|
5198
|
-
}
|
5167
|
+
}
|
5199
5168
|
arg1 = (int)(val1);
|
5200
5169
|
result = (int)gertboardAnalogRead(arg1);
|
5201
5170
|
vresult = SWIG_From_int((int)(result));
|
@@ -5209,7 +5178,7 @@ SWIGINTERN VALUE
|
|
5209
5178
|
_wrap_gertboardSPISetup(int argc, VALUE *argv, VALUE self) {
|
5210
5179
|
int result;
|
5211
5180
|
VALUE vresult = Qnil;
|
5212
|
-
|
5181
|
+
|
5213
5182
|
if ((argc < 0) || (argc > 0)) {
|
5214
5183
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5215
5184
|
}
|
@@ -5228,14 +5197,14 @@ _wrap_gertboardAnalogSetup(int argc, VALUE *argv, VALUE self) {
|
|
5228
5197
|
int ecode1 = 0 ;
|
5229
5198
|
int result;
|
5230
5199
|
VALUE vresult = Qnil;
|
5231
|
-
|
5200
|
+
|
5232
5201
|
if ((argc < 1) || (argc > 1)) {
|
5233
5202
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5234
5203
|
}
|
5235
5204
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5236
5205
|
if (!SWIG_IsOK(ecode1)) {
|
5237
5206
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","gertboardAnalogSetup", 1, argv[0] ));
|
5238
|
-
}
|
5207
|
+
}
|
5239
5208
|
arg1 = (int)(val1);
|
5240
5209
|
result = (int)gertboardAnalogSetup(arg1);
|
5241
5210
|
vresult = SWIG_From_int((int)(result));
|
@@ -5253,19 +5222,19 @@ _wrap_lcd128x64setOrigin(int argc, VALUE *argv, VALUE self) {
|
|
5253
5222
|
int ecode1 = 0 ;
|
5254
5223
|
int val2 ;
|
5255
5224
|
int ecode2 = 0 ;
|
5256
|
-
|
5225
|
+
|
5257
5226
|
if ((argc < 2) || (argc > 2)) {
|
5258
5227
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5259
5228
|
}
|
5260
5229
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5261
5230
|
if (!SWIG_IsOK(ecode1)) {
|
5262
5231
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64setOrigin", 1, argv[0] ));
|
5263
|
-
}
|
5232
|
+
}
|
5264
5233
|
arg1 = (int)(val1);
|
5265
5234
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5266
5235
|
if (!SWIG_IsOK(ecode2)) {
|
5267
5236
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64setOrigin", 2, argv[1] ));
|
5268
|
-
}
|
5237
|
+
}
|
5269
5238
|
arg2 = (int)(val2);
|
5270
5239
|
lcd128x64setOrigin(arg1,arg2);
|
5271
5240
|
return Qnil;
|
@@ -5279,14 +5248,14 @@ _wrap_lcd128x64setOrientation(int argc, VALUE *argv, VALUE self) {
|
|
5279
5248
|
int arg1 ;
|
5280
5249
|
int val1 ;
|
5281
5250
|
int ecode1 = 0 ;
|
5282
|
-
|
5251
|
+
|
5283
5252
|
if ((argc < 1) || (argc > 1)) {
|
5284
5253
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5285
5254
|
}
|
5286
5255
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5287
5256
|
if (!SWIG_IsOK(ecode1)) {
|
5288
5257
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64setOrientation", 1, argv[0] ));
|
5289
|
-
}
|
5258
|
+
}
|
5290
5259
|
arg1 = (int)(val1);
|
5291
5260
|
lcd128x64setOrientation(arg1);
|
5292
5261
|
return Qnil;
|
@@ -5303,18 +5272,18 @@ _wrap_lcd128x64orientCoordinates(int argc, VALUE *argv, VALUE self) {
|
|
5303
5272
|
int res1 = 0 ;
|
5304
5273
|
void *argp2 = 0 ;
|
5305
5274
|
int res2 = 0 ;
|
5306
|
-
|
5275
|
+
|
5307
5276
|
if ((argc < 2) || (argc > 2)) {
|
5308
5277
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5309
5278
|
}
|
5310
5279
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_int, 0 | 0 );
|
5311
5280
|
if (!SWIG_IsOK(res1)) {
|
5312
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","lcd128x64orientCoordinates", 1, argv[0] ));
|
5281
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","lcd128x64orientCoordinates", 1, argv[0] ));
|
5313
5282
|
}
|
5314
5283
|
arg1 = (int *)(argp1);
|
5315
5284
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
|
5316
5285
|
if (!SWIG_IsOK(res2)) {
|
5317
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","lcd128x64orientCoordinates", 2, argv[1] ));
|
5286
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","lcd128x64orientCoordinates", 2, argv[1] ));
|
5318
5287
|
}
|
5319
5288
|
arg2 = (int *)(argp2);
|
5320
5289
|
lcd128x64orientCoordinates(arg1,arg2);
|
@@ -5332,18 +5301,18 @@ _wrap_lcd128x64getScreenSize(int argc, VALUE *argv, VALUE self) {
|
|
5332
5301
|
int res1 = 0 ;
|
5333
5302
|
void *argp2 = 0 ;
|
5334
5303
|
int res2 = 0 ;
|
5335
|
-
|
5304
|
+
|
5336
5305
|
if ((argc < 2) || (argc > 2)) {
|
5337
5306
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5338
5307
|
}
|
5339
5308
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_int, 0 | 0 );
|
5340
5309
|
if (!SWIG_IsOK(res1)) {
|
5341
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","lcd128x64getScreenSize", 1, argv[0] ));
|
5310
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","lcd128x64getScreenSize", 1, argv[0] ));
|
5342
5311
|
}
|
5343
5312
|
arg1 = (int *)(argp1);
|
5344
5313
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
|
5345
5314
|
if (!SWIG_IsOK(res2)) {
|
5346
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","lcd128x64getScreenSize", 2, argv[1] ));
|
5315
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","lcd128x64getScreenSize", 2, argv[1] ));
|
5347
5316
|
}
|
5348
5317
|
arg2 = (int *)(argp2);
|
5349
5318
|
lcd128x64getScreenSize(arg1,arg2);
|
@@ -5364,24 +5333,24 @@ _wrap_lcd128x64point(int argc, VALUE *argv, VALUE self) {
|
|
5364
5333
|
int ecode2 = 0 ;
|
5365
5334
|
int val3 ;
|
5366
5335
|
int ecode3 = 0 ;
|
5367
|
-
|
5336
|
+
|
5368
5337
|
if ((argc < 3) || (argc > 3)) {
|
5369
5338
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
5370
5339
|
}
|
5371
5340
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5372
5341
|
if (!SWIG_IsOK(ecode1)) {
|
5373
5342
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64point", 1, argv[0] ));
|
5374
|
-
}
|
5343
|
+
}
|
5375
5344
|
arg1 = (int)(val1);
|
5376
5345
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5377
5346
|
if (!SWIG_IsOK(ecode2)) {
|
5378
5347
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64point", 2, argv[1] ));
|
5379
|
-
}
|
5348
|
+
}
|
5380
5349
|
arg2 = (int)(val2);
|
5381
5350
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5382
5351
|
if (!SWIG_IsOK(ecode3)) {
|
5383
5352
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcd128x64point", 3, argv[2] ));
|
5384
|
-
}
|
5353
|
+
}
|
5385
5354
|
arg3 = (int)(val3);
|
5386
5355
|
lcd128x64point(arg1,arg2,arg3);
|
5387
5356
|
return Qnil;
|
@@ -5407,34 +5376,34 @@ _wrap_lcd128x64line(int argc, VALUE *argv, VALUE self) {
|
|
5407
5376
|
int ecode4 = 0 ;
|
5408
5377
|
int val5 ;
|
5409
5378
|
int ecode5 = 0 ;
|
5410
|
-
|
5379
|
+
|
5411
5380
|
if ((argc < 5) || (argc > 5)) {
|
5412
5381
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
5413
5382
|
}
|
5414
5383
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5415
5384
|
if (!SWIG_IsOK(ecode1)) {
|
5416
5385
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64line", 1, argv[0] ));
|
5417
|
-
}
|
5386
|
+
}
|
5418
5387
|
arg1 = (int)(val1);
|
5419
5388
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5420
5389
|
if (!SWIG_IsOK(ecode2)) {
|
5421
5390
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64line", 2, argv[1] ));
|
5422
|
-
}
|
5391
|
+
}
|
5423
5392
|
arg2 = (int)(val2);
|
5424
5393
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5425
5394
|
if (!SWIG_IsOK(ecode3)) {
|
5426
5395
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcd128x64line", 3, argv[2] ));
|
5427
|
-
}
|
5396
|
+
}
|
5428
5397
|
arg3 = (int)(val3);
|
5429
5398
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
5430
5399
|
if (!SWIG_IsOK(ecode4)) {
|
5431
5400
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","lcd128x64line", 4, argv[3] ));
|
5432
|
-
}
|
5401
|
+
}
|
5433
5402
|
arg4 = (int)(val4);
|
5434
5403
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
5435
5404
|
if (!SWIG_IsOK(ecode5)) {
|
5436
5405
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","lcd128x64line", 5, argv[4] ));
|
5437
|
-
}
|
5406
|
+
}
|
5438
5407
|
arg5 = (int)(val5);
|
5439
5408
|
lcd128x64line(arg1,arg2,arg3,arg4,arg5);
|
5440
5409
|
return Qnil;
|
@@ -5454,24 +5423,24 @@ _wrap_lcd128x64lineTo(int argc, VALUE *argv, VALUE self) {
|
|
5454
5423
|
int ecode2 = 0 ;
|
5455
5424
|
int val3 ;
|
5456
5425
|
int ecode3 = 0 ;
|
5457
|
-
|
5426
|
+
|
5458
5427
|
if ((argc < 3) || (argc > 3)) {
|
5459
5428
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
5460
5429
|
}
|
5461
5430
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5462
5431
|
if (!SWIG_IsOK(ecode1)) {
|
5463
5432
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64lineTo", 1, argv[0] ));
|
5464
|
-
}
|
5433
|
+
}
|
5465
5434
|
arg1 = (int)(val1);
|
5466
5435
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5467
5436
|
if (!SWIG_IsOK(ecode2)) {
|
5468
5437
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64lineTo", 2, argv[1] ));
|
5469
|
-
}
|
5438
|
+
}
|
5470
5439
|
arg2 = (int)(val2);
|
5471
5440
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5472
5441
|
if (!SWIG_IsOK(ecode3)) {
|
5473
5442
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcd128x64lineTo", 3, argv[2] ));
|
5474
|
-
}
|
5443
|
+
}
|
5475
5444
|
arg3 = (int)(val3);
|
5476
5445
|
lcd128x64lineTo(arg1,arg2,arg3);
|
5477
5446
|
return Qnil;
|
@@ -5500,39 +5469,39 @@ _wrap_lcd128x64rectangle(int argc, VALUE *argv, VALUE self) {
|
|
5500
5469
|
int ecode5 = 0 ;
|
5501
5470
|
int val6 ;
|
5502
5471
|
int ecode6 = 0 ;
|
5503
|
-
|
5472
|
+
|
5504
5473
|
if ((argc < 6) || (argc > 6)) {
|
5505
5474
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
|
5506
5475
|
}
|
5507
5476
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5508
5477
|
if (!SWIG_IsOK(ecode1)) {
|
5509
5478
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64rectangle", 1, argv[0] ));
|
5510
|
-
}
|
5479
|
+
}
|
5511
5480
|
arg1 = (int)(val1);
|
5512
5481
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5513
5482
|
if (!SWIG_IsOK(ecode2)) {
|
5514
5483
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64rectangle", 2, argv[1] ));
|
5515
|
-
}
|
5484
|
+
}
|
5516
5485
|
arg2 = (int)(val2);
|
5517
5486
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5518
5487
|
if (!SWIG_IsOK(ecode3)) {
|
5519
5488
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcd128x64rectangle", 3, argv[2] ));
|
5520
|
-
}
|
5489
|
+
}
|
5521
5490
|
arg3 = (int)(val3);
|
5522
5491
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
5523
5492
|
if (!SWIG_IsOK(ecode4)) {
|
5524
5493
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","lcd128x64rectangle", 4, argv[3] ));
|
5525
|
-
}
|
5494
|
+
}
|
5526
5495
|
arg4 = (int)(val4);
|
5527
5496
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
5528
5497
|
if (!SWIG_IsOK(ecode5)) {
|
5529
5498
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","lcd128x64rectangle", 5, argv[4] ));
|
5530
|
-
}
|
5499
|
+
}
|
5531
5500
|
arg5 = (int)(val5);
|
5532
5501
|
ecode6 = SWIG_AsVal_int(argv[5], &val6);
|
5533
5502
|
if (!SWIG_IsOK(ecode6)) {
|
5534
5503
|
SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","lcd128x64rectangle", 6, argv[5] ));
|
5535
|
-
}
|
5504
|
+
}
|
5536
5505
|
arg6 = (int)(val6);
|
5537
5506
|
lcd128x64rectangle(arg1,arg2,arg3,arg4,arg5,arg6);
|
5538
5507
|
return Qnil;
|
@@ -5558,34 +5527,34 @@ _wrap_lcd128x64circle(int argc, VALUE *argv, VALUE self) {
|
|
5558
5527
|
int ecode4 = 0 ;
|
5559
5528
|
int val5 ;
|
5560
5529
|
int ecode5 = 0 ;
|
5561
|
-
|
5530
|
+
|
5562
5531
|
if ((argc < 5) || (argc > 5)) {
|
5563
5532
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
5564
5533
|
}
|
5565
5534
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5566
5535
|
if (!SWIG_IsOK(ecode1)) {
|
5567
5536
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64circle", 1, argv[0] ));
|
5568
|
-
}
|
5537
|
+
}
|
5569
5538
|
arg1 = (int)(val1);
|
5570
5539
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5571
5540
|
if (!SWIG_IsOK(ecode2)) {
|
5572
5541
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64circle", 2, argv[1] ));
|
5573
|
-
}
|
5542
|
+
}
|
5574
5543
|
arg2 = (int)(val2);
|
5575
5544
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5576
5545
|
if (!SWIG_IsOK(ecode3)) {
|
5577
5546
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcd128x64circle", 3, argv[2] ));
|
5578
|
-
}
|
5547
|
+
}
|
5579
5548
|
arg3 = (int)(val3);
|
5580
5549
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
5581
5550
|
if (!SWIG_IsOK(ecode4)) {
|
5582
5551
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","lcd128x64circle", 4, argv[3] ));
|
5583
|
-
}
|
5552
|
+
}
|
5584
5553
|
arg4 = (int)(val4);
|
5585
5554
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
5586
5555
|
if (!SWIG_IsOK(ecode5)) {
|
5587
5556
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","lcd128x64circle", 5, argv[4] ));
|
5588
|
-
}
|
5557
|
+
}
|
5589
5558
|
arg5 = (int)(val5);
|
5590
5559
|
lcd128x64circle(arg1,arg2,arg3,arg4,arg5);
|
5591
5560
|
return Qnil;
|
@@ -5614,39 +5583,39 @@ _wrap_lcd128x64ellipse(int argc, VALUE *argv, VALUE self) {
|
|
5614
5583
|
int ecode5 = 0 ;
|
5615
5584
|
int val6 ;
|
5616
5585
|
int ecode6 = 0 ;
|
5617
|
-
|
5586
|
+
|
5618
5587
|
if ((argc < 6) || (argc > 6)) {
|
5619
5588
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
|
5620
5589
|
}
|
5621
5590
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5622
5591
|
if (!SWIG_IsOK(ecode1)) {
|
5623
5592
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64ellipse", 1, argv[0] ));
|
5624
|
-
}
|
5593
|
+
}
|
5625
5594
|
arg1 = (int)(val1);
|
5626
5595
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5627
5596
|
if (!SWIG_IsOK(ecode2)) {
|
5628
5597
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64ellipse", 2, argv[1] ));
|
5629
|
-
}
|
5598
|
+
}
|
5630
5599
|
arg2 = (int)(val2);
|
5631
5600
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5632
5601
|
if (!SWIG_IsOK(ecode3)) {
|
5633
5602
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcd128x64ellipse", 3, argv[2] ));
|
5634
|
-
}
|
5603
|
+
}
|
5635
5604
|
arg3 = (int)(val3);
|
5636
5605
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
5637
5606
|
if (!SWIG_IsOK(ecode4)) {
|
5638
5607
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","lcd128x64ellipse", 4, argv[3] ));
|
5639
|
-
}
|
5608
|
+
}
|
5640
5609
|
arg4 = (int)(val4);
|
5641
5610
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
5642
5611
|
if (!SWIG_IsOK(ecode5)) {
|
5643
5612
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","lcd128x64ellipse", 5, argv[4] ));
|
5644
|
-
}
|
5613
|
+
}
|
5645
5614
|
arg5 = (int)(val5);
|
5646
5615
|
ecode6 = SWIG_AsVal_int(argv[5], &val6);
|
5647
5616
|
if (!SWIG_IsOK(ecode6)) {
|
5648
5617
|
SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","lcd128x64ellipse", 6, argv[5] ));
|
5649
|
-
}
|
5618
|
+
}
|
5650
5619
|
arg6 = (int)(val6);
|
5651
5620
|
lcd128x64ellipse(arg1,arg2,arg3,arg4,arg5,arg6);
|
5652
5621
|
return Qnil;
|
@@ -5672,34 +5641,34 @@ _wrap_lcd128x64putchar(int argc, VALUE *argv, VALUE self) {
|
|
5672
5641
|
int ecode4 = 0 ;
|
5673
5642
|
int val5 ;
|
5674
5643
|
int ecode5 = 0 ;
|
5675
|
-
|
5644
|
+
|
5676
5645
|
if ((argc < 5) || (argc > 5)) {
|
5677
5646
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
5678
5647
|
}
|
5679
5648
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5680
5649
|
if (!SWIG_IsOK(ecode1)) {
|
5681
5650
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64putchar", 1, argv[0] ));
|
5682
|
-
}
|
5651
|
+
}
|
5683
5652
|
arg1 = (int)(val1);
|
5684
5653
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5685
5654
|
if (!SWIG_IsOK(ecode2)) {
|
5686
5655
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64putchar", 2, argv[1] ));
|
5687
|
-
}
|
5656
|
+
}
|
5688
5657
|
arg2 = (int)(val2);
|
5689
5658
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5690
5659
|
if (!SWIG_IsOK(ecode3)) {
|
5691
5660
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcd128x64putchar", 3, argv[2] ));
|
5692
|
-
}
|
5661
|
+
}
|
5693
5662
|
arg3 = (int)(val3);
|
5694
5663
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
5695
5664
|
if (!SWIG_IsOK(ecode4)) {
|
5696
5665
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","lcd128x64putchar", 4, argv[3] ));
|
5697
|
-
}
|
5666
|
+
}
|
5698
5667
|
arg4 = (int)(val4);
|
5699
5668
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
5700
5669
|
if (!SWIG_IsOK(ecode5)) {
|
5701
5670
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","lcd128x64putchar", 5, argv[4] ));
|
5702
|
-
}
|
5671
|
+
}
|
5703
5672
|
arg5 = (int)(val5);
|
5704
5673
|
lcd128x64putchar(arg1,arg2,arg3,arg4,arg5);
|
5705
5674
|
return Qnil;
|
@@ -5726,19 +5695,19 @@ _wrap_lcd128x64puts(int argc, VALUE *argv, VALUE self) {
|
|
5726
5695
|
int ecode4 = 0 ;
|
5727
5696
|
int val5 ;
|
5728
5697
|
int ecode5 = 0 ;
|
5729
|
-
|
5698
|
+
|
5730
5699
|
if ((argc < 5) || (argc > 5)) {
|
5731
5700
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
5732
5701
|
}
|
5733
5702
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5734
5703
|
if (!SWIG_IsOK(ecode1)) {
|
5735
5704
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64puts", 1, argv[0] ));
|
5736
|
-
}
|
5705
|
+
}
|
5737
5706
|
arg1 = (int)(val1);
|
5738
5707
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5739
5708
|
if (!SWIG_IsOK(ecode2)) {
|
5740
5709
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64puts", 2, argv[1] ));
|
5741
|
-
}
|
5710
|
+
}
|
5742
5711
|
arg2 = (int)(val2);
|
5743
5712
|
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
|
5744
5713
|
if (!SWIG_IsOK(res3)) {
|
@@ -5748,12 +5717,12 @@ _wrap_lcd128x64puts(int argc, VALUE *argv, VALUE self) {
|
|
5748
5717
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
5749
5718
|
if (!SWIG_IsOK(ecode4)) {
|
5750
5719
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","lcd128x64puts", 4, argv[3] ));
|
5751
|
-
}
|
5720
|
+
}
|
5752
5721
|
arg4 = (int)(val4);
|
5753
5722
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
5754
5723
|
if (!SWIG_IsOK(ecode5)) {
|
5755
5724
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","lcd128x64puts", 5, argv[4] ));
|
5756
|
-
}
|
5725
|
+
}
|
5757
5726
|
arg5 = (int)(val5);
|
5758
5727
|
lcd128x64puts(arg1,arg2,(char const *)arg3,arg4,arg5);
|
5759
5728
|
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
@@ -5781,14 +5750,14 @@ _wrap_lcd128x64clear(int argc, VALUE *argv, VALUE self) {
|
|
5781
5750
|
int arg1 ;
|
5782
5751
|
int val1 ;
|
5783
5752
|
int ecode1 = 0 ;
|
5784
|
-
|
5753
|
+
|
5785
5754
|
if ((argc < 1) || (argc > 1)) {
|
5786
5755
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5787
5756
|
}
|
5788
5757
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5789
5758
|
if (!SWIG_IsOK(ecode1)) {
|
5790
5759
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64clear", 1, argv[0] ));
|
5791
|
-
}
|
5760
|
+
}
|
5792
5761
|
arg1 = (int)(val1);
|
5793
5762
|
lcd128x64clear(arg1);
|
5794
5763
|
return Qnil;
|
@@ -5801,7 +5770,7 @@ SWIGINTERN VALUE
|
|
5801
5770
|
_wrap_lcd128x64setup(int argc, VALUE *argv, VALUE self) {
|
5802
5771
|
int result;
|
5803
5772
|
VALUE vresult = Qnil;
|
5804
|
-
|
5773
|
+
|
5805
5774
|
if ((argc < 0) || (argc > 0)) {
|
5806
5775
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5807
5776
|
}
|
@@ -5818,14 +5787,14 @@ _wrap_lcdHome(int argc, VALUE *argv, VALUE self) {
|
|
5818
5787
|
int arg1 ;
|
5819
5788
|
int val1 ;
|
5820
5789
|
int ecode1 = 0 ;
|
5821
|
-
|
5790
|
+
|
5822
5791
|
if ((argc < 1) || (argc > 1)) {
|
5823
5792
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5824
5793
|
}
|
5825
5794
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5826
5795
|
if (!SWIG_IsOK(ecode1)) {
|
5827
5796
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdHome", 1, argv[0] ));
|
5828
|
-
}
|
5797
|
+
}
|
5829
5798
|
arg1 = (int)(val1);
|
5830
5799
|
lcdHome(arg1);
|
5831
5800
|
return Qnil;
|
@@ -5839,14 +5808,14 @@ _wrap_lcdClear(int argc, VALUE *argv, VALUE self) {
|
|
5839
5808
|
int arg1 ;
|
5840
5809
|
int val1 ;
|
5841
5810
|
int ecode1 = 0 ;
|
5842
|
-
|
5811
|
+
|
5843
5812
|
if ((argc < 1) || (argc > 1)) {
|
5844
5813
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5845
5814
|
}
|
5846
5815
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5847
5816
|
if (!SWIG_IsOK(ecode1)) {
|
5848
5817
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdClear", 1, argv[0] ));
|
5849
|
-
}
|
5818
|
+
}
|
5850
5819
|
arg1 = (int)(val1);
|
5851
5820
|
lcdClear(arg1);
|
5852
5821
|
return Qnil;
|
@@ -5863,19 +5832,19 @@ _wrap_lcdDisplay(int argc, VALUE *argv, VALUE self) {
|
|
5863
5832
|
int ecode1 = 0 ;
|
5864
5833
|
int val2 ;
|
5865
5834
|
int ecode2 = 0 ;
|
5866
|
-
|
5835
|
+
|
5867
5836
|
if ((argc < 2) || (argc > 2)) {
|
5868
5837
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5869
5838
|
}
|
5870
5839
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5871
5840
|
if (!SWIG_IsOK(ecode1)) {
|
5872
5841
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdDisplay", 1, argv[0] ));
|
5873
|
-
}
|
5842
|
+
}
|
5874
5843
|
arg1 = (int)(val1);
|
5875
5844
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5876
5845
|
if (!SWIG_IsOK(ecode2)) {
|
5877
5846
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcdDisplay", 2, argv[1] ));
|
5878
|
-
}
|
5847
|
+
}
|
5879
5848
|
arg2 = (int)(val2);
|
5880
5849
|
lcdDisplay(arg1,arg2);
|
5881
5850
|
return Qnil;
|
@@ -5892,19 +5861,19 @@ _wrap_lcdCursor(int argc, VALUE *argv, VALUE self) {
|
|
5892
5861
|
int ecode1 = 0 ;
|
5893
5862
|
int val2 ;
|
5894
5863
|
int ecode2 = 0 ;
|
5895
|
-
|
5864
|
+
|
5896
5865
|
if ((argc < 2) || (argc > 2)) {
|
5897
5866
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5898
5867
|
}
|
5899
5868
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5900
5869
|
if (!SWIG_IsOK(ecode1)) {
|
5901
5870
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdCursor", 1, argv[0] ));
|
5902
|
-
}
|
5871
|
+
}
|
5903
5872
|
arg1 = (int)(val1);
|
5904
5873
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5905
5874
|
if (!SWIG_IsOK(ecode2)) {
|
5906
5875
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcdCursor", 2, argv[1] ));
|
5907
|
-
}
|
5876
|
+
}
|
5908
5877
|
arg2 = (int)(val2);
|
5909
5878
|
lcdCursor(arg1,arg2);
|
5910
5879
|
return Qnil;
|
@@ -5921,19 +5890,19 @@ _wrap_lcdCursorBlink(int argc, VALUE *argv, VALUE self) {
|
|
5921
5890
|
int ecode1 = 0 ;
|
5922
5891
|
int val2 ;
|
5923
5892
|
int ecode2 = 0 ;
|
5924
|
-
|
5893
|
+
|
5925
5894
|
if ((argc < 2) || (argc > 2)) {
|
5926
5895
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5927
5896
|
}
|
5928
5897
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5929
5898
|
if (!SWIG_IsOK(ecode1)) {
|
5930
5899
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdCursorBlink", 1, argv[0] ));
|
5931
|
-
}
|
5900
|
+
}
|
5932
5901
|
arg1 = (int)(val1);
|
5933
5902
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5934
5903
|
if (!SWIG_IsOK(ecode2)) {
|
5935
5904
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcdCursorBlink", 2, argv[1] ));
|
5936
|
-
}
|
5905
|
+
}
|
5937
5906
|
arg2 = (int)(val2);
|
5938
5907
|
lcdCursorBlink(arg1,arg2);
|
5939
5908
|
return Qnil;
|
@@ -5950,19 +5919,19 @@ _wrap_lcdSendCommand(int argc, VALUE *argv, VALUE self) {
|
|
5950
5919
|
int ecode1 = 0 ;
|
5951
5920
|
unsigned char val2 ;
|
5952
5921
|
int ecode2 = 0 ;
|
5953
|
-
|
5922
|
+
|
5954
5923
|
if ((argc < 2) || (argc > 2)) {
|
5955
5924
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5956
5925
|
}
|
5957
5926
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5958
5927
|
if (!SWIG_IsOK(ecode1)) {
|
5959
5928
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdSendCommand", 1, argv[0] ));
|
5960
|
-
}
|
5929
|
+
}
|
5961
5930
|
arg1 = (int)(val1);
|
5962
5931
|
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
|
5963
5932
|
if (!SWIG_IsOK(ecode2)) {
|
5964
5933
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned char","lcdSendCommand", 2, argv[1] ));
|
5965
|
-
}
|
5934
|
+
}
|
5966
5935
|
arg2 = (unsigned char)(val2);
|
5967
5936
|
lcdSendCommand(arg1,arg2);
|
5968
5937
|
return Qnil;
|
@@ -5982,24 +5951,24 @@ _wrap_lcdPosition(int argc, VALUE *argv, VALUE self) {
|
|
5982
5951
|
int ecode2 = 0 ;
|
5983
5952
|
int val3 ;
|
5984
5953
|
int ecode3 = 0 ;
|
5985
|
-
|
5954
|
+
|
5986
5955
|
if ((argc < 3) || (argc > 3)) {
|
5987
5956
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
5988
5957
|
}
|
5989
5958
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5990
5959
|
if (!SWIG_IsOK(ecode1)) {
|
5991
5960
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdPosition", 1, argv[0] ));
|
5992
|
-
}
|
5961
|
+
}
|
5993
5962
|
arg1 = (int)(val1);
|
5994
5963
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5995
5964
|
if (!SWIG_IsOK(ecode2)) {
|
5996
5965
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcdPosition", 2, argv[1] ));
|
5997
|
-
}
|
5966
|
+
}
|
5998
5967
|
arg2 = (int)(val2);
|
5999
5968
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
6000
5969
|
if (!SWIG_IsOK(ecode3)) {
|
6001
5970
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcdPosition", 3, argv[2] ));
|
6002
|
-
}
|
5971
|
+
}
|
6003
5972
|
arg3 = (int)(val3);
|
6004
5973
|
lcdPosition(arg1,arg2,arg3);
|
6005
5974
|
return Qnil;
|
@@ -6019,24 +5988,24 @@ _wrap_lcdCharDef(int argc, VALUE *argv, VALUE self) {
|
|
6019
5988
|
int ecode2 = 0 ;
|
6020
5989
|
void *argp3 = 0 ;
|
6021
5990
|
int res3 = 0 ;
|
6022
|
-
|
5991
|
+
|
6023
5992
|
if ((argc < 3) || (argc > 3)) {
|
6024
5993
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
6025
5994
|
}
|
6026
5995
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6027
5996
|
if (!SWIG_IsOK(ecode1)) {
|
6028
5997
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdCharDef", 1, argv[0] ));
|
6029
|
-
}
|
5998
|
+
}
|
6030
5999
|
arg1 = (int)(val1);
|
6031
6000
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6032
6001
|
if (!SWIG_IsOK(ecode2)) {
|
6033
6002
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcdCharDef", 2, argv[1] ));
|
6034
|
-
}
|
6003
|
+
}
|
6035
6004
|
arg2 = (int)(val2);
|
6036
6005
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
|
6037
6006
|
if (!SWIG_IsOK(res3)) {
|
6038
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "unsigned char [8]","lcdCharDef", 3, argv[2] ));
|
6039
|
-
}
|
6007
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "unsigned char [8]","lcdCharDef", 3, argv[2] ));
|
6008
|
+
}
|
6040
6009
|
arg3 = (unsigned char *)(argp3);
|
6041
6010
|
lcdCharDef(arg1,arg2,arg3);
|
6042
6011
|
return Qnil;
|
@@ -6053,19 +6022,19 @@ _wrap_lcdPutchar(int argc, VALUE *argv, VALUE self) {
|
|
6053
6022
|
int ecode1 = 0 ;
|
6054
6023
|
unsigned char val2 ;
|
6055
6024
|
int ecode2 = 0 ;
|
6056
|
-
|
6025
|
+
|
6057
6026
|
if ((argc < 2) || (argc > 2)) {
|
6058
6027
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
6059
6028
|
}
|
6060
6029
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6061
6030
|
if (!SWIG_IsOK(ecode1)) {
|
6062
6031
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdPutchar", 1, argv[0] ));
|
6063
|
-
}
|
6032
|
+
}
|
6064
6033
|
arg1 = (int)(val1);
|
6065
6034
|
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
|
6066
6035
|
if (!SWIG_IsOK(ecode2)) {
|
6067
6036
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned char","lcdPutchar", 2, argv[1] ));
|
6068
|
-
}
|
6037
|
+
}
|
6069
6038
|
arg2 = (unsigned char)(val2);
|
6070
6039
|
lcdPutchar(arg1,arg2);
|
6071
6040
|
return Qnil;
|
@@ -6083,14 +6052,14 @@ _wrap_lcdPuts(int argc, VALUE *argv, VALUE self) {
|
|
6083
6052
|
int res2 ;
|
6084
6053
|
char *buf2 = 0 ;
|
6085
6054
|
int alloc2 = 0 ;
|
6086
|
-
|
6055
|
+
|
6087
6056
|
if ((argc < 2) || (argc > 2)) {
|
6088
6057
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
6089
6058
|
}
|
6090
6059
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6091
6060
|
if (!SWIG_IsOK(ecode1)) {
|
6092
6061
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdPuts", 1, argv[0] ));
|
6093
|
-
}
|
6062
|
+
}
|
6094
6063
|
arg1 = (int)(val1);
|
6095
6064
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
6096
6065
|
if (!SWIG_IsOK(res2)) {
|
@@ -6116,14 +6085,14 @@ _wrap_lcdPrintf(int argc, VALUE *argv, VALUE self) {
|
|
6116
6085
|
int res2 ;
|
6117
6086
|
char *buf2 = 0 ;
|
6118
6087
|
int alloc2 = 0 ;
|
6119
|
-
|
6088
|
+
|
6120
6089
|
if (argc < 2) {
|
6121
6090
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
6122
6091
|
}
|
6123
6092
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6124
6093
|
if (!SWIG_IsOK(ecode1)) {
|
6125
6094
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdPrintf", 1, argv[0] ));
|
6126
|
-
}
|
6095
|
+
}
|
6127
6096
|
arg1 = (int)(val1);
|
6128
6097
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
6129
6098
|
if (!SWIG_IsOK(res2)) {
|
@@ -6182,74 +6151,74 @@ _wrap_lcdInit(int argc, VALUE *argv, VALUE self) {
|
|
6182
6151
|
int ecode13 = 0 ;
|
6183
6152
|
int result;
|
6184
6153
|
VALUE vresult = Qnil;
|
6185
|
-
|
6154
|
+
|
6186
6155
|
if ((argc < 13) || (argc > 13)) {
|
6187
6156
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 13)",argc); SWIG_fail;
|
6188
6157
|
}
|
6189
6158
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6190
6159
|
if (!SWIG_IsOK(ecode1)) {
|
6191
6160
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdInit", 1, argv[0] ));
|
6192
|
-
}
|
6161
|
+
}
|
6193
6162
|
arg1 = (int)(val1);
|
6194
6163
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6195
6164
|
if (!SWIG_IsOK(ecode2)) {
|
6196
6165
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcdInit", 2, argv[1] ));
|
6197
|
-
}
|
6166
|
+
}
|
6198
6167
|
arg2 = (int)(val2);
|
6199
6168
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
6200
6169
|
if (!SWIG_IsOK(ecode3)) {
|
6201
6170
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcdInit", 3, argv[2] ));
|
6202
|
-
}
|
6171
|
+
}
|
6203
6172
|
arg3 = (int)(val3);
|
6204
6173
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
6205
6174
|
if (!SWIG_IsOK(ecode4)) {
|
6206
6175
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","lcdInit", 4, argv[3] ));
|
6207
|
-
}
|
6176
|
+
}
|
6208
6177
|
arg4 = (int)(val4);
|
6209
6178
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
6210
6179
|
if (!SWIG_IsOK(ecode5)) {
|
6211
6180
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","lcdInit", 5, argv[4] ));
|
6212
|
-
}
|
6181
|
+
}
|
6213
6182
|
arg5 = (int)(val5);
|
6214
6183
|
ecode6 = SWIG_AsVal_int(argv[5], &val6);
|
6215
6184
|
if (!SWIG_IsOK(ecode6)) {
|
6216
6185
|
SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","lcdInit", 6, argv[5] ));
|
6217
|
-
}
|
6186
|
+
}
|
6218
6187
|
arg6 = (int)(val6);
|
6219
6188
|
ecode7 = SWIG_AsVal_int(argv[6], &val7);
|
6220
6189
|
if (!SWIG_IsOK(ecode7)) {
|
6221
6190
|
SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","lcdInit", 7, argv[6] ));
|
6222
|
-
}
|
6191
|
+
}
|
6223
6192
|
arg7 = (int)(val7);
|
6224
6193
|
ecode8 = SWIG_AsVal_int(argv[7], &val8);
|
6225
6194
|
if (!SWIG_IsOK(ecode8)) {
|
6226
6195
|
SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "int","lcdInit", 8, argv[7] ));
|
6227
|
-
}
|
6196
|
+
}
|
6228
6197
|
arg8 = (int)(val8);
|
6229
6198
|
ecode9 = SWIG_AsVal_int(argv[8], &val9);
|
6230
6199
|
if (!SWIG_IsOK(ecode9)) {
|
6231
6200
|
SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "int","lcdInit", 9, argv[8] ));
|
6232
|
-
}
|
6201
|
+
}
|
6233
6202
|
arg9 = (int)(val9);
|
6234
6203
|
ecode10 = SWIG_AsVal_int(argv[9], &val10);
|
6235
6204
|
if (!SWIG_IsOK(ecode10)) {
|
6236
6205
|
SWIG_exception_fail(SWIG_ArgError(ecode10), Ruby_Format_TypeError( "", "int","lcdInit", 10, argv[9] ));
|
6237
|
-
}
|
6206
|
+
}
|
6238
6207
|
arg10 = (int)(val10);
|
6239
6208
|
ecode11 = SWIG_AsVal_int(argv[10], &val11);
|
6240
6209
|
if (!SWIG_IsOK(ecode11)) {
|
6241
6210
|
SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","lcdInit", 11, argv[10] ));
|
6242
|
-
}
|
6211
|
+
}
|
6243
6212
|
arg11 = (int)(val11);
|
6244
6213
|
ecode12 = SWIG_AsVal_int(argv[11], &val12);
|
6245
6214
|
if (!SWIG_IsOK(ecode12)) {
|
6246
6215
|
SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "int","lcdInit", 12, argv[11] ));
|
6247
|
-
}
|
6216
|
+
}
|
6248
6217
|
arg12 = (int)(val12);
|
6249
6218
|
ecode13 = SWIG_AsVal_int(argv[12], &val13);
|
6250
6219
|
if (!SWIG_IsOK(ecode13)) {
|
6251
6220
|
SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","lcdInit", 13, argv[12] ));
|
6252
|
-
}
|
6221
|
+
}
|
6253
6222
|
arg13 = (int)(val13);
|
6254
6223
|
result = (int)lcdInit(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
|
6255
6224
|
vresult = SWIG_From_int((int)(result));
|
@@ -6269,19 +6238,19 @@ _wrap_maxDetectRead(int argc, VALUE *argv, VALUE self) {
|
|
6269
6238
|
int res2 = 0 ;
|
6270
6239
|
int result;
|
6271
6240
|
VALUE vresult = Qnil;
|
6272
|
-
|
6241
|
+
|
6273
6242
|
if ((argc < 2) || (argc > 2)) {
|
6274
6243
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
6275
6244
|
}
|
6276
6245
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6277
6246
|
if (!SWIG_IsOK(ecode1)) {
|
6278
6247
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","maxDetectRead", 1, argv[0] ));
|
6279
|
-
}
|
6248
|
+
}
|
6280
6249
|
arg1 = (int)(val1);
|
6281
6250
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
|
6282
6251
|
if (!SWIG_IsOK(res2)) {
|
6283
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "unsigned char [4]","maxDetectRead", 2, argv[1] ));
|
6284
|
-
}
|
6252
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "unsigned char [4]","maxDetectRead", 2, argv[1] ));
|
6253
|
+
}
|
6285
6254
|
arg2 = (unsigned char *)(argp2);
|
6286
6255
|
result = (int)maxDetectRead(arg1,arg2);
|
6287
6256
|
vresult = SWIG_From_int((int)(result));
|
@@ -6304,23 +6273,23 @@ _wrap_readRHT03(int argc, VALUE *argv, VALUE self) {
|
|
6304
6273
|
int res3 = 0 ;
|
6305
6274
|
int result;
|
6306
6275
|
VALUE vresult = Qnil;
|
6307
|
-
|
6276
|
+
|
6308
6277
|
if ((argc < 3) || (argc > 3)) {
|
6309
6278
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
6310
6279
|
}
|
6311
6280
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6312
6281
|
if (!SWIG_IsOK(ecode1)) {
|
6313
6282
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","readRHT03", 1, argv[0] ));
|
6314
|
-
}
|
6283
|
+
}
|
6315
6284
|
arg1 = (int)(val1);
|
6316
6285
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
|
6317
6286
|
if (!SWIG_IsOK(res2)) {
|
6318
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","readRHT03", 2, argv[1] ));
|
6287
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","readRHT03", 2, argv[1] ));
|
6319
6288
|
}
|
6320
6289
|
arg2 = (int *)(argp2);
|
6321
6290
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
|
6322
6291
|
if (!SWIG_IsOK(res3)) {
|
6323
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "int *","readRHT03", 3, argv[2] ));
|
6292
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "int *","readRHT03", 3, argv[2] ));
|
6324
6293
|
}
|
6325
6294
|
arg3 = (int *)(argp3);
|
6326
6295
|
result = (int)readRHT03(arg1,arg2,arg3);
|
@@ -6342,24 +6311,24 @@ _wrap_piGlow1(int argc, VALUE *argv, VALUE self) {
|
|
6342
6311
|
int ecode2 = 0 ;
|
6343
6312
|
int val3 ;
|
6344
6313
|
int ecode3 = 0 ;
|
6345
|
-
|
6314
|
+
|
6346
6315
|
if ((argc < 3) || (argc > 3)) {
|
6347
6316
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
6348
6317
|
}
|
6349
6318
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6350
6319
|
if (!SWIG_IsOK(ecode1)) {
|
6351
6320
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piGlow1", 1, argv[0] ));
|
6352
|
-
}
|
6321
|
+
}
|
6353
6322
|
arg1 = (int)(val1);
|
6354
6323
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6355
6324
|
if (!SWIG_IsOK(ecode2)) {
|
6356
6325
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","piGlow1", 2, argv[1] ));
|
6357
|
-
}
|
6326
|
+
}
|
6358
6327
|
arg2 = (int)(val2);
|
6359
6328
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
6360
6329
|
if (!SWIG_IsOK(ecode3)) {
|
6361
6330
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","piGlow1", 3, argv[2] ));
|
6362
|
-
}
|
6331
|
+
}
|
6363
6332
|
arg3 = (int)(val3);
|
6364
6333
|
piGlow1(arg1,arg2,arg3);
|
6365
6334
|
return Qnil;
|
@@ -6376,19 +6345,19 @@ _wrap_piGlowLeg(int argc, VALUE *argv, VALUE self) {
|
|
6376
6345
|
int ecode1 = 0 ;
|
6377
6346
|
int val2 ;
|
6378
6347
|
int ecode2 = 0 ;
|
6379
|
-
|
6348
|
+
|
6380
6349
|
if ((argc < 2) || (argc > 2)) {
|
6381
6350
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
6382
6351
|
}
|
6383
6352
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6384
6353
|
if (!SWIG_IsOK(ecode1)) {
|
6385
6354
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piGlowLeg", 1, argv[0] ));
|
6386
|
-
}
|
6355
|
+
}
|
6387
6356
|
arg1 = (int)(val1);
|
6388
6357
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6389
6358
|
if (!SWIG_IsOK(ecode2)) {
|
6390
6359
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","piGlowLeg", 2, argv[1] ));
|
6391
|
-
}
|
6360
|
+
}
|
6392
6361
|
arg2 = (int)(val2);
|
6393
6362
|
piGlowLeg(arg1,arg2);
|
6394
6363
|
return Qnil;
|
@@ -6405,19 +6374,19 @@ _wrap_piGlowRing(int argc, VALUE *argv, VALUE self) {
|
|
6405
6374
|
int ecode1 = 0 ;
|
6406
6375
|
int val2 ;
|
6407
6376
|
int ecode2 = 0 ;
|
6408
|
-
|
6377
|
+
|
6409
6378
|
if ((argc < 2) || (argc > 2)) {
|
6410
6379
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
6411
6380
|
}
|
6412
6381
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6413
6382
|
if (!SWIG_IsOK(ecode1)) {
|
6414
6383
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piGlowRing", 1, argv[0] ));
|
6415
|
-
}
|
6384
|
+
}
|
6416
6385
|
arg1 = (int)(val1);
|
6417
6386
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6418
6387
|
if (!SWIG_IsOK(ecode2)) {
|
6419
6388
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","piGlowRing", 2, argv[1] ));
|
6420
|
-
}
|
6389
|
+
}
|
6421
6390
|
arg2 = (int)(val2);
|
6422
6391
|
piGlowRing(arg1,arg2);
|
6423
6392
|
return Qnil;
|
@@ -6431,14 +6400,14 @@ _wrap_piGlowSetup(int argc, VALUE *argv, VALUE self) {
|
|
6431
6400
|
int arg1 ;
|
6432
6401
|
int val1 ;
|
6433
6402
|
int ecode1 = 0 ;
|
6434
|
-
|
6403
|
+
|
6435
6404
|
if ((argc < 1) || (argc > 1)) {
|
6436
6405
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6437
6406
|
}
|
6438
6407
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6439
6408
|
if (!SWIG_IsOK(ecode1)) {
|
6440
6409
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piGlowSetup", 1, argv[0] ));
|
6441
|
-
}
|
6410
|
+
}
|
6442
6411
|
arg1 = (int)(val1);
|
6443
6412
|
piGlowSetup(arg1);
|
6444
6413
|
return Qnil;
|
@@ -6460,24 +6429,24 @@ _wrap_setupNesJoystick(int argc, VALUE *argv, VALUE self) {
|
|
6460
6429
|
int ecode3 = 0 ;
|
6461
6430
|
int result;
|
6462
6431
|
VALUE vresult = Qnil;
|
6463
|
-
|
6432
|
+
|
6464
6433
|
if ((argc < 3) || (argc > 3)) {
|
6465
6434
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
6466
6435
|
}
|
6467
6436
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6468
6437
|
if (!SWIG_IsOK(ecode1)) {
|
6469
6438
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","setupNesJoystick", 1, argv[0] ));
|
6470
|
-
}
|
6439
|
+
}
|
6471
6440
|
arg1 = (int)(val1);
|
6472
6441
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6473
6442
|
if (!SWIG_IsOK(ecode2)) {
|
6474
6443
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setupNesJoystick", 2, argv[1] ));
|
6475
|
-
}
|
6444
|
+
}
|
6476
6445
|
arg2 = (int)(val2);
|
6477
6446
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
6478
6447
|
if (!SWIG_IsOK(ecode3)) {
|
6479
6448
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","setupNesJoystick", 3, argv[2] ));
|
6480
|
-
}
|
6449
|
+
}
|
6481
6450
|
arg3 = (int)(val3);
|
6482
6451
|
result = (int)setupNesJoystick(arg1,arg2,arg3);
|
6483
6452
|
vresult = SWIG_From_int((int)(result));
|
@@ -6494,14 +6463,14 @@ _wrap_readNesJoystick(int argc, VALUE *argv, VALUE self) {
|
|
6494
6463
|
int ecode1 = 0 ;
|
6495
6464
|
unsigned int result;
|
6496
6465
|
VALUE vresult = Qnil;
|
6497
|
-
|
6466
|
+
|
6498
6467
|
if ((argc < 1) || (argc > 1)) {
|
6499
6468
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6500
6469
|
}
|
6501
6470
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6502
6471
|
if (!SWIG_IsOK(ecode1)) {
|
6503
6472
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","readNesJoystick", 1, argv[0] ));
|
6504
|
-
}
|
6473
|
+
}
|
6505
6474
|
arg1 = (int)(val1);
|
6506
6475
|
result = (unsigned int)readNesJoystick(arg1);
|
6507
6476
|
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
|
@@ -6522,24 +6491,24 @@ _wrap_scrollPhatPoint(int argc, VALUE *argv, VALUE self) {
|
|
6522
6491
|
int ecode2 = 0 ;
|
6523
6492
|
int val3 ;
|
6524
6493
|
int ecode3 = 0 ;
|
6525
|
-
|
6494
|
+
|
6526
6495
|
if ((argc < 3) || (argc > 3)) {
|
6527
6496
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
6528
6497
|
}
|
6529
6498
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6530
6499
|
if (!SWIG_IsOK(ecode1)) {
|
6531
6500
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","scrollPhatPoint", 1, argv[0] ));
|
6532
|
-
}
|
6501
|
+
}
|
6533
6502
|
arg1 = (int)(val1);
|
6534
6503
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6535
6504
|
if (!SWIG_IsOK(ecode2)) {
|
6536
6505
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","scrollPhatPoint", 2, argv[1] ));
|
6537
|
-
}
|
6506
|
+
}
|
6538
6507
|
arg2 = (int)(val2);
|
6539
6508
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
6540
6509
|
if (!SWIG_IsOK(ecode3)) {
|
6541
6510
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","scrollPhatPoint", 3, argv[2] ));
|
6542
|
-
}
|
6511
|
+
}
|
6543
6512
|
arg3 = (int)(val3);
|
6544
6513
|
scrollPhatPoint(arg1,arg2,arg3);
|
6545
6514
|
return Qnil;
|
@@ -6565,34 +6534,34 @@ _wrap_scrollPhatLine(int argc, VALUE *argv, VALUE self) {
|
|
6565
6534
|
int ecode4 = 0 ;
|
6566
6535
|
int val5 ;
|
6567
6536
|
int ecode5 = 0 ;
|
6568
|
-
|
6537
|
+
|
6569
6538
|
if ((argc < 5) || (argc > 5)) {
|
6570
6539
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
6571
6540
|
}
|
6572
6541
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6573
6542
|
if (!SWIG_IsOK(ecode1)) {
|
6574
6543
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","scrollPhatLine", 1, argv[0] ));
|
6575
|
-
}
|
6544
|
+
}
|
6576
6545
|
arg1 = (int)(val1);
|
6577
6546
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6578
6547
|
if (!SWIG_IsOK(ecode2)) {
|
6579
6548
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","scrollPhatLine", 2, argv[1] ));
|
6580
|
-
}
|
6549
|
+
}
|
6581
6550
|
arg2 = (int)(val2);
|
6582
6551
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
6583
6552
|
if (!SWIG_IsOK(ecode3)) {
|
6584
6553
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","scrollPhatLine", 3, argv[2] ));
|
6585
|
-
}
|
6554
|
+
}
|
6586
6555
|
arg3 = (int)(val3);
|
6587
6556
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
6588
6557
|
if (!SWIG_IsOK(ecode4)) {
|
6589
6558
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","scrollPhatLine", 4, argv[3] ));
|
6590
|
-
}
|
6559
|
+
}
|
6591
6560
|
arg4 = (int)(val4);
|
6592
6561
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
6593
6562
|
if (!SWIG_IsOK(ecode5)) {
|
6594
6563
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","scrollPhatLine", 5, argv[4] ));
|
6595
|
-
}
|
6564
|
+
}
|
6596
6565
|
arg5 = (int)(val5);
|
6597
6566
|
scrollPhatLine(arg1,arg2,arg3,arg4,arg5);
|
6598
6567
|
return Qnil;
|
@@ -6612,24 +6581,24 @@ _wrap_scrollPhatLineTo(int argc, VALUE *argv, VALUE self) {
|
|
6612
6581
|
int ecode2 = 0 ;
|
6613
6582
|
int val3 ;
|
6614
6583
|
int ecode3 = 0 ;
|
6615
|
-
|
6584
|
+
|
6616
6585
|
if ((argc < 3) || (argc > 3)) {
|
6617
6586
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
6618
6587
|
}
|
6619
6588
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6620
6589
|
if (!SWIG_IsOK(ecode1)) {
|
6621
6590
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","scrollPhatLineTo", 1, argv[0] ));
|
6622
|
-
}
|
6591
|
+
}
|
6623
6592
|
arg1 = (int)(val1);
|
6624
6593
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6625
6594
|
if (!SWIG_IsOK(ecode2)) {
|
6626
6595
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","scrollPhatLineTo", 2, argv[1] ));
|
6627
|
-
}
|
6596
|
+
}
|
6628
6597
|
arg2 = (int)(val2);
|
6629
6598
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
6630
6599
|
if (!SWIG_IsOK(ecode3)) {
|
6631
6600
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","scrollPhatLineTo", 3, argv[2] ));
|
6632
|
-
}
|
6601
|
+
}
|
6633
6602
|
arg3 = (int)(val3);
|
6634
6603
|
scrollPhatLineTo(arg1,arg2,arg3);
|
6635
6604
|
return Qnil;
|
@@ -6658,39 +6627,39 @@ _wrap_scrollPhatRectangle(int argc, VALUE *argv, VALUE self) {
|
|
6658
6627
|
int ecode5 = 0 ;
|
6659
6628
|
int val6 ;
|
6660
6629
|
int ecode6 = 0 ;
|
6661
|
-
|
6630
|
+
|
6662
6631
|
if ((argc < 6) || (argc > 6)) {
|
6663
6632
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
|
6664
6633
|
}
|
6665
6634
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6666
6635
|
if (!SWIG_IsOK(ecode1)) {
|
6667
6636
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","scrollPhatRectangle", 1, argv[0] ));
|
6668
|
-
}
|
6637
|
+
}
|
6669
6638
|
arg1 = (int)(val1);
|
6670
6639
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6671
6640
|
if (!SWIG_IsOK(ecode2)) {
|
6672
6641
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","scrollPhatRectangle", 2, argv[1] ));
|
6673
|
-
}
|
6642
|
+
}
|
6674
6643
|
arg2 = (int)(val2);
|
6675
6644
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
6676
6645
|
if (!SWIG_IsOK(ecode3)) {
|
6677
6646
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","scrollPhatRectangle", 3, argv[2] ));
|
6678
|
-
}
|
6647
|
+
}
|
6679
6648
|
arg3 = (int)(val3);
|
6680
6649
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
6681
6650
|
if (!SWIG_IsOK(ecode4)) {
|
6682
6651
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","scrollPhatRectangle", 4, argv[3] ));
|
6683
|
-
}
|
6652
|
+
}
|
6684
6653
|
arg4 = (int)(val4);
|
6685
6654
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
6686
6655
|
if (!SWIG_IsOK(ecode5)) {
|
6687
6656
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","scrollPhatRectangle", 5, argv[4] ));
|
6688
|
-
}
|
6657
|
+
}
|
6689
6658
|
arg5 = (int)(val5);
|
6690
6659
|
ecode6 = SWIG_AsVal_int(argv[5], &val6);
|
6691
6660
|
if (!SWIG_IsOK(ecode6)) {
|
6692
6661
|
SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","scrollPhatRectangle", 6, argv[5] ));
|
6693
|
-
}
|
6662
|
+
}
|
6694
6663
|
arg6 = (int)(val6);
|
6695
6664
|
scrollPhatRectangle(arg1,arg2,arg3,arg4,arg5,arg6);
|
6696
6665
|
return Qnil;
|
@@ -6730,14 +6699,14 @@ _wrap_scrollPhatPutchar(int argc, VALUE *argv, VALUE self) {
|
|
6730
6699
|
int ecode1 = 0 ;
|
6731
6700
|
int result;
|
6732
6701
|
VALUE vresult = Qnil;
|
6733
|
-
|
6702
|
+
|
6734
6703
|
if ((argc < 1) || (argc > 1)) {
|
6735
6704
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6736
6705
|
}
|
6737
6706
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6738
6707
|
if (!SWIG_IsOK(ecode1)) {
|
6739
6708
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","scrollPhatPutchar", 1, argv[0] ));
|
6740
|
-
}
|
6709
|
+
}
|
6741
6710
|
arg1 = (int)(val1);
|
6742
6711
|
result = (int)scrollPhatPutchar(arg1);
|
6743
6712
|
vresult = SWIG_From_int((int)(result));
|
@@ -6753,7 +6722,7 @@ _wrap_scrollPhatPuts(int argc, VALUE *argv, VALUE self) {
|
|
6753
6722
|
int res1 ;
|
6754
6723
|
char *buf1 = 0 ;
|
6755
6724
|
int alloc1 = 0 ;
|
6756
|
-
|
6725
|
+
|
6757
6726
|
if ((argc < 1) || (argc > 1)) {
|
6758
6727
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6759
6728
|
}
|
@@ -6778,7 +6747,7 @@ _wrap_scrollPhatPrintf(int argc, VALUE *argv, VALUE self) {
|
|
6778
6747
|
int res1 ;
|
6779
6748
|
char *buf1 = 0 ;
|
6780
6749
|
int alloc1 = 0 ;
|
6781
|
-
|
6750
|
+
|
6782
6751
|
if (argc < 1) {
|
6783
6752
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6784
6753
|
}
|
@@ -6801,14 +6770,14 @@ _wrap_scrollPhatPrintSpeed(int argc, VALUE *argv, VALUE self) {
|
|
6801
6770
|
int arg1 ;
|
6802
6771
|
int val1 ;
|
6803
6772
|
int ecode1 = 0 ;
|
6804
|
-
|
6773
|
+
|
6805
6774
|
if ((argc < 1) || (argc > 1)) {
|
6806
6775
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6807
6776
|
}
|
6808
6777
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6809
6778
|
if (!SWIG_IsOK(ecode1)) {
|
6810
6779
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","scrollPhatPrintSpeed", 1, argv[0] ));
|
6811
|
-
}
|
6780
|
+
}
|
6812
6781
|
arg1 = (int)(val1);
|
6813
6782
|
scrollPhatPrintSpeed(arg1);
|
6814
6783
|
return Qnil;
|
@@ -6822,14 +6791,14 @@ _wrap_scrollPhatIntensity(int argc, VALUE *argv, VALUE self) {
|
|
6822
6791
|
int arg1 ;
|
6823
6792
|
int val1 ;
|
6824
6793
|
int ecode1 = 0 ;
|
6825
|
-
|
6794
|
+
|
6826
6795
|
if ((argc < 1) || (argc > 1)) {
|
6827
6796
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6828
6797
|
}
|
6829
6798
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6830
6799
|
if (!SWIG_IsOK(ecode1)) {
|
6831
6800
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","scrollPhatIntensity", 1, argv[0] ));
|
6832
|
-
}
|
6801
|
+
}
|
6833
6802
|
arg1 = (int)(val1);
|
6834
6803
|
scrollPhatIntensity(arg1);
|
6835
6804
|
return Qnil;
|
@@ -6842,7 +6811,7 @@ SWIGINTERN VALUE
|
|
6842
6811
|
_wrap_scrollPhatSetup(int argc, VALUE *argv, VALUE self) {
|
6843
6812
|
int result;
|
6844
6813
|
VALUE vresult = Qnil;
|
6845
|
-
|
6814
|
+
|
6846
6815
|
if ((argc < 0) || (argc > 0)) {
|
6847
6816
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
6848
6817
|
}
|
@@ -6861,14 +6830,14 @@ _wrap_piFaceSetup(int argc, VALUE *argv, VALUE self) {
|
|
6861
6830
|
int ecode1 = 0 ;
|
6862
6831
|
int result;
|
6863
6832
|
VALUE vresult = Qnil;
|
6864
|
-
|
6833
|
+
|
6865
6834
|
if ((argc < 1) || (argc > 1)) {
|
6866
6835
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6867
6836
|
}
|
6868
6837
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6869
6838
|
if (!SWIG_IsOK(ecode1)) {
|
6870
6839
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piFaceSetup", 1, argv[0] ));
|
6871
|
-
}
|
6840
|
+
}
|
6872
6841
|
arg1 = (int)(val1);
|
6873
6842
|
result = (int)piFaceSetup(arg1);
|
6874
6843
|
vresult = SWIG_From_int((int)(result));
|
@@ -7012,7 +6981,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
7012
6981
|
|
7013
6982
|
/* Now work on filling in swig_module.types */
|
7014
6983
|
#ifdef SWIGRUNTIME_DEBUG
|
7015
|
-
printf("SWIG_InitializeModule: size %
|
6984
|
+
printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
|
7016
6985
|
#endif
|
7017
6986
|
for (i = 0; i < swig_module.size; ++i) {
|
7018
6987
|
swig_type_info *type = 0;
|
@@ -7020,7 +6989,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
7020
6989
|
swig_cast_info *cast;
|
7021
6990
|
|
7022
6991
|
#ifdef SWIGRUNTIME_DEBUG
|
7023
|
-
printf("SWIG_InitializeModule: type %
|
6992
|
+
printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
|
7024
6993
|
#endif
|
7025
6994
|
|
7026
6995
|
/* if there is another module already loaded */
|
@@ -7096,7 +7065,7 @@ SWIG_InitializeModule(void *clientdata) {
|
|
7096
7065
|
for (i = 0; i < swig_module.size; ++i) {
|
7097
7066
|
int j = 0;
|
7098
7067
|
swig_cast_info *cast = swig_module.cast_initial[i];
|
7099
|
-
printf("SWIG_InitializeModule: type %
|
7068
|
+
printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
|
7100
7069
|
while (cast->type) {
|
7101
7070
|
printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
|
7102
7071
|
cast++;
|
@@ -7151,15 +7120,15 @@ extern "C"
|
|
7151
7120
|
#endif
|
7152
7121
|
SWIGEXPORT void Init_wiringpi(void) {
|
7153
7122
|
size_t i;
|
7154
|
-
|
7123
|
+
|
7155
7124
|
SWIG_InitRuntime();
|
7156
7125
|
mWiringpi = rb_define_module("Wiringpi");
|
7157
|
-
|
7126
|
+
|
7158
7127
|
SWIG_InitializeModule(0);
|
7159
7128
|
for (i = 0; i < swig_module.size; i++) {
|
7160
7129
|
SWIG_define_class(swig_module.types[i]);
|
7161
7130
|
}
|
7162
|
-
|
7131
|
+
|
7163
7132
|
SWIG_RubyInitializeTrackings();
|
7164
7133
|
rb_define_module_function(mWiringpi, "wiringPiFailure", _wrap_wiringPiFailure, -1);
|
7165
7134
|
rb_define_module_function(mWiringpi, "wiringPiFindNode", _wrap_wiringPiFindNode, -1);
|
@@ -7174,8 +7143,6 @@ SWIGEXPORT void Init_wiringpi(void) {
|
|
7174
7143
|
rb_define_module_function(mWiringpi, "pullUpDnControl", _wrap_pullUpDnControl, -1);
|
7175
7144
|
rb_define_module_function(mWiringpi, "digitalRead", _wrap_digitalRead, -1);
|
7176
7145
|
rb_define_module_function(mWiringpi, "digitalWrite", _wrap_digitalWrite, -1);
|
7177
|
-
rb_define_module_function(mWiringpi, "digitalRead8", _wrap_digitalRead8, -1);
|
7178
|
-
rb_define_module_function(mWiringpi, "digitalWrite8", _wrap_digitalWrite8, -1);
|
7179
7146
|
rb_define_module_function(mWiringpi, "pwmWrite", _wrap_pwmWrite, -1);
|
7180
7147
|
rb_define_module_function(mWiringpi, "analogRead", _wrap_analogRead, -1);
|
7181
7148
|
rb_define_module_function(mWiringpi, "analogWrite", _wrap_analogWrite, -1);
|
@@ -7319,3 +7286,4 @@ SWIGEXPORT void Init_wiringpi(void) {
|
|
7319
7286
|
rb_define_module_function(mWiringpi, "scrollPhatSetup", _wrap_scrollPhatSetup, -1);
|
7320
7287
|
rb_define_module_function(mWiringpi, "piFaceSetup", _wrap_piFaceSetup, -1);
|
7321
7288
|
}
|
7289
|
+
|