wiringpi-ruby 2.0.1 → 2.1.0
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 +1112 -663
- data/lib/wiringpi.rb +17 -12
- data/lib/wiringpi/gpio.rb +63 -81
- data/lib/wiringpi/i2c.rb +29 -22
- data/lib/wiringpi/modules/mcp23017.rb +15 -0
- data/lib/wiringpi/modules/mcp23s17.rb +14 -0
- data/lib/wiringpi/scrollphat.rb +14 -14
- data/lib/wiringpi/serial.rb +8 -18
- data/lib/wiringpi/spi.rb +14 -11
- data/lib/wiringpi/watch.rb +24 -0
- metadata +6 -4
- data/lib/wiringpi/event.rb +0 -21
- data/lib/wiringpi/mcp23x17.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d056dd6c196a4b49bf4c0b12bce1595a4095818ef0c9576d5f3d4d7fc8608dd1
|
4
|
+
data.tar.gz: 5c8bed1425d4565911eca1b6f91bee4275b33e26141cc16eee344c3b6f60acd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a82d7fdcf06c8b64a5bdcb7386b264ebdb876655d5638d1e206c3b544f62b8c0ad4a046cc0b06e117188b30a8c5ea49eed9695e33fcf4510728009d3f9822fae
|
7
|
+
data.tar.gz: 11af7822a39dcfd11bcd2017c122e41d6c0ed614231047f4e81f149b4a93256c4b339107b851509925bdbd9064ad90cf4bbb4ccaa9ba2ebe7443817ca9afe70b
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version 3.0.
|
3
|
+
* Version 3.0.12
|
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
|
@@ -8,7 +8,11 @@
|
|
8
8
|
* interface file instead.
|
9
9
|
* ----------------------------------------------------------------------------- */
|
10
10
|
|
11
|
+
|
12
|
+
#ifndef SWIGRUBY
|
11
13
|
#define SWIGRUBY
|
14
|
+
#endif
|
15
|
+
|
12
16
|
|
13
17
|
/* -----------------------------------------------------------------------------
|
14
18
|
* This section contains generic SWIG labels for method/variable
|
@@ -77,9 +81,11 @@
|
|
77
81
|
#endif
|
78
82
|
|
79
83
|
/* exporting methods */
|
80
|
-
#if (__GNUC__
|
81
|
-
#
|
82
|
-
#
|
84
|
+
#if defined(__GNUC__)
|
85
|
+
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
86
|
+
# ifndef GCC_HASCLASSVISIBILITY
|
87
|
+
# define GCC_HASCLASSVISIBILITY
|
88
|
+
# endif
|
83
89
|
# endif
|
84
90
|
#endif
|
85
91
|
|
@@ -118,6 +124,19 @@
|
|
118
124
|
# define _SCL_SECURE_NO_DEPRECATE
|
119
125
|
#endif
|
120
126
|
|
127
|
+
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
|
128
|
+
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
|
129
|
+
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
|
130
|
+
#endif
|
131
|
+
|
132
|
+
/* Intel's compiler complains if a variable which was never initialised is
|
133
|
+
* cast to void, which is a common idiom which we use to indicate that we
|
134
|
+
* are aware a variable isn't used. So we just silence that warning.
|
135
|
+
* See: https://github.com/swig/swig/issues/192 for more discussion.
|
136
|
+
*/
|
137
|
+
#ifdef __INTEL_COMPILER
|
138
|
+
# pragma warning disable 592
|
139
|
+
#endif
|
121
140
|
|
122
141
|
/* -----------------------------------------------------------------------------
|
123
142
|
* This section contains generic SWIG labels for method/variable
|
@@ -186,9 +205,11 @@
|
|
186
205
|
#endif
|
187
206
|
|
188
207
|
/* exporting methods */
|
189
|
-
#if (__GNUC__
|
190
|
-
#
|
191
|
-
#
|
208
|
+
#if defined(__GNUC__)
|
209
|
+
# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
210
|
+
# ifndef GCC_HASCLASSVISIBILITY
|
211
|
+
# define GCC_HASCLASSVISIBILITY
|
212
|
+
# endif
|
192
213
|
# endif
|
193
214
|
#endif
|
194
215
|
|
@@ -227,6 +248,19 @@
|
|
227
248
|
# define _SCL_SECURE_NO_DEPRECATE
|
228
249
|
#endif
|
229
250
|
|
251
|
+
/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
|
252
|
+
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
|
253
|
+
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
|
254
|
+
#endif
|
255
|
+
|
256
|
+
/* Intel's compiler complains if a variable which was never initialised is
|
257
|
+
* cast to void, which is a common idiom which we use to indicate that we
|
258
|
+
* are aware a variable isn't used. So we just silence that warning.
|
259
|
+
* See: https://github.com/swig/swig/issues/192 for more discussion.
|
260
|
+
*/
|
261
|
+
#ifdef __INTEL_COMPILER
|
262
|
+
# pragma warning disable 592
|
263
|
+
#endif
|
230
264
|
|
231
265
|
/* -----------------------------------------------------------------------------
|
232
266
|
* swigrun.swg
|
@@ -725,16 +759,16 @@ SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
|
725
759
|
char d = *(c++);
|
726
760
|
unsigned char uu;
|
727
761
|
if ((d >= '0') && (d <= '9'))
|
728
|
-
uu = ((d - '0') << 4);
|
762
|
+
uu = (unsigned char)((d - '0') << 4);
|
729
763
|
else if ((d >= 'a') && (d <= 'f'))
|
730
|
-
uu = ((d - ('a'-10)) << 4);
|
764
|
+
uu = (unsigned char)((d - ('a'-10)) << 4);
|
731
765
|
else
|
732
766
|
return (char *) 0;
|
733
767
|
d = *(c++);
|
734
768
|
if ((d >= '0') && (d <= '9'))
|
735
|
-
uu |= (d - '0');
|
769
|
+
uu |= (unsigned char)(d - '0');
|
736
770
|
else if ((d >= 'a') && (d <= 'f'))
|
737
|
-
uu |= (d - ('a'-10));
|
771
|
+
uu |= (unsigned char)(d - ('a'-10));
|
738
772
|
else
|
739
773
|
return (char *) 0;
|
740
774
|
*u = uu;
|
@@ -927,7 +961,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
927
961
|
* can be passed as an argument to API functions like Data_Wrap_Struct()
|
928
962
|
* and Data_Make_Struct().
|
929
963
|
*/
|
930
|
-
|
964
|
+
|
931
965
|
#ifdef __cplusplus
|
932
966
|
# ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */
|
933
967
|
# define PROTECTFUNC(f) ((VALUE (*)()) f)
|
@@ -989,7 +1023,7 @@ static VALUE _mSWIG = Qnil;
|
|
989
1023
|
exceptions. Note this only works for C++ since a global cannot be
|
990
1024
|
initialized by a function in C. For C, fallback to rb_eRuntimeError.*/
|
991
1025
|
|
992
|
-
SWIGINTERN VALUE
|
1026
|
+
SWIGINTERN VALUE
|
993
1027
|
getNullReferenceError(void) {
|
994
1028
|
static int init = 0;
|
995
1029
|
static VALUE rb_eNullReferenceError ;
|
@@ -998,9 +1032,9 @@ getNullReferenceError(void) {
|
|
998
1032
|
rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
|
999
1033
|
}
|
1000
1034
|
return rb_eNullReferenceError;
|
1001
|
-
}
|
1035
|
+
}
|
1002
1036
|
|
1003
|
-
SWIGINTERN VALUE
|
1037
|
+
SWIGINTERN VALUE
|
1004
1038
|
getObjectPreviouslyDeletedError(void) {
|
1005
1039
|
static int init = 0;
|
1006
1040
|
static VALUE rb_eObjectPreviouslyDeleted ;
|
@@ -1009,7 +1043,7 @@ getObjectPreviouslyDeletedError(void) {
|
|
1009
1043
|
rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
|
1010
1044
|
}
|
1011
1045
|
return rb_eObjectPreviouslyDeleted;
|
1012
|
-
}
|
1046
|
+
}
|
1013
1047
|
|
1014
1048
|
|
1015
1049
|
SWIGINTERN VALUE
|
@@ -1068,10 +1102,10 @@ SWIG_Ruby_ErrorType(int SWIG_code) {
|
|
1068
1102
|
/* This function is called when a user inputs a wrong argument to
|
1069
1103
|
a method.
|
1070
1104
|
*/
|
1071
|
-
SWIGINTERN
|
1105
|
+
SWIGINTERN
|
1072
1106
|
const char* Ruby_Format_TypeError( const char* msg,
|
1073
|
-
const char* type,
|
1074
|
-
const char* name,
|
1107
|
+
const char* type,
|
1108
|
+
const char* name,
|
1075
1109
|
const int argn,
|
1076
1110
|
VALUE input )
|
1077
1111
|
{
|
@@ -1116,17 +1150,17 @@ const char* Ruby_Format_TypeError( const char* msg,
|
|
1116
1150
|
}
|
1117
1151
|
|
1118
1152
|
/* This function is called when an overloaded method fails */
|
1119
|
-
SWIGINTERN
|
1153
|
+
SWIGINTERN
|
1120
1154
|
void Ruby_Format_OverloadedError(
|
1121
1155
|
const int argc,
|
1122
1156
|
const int maxargs,
|
1123
|
-
const char* method,
|
1124
|
-
const char* prototypes
|
1157
|
+
const char* method,
|
1158
|
+
const char* prototypes
|
1125
1159
|
)
|
1126
1160
|
{
|
1127
1161
|
const char* msg = "Wrong # of arguments";
|
1128
1162
|
if ( argc <= maxargs ) msg = "Wrong arguments";
|
1129
|
-
rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
|
1163
|
+
rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
|
1130
1164
|
"Possible C/C++ prototypes are:\n%s",
|
1131
1165
|
msg, method, prototypes);
|
1132
1166
|
}
|
@@ -1134,7 +1168,7 @@ void Ruby_Format_OverloadedError(
|
|
1134
1168
|
/* -----------------------------------------------------------------------------
|
1135
1169
|
* rubytracking.swg
|
1136
1170
|
*
|
1137
|
-
* This file contains support for tracking mappings from
|
1171
|
+
* This file contains support for tracking mappings from
|
1138
1172
|
* Ruby objects to C++ objects. This functionality is needed
|
1139
1173
|
* to implement mark functions for Ruby's mark and sweep
|
1140
1174
|
* garbage collector.
|
@@ -1144,6 +1178,11 @@ void Ruby_Format_OverloadedError(
|
|
1144
1178
|
extern "C" {
|
1145
1179
|
#endif
|
1146
1180
|
|
1181
|
+
#if !defined(ST_DATA_T_DEFINED)
|
1182
|
+
/* Needs to be explicitly included for Ruby 1.8 and earlier */
|
1183
|
+
#include <st.h>
|
1184
|
+
#endif
|
1185
|
+
|
1147
1186
|
/* Ruby 1.8 actually assumes the first case. */
|
1148
1187
|
#if SIZEOF_VOIDP == SIZEOF_LONG
|
1149
1188
|
# define SWIG2NUM(v) LONG2NUM((unsigned long)v)
|
@@ -1155,109 +1194,67 @@ extern "C" {
|
|
1155
1194
|
# error sizeof(void*) is not the same as long or long long
|
1156
1195
|
#endif
|
1157
1196
|
|
1158
|
-
|
1159
|
-
|
1160
|
-
structs to Ruby Objects.
|
1197
|
+
/* Global hash table to store Trackings from C/C++
|
1198
|
+
structs to Ruby Objects.
|
1161
1199
|
*/
|
1162
|
-
static
|
1200
|
+
static st_table* swig_ruby_trackings = NULL;
|
1201
|
+
|
1202
|
+
static VALUE swig_ruby_trackings_count(ANYARGS) {
|
1203
|
+
return SWIG2NUM(swig_ruby_trackings->num_entries);
|
1204
|
+
}
|
1163
1205
|
|
1164
|
-
/* Global variable that stores a reference to the ruby
|
1165
|
-
hash table delete function. */
|
1166
|
-
static ID swig_ruby_hash_delete;
|
1167
1206
|
|
1168
|
-
/* Setup a
|
1207
|
+
/* Setup a hash table to store Trackings */
|
1169
1208
|
SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
|
1170
|
-
/* Create a
|
1209
|
+
/* Create a hash table to store Trackings from C++
|
1171
1210
|
objects to Ruby objects. */
|
1172
1211
|
|
1173
|
-
/* Try to see if some other .so has already created a
|
1212
|
+
/* Try to see if some other .so has already created a
|
1174
1213
|
tracking hash table, which we keep hidden in an instance var
|
1175
1214
|
in the SWIG module.
|
1176
1215
|
This is done to allow multiple DSOs to share the same
|
1177
1216
|
tracking table.
|
1178
1217
|
*/
|
1179
|
-
|
1218
|
+
VALUE trackings_value = Qnil;
|
1219
|
+
/* change the variable name so that we can mix modules
|
1220
|
+
compiled with older SWIG's - this used to be called "@__trackings__" */
|
1221
|
+
ID trackings_id = rb_intern( "@__safetrackings__" );
|
1180
1222
|
VALUE verbose = rb_gv_get("VERBOSE");
|
1181
1223
|
rb_gv_set("VERBOSE", Qfalse);
|
1182
|
-
|
1224
|
+
trackings_value = rb_ivar_get( _mSWIG, trackings_id );
|
1183
1225
|
rb_gv_set("VERBOSE", verbose);
|
1184
1226
|
|
1185
|
-
/*
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
}
|
1196
|
-
|
1197
|
-
/* Get a Ruby number to reference a pointer */
|
1198
|
-
SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
|
1199
|
-
/* We cast the pointer to an unsigned long
|
1200
|
-
and then store a reference to it using
|
1201
|
-
a Ruby number object. */
|
1202
|
-
|
1203
|
-
/* Convert the pointer to a Ruby number */
|
1204
|
-
return SWIG2NUM(ptr);
|
1205
|
-
}
|
1206
|
-
|
1207
|
-
/* Get a Ruby number to reference an object */
|
1208
|
-
SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
|
1209
|
-
/* We cast the object to an unsigned long
|
1210
|
-
and then store a reference to it using
|
1211
|
-
a Ruby number object. */
|
1212
|
-
|
1213
|
-
/* Convert the Object to a Ruby number */
|
1214
|
-
return SWIG2NUM(object);
|
1215
|
-
}
|
1216
|
-
|
1217
|
-
/* Get a Ruby object from a previously stored reference */
|
1218
|
-
SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
|
1219
|
-
/* The provided Ruby number object is a reference
|
1220
|
-
to the Ruby object we want.*/
|
1227
|
+
/* The trick here is that we have to store the hash table
|
1228
|
+
pointer in a Ruby variable. We do not want Ruby's GC to
|
1229
|
+
treat this pointer as a Ruby object, so we convert it to
|
1230
|
+
a Ruby numeric value. */
|
1231
|
+
if (trackings_value == Qnil) {
|
1232
|
+
/* No, it hasn't. Create one ourselves */
|
1233
|
+
swig_ruby_trackings = st_init_numtable();
|
1234
|
+
rb_ivar_set( _mSWIG, trackings_id, SWIG2NUM(swig_ruby_trackings) );
|
1235
|
+
} else {
|
1236
|
+
swig_ruby_trackings = (st_table*)NUM2SWIG(trackings_value);
|
1237
|
+
}
|
1221
1238
|
|
1222
|
-
|
1223
|
-
return NUM2SWIG(reference);
|
1239
|
+
rb_define_virtual_variable("SWIG_TRACKINGS_COUNT", swig_ruby_trackings_count, NULL);
|
1224
1240
|
}
|
1225
1241
|
|
1226
1242
|
/* Add a Tracking from a C/C++ struct to a Ruby object */
|
1227
1243
|
SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) {
|
1228
|
-
/* In a Ruby hash table we store the pointer and
|
1229
|
-
the associated Ruby object. The trick here is
|
1230
|
-
that we cannot store the Ruby object directly - if
|
1231
|
-
we do then it cannot be garbage collected. So
|
1232
|
-
instead we typecast it as a unsigned long and
|
1233
|
-
convert it to a Ruby number object.*/
|
1234
|
-
|
1235
|
-
/* Get a reference to the pointer as a Ruby number */
|
1236
|
-
VALUE key = SWIG_RubyPtrToReference(ptr);
|
1237
|
-
|
1238
|
-
/* Get a reference to the Ruby object as a Ruby number */
|
1239
|
-
VALUE value = SWIG_RubyObjectToReference(object);
|
1240
|
-
|
1241
1244
|
/* Store the mapping to the global hash table. */
|
1242
|
-
|
1245
|
+
st_insert(swig_ruby_trackings, (st_data_t)ptr, object);
|
1243
1246
|
}
|
1244
1247
|
|
1245
1248
|
/* Get the Ruby object that owns the specified C/C++ struct */
|
1246
1249
|
SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
|
1247
|
-
/* Get a reference to the pointer as a Ruby number */
|
1248
|
-
VALUE key = SWIG_RubyPtrToReference(ptr);
|
1249
|
-
|
1250
1250
|
/* Now lookup the value stored in the global hash table */
|
1251
|
-
VALUE value
|
1252
|
-
|
1253
|
-
if (
|
1254
|
-
|
1251
|
+
VALUE value;
|
1252
|
+
|
1253
|
+
if (st_lookup(swig_ruby_trackings, (st_data_t)ptr, &value)) {
|
1254
|
+
return value;
|
1255
|
+
} else {
|
1255
1256
|
return Qnil;
|
1256
1257
|
}
|
1257
|
-
else {
|
1258
|
-
/* Convert this value to Ruby object */
|
1259
|
-
return SWIG_RubyReferenceToObject(value);
|
1260
|
-
}
|
1261
1258
|
}
|
1262
1259
|
|
1263
1260
|
/* Remove a Tracking from a C/C++ struct to a Ruby object. It
|
@@ -1265,12 +1262,8 @@ SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
|
|
1265
1262
|
since the same memory address may be reused later to create
|
1266
1263
|
a new object. */
|
1267
1264
|
SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) {
|
1268
|
-
/*
|
1269
|
-
|
1270
|
-
|
1271
|
-
/* Delete the object from the hash table by calling Ruby's
|
1272
|
-
do this we need to call the Hash.delete method.*/
|
1273
|
-
rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key);
|
1265
|
+
/* Delete the object from the hash table */
|
1266
|
+
st_delete(swig_ruby_trackings, (st_data_t *)&ptr, NULL);
|
1274
1267
|
}
|
1275
1268
|
|
1276
1269
|
/* This is a helper method that unlinks a Ruby object from its
|
@@ -1280,10 +1273,25 @@ SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
|
|
1280
1273
|
VALUE object = SWIG_RubyInstanceFor(ptr);
|
1281
1274
|
|
1282
1275
|
if (object != Qnil) {
|
1276
|
+
if (TYPE(object) != T_DATA)
|
1277
|
+
abort();
|
1283
1278
|
DATA_PTR(object) = 0;
|
1284
1279
|
}
|
1285
1280
|
}
|
1286
1281
|
|
1282
|
+
/* This is a helper method that iterates over all the trackings
|
1283
|
+
passing the C++ object pointer and its related Ruby object
|
1284
|
+
to the passed callback function. */
|
1285
|
+
|
1286
|
+
/* Proxy method to abstract the internal trackings datatype */
|
1287
|
+
static int swig_ruby_internal_iterate_callback(void* ptr, VALUE obj, void(*meth)(void* ptr, VALUE obj)) {
|
1288
|
+
(*meth)(ptr, obj);
|
1289
|
+
return ST_CONTINUE;
|
1290
|
+
}
|
1291
|
+
|
1292
|
+
SWIGRUNTIME void SWIG_RubyIterateTrackings( void(*meth)(void* ptr, VALUE obj) ) {
|
1293
|
+
st_foreach(swig_ruby_trackings, (int (*)(ANYARGS))&swig_ruby_internal_iterate_callback, (st_data_t)meth);
|
1294
|
+
}
|
1287
1295
|
|
1288
1296
|
#ifdef __cplusplus
|
1289
1297
|
}
|
@@ -1342,7 +1350,7 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1342
1350
|
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
|
1343
1351
|
#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags)
|
1344
1352
|
#define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own)
|
1345
|
-
#define swig_owntype
|
1353
|
+
#define swig_owntype swig_ruby_owntype
|
1346
1354
|
|
1347
1355
|
/* for raw packed data */
|
1348
1356
|
#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
|
@@ -1369,18 +1377,18 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1369
1377
|
|
1370
1378
|
/* Error manipulation */
|
1371
1379
|
|
1372
|
-
#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
|
1380
|
+
#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
|
1373
1381
|
#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg)
|
1374
|
-
#define SWIG_fail goto fail
|
1382
|
+
#define SWIG_fail goto fail
|
1375
1383
|
|
1376
1384
|
|
1377
1385
|
/* Ruby-specific SWIG API */
|
1378
1386
|
|
1379
|
-
#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
|
1387
|
+
#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
|
1380
1388
|
#define SWIG_define_class(ty) SWIG_Ruby_define_class(ty)
|
1381
1389
|
#define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty)
|
1382
|
-
#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
|
1383
|
-
#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
|
1390
|
+
#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
|
1391
|
+
#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
|
1384
1392
|
|
1385
1393
|
#include "assert.h"
|
1386
1394
|
|
@@ -1411,9 +1419,9 @@ static ID swig_call_id = 0;
|
|
1411
1419
|
|
1412
1420
|
/*
|
1413
1421
|
If your swig extension is to be run within an embedded ruby and has
|
1414
|
-
director callbacks, you should set -DRUBY_EMBEDDED during compilation.
|
1415
|
-
This will reset ruby's stack frame on each entry point from the main
|
1416
|
-
program the first time a virtual director function is invoked (in a
|
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
|
1417
1425
|
non-recursive way).
|
1418
1426
|
If this is not done, you run the risk of Ruby trashing the stack.
|
1419
1427
|
*/
|
@@ -1439,7 +1447,7 @@ static ID swig_call_id = 0;
|
|
1439
1447
|
#endif /* RUBY_EMBEDDED */
|
1440
1448
|
|
1441
1449
|
|
1442
|
-
SWIGRUNTIME VALUE
|
1450
|
+
SWIGRUNTIME VALUE
|
1443
1451
|
getExceptionClass(void) {
|
1444
1452
|
static int init = 0;
|
1445
1453
|
static VALUE rubyExceptionClass ;
|
@@ -1448,7 +1456,7 @@ getExceptionClass(void) {
|
|
1448
1456
|
rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
|
1449
1457
|
}
|
1450
1458
|
return rubyExceptionClass;
|
1451
|
-
}
|
1459
|
+
}
|
1452
1460
|
|
1453
1461
|
/* This code checks to see if the Ruby object being raised as part
|
1454
1462
|
of an exception inherits from the Ruby class Exception. If so,
|
@@ -1493,31 +1501,31 @@ SWIG_Ruby_define_class(swig_type_info *type)
|
|
1493
1501
|
SWIGRUNTIME VALUE
|
1494
1502
|
SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
1495
1503
|
{
|
1496
|
-
int own = flags & SWIG_POINTER_OWN;
|
1504
|
+
int own = flags & SWIG_POINTER_OWN;
|
1497
1505
|
int track;
|
1498
1506
|
char *klass_name;
|
1499
1507
|
swig_class *sklass;
|
1500
1508
|
VALUE klass;
|
1501
1509
|
VALUE obj;
|
1502
|
-
|
1510
|
+
|
1503
1511
|
if (!ptr)
|
1504
1512
|
return Qnil;
|
1505
|
-
|
1513
|
+
|
1506
1514
|
if (type->clientdata) {
|
1507
1515
|
sklass = (swig_class *) type->clientdata;
|
1508
|
-
|
1516
|
+
|
1509
1517
|
/* Are we tracking this class and have we already returned this Ruby object? */
|
1510
1518
|
track = sklass->trackObjects;
|
1511
1519
|
if (track) {
|
1512
1520
|
obj = SWIG_RubyInstanceFor(ptr);
|
1513
|
-
|
1521
|
+
|
1514
1522
|
/* Check the object's type and make sure it has the correct type.
|
1515
|
-
It might not in cases where methods do things like
|
1523
|
+
It might not in cases where methods do things like
|
1516
1524
|
downcast methods. */
|
1517
1525
|
if (obj != Qnil) {
|
1518
1526
|
VALUE value = rb_iv_get(obj, "@__swigtype__");
|
1519
1527
|
const char* type_name = RSTRING_PTR(value);
|
1520
|
-
|
1528
|
+
|
1521
1529
|
if (strcmp(type->name, type_name) == 0) {
|
1522
1530
|
return obj;
|
1523
1531
|
}
|
@@ -1525,8 +1533,8 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1525
1533
|
}
|
1526
1534
|
|
1527
1535
|
/* Create a new Ruby object */
|
1528
|
-
obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
|
1529
|
-
( own ? VOIDFUNC(sklass->destroy) :
|
1536
|
+
obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
|
1537
|
+
( own ? VOIDFUNC(sklass->destroy) :
|
1530
1538
|
(track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
|
1531
1539
|
), ptr);
|
1532
1540
|
|
@@ -1542,7 +1550,7 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
1542
1550
|
obj = Data_Wrap_Struct(klass, 0, 0, ptr);
|
1543
1551
|
}
|
1544
1552
|
rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
|
1545
|
-
|
1553
|
+
|
1546
1554
|
return obj;
|
1547
1555
|
}
|
1548
1556
|
|
@@ -1566,22 +1574,24 @@ SWIG_Ruby_MangleStr(VALUE obj)
|
|
1566
1574
|
}
|
1567
1575
|
|
1568
1576
|
/* Acquire a pointer value */
|
1569
|
-
typedef
|
1577
|
+
typedef struct {
|
1578
|
+
void (*datafree)(void *);
|
1579
|
+
int own;
|
1580
|
+
} swig_ruby_owntype;
|
1570
1581
|
|
1571
|
-
SWIGRUNTIME
|
1572
|
-
SWIG_Ruby_AcquirePtr(VALUE obj,
|
1582
|
+
SWIGRUNTIME swig_ruby_owntype
|
1583
|
+
SWIG_Ruby_AcquirePtr(VALUE obj, swig_ruby_owntype own) {
|
1584
|
+
swig_ruby_owntype oldown = {0, 0};
|
1573
1585
|
if (obj) {
|
1574
|
-
|
1575
|
-
RDATA(obj)->dfree = own;
|
1576
|
-
return oldown;
|
1577
|
-
} else {
|
1578
|
-
return 0;
|
1586
|
+
oldown.datafree = RDATA(obj)->dfree;
|
1587
|
+
RDATA(obj)->dfree = own.datafree;
|
1579
1588
|
}
|
1589
|
+
return oldown;
|
1580
1590
|
}
|
1581
1591
|
|
1582
1592
|
/* Convert a pointer value */
|
1583
1593
|
SWIGRUNTIME int
|
1584
|
-
SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
1594
|
+
SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, swig_ruby_owntype *own)
|
1585
1595
|
{
|
1586
1596
|
char *c;
|
1587
1597
|
swig_cast_info *tc;
|
@@ -1589,7 +1599,8 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1589
1599
|
|
1590
1600
|
/* Grab the pointer */
|
1591
1601
|
if (NIL_P(obj)) {
|
1592
|
-
|
1602
|
+
if (ptr)
|
1603
|
+
*ptr = 0;
|
1593
1604
|
return SWIG_OK;
|
1594
1605
|
} else {
|
1595
1606
|
if (TYPE(obj) != T_DATA) {
|
@@ -1597,13 +1608,16 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1597
1608
|
}
|
1598
1609
|
Data_Get_Struct(obj, void, vptr);
|
1599
1610
|
}
|
1600
|
-
|
1601
|
-
if (own)
|
1602
|
-
|
1611
|
+
|
1612
|
+
if (own) {
|
1613
|
+
own->datafree = RDATA(obj)->dfree;
|
1614
|
+
own->own = 0;
|
1615
|
+
}
|
1616
|
+
|
1603
1617
|
/* Check to see if the input object is giving up ownership
|
1604
1618
|
of the underlying C struct or C++ object. If so then we
|
1605
|
-
need to reset the destructor since the Ruby object no
|
1606
|
-
longer owns the underlying C++ object.*/
|
1619
|
+
need to reset the destructor since the Ruby object no
|
1620
|
+
longer owns the underlying C++ object.*/
|
1607
1621
|
if (flags & SWIG_POINTER_DISOWN) {
|
1608
1622
|
/* Is tracking on for this class? */
|
1609
1623
|
int track = 0;
|
@@ -1611,16 +1625,16 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1611
1625
|
swig_class *sklass = (swig_class *) ty->clientdata;
|
1612
1626
|
track = sklass->trackObjects;
|
1613
1627
|
}
|
1614
|
-
|
1628
|
+
|
1615
1629
|
if (track) {
|
1616
1630
|
/* We are tracking objects for this class. Thus we change the destructor
|
1617
1631
|
* to SWIG_RubyRemoveTracking. This allows us to
|
1618
1632
|
* remove the mapping from the C++ to Ruby object
|
1619
1633
|
* when the Ruby object is garbage collected. If we don't
|
1620
|
-
* do this, then it is possible we will return a reference
|
1634
|
+
* do this, then it is possible we will return a reference
|
1621
1635
|
* to a Ruby object that no longer exists thereby crashing Ruby. */
|
1622
1636
|
RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
|
1623
|
-
} else {
|
1637
|
+
} else {
|
1624
1638
|
RDATA(obj)->dfree = 0;
|
1625
1639
|
}
|
1626
1640
|
}
|
@@ -1633,8 +1647,6 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1633
1647
|
/* The object has already been deleted */
|
1634
1648
|
return SWIG_ObjectPreviouslyDeletedError;
|
1635
1649
|
}
|
1636
|
-
*ptr = vptr;
|
1637
|
-
return SWIG_OK;
|
1638
1650
|
}
|
1639
1651
|
}
|
1640
1652
|
if ((c = SWIG_MangleStr(obj)) == NULL) {
|
@@ -1644,14 +1656,25 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1644
1656
|
if (!tc) {
|
1645
1657
|
return SWIG_ERROR;
|
1646
1658
|
} else {
|
1647
|
-
|
1648
|
-
|
1649
|
-
|
1659
|
+
if (ptr) {
|
1660
|
+
if (tc->type == ty) {
|
1661
|
+
*ptr = vptr;
|
1662
|
+
} else {
|
1663
|
+
int newmemory = 0;
|
1664
|
+
*ptr = SWIG_TypeCast(tc, vptr, &newmemory);
|
1665
|
+
if (newmemory == SWIG_CAST_NEW_MEMORY) {
|
1666
|
+
assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
|
1667
|
+
if (own)
|
1668
|
+
own->own = own->own | SWIG_CAST_NEW_MEMORY;
|
1669
|
+
}
|
1670
|
+
}
|
1671
|
+
}
|
1650
1672
|
}
|
1651
1673
|
} else {
|
1652
|
-
|
1674
|
+
if (ptr)
|
1675
|
+
*ptr = vptr;
|
1653
1676
|
}
|
1654
|
-
|
1677
|
+
|
1655
1678
|
return SWIG_OK;
|
1656
1679
|
}
|
1657
1680
|
|
@@ -1706,7 +1729,7 @@ SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata))
|
|
1706
1729
|
|
1707
1730
|
/* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
|
1708
1731
|
rb_gv_set("VERBOSE", Qfalse);
|
1709
|
-
|
1732
|
+
|
1710
1733
|
/* first check if pointer already created */
|
1711
1734
|
pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
|
1712
1735
|
if (pointer != Qnil) {
|
@@ -1718,7 +1741,7 @@ SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata))
|
|
1718
1741
|
return ret;
|
1719
1742
|
}
|
1720
1743
|
|
1721
|
-
SWIGRUNTIME void
|
1744
|
+
SWIGRUNTIME void
|
1722
1745
|
SWIG_Ruby_SetModule(swig_module_info *pointer)
|
1723
1746
|
{
|
1724
1747
|
/* register a new class */
|
@@ -1769,9 +1792,9 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1769
1792
|
|
1770
1793
|
|
1771
1794
|
|
1772
|
-
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
|
1795
|
+
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
|
1773
1796
|
|
1774
|
-
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
|
1797
|
+
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
|
1775
1798
|
|
1776
1799
|
|
1777
1800
|
|
@@ -1798,12 +1821,12 @@ static VALUE mWiringpi;
|
|
1798
1821
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
1799
1822
|
|
1800
1823
|
|
1801
|
-
#define SWIGVERSION
|
1824
|
+
#define SWIGVERSION 0x030012
|
1802
1825
|
#define SWIG_VERSION SWIGVERSION
|
1803
1826
|
|
1804
1827
|
|
1805
|
-
#define SWIG_as_voidptr(a) (void *)((const void *)(a))
|
1806
|
-
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
|
1828
|
+
#define SWIG_as_voidptr(a) (void *)((const void *)(a))
|
1829
|
+
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
|
1807
1830
|
|
1808
1831
|
|
1809
1832
|
#include "WiringPi/wiringPi/wiringPi.h"
|
@@ -1834,6 +1857,13 @@ static VALUE mWiringpi;
|
|
1834
1857
|
#include "WiringPi/wiringPi/softServo.h"
|
1835
1858
|
#include "WiringPi/wiringPi/softTone.h"
|
1836
1859
|
#include "WiringPi/wiringPi/sr595.h"
|
1860
|
+
#include "WiringPi/wiringPi/bmp180.h"
|
1861
|
+
#include "WiringPi/wiringPi/drcNet.h"
|
1862
|
+
#include "WiringPi/wiringPi/ds18b20.h"
|
1863
|
+
#include "WiringPi/wiringPi/htu21d.h"
|
1864
|
+
#include "WiringPi/wiringPi/pseudoPins.h"
|
1865
|
+
#include "WiringPi/wiringPi/rht03.h"
|
1866
|
+
#include "WiringPi/wiringPi/wpiExtensions.h"
|
1837
1867
|
#include "WiringPi/devLib/ds1302.h"
|
1838
1868
|
#include "WiringPi/devLib/font.h"
|
1839
1869
|
#include "WiringPi/devLib/gertboard.h"
|
@@ -1843,6 +1873,7 @@ static VALUE mWiringpi;
|
|
1843
1873
|
#include "WiringPi/devLib/piGlow.h"
|
1844
1874
|
#include "WiringPi/devLib/piNes.h"
|
1845
1875
|
#include "WiringPi/devLib/scrollPhat.h"
|
1876
|
+
#include "WiringPi/devLib/piFace.h"
|
1846
1877
|
|
1847
1878
|
|
1848
1879
|
#include <limits.h>
|
@@ -1859,7 +1890,7 @@ SWIGINTERN VALUE
|
|
1859
1890
|
SWIG_ruby_failed(void)
|
1860
1891
|
{
|
1861
1892
|
return Qnil;
|
1862
|
-
}
|
1893
|
+
}
|
1863
1894
|
|
1864
1895
|
|
1865
1896
|
/*@SWIG:/usr/share/swig3.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
|
@@ -1902,7 +1933,7 @@ SWIG_AsVal_int (VALUE obj, int *val)
|
|
1902
1933
|
} else {
|
1903
1934
|
if (val) *val = (int)(v);
|
1904
1935
|
}
|
1905
|
-
}
|
1936
|
+
}
|
1906
1937
|
return res;
|
1907
1938
|
}
|
1908
1939
|
|
@@ -1924,12 +1955,12 @@ SWIGINTERN int
|
|
1924
1955
|
SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
1925
1956
|
{
|
1926
1957
|
if (TYPE(obj) == T_STRING) {
|
1927
|
-
char *cstr = StringValuePtr(obj);
|
1958
|
+
char *cstr = StringValuePtr(obj);
|
1928
1959
|
size_t size = RSTRING_LEN(obj) + 1;
|
1929
1960
|
if (cptr) {
|
1930
1961
|
if (alloc) {
|
1931
1962
|
if (*alloc == SWIG_NEWOBJ) {
|
1932
|
-
*cptr = (char *)memcpy(
|
1963
|
+
*cptr = (char *)memcpy(malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
|
1933
1964
|
} else {
|
1934
1965
|
*cptr = cstr;
|
1935
1966
|
*alloc = SWIG_OLDOBJ;
|
@@ -1949,7 +1980,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
1949
1980
|
return SWIG_OK;
|
1950
1981
|
}
|
1951
1982
|
}
|
1952
|
-
}
|
1983
|
+
}
|
1953
1984
|
return SWIG_TypeError;
|
1954
1985
|
}
|
1955
1986
|
|
@@ -1957,12 +1988,12 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
1957
1988
|
|
1958
1989
|
|
1959
1990
|
|
1960
|
-
#define SWIG_From_long LONG2NUM
|
1991
|
+
#define SWIG_From_long LONG2NUM
|
1961
1992
|
|
1962
1993
|
|
1963
1994
|
SWIGINTERNINLINE VALUE
|
1964
1995
|
SWIG_From_int (int value)
|
1965
|
-
{
|
1996
|
+
{
|
1966
1997
|
return SWIG_From_long (value);
|
1967
1998
|
}
|
1968
1999
|
|
@@ -1970,13 +2001,13 @@ SWIG_From_int (int value)
|
|
1970
2001
|
SWIGINTERNINLINE VALUE
|
1971
2002
|
SWIG_From_unsigned_SS_long (unsigned long value)
|
1972
2003
|
{
|
1973
|
-
return ULONG2NUM(value);
|
2004
|
+
return ULONG2NUM(value);
|
1974
2005
|
}
|
1975
2006
|
|
1976
2007
|
|
1977
2008
|
SWIGINTERNINLINE VALUE
|
1978
2009
|
SWIG_From_unsigned_SS_int (unsigned int value)
|
1979
|
-
{
|
2010
|
+
{
|
1980
2011
|
return SWIG_From_unsigned_SS_long (value);
|
1981
2012
|
}
|
1982
2013
|
|
@@ -1993,7 +2024,7 @@ SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
|
1993
2024
|
/*@SWIG@*/
|
1994
2025
|
|
1995
2026
|
SWIGINTERN int
|
1996
|
-
SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
2027
|
+
SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
1997
2028
|
{
|
1998
2029
|
VALUE type = TYPE(obj);
|
1999
2030
|
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
@@ -2021,7 +2052,7 @@ SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
|
|
2021
2052
|
} else {
|
2022
2053
|
if (val) *val = (unsigned int)(v);
|
2023
2054
|
}
|
2024
|
-
}
|
2055
|
+
}
|
2025
2056
|
return res;
|
2026
2057
|
}
|
2027
2058
|
|
@@ -2037,14 +2068,14 @@ SWIG_AsVal_unsigned_SS_char (VALUE obj, unsigned char *val)
|
|
2037
2068
|
} else {
|
2038
2069
|
if (val) *val = (unsigned char)(v);
|
2039
2070
|
}
|
2040
|
-
}
|
2071
|
+
}
|
2041
2072
|
return res;
|
2042
2073
|
}
|
2043
2074
|
|
2044
2075
|
|
2045
2076
|
SWIGINTERNINLINE VALUE
|
2046
2077
|
SWIG_From_unsigned_SS_char (unsigned char value)
|
2047
|
-
{
|
2078
|
+
{
|
2048
2079
|
return SWIG_From_unsigned_SS_long (value);
|
2049
2080
|
}
|
2050
2081
|
|
@@ -2060,14 +2091,14 @@ _wrap_wiringPiFailure(int argc, VALUE *argv, VALUE self) {
|
|
2060
2091
|
int alloc2 = 0 ;
|
2061
2092
|
int result;
|
2062
2093
|
VALUE vresult = Qnil;
|
2063
|
-
|
2094
|
+
|
2064
2095
|
if (argc < 2) {
|
2065
2096
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2066
2097
|
}
|
2067
2098
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2068
2099
|
if (!SWIG_IsOK(ecode1)) {
|
2069
2100
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiFailure", 1, argv[0] ));
|
2070
|
-
}
|
2101
|
+
}
|
2071
2102
|
arg1 = (int)(val1);
|
2072
2103
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
2073
2104
|
if (!SWIG_IsOK(res2)) {
|
@@ -2091,14 +2122,14 @@ _wrap_wiringPiFindNode(int argc, VALUE *argv, VALUE self) {
|
|
2091
2122
|
int ecode1 = 0 ;
|
2092
2123
|
struct wiringPiNodeStruct *result = 0 ;
|
2093
2124
|
VALUE vresult = Qnil;
|
2094
|
-
|
2125
|
+
|
2095
2126
|
if ((argc < 1) || (argc > 1)) {
|
2096
2127
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2097
2128
|
}
|
2098
2129
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2099
2130
|
if (!SWIG_IsOK(ecode1)) {
|
2100
2131
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiFindNode", 1, argv[0] ));
|
2101
|
-
}
|
2132
|
+
}
|
2102
2133
|
arg1 = (int)(val1);
|
2103
2134
|
result = (struct wiringPiNodeStruct *)wiringPiFindNode(arg1);
|
2104
2135
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wiringPiNodeStruct, 0 | 0 );
|
@@ -2118,19 +2149,19 @@ _wrap_wiringPiNewNode(int argc, VALUE *argv, VALUE self) {
|
|
2118
2149
|
int ecode2 = 0 ;
|
2119
2150
|
struct wiringPiNodeStruct *result = 0 ;
|
2120
2151
|
VALUE vresult = Qnil;
|
2121
|
-
|
2152
|
+
|
2122
2153
|
if ((argc < 2) || (argc > 2)) {
|
2123
2154
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2124
2155
|
}
|
2125
2156
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2126
2157
|
if (!SWIG_IsOK(ecode1)) {
|
2127
2158
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiNewNode", 1, argv[0] ));
|
2128
|
-
}
|
2159
|
+
}
|
2129
2160
|
arg1 = (int)(val1);
|
2130
2161
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2131
2162
|
if (!SWIG_IsOK(ecode2)) {
|
2132
2163
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiNewNode", 2, argv[1] ));
|
2133
|
-
}
|
2164
|
+
}
|
2134
2165
|
arg2 = (int)(val2);
|
2135
2166
|
result = (struct wiringPiNodeStruct *)wiringPiNewNode(arg1,arg2);
|
2136
2167
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wiringPiNodeStruct, 0 | 0 );
|
@@ -2140,11 +2171,40 @@ fail:
|
|
2140
2171
|
}
|
2141
2172
|
|
2142
2173
|
|
2174
|
+
SWIGINTERN VALUE
|
2175
|
+
_wrap_wiringPiVersion(int argc, VALUE *argv, VALUE self) {
|
2176
|
+
int *arg1 = (int *) 0 ;
|
2177
|
+
int *arg2 = (int *) 0 ;
|
2178
|
+
void *argp1 = 0 ;
|
2179
|
+
int res1 = 0 ;
|
2180
|
+
void *argp2 = 0 ;
|
2181
|
+
int res2 = 0 ;
|
2182
|
+
|
2183
|
+
if ((argc < 2) || (argc > 2)) {
|
2184
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2185
|
+
}
|
2186
|
+
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_int, 0 | 0 );
|
2187
|
+
if (!SWIG_IsOK(res1)) {
|
2188
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","wiringPiVersion", 1, argv[0] ));
|
2189
|
+
}
|
2190
|
+
arg1 = (int *)(argp1);
|
2191
|
+
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
|
2192
|
+
if (!SWIG_IsOK(res2)) {
|
2193
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","wiringPiVersion", 2, argv[1] ));
|
2194
|
+
}
|
2195
|
+
arg2 = (int *)(argp2);
|
2196
|
+
wiringPiVersion(arg1,arg2);
|
2197
|
+
return Qnil;
|
2198
|
+
fail:
|
2199
|
+
return Qnil;
|
2200
|
+
}
|
2201
|
+
|
2202
|
+
|
2143
2203
|
SWIGINTERN VALUE
|
2144
2204
|
_wrap_wiringPiSetup(int argc, VALUE *argv, VALUE self) {
|
2145
2205
|
int result;
|
2146
2206
|
VALUE vresult = Qnil;
|
2147
|
-
|
2207
|
+
|
2148
2208
|
if ((argc < 0) || (argc > 0)) {
|
2149
2209
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2150
2210
|
}
|
@@ -2160,7 +2220,7 @@ SWIGINTERN VALUE
|
|
2160
2220
|
_wrap_wiringPiSetupSys(int argc, VALUE *argv, VALUE self) {
|
2161
2221
|
int result;
|
2162
2222
|
VALUE vresult = Qnil;
|
2163
|
-
|
2223
|
+
|
2164
2224
|
if ((argc < 0) || (argc > 0)) {
|
2165
2225
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2166
2226
|
}
|
@@ -2176,7 +2236,7 @@ SWIGINTERN VALUE
|
|
2176
2236
|
_wrap_wiringPiSetupGpio(int argc, VALUE *argv, VALUE self) {
|
2177
2237
|
int result;
|
2178
2238
|
VALUE vresult = Qnil;
|
2179
|
-
|
2239
|
+
|
2180
2240
|
if ((argc < 0) || (argc > 0)) {
|
2181
2241
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2182
2242
|
}
|
@@ -2192,7 +2252,7 @@ SWIGINTERN VALUE
|
|
2192
2252
|
_wrap_wiringPiSetupPhys(int argc, VALUE *argv, VALUE self) {
|
2193
2253
|
int result;
|
2194
2254
|
VALUE vresult = Qnil;
|
2195
|
-
|
2255
|
+
|
2196
2256
|
if ((argc < 0) || (argc > 0)) {
|
2197
2257
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2198
2258
|
}
|
@@ -2212,19 +2272,19 @@ _wrap_pinModeAlt(int argc, VALUE *argv, VALUE self) {
|
|
2212
2272
|
int ecode1 = 0 ;
|
2213
2273
|
int val2 ;
|
2214
2274
|
int ecode2 = 0 ;
|
2215
|
-
|
2275
|
+
|
2216
2276
|
if ((argc < 2) || (argc > 2)) {
|
2217
2277
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2218
2278
|
}
|
2219
2279
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2220
2280
|
if (!SWIG_IsOK(ecode1)) {
|
2221
2281
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pinModeAlt", 1, argv[0] ));
|
2222
|
-
}
|
2282
|
+
}
|
2223
2283
|
arg1 = (int)(val1);
|
2224
2284
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2225
2285
|
if (!SWIG_IsOK(ecode2)) {
|
2226
2286
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pinModeAlt", 2, argv[1] ));
|
2227
|
-
}
|
2287
|
+
}
|
2228
2288
|
arg2 = (int)(val2);
|
2229
2289
|
pinModeAlt(arg1,arg2);
|
2230
2290
|
return Qnil;
|
@@ -2241,19 +2301,19 @@ _wrap_pinMode(int argc, VALUE *argv, VALUE self) {
|
|
2241
2301
|
int ecode1 = 0 ;
|
2242
2302
|
int val2 ;
|
2243
2303
|
int ecode2 = 0 ;
|
2244
|
-
|
2304
|
+
|
2245
2305
|
if ((argc < 2) || (argc > 2)) {
|
2246
2306
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2247
2307
|
}
|
2248
2308
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2249
2309
|
if (!SWIG_IsOK(ecode1)) {
|
2250
2310
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pinMode", 1, argv[0] ));
|
2251
|
-
}
|
2311
|
+
}
|
2252
2312
|
arg1 = (int)(val1);
|
2253
2313
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2254
2314
|
if (!SWIG_IsOK(ecode2)) {
|
2255
2315
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pinMode", 2, argv[1] ));
|
2256
|
-
}
|
2316
|
+
}
|
2257
2317
|
arg2 = (int)(val2);
|
2258
2318
|
pinMode(arg1,arg2);
|
2259
2319
|
return Qnil;
|
@@ -2270,19 +2330,19 @@ _wrap_pullUpDnControl(int argc, VALUE *argv, VALUE self) {
|
|
2270
2330
|
int ecode1 = 0 ;
|
2271
2331
|
int val2 ;
|
2272
2332
|
int ecode2 = 0 ;
|
2273
|
-
|
2333
|
+
|
2274
2334
|
if ((argc < 2) || (argc > 2)) {
|
2275
2335
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2276
2336
|
}
|
2277
2337
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2278
2338
|
if (!SWIG_IsOK(ecode1)) {
|
2279
2339
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pullUpDnControl", 1, argv[0] ));
|
2280
|
-
}
|
2340
|
+
}
|
2281
2341
|
arg1 = (int)(val1);
|
2282
2342
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2283
2343
|
if (!SWIG_IsOK(ecode2)) {
|
2284
2344
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pullUpDnControl", 2, argv[1] ));
|
2285
|
-
}
|
2345
|
+
}
|
2286
2346
|
arg2 = (int)(val2);
|
2287
2347
|
pullUpDnControl(arg1,arg2);
|
2288
2348
|
return Qnil;
|
@@ -2298,14 +2358,14 @@ _wrap_digitalRead(int argc, VALUE *argv, VALUE self) {
|
|
2298
2358
|
int ecode1 = 0 ;
|
2299
2359
|
int result;
|
2300
2360
|
VALUE vresult = Qnil;
|
2301
|
-
|
2361
|
+
|
2302
2362
|
if ((argc < 1) || (argc > 1)) {
|
2303
2363
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2304
2364
|
}
|
2305
2365
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2306
2366
|
if (!SWIG_IsOK(ecode1)) {
|
2307
2367
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","digitalRead", 1, argv[0] ));
|
2308
|
-
}
|
2368
|
+
}
|
2309
2369
|
arg1 = (int)(val1);
|
2310
2370
|
result = (int)digitalRead(arg1);
|
2311
2371
|
vresult = SWIG_From_int((int)(result));
|
@@ -2323,19 +2383,19 @@ _wrap_digitalWrite(int argc, VALUE *argv, VALUE self) {
|
|
2323
2383
|
int ecode1 = 0 ;
|
2324
2384
|
int val2 ;
|
2325
2385
|
int ecode2 = 0 ;
|
2326
|
-
|
2386
|
+
|
2327
2387
|
if ((argc < 2) || (argc > 2)) {
|
2328
2388
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2329
2389
|
}
|
2330
2390
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2331
2391
|
if (!SWIG_IsOK(ecode1)) {
|
2332
2392
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","digitalWrite", 1, argv[0] ));
|
2333
|
-
}
|
2393
|
+
}
|
2334
2394
|
arg1 = (int)(val1);
|
2335
2395
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2336
2396
|
if (!SWIG_IsOK(ecode2)) {
|
2337
2397
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","digitalWrite", 2, argv[1] ));
|
2338
|
-
}
|
2398
|
+
}
|
2339
2399
|
arg2 = (int)(val2);
|
2340
2400
|
digitalWrite(arg1,arg2);
|
2341
2401
|
return Qnil;
|
@@ -2344,6 +2404,59 @@ fail:
|
|
2344
2404
|
}
|
2345
2405
|
|
2346
2406
|
|
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
|
+
|
2347
2460
|
SWIGINTERN VALUE
|
2348
2461
|
_wrap_pwmWrite(int argc, VALUE *argv, VALUE self) {
|
2349
2462
|
int arg1 ;
|
@@ -2352,19 +2465,19 @@ _wrap_pwmWrite(int argc, VALUE *argv, VALUE self) {
|
|
2352
2465
|
int ecode1 = 0 ;
|
2353
2466
|
int val2 ;
|
2354
2467
|
int ecode2 = 0 ;
|
2355
|
-
|
2468
|
+
|
2356
2469
|
if ((argc < 2) || (argc > 2)) {
|
2357
2470
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2358
2471
|
}
|
2359
2472
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2360
2473
|
if (!SWIG_IsOK(ecode1)) {
|
2361
2474
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pwmWrite", 1, argv[0] ));
|
2362
|
-
}
|
2475
|
+
}
|
2363
2476
|
arg1 = (int)(val1);
|
2364
2477
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2365
2478
|
if (!SWIG_IsOK(ecode2)) {
|
2366
2479
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pwmWrite", 2, argv[1] ));
|
2367
|
-
}
|
2480
|
+
}
|
2368
2481
|
arg2 = (int)(val2);
|
2369
2482
|
pwmWrite(arg1,arg2);
|
2370
2483
|
return Qnil;
|
@@ -2380,14 +2493,14 @@ _wrap_analogRead(int argc, VALUE *argv, VALUE self) {
|
|
2380
2493
|
int ecode1 = 0 ;
|
2381
2494
|
int result;
|
2382
2495
|
VALUE vresult = Qnil;
|
2383
|
-
|
2496
|
+
|
2384
2497
|
if ((argc < 1) || (argc > 1)) {
|
2385
2498
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2386
2499
|
}
|
2387
2500
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2388
2501
|
if (!SWIG_IsOK(ecode1)) {
|
2389
2502
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","analogRead", 1, argv[0] ));
|
2390
|
-
}
|
2503
|
+
}
|
2391
2504
|
arg1 = (int)(val1);
|
2392
2505
|
result = (int)analogRead(arg1);
|
2393
2506
|
vresult = SWIG_From_int((int)(result));
|
@@ -2405,19 +2518,19 @@ _wrap_analogWrite(int argc, VALUE *argv, VALUE self) {
|
|
2405
2518
|
int ecode1 = 0 ;
|
2406
2519
|
int val2 ;
|
2407
2520
|
int ecode2 = 0 ;
|
2408
|
-
|
2521
|
+
|
2409
2522
|
if ((argc < 2) || (argc > 2)) {
|
2410
2523
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2411
2524
|
}
|
2412
2525
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2413
2526
|
if (!SWIG_IsOK(ecode1)) {
|
2414
2527
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","analogWrite", 1, argv[0] ));
|
2415
|
-
}
|
2528
|
+
}
|
2416
2529
|
arg1 = (int)(val1);
|
2417
2530
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2418
2531
|
if (!SWIG_IsOK(ecode2)) {
|
2419
2532
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","analogWrite", 2, argv[1] ));
|
2420
|
-
}
|
2533
|
+
}
|
2421
2534
|
arg2 = (int)(val2);
|
2422
2535
|
analogWrite(arg1,arg2);
|
2423
2536
|
return Qnil;
|
@@ -2426,11 +2539,27 @@ fail:
|
|
2426
2539
|
}
|
2427
2540
|
|
2428
2541
|
|
2542
|
+
SWIGINTERN VALUE
|
2543
|
+
_wrap_piGpioLayout(int argc, VALUE *argv, VALUE self) {
|
2544
|
+
int result;
|
2545
|
+
VALUE vresult = Qnil;
|
2546
|
+
|
2547
|
+
if ((argc < 0) || (argc > 0)) {
|
2548
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2549
|
+
}
|
2550
|
+
result = (int)piGpioLayout();
|
2551
|
+
vresult = SWIG_From_int((int)(result));
|
2552
|
+
return vresult;
|
2553
|
+
fail:
|
2554
|
+
return Qnil;
|
2555
|
+
}
|
2556
|
+
|
2557
|
+
|
2429
2558
|
SWIGINTERN VALUE
|
2430
2559
|
_wrap_piBoardRev(int argc, VALUE *argv, VALUE self) {
|
2431
2560
|
int result;
|
2432
2561
|
VALUE vresult = Qnil;
|
2433
|
-
|
2562
|
+
|
2434
2563
|
if ((argc < 0) || (argc > 0)) {
|
2435
2564
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2436
2565
|
}
|
@@ -2459,33 +2588,33 @@ _wrap_piBoardId(int argc, VALUE *argv, VALUE self) {
|
|
2459
2588
|
int res4 = 0 ;
|
2460
2589
|
void *argp5 = 0 ;
|
2461
2590
|
int res5 = 0 ;
|
2462
|
-
|
2591
|
+
|
2463
2592
|
if ((argc < 5) || (argc > 5)) {
|
2464
2593
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
2465
2594
|
}
|
2466
2595
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_int, 0 | 0 );
|
2467
2596
|
if (!SWIG_IsOK(res1)) {
|
2468
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","piBoardId", 1, argv[0] ));
|
2597
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","piBoardId", 1, argv[0] ));
|
2469
2598
|
}
|
2470
2599
|
arg1 = (int *)(argp1);
|
2471
2600
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
|
2472
2601
|
if (!SWIG_IsOK(res2)) {
|
2473
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","piBoardId", 2, argv[1] ));
|
2602
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","piBoardId", 2, argv[1] ));
|
2474
2603
|
}
|
2475
2604
|
arg2 = (int *)(argp2);
|
2476
2605
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
|
2477
2606
|
if (!SWIG_IsOK(res3)) {
|
2478
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "int *","piBoardId", 3, argv[2] ));
|
2607
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "int *","piBoardId", 3, argv[2] ));
|
2479
2608
|
}
|
2480
2609
|
arg3 = (int *)(argp3);
|
2481
2610
|
res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_int, 0 | 0 );
|
2482
2611
|
if (!SWIG_IsOK(res4)) {
|
2483
|
-
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "int *","piBoardId", 4, argv[3] ));
|
2612
|
+
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "int *","piBoardId", 4, argv[3] ));
|
2484
2613
|
}
|
2485
2614
|
arg4 = (int *)(argp4);
|
2486
2615
|
res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_int, 0 | 0 );
|
2487
2616
|
if (!SWIG_IsOK(res5)) {
|
2488
|
-
SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "int *","piBoardId", 5, argv[4] ));
|
2617
|
+
SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "int *","piBoardId", 5, argv[4] ));
|
2489
2618
|
}
|
2490
2619
|
arg5 = (int *)(argp5);
|
2491
2620
|
piBoardId(arg1,arg2,arg3,arg4,arg5);
|
@@ -2502,14 +2631,14 @@ _wrap_wpiPinToGpio(int argc, VALUE *argv, VALUE self) {
|
|
2502
2631
|
int ecode1 = 0 ;
|
2503
2632
|
int result;
|
2504
2633
|
VALUE vresult = Qnil;
|
2505
|
-
|
2634
|
+
|
2506
2635
|
if ((argc < 1) || (argc > 1)) {
|
2507
2636
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2508
2637
|
}
|
2509
2638
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2510
2639
|
if (!SWIG_IsOK(ecode1)) {
|
2511
2640
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wpiPinToGpio", 1, argv[0] ));
|
2512
|
-
}
|
2641
|
+
}
|
2513
2642
|
arg1 = (int)(val1);
|
2514
2643
|
result = (int)wpiPinToGpio(arg1);
|
2515
2644
|
vresult = SWIG_From_int((int)(result));
|
@@ -2526,14 +2655,14 @@ _wrap_physPinToGpio(int argc, VALUE *argv, VALUE self) {
|
|
2526
2655
|
int ecode1 = 0 ;
|
2527
2656
|
int result;
|
2528
2657
|
VALUE vresult = Qnil;
|
2529
|
-
|
2658
|
+
|
2530
2659
|
if ((argc < 1) || (argc > 1)) {
|
2531
2660
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2532
2661
|
}
|
2533
2662
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2534
2663
|
if (!SWIG_IsOK(ecode1)) {
|
2535
2664
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","physPinToGpio", 1, argv[0] ));
|
2536
|
-
}
|
2665
|
+
}
|
2537
2666
|
arg1 = (int)(val1);
|
2538
2667
|
result = (int)physPinToGpio(arg1);
|
2539
2668
|
vresult = SWIG_From_int((int)(result));
|
@@ -2551,19 +2680,19 @@ _wrap_setPadDrive(int argc, VALUE *argv, VALUE self) {
|
|
2551
2680
|
int ecode1 = 0 ;
|
2552
2681
|
int val2 ;
|
2553
2682
|
int ecode2 = 0 ;
|
2554
|
-
|
2683
|
+
|
2555
2684
|
if ((argc < 2) || (argc > 2)) {
|
2556
2685
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2557
2686
|
}
|
2558
2687
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2559
2688
|
if (!SWIG_IsOK(ecode1)) {
|
2560
2689
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","setPadDrive", 1, argv[0] ));
|
2561
|
-
}
|
2690
|
+
}
|
2562
2691
|
arg1 = (int)(val1);
|
2563
2692
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2564
2693
|
if (!SWIG_IsOK(ecode2)) {
|
2565
2694
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setPadDrive", 2, argv[1] ));
|
2566
|
-
}
|
2695
|
+
}
|
2567
2696
|
arg2 = (int)(val2);
|
2568
2697
|
setPadDrive(arg1,arg2);
|
2569
2698
|
return Qnil;
|
@@ -2579,14 +2708,14 @@ _wrap_getAlt(int argc, VALUE *argv, VALUE self) {
|
|
2579
2708
|
int ecode1 = 0 ;
|
2580
2709
|
int result;
|
2581
2710
|
VALUE vresult = Qnil;
|
2582
|
-
|
2711
|
+
|
2583
2712
|
if ((argc < 1) || (argc > 1)) {
|
2584
2713
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2585
2714
|
}
|
2586
2715
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2587
2716
|
if (!SWIG_IsOK(ecode1)) {
|
2588
2717
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","getAlt", 1, argv[0] ));
|
2589
|
-
}
|
2718
|
+
}
|
2590
2719
|
arg1 = (int)(val1);
|
2591
2720
|
result = (int)getAlt(arg1);
|
2592
2721
|
vresult = SWIG_From_int((int)(result));
|
@@ -2604,19 +2733,19 @@ _wrap_pwmToneWrite(int argc, VALUE *argv, VALUE self) {
|
|
2604
2733
|
int ecode1 = 0 ;
|
2605
2734
|
int val2 ;
|
2606
2735
|
int ecode2 = 0 ;
|
2607
|
-
|
2736
|
+
|
2608
2737
|
if ((argc < 2) || (argc > 2)) {
|
2609
2738
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2610
2739
|
}
|
2611
2740
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2612
2741
|
if (!SWIG_IsOK(ecode1)) {
|
2613
2742
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pwmToneWrite", 1, argv[0] ));
|
2614
|
-
}
|
2743
|
+
}
|
2615
2744
|
arg1 = (int)(val1);
|
2616
2745
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2617
2746
|
if (!SWIG_IsOK(ecode2)) {
|
2618
2747
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pwmToneWrite", 2, argv[1] ));
|
2619
|
-
}
|
2748
|
+
}
|
2620
2749
|
arg2 = (int)(val2);
|
2621
2750
|
pwmToneWrite(arg1,arg2);
|
2622
2751
|
return Qnil;
|
@@ -2625,56 +2754,19 @@ fail:
|
|
2625
2754
|
}
|
2626
2755
|
|
2627
2756
|
|
2628
|
-
SWIGINTERN VALUE
|
2629
|
-
_wrap_digitalWriteByte(int argc, VALUE *argv, VALUE self) {
|
2630
|
-
int arg1 ;
|
2631
|
-
int val1 ;
|
2632
|
-
int ecode1 = 0 ;
|
2633
|
-
|
2634
|
-
if ((argc < 1) || (argc > 1)) {
|
2635
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2636
|
-
}
|
2637
|
-
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2638
|
-
if (!SWIG_IsOK(ecode1)) {
|
2639
|
-
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","digitalWriteByte", 1, argv[0] ));
|
2640
|
-
}
|
2641
|
-
arg1 = (int)(val1);
|
2642
|
-
digitalWriteByte(arg1);
|
2643
|
-
return Qnil;
|
2644
|
-
fail:
|
2645
|
-
return Qnil;
|
2646
|
-
}
|
2647
|
-
|
2648
|
-
|
2649
|
-
SWIGINTERN VALUE
|
2650
|
-
_wrap_digitalReadByte(int argc, VALUE *argv, VALUE self) {
|
2651
|
-
unsigned int result;
|
2652
|
-
VALUE vresult = Qnil;
|
2653
|
-
|
2654
|
-
if ((argc < 0) || (argc > 0)) {
|
2655
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2656
|
-
}
|
2657
|
-
result = (unsigned int)digitalReadByte();
|
2658
|
-
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
|
2659
|
-
return vresult;
|
2660
|
-
fail:
|
2661
|
-
return Qnil;
|
2662
|
-
}
|
2663
|
-
|
2664
|
-
|
2665
2757
|
SWIGINTERN VALUE
|
2666
2758
|
_wrap_pwmSetMode(int argc, VALUE *argv, VALUE self) {
|
2667
2759
|
int arg1 ;
|
2668
2760
|
int val1 ;
|
2669
2761
|
int ecode1 = 0 ;
|
2670
|
-
|
2762
|
+
|
2671
2763
|
if ((argc < 1) || (argc > 1)) {
|
2672
2764
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2673
2765
|
}
|
2674
2766
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2675
2767
|
if (!SWIG_IsOK(ecode1)) {
|
2676
2768
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pwmSetMode", 1, argv[0] ));
|
2677
|
-
}
|
2769
|
+
}
|
2678
2770
|
arg1 = (int)(val1);
|
2679
2771
|
pwmSetMode(arg1);
|
2680
2772
|
return Qnil;
|
@@ -2688,14 +2780,14 @@ _wrap_pwmSetRange(int argc, VALUE *argv, VALUE self) {
|
|
2688
2780
|
unsigned int arg1 ;
|
2689
2781
|
unsigned int val1 ;
|
2690
2782
|
int ecode1 = 0 ;
|
2691
|
-
|
2783
|
+
|
2692
2784
|
if ((argc < 1) || (argc > 1)) {
|
2693
2785
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2694
2786
|
}
|
2695
2787
|
ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
|
2696
2788
|
if (!SWIG_IsOK(ecode1)) {
|
2697
2789
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned int","pwmSetRange", 1, argv[0] ));
|
2698
|
-
}
|
2790
|
+
}
|
2699
2791
|
arg1 = (unsigned int)(val1);
|
2700
2792
|
pwmSetRange(arg1);
|
2701
2793
|
return Qnil;
|
@@ -2709,14 +2801,14 @@ _wrap_pwmSetClock(int argc, VALUE *argv, VALUE self) {
|
|
2709
2801
|
int arg1 ;
|
2710
2802
|
int val1 ;
|
2711
2803
|
int ecode1 = 0 ;
|
2712
|
-
|
2804
|
+
|
2713
2805
|
if ((argc < 1) || (argc > 1)) {
|
2714
2806
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2715
2807
|
}
|
2716
2808
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2717
2809
|
if (!SWIG_IsOK(ecode1)) {
|
2718
2810
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pwmSetClock", 1, argv[0] ));
|
2719
|
-
}
|
2811
|
+
}
|
2720
2812
|
arg1 = (int)(val1);
|
2721
2813
|
pwmSetClock(arg1);
|
2722
2814
|
return Qnil;
|
@@ -2733,19 +2825,19 @@ _wrap_gpioClockSet(int argc, VALUE *argv, VALUE self) {
|
|
2733
2825
|
int ecode1 = 0 ;
|
2734
2826
|
int val2 ;
|
2735
2827
|
int ecode2 = 0 ;
|
2736
|
-
|
2828
|
+
|
2737
2829
|
if ((argc < 2) || (argc > 2)) {
|
2738
2830
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2739
2831
|
}
|
2740
2832
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2741
2833
|
if (!SWIG_IsOK(ecode1)) {
|
2742
2834
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","gpioClockSet", 1, argv[0] ));
|
2743
|
-
}
|
2835
|
+
}
|
2744
2836
|
arg1 = (int)(val1);
|
2745
2837
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2746
2838
|
if (!SWIG_IsOK(ecode2)) {
|
2747
2839
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","gpioClockSet", 2, argv[1] ));
|
2748
|
-
}
|
2840
|
+
}
|
2749
2841
|
arg2 = (int)(val2);
|
2750
2842
|
gpioClockSet(arg1,arg2);
|
2751
2843
|
return Qnil;
|
@@ -2755,7 +2847,81 @@ fail:
|
|
2755
2847
|
|
2756
2848
|
|
2757
2849
|
SWIGINTERN VALUE
|
2758
|
-
|
2850
|
+
_wrap_digitalReadByte(int argc, VALUE *argv, VALUE self) {
|
2851
|
+
unsigned int result;
|
2852
|
+
VALUE vresult = Qnil;
|
2853
|
+
|
2854
|
+
if ((argc < 0) || (argc > 0)) {
|
2855
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2856
|
+
}
|
2857
|
+
result = (unsigned int)digitalReadByte();
|
2858
|
+
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
|
2859
|
+
return vresult;
|
2860
|
+
fail:
|
2861
|
+
return Qnil;
|
2862
|
+
}
|
2863
|
+
|
2864
|
+
|
2865
|
+
SWIGINTERN VALUE
|
2866
|
+
_wrap_digitalReadByte2(int argc, VALUE *argv, VALUE self) {
|
2867
|
+
unsigned int result;
|
2868
|
+
VALUE vresult = Qnil;
|
2869
|
+
|
2870
|
+
if ((argc < 0) || (argc > 0)) {
|
2871
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2872
|
+
}
|
2873
|
+
result = (unsigned int)digitalReadByte2();
|
2874
|
+
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
|
2875
|
+
return vresult;
|
2876
|
+
fail:
|
2877
|
+
return Qnil;
|
2878
|
+
}
|
2879
|
+
|
2880
|
+
|
2881
|
+
SWIGINTERN VALUE
|
2882
|
+
_wrap_digitalWriteByte(int argc, VALUE *argv, VALUE self) {
|
2883
|
+
int arg1 ;
|
2884
|
+
int val1 ;
|
2885
|
+
int ecode1 = 0 ;
|
2886
|
+
|
2887
|
+
if ((argc < 1) || (argc > 1)) {
|
2888
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2889
|
+
}
|
2890
|
+
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2891
|
+
if (!SWIG_IsOK(ecode1)) {
|
2892
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","digitalWriteByte", 1, argv[0] ));
|
2893
|
+
}
|
2894
|
+
arg1 = (int)(val1);
|
2895
|
+
digitalWriteByte(arg1);
|
2896
|
+
return Qnil;
|
2897
|
+
fail:
|
2898
|
+
return Qnil;
|
2899
|
+
}
|
2900
|
+
|
2901
|
+
|
2902
|
+
SWIGINTERN VALUE
|
2903
|
+
_wrap_digitalWriteByte2(int argc, VALUE *argv, VALUE self) {
|
2904
|
+
int arg1 ;
|
2905
|
+
int val1 ;
|
2906
|
+
int ecode1 = 0 ;
|
2907
|
+
|
2908
|
+
if ((argc < 1) || (argc > 1)) {
|
2909
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2910
|
+
}
|
2911
|
+
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2912
|
+
if (!SWIG_IsOK(ecode1)) {
|
2913
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","digitalWriteByte2", 1, argv[0] ));
|
2914
|
+
}
|
2915
|
+
arg1 = (int)(val1);
|
2916
|
+
digitalWriteByte2(arg1);
|
2917
|
+
return Qnil;
|
2918
|
+
fail:
|
2919
|
+
return Qnil;
|
2920
|
+
}
|
2921
|
+
|
2922
|
+
|
2923
|
+
SWIGINTERN VALUE
|
2924
|
+
_wrap_waitForInterrupt(int argc, VALUE *argv, VALUE self) {
|
2759
2925
|
int arg1 ;
|
2760
2926
|
int arg2 ;
|
2761
2927
|
int val1 ;
|
@@ -2764,19 +2930,19 @@ _wrap_waitForInterrupt(int argc, VALUE *argv, VALUE self) {
|
|
2764
2930
|
int ecode2 = 0 ;
|
2765
2931
|
int result;
|
2766
2932
|
VALUE vresult = Qnil;
|
2767
|
-
|
2933
|
+
|
2768
2934
|
if ((argc < 2) || (argc > 2)) {
|
2769
2935
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2770
2936
|
}
|
2771
2937
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2772
2938
|
if (!SWIG_IsOK(ecode1)) {
|
2773
2939
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","waitForInterrupt", 1, argv[0] ));
|
2774
|
-
}
|
2940
|
+
}
|
2775
2941
|
arg1 = (int)(val1);
|
2776
2942
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2777
2943
|
if (!SWIG_IsOK(ecode2)) {
|
2778
2944
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","waitForInterrupt", 2, argv[1] ));
|
2779
|
-
}
|
2945
|
+
}
|
2780
2946
|
arg2 = (int)(val2);
|
2781
2947
|
result = (int)waitForInterrupt(arg1,arg2);
|
2782
2948
|
vresult = SWIG_From_int((int)(result));
|
@@ -2791,14 +2957,14 @@ _wrap_piThreadCreate(int argc, VALUE *argv, VALUE self) {
|
|
2791
2957
|
void *(*arg1)(void *) = (void *(*)(void *)) 0 ;
|
2792
2958
|
int result;
|
2793
2959
|
VALUE vresult = Qnil;
|
2794
|
-
|
2960
|
+
|
2795
2961
|
if ((argc < 1) || (argc > 1)) {
|
2796
2962
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2797
2963
|
}
|
2798
2964
|
{
|
2799
2965
|
int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg1), SWIGTYPE_p_f_p_void__p_void);
|
2800
2966
|
if (!SWIG_IsOK(res)) {
|
2801
|
-
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void *(*)(void *)","piThreadCreate", 1, argv[0] ));
|
2967
|
+
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void *(*)(void *)","piThreadCreate", 1, argv[0] ));
|
2802
2968
|
}
|
2803
2969
|
}
|
2804
2970
|
result = (int)piThreadCreate(arg1);
|
@@ -2814,14 +2980,14 @@ _wrap_piLock(int argc, VALUE *argv, VALUE self) {
|
|
2814
2980
|
int arg1 ;
|
2815
2981
|
int val1 ;
|
2816
2982
|
int ecode1 = 0 ;
|
2817
|
-
|
2983
|
+
|
2818
2984
|
if ((argc < 1) || (argc > 1)) {
|
2819
2985
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2820
2986
|
}
|
2821
2987
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2822
2988
|
if (!SWIG_IsOK(ecode1)) {
|
2823
2989
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piLock", 1, argv[0] ));
|
2824
|
-
}
|
2990
|
+
}
|
2825
2991
|
arg1 = (int)(val1);
|
2826
2992
|
piLock(arg1);
|
2827
2993
|
return Qnil;
|
@@ -2835,14 +3001,14 @@ _wrap_piUnlock(int argc, VALUE *argv, VALUE self) {
|
|
2835
3001
|
int arg1 ;
|
2836
3002
|
int val1 ;
|
2837
3003
|
int ecode1 = 0 ;
|
2838
|
-
|
3004
|
+
|
2839
3005
|
if ((argc < 1) || (argc > 1)) {
|
2840
3006
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2841
3007
|
}
|
2842
3008
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2843
3009
|
if (!SWIG_IsOK(ecode1)) {
|
2844
3010
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piUnlock", 1, argv[0] ));
|
2845
|
-
}
|
3011
|
+
}
|
2846
3012
|
arg1 = (int)(val1);
|
2847
3013
|
piUnlock(arg1);
|
2848
3014
|
return Qnil;
|
@@ -2858,14 +3024,14 @@ _wrap_piHiPri(int argc, VALUE *argv, VALUE self) {
|
|
2858
3024
|
int ecode1 = 0 ;
|
2859
3025
|
int result;
|
2860
3026
|
VALUE vresult = Qnil;
|
2861
|
-
|
3027
|
+
|
2862
3028
|
if ((argc < 1) || (argc > 1)) {
|
2863
3029
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2864
3030
|
}
|
2865
3031
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2866
3032
|
if (!SWIG_IsOK(ecode1)) {
|
2867
3033
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piHiPri", 1, argv[0] ));
|
2868
|
-
}
|
3034
|
+
}
|
2869
3035
|
arg1 = (int)(val1);
|
2870
3036
|
result = (int)piHiPri(arg1);
|
2871
3037
|
vresult = SWIG_From_int((int)(result));
|
@@ -2880,14 +3046,14 @@ _wrap_delay(int argc, VALUE *argv, VALUE self) {
|
|
2880
3046
|
unsigned int arg1 ;
|
2881
3047
|
unsigned int val1 ;
|
2882
3048
|
int ecode1 = 0 ;
|
2883
|
-
|
3049
|
+
|
2884
3050
|
if ((argc < 1) || (argc > 1)) {
|
2885
3051
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2886
3052
|
}
|
2887
3053
|
ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
|
2888
3054
|
if (!SWIG_IsOK(ecode1)) {
|
2889
3055
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned int","delay", 1, argv[0] ));
|
2890
|
-
}
|
3056
|
+
}
|
2891
3057
|
arg1 = (unsigned int)(val1);
|
2892
3058
|
delay(arg1);
|
2893
3059
|
return Qnil;
|
@@ -2901,14 +3067,14 @@ _wrap_delayMicroseconds(int argc, VALUE *argv, VALUE self) {
|
|
2901
3067
|
unsigned int arg1 ;
|
2902
3068
|
unsigned int val1 ;
|
2903
3069
|
int ecode1 = 0 ;
|
2904
|
-
|
3070
|
+
|
2905
3071
|
if ((argc < 1) || (argc > 1)) {
|
2906
3072
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2907
3073
|
}
|
2908
3074
|
ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
|
2909
3075
|
if (!SWIG_IsOK(ecode1)) {
|
2910
3076
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned int","delayMicroseconds", 1, argv[0] ));
|
2911
|
-
}
|
3077
|
+
}
|
2912
3078
|
arg1 = (unsigned int)(val1);
|
2913
3079
|
delayMicroseconds(arg1);
|
2914
3080
|
return Qnil;
|
@@ -2921,7 +3087,7 @@ SWIGINTERN VALUE
|
|
2921
3087
|
_wrap_millis(int argc, VALUE *argv, VALUE self) {
|
2922
3088
|
unsigned int result;
|
2923
3089
|
VALUE vresult = Qnil;
|
2924
|
-
|
3090
|
+
|
2925
3091
|
if ((argc < 0) || (argc > 0)) {
|
2926
3092
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2927
3093
|
}
|
@@ -2937,7 +3103,7 @@ SWIGINTERN VALUE
|
|
2937
3103
|
_wrap_micros(int argc, VALUE *argv, VALUE self) {
|
2938
3104
|
unsigned int result;
|
2939
3105
|
VALUE vresult = Qnil;
|
2940
|
-
|
3106
|
+
|
2941
3107
|
if ((argc < 0) || (argc > 0)) {
|
2942
3108
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2943
3109
|
}
|
@@ -2956,14 +3122,14 @@ _wrap_wiringPiI2CRead(int argc, VALUE *argv, VALUE self) {
|
|
2956
3122
|
int ecode1 = 0 ;
|
2957
3123
|
int result;
|
2958
3124
|
VALUE vresult = Qnil;
|
2959
|
-
|
3125
|
+
|
2960
3126
|
if ((argc < 1) || (argc > 1)) {
|
2961
3127
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
2962
3128
|
}
|
2963
3129
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2964
3130
|
if (!SWIG_IsOK(ecode1)) {
|
2965
3131
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CRead", 1, argv[0] ));
|
2966
|
-
}
|
3132
|
+
}
|
2967
3133
|
arg1 = (int)(val1);
|
2968
3134
|
result = (int)wiringPiI2CRead(arg1);
|
2969
3135
|
vresult = SWIG_From_int((int)(result));
|
@@ -2983,19 +3149,19 @@ _wrap_wiringPiI2CReadReg8(int argc, VALUE *argv, VALUE self) {
|
|
2983
3149
|
int ecode2 = 0 ;
|
2984
3150
|
int result;
|
2985
3151
|
VALUE vresult = Qnil;
|
2986
|
-
|
3152
|
+
|
2987
3153
|
if ((argc < 2) || (argc > 2)) {
|
2988
3154
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
2989
3155
|
}
|
2990
3156
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
2991
3157
|
if (!SWIG_IsOK(ecode1)) {
|
2992
3158
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CReadReg8", 1, argv[0] ));
|
2993
|
-
}
|
3159
|
+
}
|
2994
3160
|
arg1 = (int)(val1);
|
2995
3161
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
2996
3162
|
if (!SWIG_IsOK(ecode2)) {
|
2997
3163
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CReadReg8", 2, argv[1] ));
|
2998
|
-
}
|
3164
|
+
}
|
2999
3165
|
arg2 = (int)(val2);
|
3000
3166
|
result = (int)wiringPiI2CReadReg8(arg1,arg2);
|
3001
3167
|
vresult = SWIG_From_int((int)(result));
|
@@ -3015,19 +3181,19 @@ _wrap_wiringPiI2CReadReg16(int argc, VALUE *argv, VALUE self) {
|
|
3015
3181
|
int ecode2 = 0 ;
|
3016
3182
|
int result;
|
3017
3183
|
VALUE vresult = Qnil;
|
3018
|
-
|
3184
|
+
|
3019
3185
|
if ((argc < 2) || (argc > 2)) {
|
3020
3186
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3021
3187
|
}
|
3022
3188
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3023
3189
|
if (!SWIG_IsOK(ecode1)) {
|
3024
3190
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CReadReg16", 1, argv[0] ));
|
3025
|
-
}
|
3191
|
+
}
|
3026
3192
|
arg1 = (int)(val1);
|
3027
3193
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3028
3194
|
if (!SWIG_IsOK(ecode2)) {
|
3029
3195
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CReadReg16", 2, argv[1] ));
|
3030
|
-
}
|
3196
|
+
}
|
3031
3197
|
arg2 = (int)(val2);
|
3032
3198
|
result = (int)wiringPiI2CReadReg16(arg1,arg2);
|
3033
3199
|
vresult = SWIG_From_int((int)(result));
|
@@ -3047,19 +3213,19 @@ _wrap_wiringPiI2CWrite(int argc, VALUE *argv, VALUE self) {
|
|
3047
3213
|
int ecode2 = 0 ;
|
3048
3214
|
int result;
|
3049
3215
|
VALUE vresult = Qnil;
|
3050
|
-
|
3216
|
+
|
3051
3217
|
if ((argc < 2) || (argc > 2)) {
|
3052
3218
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3053
3219
|
}
|
3054
3220
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3055
3221
|
if (!SWIG_IsOK(ecode1)) {
|
3056
3222
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CWrite", 1, argv[0] ));
|
3057
|
-
}
|
3223
|
+
}
|
3058
3224
|
arg1 = (int)(val1);
|
3059
3225
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3060
3226
|
if (!SWIG_IsOK(ecode2)) {
|
3061
3227
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CWrite", 2, argv[1] ));
|
3062
|
-
}
|
3228
|
+
}
|
3063
3229
|
arg2 = (int)(val2);
|
3064
3230
|
result = (int)wiringPiI2CWrite(arg1,arg2);
|
3065
3231
|
vresult = SWIG_From_int((int)(result));
|
@@ -3082,24 +3248,24 @@ _wrap_wiringPiI2CWriteReg8(int argc, VALUE *argv, VALUE self) {
|
|
3082
3248
|
int ecode3 = 0 ;
|
3083
3249
|
int result;
|
3084
3250
|
VALUE vresult = Qnil;
|
3085
|
-
|
3251
|
+
|
3086
3252
|
if ((argc < 3) || (argc > 3)) {
|
3087
3253
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3088
3254
|
}
|
3089
3255
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3090
3256
|
if (!SWIG_IsOK(ecode1)) {
|
3091
3257
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg8", 1, argv[0] ));
|
3092
|
-
}
|
3258
|
+
}
|
3093
3259
|
arg1 = (int)(val1);
|
3094
3260
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3095
3261
|
if (!SWIG_IsOK(ecode2)) {
|
3096
3262
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg8", 2, argv[1] ));
|
3097
|
-
}
|
3263
|
+
}
|
3098
3264
|
arg2 = (int)(val2);
|
3099
3265
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
3100
3266
|
if (!SWIG_IsOK(ecode3)) {
|
3101
3267
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg8", 3, argv[2] ));
|
3102
|
-
}
|
3268
|
+
}
|
3103
3269
|
arg3 = (int)(val3);
|
3104
3270
|
result = (int)wiringPiI2CWriteReg8(arg1,arg2,arg3);
|
3105
3271
|
vresult = SWIG_From_int((int)(result));
|
@@ -3122,24 +3288,24 @@ _wrap_wiringPiI2CWriteReg16(int argc, VALUE *argv, VALUE self) {
|
|
3122
3288
|
int ecode3 = 0 ;
|
3123
3289
|
int result;
|
3124
3290
|
VALUE vresult = Qnil;
|
3125
|
-
|
3291
|
+
|
3126
3292
|
if ((argc < 3) || (argc > 3)) {
|
3127
3293
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3128
3294
|
}
|
3129
3295
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3130
3296
|
if (!SWIG_IsOK(ecode1)) {
|
3131
3297
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg16", 1, argv[0] ));
|
3132
|
-
}
|
3298
|
+
}
|
3133
3299
|
arg1 = (int)(val1);
|
3134
3300
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3135
3301
|
if (!SWIG_IsOK(ecode2)) {
|
3136
3302
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg16", 2, argv[1] ));
|
3137
|
-
}
|
3303
|
+
}
|
3138
3304
|
arg2 = (int)(val2);
|
3139
3305
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
3140
3306
|
if (!SWIG_IsOK(ecode3)) {
|
3141
3307
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg16", 3, argv[2] ));
|
3142
|
-
}
|
3308
|
+
}
|
3143
3309
|
arg3 = (int)(val3);
|
3144
3310
|
result = (int)wiringPiI2CWriteReg16(arg1,arg2,arg3);
|
3145
3311
|
vresult = SWIG_From_int((int)(result));
|
@@ -3160,7 +3326,7 @@ _wrap_wiringPiI2CSetupInterface(int argc, VALUE *argv, VALUE self) {
|
|
3160
3326
|
int ecode2 = 0 ;
|
3161
3327
|
int result;
|
3162
3328
|
VALUE vresult = Qnil;
|
3163
|
-
|
3329
|
+
|
3164
3330
|
if ((argc < 2) || (argc > 2)) {
|
3165
3331
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3166
3332
|
}
|
@@ -3172,7 +3338,7 @@ _wrap_wiringPiI2CSetupInterface(int argc, VALUE *argv, VALUE self) {
|
|
3172
3338
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3173
3339
|
if (!SWIG_IsOK(ecode2)) {
|
3174
3340
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CSetupInterface", 2, argv[1] ));
|
3175
|
-
}
|
3341
|
+
}
|
3176
3342
|
arg2 = (int)(val2);
|
3177
3343
|
result = (int)wiringPiI2CSetupInterface((char const *)arg1,arg2);
|
3178
3344
|
vresult = SWIG_From_int((int)(result));
|
@@ -3191,14 +3357,14 @@ _wrap_wiringPiI2CSetup(int argc, VALUE *argv, VALUE self) {
|
|
3191
3357
|
int ecode1 = 0 ;
|
3192
3358
|
int result;
|
3193
3359
|
VALUE vresult = Qnil;
|
3194
|
-
|
3360
|
+
|
3195
3361
|
if ((argc < 1) || (argc > 1)) {
|
3196
3362
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3197
3363
|
}
|
3198
3364
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3199
3365
|
if (!SWIG_IsOK(ecode1)) {
|
3200
3366
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CSetup", 1, argv[0] ));
|
3201
|
-
}
|
3367
|
+
}
|
3202
3368
|
arg1 = (int)(val1);
|
3203
3369
|
result = (int)wiringPiI2CSetup(arg1);
|
3204
3370
|
vresult = SWIG_From_int((int)(result));
|
@@ -3215,14 +3381,14 @@ _wrap_wiringPiSPIGetFd(int argc, VALUE *argv, VALUE self) {
|
|
3215
3381
|
int ecode1 = 0 ;
|
3216
3382
|
int result;
|
3217
3383
|
VALUE vresult = Qnil;
|
3218
|
-
|
3384
|
+
|
3219
3385
|
if ((argc < 1) || (argc > 1)) {
|
3220
3386
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3221
3387
|
}
|
3222
3388
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3223
3389
|
if (!SWIG_IsOK(ecode1)) {
|
3224
3390
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiSPIGetFd", 1, argv[0] ));
|
3225
|
-
}
|
3391
|
+
}
|
3226
3392
|
arg1 = (int)(val1);
|
3227
3393
|
result = (int)wiringPiSPIGetFd(arg1);
|
3228
3394
|
vresult = SWIG_From_int((int)(result));
|
@@ -3241,14 +3407,14 @@ _wrap_wiringPiSPIDataRW(int argc, VALUE *argv, VALUE self) {
|
|
3241
3407
|
int ecode1 = 0 ;
|
3242
3408
|
int result;
|
3243
3409
|
VALUE vresult = Qnil;
|
3244
|
-
|
3410
|
+
|
3245
3411
|
if ((argc < 2) || (argc > 2)) {
|
3246
3412
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3247
3413
|
}
|
3248
3414
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3249
3415
|
if (!SWIG_IsOK(ecode1)) {
|
3250
3416
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiSPIDataRW", 1, argv[0] ));
|
3251
|
-
}
|
3417
|
+
}
|
3252
3418
|
arg1 = (int)(val1);
|
3253
3419
|
{
|
3254
3420
|
arg2 = StringValuePtr(argv[1]);
|
@@ -3275,24 +3441,24 @@ _wrap_wiringPiSPISetupMode(int argc, VALUE *argv, VALUE self) {
|
|
3275
3441
|
int ecode3 = 0 ;
|
3276
3442
|
int result;
|
3277
3443
|
VALUE vresult = Qnil;
|
3278
|
-
|
3444
|
+
|
3279
3445
|
if ((argc < 3) || (argc > 3)) {
|
3280
3446
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3281
3447
|
}
|
3282
3448
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3283
3449
|
if (!SWIG_IsOK(ecode1)) {
|
3284
3450
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiSPISetupMode", 1, argv[0] ));
|
3285
|
-
}
|
3451
|
+
}
|
3286
3452
|
arg1 = (int)(val1);
|
3287
3453
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3288
3454
|
if (!SWIG_IsOK(ecode2)) {
|
3289
3455
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiSPISetupMode", 2, argv[1] ));
|
3290
|
-
}
|
3456
|
+
}
|
3291
3457
|
arg2 = (int)(val2);
|
3292
3458
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
3293
3459
|
if (!SWIG_IsOK(ecode3)) {
|
3294
3460
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","wiringPiSPISetupMode", 3, argv[2] ));
|
3295
|
-
}
|
3461
|
+
}
|
3296
3462
|
arg3 = (int)(val3);
|
3297
3463
|
result = (int)wiringPiSPISetupMode(arg1,arg2,arg3);
|
3298
3464
|
vresult = SWIG_From_int((int)(result));
|
@@ -3312,19 +3478,19 @@ _wrap_wiringPiSPISetup(int argc, VALUE *argv, VALUE self) {
|
|
3312
3478
|
int ecode2 = 0 ;
|
3313
3479
|
int result;
|
3314
3480
|
VALUE vresult = Qnil;
|
3315
|
-
|
3481
|
+
|
3316
3482
|
if ((argc < 2) || (argc > 2)) {
|
3317
3483
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3318
3484
|
}
|
3319
3485
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3320
3486
|
if (!SWIG_IsOK(ecode1)) {
|
3321
3487
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiSPISetup", 1, argv[0] ));
|
3322
|
-
}
|
3488
|
+
}
|
3323
3489
|
arg1 = (int)(val1);
|
3324
3490
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3325
3491
|
if (!SWIG_IsOK(ecode2)) {
|
3326
3492
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiSPISetup", 2, argv[1] ));
|
3327
|
-
}
|
3493
|
+
}
|
3328
3494
|
arg2 = (int)(val2);
|
3329
3495
|
result = (int)wiringPiSPISetup(arg1,arg2);
|
3330
3496
|
vresult = SWIG_From_int((int)(result));
|
@@ -3345,7 +3511,7 @@ _wrap_serialOpen(int argc, VALUE *argv, VALUE self) {
|
|
3345
3511
|
int ecode2 = 0 ;
|
3346
3512
|
int result;
|
3347
3513
|
VALUE vresult = Qnil;
|
3348
|
-
|
3514
|
+
|
3349
3515
|
if ((argc < 2) || (argc > 2)) {
|
3350
3516
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3351
3517
|
}
|
@@ -3357,7 +3523,7 @@ _wrap_serialOpen(int argc, VALUE *argv, VALUE self) {
|
|
3357
3523
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3358
3524
|
if (!SWIG_IsOK(ecode2)) {
|
3359
3525
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","serialOpen", 2, argv[1] ));
|
3360
|
-
}
|
3526
|
+
}
|
3361
3527
|
arg2 = (int)(val2);
|
3362
3528
|
result = (int)serialOpen((char const *)arg1,arg2);
|
3363
3529
|
vresult = SWIG_From_int((int)(result));
|
@@ -3374,14 +3540,14 @@ _wrap_serialClose(int argc, VALUE *argv, VALUE self) {
|
|
3374
3540
|
int arg1 ;
|
3375
3541
|
int val1 ;
|
3376
3542
|
int ecode1 = 0 ;
|
3377
|
-
|
3543
|
+
|
3378
3544
|
if ((argc < 1) || (argc > 1)) {
|
3379
3545
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3380
3546
|
}
|
3381
3547
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3382
3548
|
if (!SWIG_IsOK(ecode1)) {
|
3383
3549
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialClose", 1, argv[0] ));
|
3384
|
-
}
|
3550
|
+
}
|
3385
3551
|
arg1 = (int)(val1);
|
3386
3552
|
serialClose(arg1);
|
3387
3553
|
return Qnil;
|
@@ -3395,14 +3561,14 @@ _wrap_serialFlush(int argc, VALUE *argv, VALUE self) {
|
|
3395
3561
|
int arg1 ;
|
3396
3562
|
int val1 ;
|
3397
3563
|
int ecode1 = 0 ;
|
3398
|
-
|
3564
|
+
|
3399
3565
|
if ((argc < 1) || (argc > 1)) {
|
3400
3566
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3401
3567
|
}
|
3402
3568
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3403
3569
|
if (!SWIG_IsOK(ecode1)) {
|
3404
3570
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialFlush", 1, argv[0] ));
|
3405
|
-
}
|
3571
|
+
}
|
3406
3572
|
arg1 = (int)(val1);
|
3407
3573
|
serialFlush(arg1);
|
3408
3574
|
return Qnil;
|
@@ -3419,19 +3585,19 @@ _wrap_serialPutchar(int argc, VALUE *argv, VALUE self) {
|
|
3419
3585
|
int ecode1 = 0 ;
|
3420
3586
|
unsigned char val2 ;
|
3421
3587
|
int ecode2 = 0 ;
|
3422
|
-
|
3588
|
+
|
3423
3589
|
if ((argc < 2) || (argc > 2)) {
|
3424
3590
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3425
3591
|
}
|
3426
3592
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3427
3593
|
if (!SWIG_IsOK(ecode1)) {
|
3428
3594
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialPutchar", 1, argv[0] ));
|
3429
|
-
}
|
3595
|
+
}
|
3430
3596
|
arg1 = (int)(val1);
|
3431
3597
|
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
|
3432
3598
|
if (!SWIG_IsOK(ecode2)) {
|
3433
3599
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned char","serialPutchar", 2, argv[1] ));
|
3434
|
-
}
|
3600
|
+
}
|
3435
3601
|
arg2 = (unsigned char)(val2);
|
3436
3602
|
serialPutchar(arg1,arg2);
|
3437
3603
|
return Qnil;
|
@@ -3449,14 +3615,14 @@ _wrap_serialPuts(int argc, VALUE *argv, VALUE self) {
|
|
3449
3615
|
int res2 ;
|
3450
3616
|
char *buf2 = 0 ;
|
3451
3617
|
int alloc2 = 0 ;
|
3452
|
-
|
3618
|
+
|
3453
3619
|
if ((argc < 2) || (argc > 2)) {
|
3454
3620
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3455
3621
|
}
|
3456
3622
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3457
3623
|
if (!SWIG_IsOK(ecode1)) {
|
3458
3624
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialPuts", 1, argv[0] ));
|
3459
|
-
}
|
3625
|
+
}
|
3460
3626
|
arg1 = (int)(val1);
|
3461
3627
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
3462
3628
|
if (!SWIG_IsOK(res2)) {
|
@@ -3482,14 +3648,14 @@ _wrap_serialPrintf(int argc, VALUE *argv, VALUE self) {
|
|
3482
3648
|
int res2 ;
|
3483
3649
|
char *buf2 = 0 ;
|
3484
3650
|
int alloc2 = 0 ;
|
3485
|
-
|
3651
|
+
|
3486
3652
|
if (argc < 2) {
|
3487
3653
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3488
3654
|
}
|
3489
3655
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3490
3656
|
if (!SWIG_IsOK(ecode1)) {
|
3491
3657
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialPrintf", 1, argv[0] ));
|
3492
|
-
}
|
3658
|
+
}
|
3493
3659
|
arg1 = (int)(val1);
|
3494
3660
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
3495
3661
|
if (!SWIG_IsOK(res2)) {
|
@@ -3512,14 +3678,14 @@ _wrap_serialDataAvail(int argc, VALUE *argv, VALUE self) {
|
|
3512
3678
|
int ecode1 = 0 ;
|
3513
3679
|
int result;
|
3514
3680
|
VALUE vresult = Qnil;
|
3515
|
-
|
3681
|
+
|
3516
3682
|
if ((argc < 1) || (argc > 1)) {
|
3517
3683
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3518
3684
|
}
|
3519
3685
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3520
3686
|
if (!SWIG_IsOK(ecode1)) {
|
3521
3687
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialDataAvail", 1, argv[0] ));
|
3522
|
-
}
|
3688
|
+
}
|
3523
3689
|
arg1 = (int)(val1);
|
3524
3690
|
result = (int)serialDataAvail(arg1);
|
3525
3691
|
vresult = SWIG_From_int((int)(result));
|
@@ -3536,14 +3702,14 @@ _wrap_serialGetchar(int argc, VALUE *argv, VALUE self) {
|
|
3536
3702
|
int ecode1 = 0 ;
|
3537
3703
|
int result;
|
3538
3704
|
VALUE vresult = Qnil;
|
3539
|
-
|
3705
|
+
|
3540
3706
|
if ((argc < 1) || (argc > 1)) {
|
3541
3707
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
3542
3708
|
}
|
3543
3709
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3544
3710
|
if (!SWIG_IsOK(ecode1)) {
|
3545
3711
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialGetchar", 1, argv[0] ));
|
3546
|
-
}
|
3712
|
+
}
|
3547
3713
|
arg1 = (int)(val1);
|
3548
3714
|
result = (int)serialGetchar(arg1);
|
3549
3715
|
vresult = SWIG_From_int((int)(result));
|
@@ -3566,24 +3732,24 @@ _wrap_shiftIn(int argc, VALUE *argv, VALUE self) {
|
|
3566
3732
|
int ecode3 = 0 ;
|
3567
3733
|
uint8_t result;
|
3568
3734
|
VALUE vresult = Qnil;
|
3569
|
-
|
3735
|
+
|
3570
3736
|
if ((argc < 3) || (argc > 3)) {
|
3571
3737
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3572
3738
|
}
|
3573
3739
|
ecode1 = SWIG_AsVal_unsigned_SS_char(argv[0], &val1);
|
3574
3740
|
if (!SWIG_IsOK(ecode1)) {
|
3575
3741
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint8_t","shiftIn", 1, argv[0] ));
|
3576
|
-
}
|
3742
|
+
}
|
3577
3743
|
arg1 = (uint8_t)(val1);
|
3578
3744
|
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
|
3579
3745
|
if (!SWIG_IsOK(ecode2)) {
|
3580
3746
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","shiftIn", 2, argv[1] ));
|
3581
|
-
}
|
3747
|
+
}
|
3582
3748
|
arg2 = (uint8_t)(val2);
|
3583
3749
|
ecode3 = SWIG_AsVal_unsigned_SS_char(argv[2], &val3);
|
3584
3750
|
if (!SWIG_IsOK(ecode3)) {
|
3585
3751
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint8_t","shiftIn", 3, argv[2] ));
|
3586
|
-
}
|
3752
|
+
}
|
3587
3753
|
arg3 = (uint8_t)(val3);
|
3588
3754
|
result = shiftIn(arg1,arg2,arg3);
|
3589
3755
|
vresult = SWIG_From_unsigned_SS_char((unsigned char)(result));
|
@@ -3607,29 +3773,29 @@ _wrap_shiftOut(int argc, VALUE *argv, VALUE self) {
|
|
3607
3773
|
int ecode3 = 0 ;
|
3608
3774
|
unsigned char val4 ;
|
3609
3775
|
int ecode4 = 0 ;
|
3610
|
-
|
3776
|
+
|
3611
3777
|
if ((argc < 4) || (argc > 4)) {
|
3612
3778
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
3613
3779
|
}
|
3614
3780
|
ecode1 = SWIG_AsVal_unsigned_SS_char(argv[0], &val1);
|
3615
3781
|
if (!SWIG_IsOK(ecode1)) {
|
3616
3782
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint8_t","shiftOut", 1, argv[0] ));
|
3617
|
-
}
|
3783
|
+
}
|
3618
3784
|
arg1 = (uint8_t)(val1);
|
3619
3785
|
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
|
3620
3786
|
if (!SWIG_IsOK(ecode2)) {
|
3621
3787
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","shiftOut", 2, argv[1] ));
|
3622
|
-
}
|
3788
|
+
}
|
3623
3789
|
arg2 = (uint8_t)(val2);
|
3624
3790
|
ecode3 = SWIG_AsVal_unsigned_SS_char(argv[2], &val3);
|
3625
3791
|
if (!SWIG_IsOK(ecode3)) {
|
3626
3792
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint8_t","shiftOut", 3, argv[2] ));
|
3627
|
-
}
|
3793
|
+
}
|
3628
3794
|
arg3 = (uint8_t)(val3);
|
3629
3795
|
ecode4 = SWIG_AsVal_unsigned_SS_char(argv[3], &val4);
|
3630
3796
|
if (!SWIG_IsOK(ecode4)) {
|
3631
3797
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint8_t","shiftOut", 4, argv[3] ));
|
3632
|
-
}
|
3798
|
+
}
|
3633
3799
|
arg4 = (uint8_t)(val4);
|
3634
3800
|
shiftOut(arg1,arg2,arg3,arg4);
|
3635
3801
|
return Qnil;
|
@@ -3655,19 +3821,19 @@ _wrap_drcSetupSerial(int argc, VALUE *argv, VALUE self) {
|
|
3655
3821
|
int ecode4 = 0 ;
|
3656
3822
|
int result;
|
3657
3823
|
VALUE vresult = Qnil;
|
3658
|
-
|
3824
|
+
|
3659
3825
|
if ((argc < 4) || (argc > 4)) {
|
3660
3826
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
3661
3827
|
}
|
3662
3828
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3663
3829
|
if (!SWIG_IsOK(ecode1)) {
|
3664
3830
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","drcSetupSerial", 1, argv[0] ));
|
3665
|
-
}
|
3831
|
+
}
|
3666
3832
|
arg1 = (int)(val1);
|
3667
3833
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3668
3834
|
if (!SWIG_IsOK(ecode2)) {
|
3669
3835
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","drcSetupSerial", 2, argv[1] ));
|
3670
|
-
}
|
3836
|
+
}
|
3671
3837
|
arg2 = (int)(val2);
|
3672
3838
|
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
|
3673
3839
|
if (!SWIG_IsOK(res3)) {
|
@@ -3677,7 +3843,7 @@ _wrap_drcSetupSerial(int argc, VALUE *argv, VALUE self) {
|
|
3677
3843
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
3678
3844
|
if (!SWIG_IsOK(ecode4)) {
|
3679
3845
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","drcSetupSerial", 4, argv[3] ));
|
3680
|
-
}
|
3846
|
+
}
|
3681
3847
|
arg4 = (int)(val4);
|
3682
3848
|
result = (int)drcSetupSerial(arg1,arg2,(char const *)arg3,arg4);
|
3683
3849
|
vresult = SWIG_From_int((int)(result));
|
@@ -3699,19 +3865,19 @@ _wrap_ads1115Setup(int argc, VALUE *argv, VALUE self) {
|
|
3699
3865
|
int ecode2 = 0 ;
|
3700
3866
|
int result;
|
3701
3867
|
VALUE vresult = Qnil;
|
3702
|
-
|
3868
|
+
|
3703
3869
|
if ((argc < 2) || (argc > 2)) {
|
3704
3870
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3705
3871
|
}
|
3706
3872
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3707
3873
|
if (!SWIG_IsOK(ecode1)) {
|
3708
3874
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ads1115Setup", 1, argv[0] ));
|
3709
|
-
}
|
3875
|
+
}
|
3710
3876
|
arg1 = (int)(val1);
|
3711
3877
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3712
3878
|
if (!SWIG_IsOK(ecode2)) {
|
3713
3879
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ads1115Setup", 2, argv[1] ));
|
3714
|
-
}
|
3880
|
+
}
|
3715
3881
|
arg2 = (int)(val2);
|
3716
3882
|
result = (int)ads1115Setup(arg1,arg2);
|
3717
3883
|
vresult = SWIG_From_int((int)(result));
|
@@ -3731,19 +3897,19 @@ _wrap_max31855Setup(int argc, VALUE *argv, VALUE self) {
|
|
3731
3897
|
int ecode2 = 0 ;
|
3732
3898
|
int result;
|
3733
3899
|
VALUE vresult = Qnil;
|
3734
|
-
|
3900
|
+
|
3735
3901
|
if ((argc < 2) || (argc > 2)) {
|
3736
3902
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3737
3903
|
}
|
3738
3904
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3739
3905
|
if (!SWIG_IsOK(ecode1)) {
|
3740
3906
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","max31855Setup", 1, argv[0] ));
|
3741
|
-
}
|
3907
|
+
}
|
3742
3908
|
arg1 = (int)(val1);
|
3743
3909
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3744
3910
|
if (!SWIG_IsOK(ecode2)) {
|
3745
3911
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","max31855Setup", 2, argv[1] ));
|
3746
|
-
}
|
3912
|
+
}
|
3747
3913
|
arg2 = (int)(val2);
|
3748
3914
|
result = (int)max31855Setup(arg1,arg2);
|
3749
3915
|
vresult = SWIG_From_int((int)(result));
|
@@ -3763,19 +3929,19 @@ _wrap_max5322Setup(int argc, VALUE *argv, VALUE self) {
|
|
3763
3929
|
int ecode2 = 0 ;
|
3764
3930
|
int result;
|
3765
3931
|
VALUE vresult = Qnil;
|
3766
|
-
|
3932
|
+
|
3767
3933
|
if ((argc < 2) || (argc > 2)) {
|
3768
3934
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3769
3935
|
}
|
3770
3936
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3771
3937
|
if (!SWIG_IsOK(ecode1)) {
|
3772
3938
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","max5322Setup", 1, argv[0] ));
|
3773
|
-
}
|
3939
|
+
}
|
3774
3940
|
arg1 = (int)(val1);
|
3775
3941
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3776
3942
|
if (!SWIG_IsOK(ecode2)) {
|
3777
3943
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","max5322Setup", 2, argv[1] ));
|
3778
|
-
}
|
3944
|
+
}
|
3779
3945
|
arg2 = (int)(val2);
|
3780
3946
|
result = (int)max5322Setup(arg1,arg2);
|
3781
3947
|
vresult = SWIG_From_int((int)(result));
|
@@ -3795,19 +3961,19 @@ _wrap_mcp23008Setup(int argc, VALUE *argv, VALUE self) {
|
|
3795
3961
|
int ecode2 = 0 ;
|
3796
3962
|
int result;
|
3797
3963
|
VALUE vresult = Qnil;
|
3798
|
-
|
3964
|
+
|
3799
3965
|
if ((argc < 2) || (argc > 2)) {
|
3800
3966
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3801
3967
|
}
|
3802
3968
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3803
3969
|
if (!SWIG_IsOK(ecode1)) {
|
3804
3970
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp23008Setup", 1, argv[0] ));
|
3805
|
-
}
|
3971
|
+
}
|
3806
3972
|
arg1 = (int)(val1);
|
3807
3973
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3808
3974
|
if (!SWIG_IsOK(ecode2)) {
|
3809
3975
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp23008Setup", 2, argv[1] ));
|
3810
|
-
}
|
3976
|
+
}
|
3811
3977
|
arg2 = (int)(val2);
|
3812
3978
|
result = (int)mcp23008Setup(arg1,arg2);
|
3813
3979
|
vresult = SWIG_From_int((int)(result));
|
@@ -3827,19 +3993,19 @@ _wrap_mcp23016Setup(int argc, VALUE *argv, VALUE self) {
|
|
3827
3993
|
int ecode2 = 0 ;
|
3828
3994
|
int result;
|
3829
3995
|
VALUE vresult = Qnil;
|
3830
|
-
|
3996
|
+
|
3831
3997
|
if ((argc < 2) || (argc > 2)) {
|
3832
3998
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3833
3999
|
}
|
3834
4000
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3835
4001
|
if (!SWIG_IsOK(ecode1)) {
|
3836
4002
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp23016Setup", 1, argv[0] ));
|
3837
|
-
}
|
4003
|
+
}
|
3838
4004
|
arg1 = (int)(val1);
|
3839
4005
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3840
4006
|
if (!SWIG_IsOK(ecode2)) {
|
3841
4007
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp23016Setup", 2, argv[1] ));
|
3842
|
-
}
|
4008
|
+
}
|
3843
4009
|
arg2 = (int)(val2);
|
3844
4010
|
result = (int)mcp23016Setup(arg1,arg2);
|
3845
4011
|
vresult = SWIG_From_int((int)(result));
|
@@ -3859,19 +4025,19 @@ _wrap_mcp23017Setup(int argc, VALUE *argv, VALUE self) {
|
|
3859
4025
|
int ecode2 = 0 ;
|
3860
4026
|
int result;
|
3861
4027
|
VALUE vresult = Qnil;
|
3862
|
-
|
4028
|
+
|
3863
4029
|
if ((argc < 2) || (argc > 2)) {
|
3864
4030
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3865
4031
|
}
|
3866
4032
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3867
4033
|
if (!SWIG_IsOK(ecode1)) {
|
3868
4034
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp23017Setup", 1, argv[0] ));
|
3869
|
-
}
|
4035
|
+
}
|
3870
4036
|
arg1 = (int)(val1);
|
3871
4037
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3872
4038
|
if (!SWIG_IsOK(ecode2)) {
|
3873
4039
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp23017Setup", 2, argv[1] ));
|
3874
|
-
}
|
4040
|
+
}
|
3875
4041
|
arg2 = (int)(val2);
|
3876
4042
|
result = (int)mcp23017Setup(arg1,arg2);
|
3877
4043
|
vresult = SWIG_From_int((int)(result));
|
@@ -3894,24 +4060,24 @@ _wrap_mcp23s08Setup(int argc, VALUE *argv, VALUE self) {
|
|
3894
4060
|
int ecode3 = 0 ;
|
3895
4061
|
int result;
|
3896
4062
|
VALUE vresult = Qnil;
|
3897
|
-
|
4063
|
+
|
3898
4064
|
if ((argc < 3) || (argc > 3)) {
|
3899
4065
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3900
4066
|
}
|
3901
4067
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3902
4068
|
if (!SWIG_IsOK(ecode1)) {
|
3903
4069
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp23s08Setup", 1, argv[0] ));
|
3904
|
-
}
|
4070
|
+
}
|
3905
4071
|
arg1 = (int)(val1);
|
3906
4072
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3907
4073
|
if (!SWIG_IsOK(ecode2)) {
|
3908
4074
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp23s08Setup", 2, argv[1] ));
|
3909
|
-
}
|
4075
|
+
}
|
3910
4076
|
arg2 = (int)(val2);
|
3911
4077
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
3912
4078
|
if (!SWIG_IsOK(ecode3)) {
|
3913
4079
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","mcp23s08Setup", 3, argv[2] ));
|
3914
|
-
}
|
4080
|
+
}
|
3915
4081
|
arg3 = (int)(val3);
|
3916
4082
|
result = (int)mcp23s08Setup(arg1,arg2,arg3);
|
3917
4083
|
vresult = SWIG_From_int((int)(result));
|
@@ -3934,24 +4100,24 @@ _wrap_mcp23s17Setup(int argc, VALUE *argv, VALUE self) {
|
|
3934
4100
|
int ecode3 = 0 ;
|
3935
4101
|
int result;
|
3936
4102
|
VALUE vresult = Qnil;
|
3937
|
-
|
4103
|
+
|
3938
4104
|
if ((argc < 3) || (argc > 3)) {
|
3939
4105
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
3940
4106
|
}
|
3941
4107
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3942
4108
|
if (!SWIG_IsOK(ecode1)) {
|
3943
4109
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp23s17Setup", 1, argv[0] ));
|
3944
|
-
}
|
4110
|
+
}
|
3945
4111
|
arg1 = (int)(val1);
|
3946
4112
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3947
4113
|
if (!SWIG_IsOK(ecode2)) {
|
3948
4114
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp23s17Setup", 2, argv[1] ));
|
3949
|
-
}
|
4115
|
+
}
|
3950
4116
|
arg2 = (int)(val2);
|
3951
4117
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
3952
4118
|
if (!SWIG_IsOK(ecode3)) {
|
3953
4119
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","mcp23s17Setup", 3, argv[2] ));
|
3954
|
-
}
|
4120
|
+
}
|
3955
4121
|
arg3 = (int)(val3);
|
3956
4122
|
result = (int)mcp23s17Setup(arg1,arg2,arg3);
|
3957
4123
|
vresult = SWIG_From_int((int)(result));
|
@@ -3971,19 +4137,19 @@ _wrap_mcp3002Setup(int argc, VALUE *argv, VALUE self) {
|
|
3971
4137
|
int ecode2 = 0 ;
|
3972
4138
|
int result;
|
3973
4139
|
VALUE vresult = Qnil;
|
3974
|
-
|
4140
|
+
|
3975
4141
|
if ((argc < 2) || (argc > 2)) {
|
3976
4142
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
3977
4143
|
}
|
3978
4144
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
3979
4145
|
if (!SWIG_IsOK(ecode1)) {
|
3980
4146
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp3002Setup", 1, argv[0] ));
|
3981
|
-
}
|
4147
|
+
}
|
3982
4148
|
arg1 = (int)(val1);
|
3983
4149
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
3984
4150
|
if (!SWIG_IsOK(ecode2)) {
|
3985
4151
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp3002Setup", 2, argv[1] ));
|
3986
|
-
}
|
4152
|
+
}
|
3987
4153
|
arg2 = (int)(val2);
|
3988
4154
|
result = (int)mcp3002Setup(arg1,arg2);
|
3989
4155
|
vresult = SWIG_From_int((int)(result));
|
@@ -4003,19 +4169,19 @@ _wrap_mcp3004Setup(int argc, VALUE *argv, VALUE self) {
|
|
4003
4169
|
int ecode2 = 0 ;
|
4004
4170
|
int result;
|
4005
4171
|
VALUE vresult = Qnil;
|
4006
|
-
|
4172
|
+
|
4007
4173
|
if ((argc < 2) || (argc > 2)) {
|
4008
4174
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4009
4175
|
}
|
4010
4176
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4011
4177
|
if (!SWIG_IsOK(ecode1)) {
|
4012
4178
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp3004Setup", 1, argv[0] ));
|
4013
|
-
}
|
4179
|
+
}
|
4014
4180
|
arg1 = (int)(val1);
|
4015
4181
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4016
4182
|
if (!SWIG_IsOK(ecode2)) {
|
4017
4183
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp3004Setup", 2, argv[1] ));
|
4018
|
-
}
|
4184
|
+
}
|
4019
4185
|
arg2 = (int)(val2);
|
4020
4186
|
result = (int)mcp3004Setup(arg1,arg2);
|
4021
4187
|
vresult = SWIG_From_int((int)(result));
|
@@ -4041,29 +4207,29 @@ _wrap_mcp3422Setup(int argc, VALUE *argv, VALUE self) {
|
|
4041
4207
|
int ecode4 = 0 ;
|
4042
4208
|
int result;
|
4043
4209
|
VALUE vresult = Qnil;
|
4044
|
-
|
4210
|
+
|
4045
4211
|
if ((argc < 4) || (argc > 4)) {
|
4046
4212
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
4047
4213
|
}
|
4048
4214
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4049
4215
|
if (!SWIG_IsOK(ecode1)) {
|
4050
4216
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp3422Setup", 1, argv[0] ));
|
4051
|
-
}
|
4217
|
+
}
|
4052
4218
|
arg1 = (int)(val1);
|
4053
4219
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4054
4220
|
if (!SWIG_IsOK(ecode2)) {
|
4055
4221
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp3422Setup", 2, argv[1] ));
|
4056
|
-
}
|
4222
|
+
}
|
4057
4223
|
arg2 = (int)(val2);
|
4058
4224
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4059
4225
|
if (!SWIG_IsOK(ecode3)) {
|
4060
4226
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","mcp3422Setup", 3, argv[2] ));
|
4061
|
-
}
|
4227
|
+
}
|
4062
4228
|
arg3 = (int)(val3);
|
4063
4229
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
4064
4230
|
if (!SWIG_IsOK(ecode4)) {
|
4065
4231
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","mcp3422Setup", 4, argv[3] ));
|
4066
|
-
}
|
4232
|
+
}
|
4067
4233
|
arg4 = (int)(val4);
|
4068
4234
|
result = (int)mcp3422Setup(arg1,arg2,arg3,arg4);
|
4069
4235
|
vresult = SWIG_From_int((int)(result));
|
@@ -4083,19 +4249,19 @@ _wrap_mcp4802Setup(int argc, VALUE *argv, VALUE self) {
|
|
4083
4249
|
int ecode2 = 0 ;
|
4084
4250
|
int result;
|
4085
4251
|
VALUE vresult = Qnil;
|
4086
|
-
|
4252
|
+
|
4087
4253
|
if ((argc < 2) || (argc > 2)) {
|
4088
4254
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4089
4255
|
}
|
4090
4256
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4091
4257
|
if (!SWIG_IsOK(ecode1)) {
|
4092
4258
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp4802Setup", 1, argv[0] ));
|
4093
|
-
}
|
4259
|
+
}
|
4094
4260
|
arg1 = (int)(val1);
|
4095
4261
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4096
4262
|
if (!SWIG_IsOK(ecode2)) {
|
4097
4263
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp4802Setup", 2, argv[1] ));
|
4098
|
-
}
|
4264
|
+
}
|
4099
4265
|
arg2 = (int)(val2);
|
4100
4266
|
result = (int)mcp4802Setup(arg1,arg2);
|
4101
4267
|
vresult = SWIG_From_int((int)(result));
|
@@ -4115,19 +4281,19 @@ _wrap_pcf8574Setup(int argc, VALUE *argv, VALUE self) {
|
|
4115
4281
|
int ecode2 = 0 ;
|
4116
4282
|
int result;
|
4117
4283
|
VALUE vresult = Qnil;
|
4118
|
-
|
4284
|
+
|
4119
4285
|
if ((argc < 2) || (argc > 2)) {
|
4120
4286
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4121
4287
|
}
|
4122
4288
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4123
4289
|
if (!SWIG_IsOK(ecode1)) {
|
4124
4290
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pcf8574Setup", 1, argv[0] ));
|
4125
|
-
}
|
4291
|
+
}
|
4126
4292
|
arg1 = (int)(val1);
|
4127
4293
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4128
4294
|
if (!SWIG_IsOK(ecode2)) {
|
4129
4295
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pcf8574Setup", 2, argv[1] ));
|
4130
|
-
}
|
4296
|
+
}
|
4131
4297
|
arg2 = (int)(val2);
|
4132
4298
|
result = (int)pcf8574Setup(arg1,arg2);
|
4133
4299
|
vresult = SWIG_From_int((int)(result));
|
@@ -4147,19 +4313,19 @@ _wrap_pcf8591Setup(int argc, VALUE *argv, VALUE self) {
|
|
4147
4313
|
int ecode2 = 0 ;
|
4148
4314
|
int result;
|
4149
4315
|
VALUE vresult = Qnil;
|
4150
|
-
|
4316
|
+
|
4151
4317
|
if ((argc < 2) || (argc > 2)) {
|
4152
4318
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4153
4319
|
}
|
4154
4320
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4155
4321
|
if (!SWIG_IsOK(ecode1)) {
|
4156
4322
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pcf8591Setup", 1, argv[0] ));
|
4157
|
-
}
|
4323
|
+
}
|
4158
4324
|
arg1 = (int)(val1);
|
4159
4325
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4160
4326
|
if (!SWIG_IsOK(ecode2)) {
|
4161
4327
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pcf8591Setup", 2, argv[1] ));
|
4162
|
-
}
|
4328
|
+
}
|
4163
4329
|
arg2 = (int)(val2);
|
4164
4330
|
result = (int)pcf8591Setup(arg1,arg2);
|
4165
4331
|
vresult = SWIG_From_int((int)(result));
|
@@ -4176,14 +4342,14 @@ _wrap_sn3218Setup(int argc, VALUE *argv, VALUE self) {
|
|
4176
4342
|
int ecode1 = 0 ;
|
4177
4343
|
int result;
|
4178
4344
|
VALUE vresult = Qnil;
|
4179
|
-
|
4345
|
+
|
4180
4346
|
if ((argc < 1) || (argc > 1)) {
|
4181
4347
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4182
4348
|
}
|
4183
4349
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4184
4350
|
if (!SWIG_IsOK(ecode1)) {
|
4185
4351
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","sn3218Setup", 1, argv[0] ));
|
4186
|
-
}
|
4352
|
+
}
|
4187
4353
|
arg1 = (int)(val1);
|
4188
4354
|
result = (int)sn3218Setup(arg1);
|
4189
4355
|
vresult = SWIG_From_int((int)(result));
|
@@ -4206,24 +4372,24 @@ _wrap_softPwmCreate(int argc, VALUE *argv, VALUE self) {
|
|
4206
4372
|
int ecode3 = 0 ;
|
4207
4373
|
int result;
|
4208
4374
|
VALUE vresult = Qnil;
|
4209
|
-
|
4375
|
+
|
4210
4376
|
if ((argc < 3) || (argc > 3)) {
|
4211
4377
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4212
4378
|
}
|
4213
4379
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4214
4380
|
if (!SWIG_IsOK(ecode1)) {
|
4215
4381
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softPwmCreate", 1, argv[0] ));
|
4216
|
-
}
|
4382
|
+
}
|
4217
4383
|
arg1 = (int)(val1);
|
4218
4384
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4219
4385
|
if (!SWIG_IsOK(ecode2)) {
|
4220
4386
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","softPwmCreate", 2, argv[1] ));
|
4221
|
-
}
|
4387
|
+
}
|
4222
4388
|
arg2 = (int)(val2);
|
4223
4389
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4224
4390
|
if (!SWIG_IsOK(ecode3)) {
|
4225
4391
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","softPwmCreate", 3, argv[2] ));
|
4226
|
-
}
|
4392
|
+
}
|
4227
4393
|
arg3 = (int)(val3);
|
4228
4394
|
result = (int)softPwmCreate(arg1,arg2,arg3);
|
4229
4395
|
vresult = SWIG_From_int((int)(result));
|
@@ -4241,19 +4407,19 @@ _wrap_softPwmWrite(int argc, VALUE *argv, VALUE self) {
|
|
4241
4407
|
int ecode1 = 0 ;
|
4242
4408
|
int val2 ;
|
4243
4409
|
int ecode2 = 0 ;
|
4244
|
-
|
4410
|
+
|
4245
4411
|
if ((argc < 2) || (argc > 2)) {
|
4246
4412
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4247
4413
|
}
|
4248
4414
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4249
4415
|
if (!SWIG_IsOK(ecode1)) {
|
4250
4416
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softPwmWrite", 1, argv[0] ));
|
4251
|
-
}
|
4417
|
+
}
|
4252
4418
|
arg1 = (int)(val1);
|
4253
4419
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4254
4420
|
if (!SWIG_IsOK(ecode2)) {
|
4255
4421
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","softPwmWrite", 2, argv[1] ));
|
4256
|
-
}
|
4422
|
+
}
|
4257
4423
|
arg2 = (int)(val2);
|
4258
4424
|
softPwmWrite(arg1,arg2);
|
4259
4425
|
return Qnil;
|
@@ -4267,14 +4433,14 @@ _wrap_softPwmStop(int argc, VALUE *argv, VALUE self) {
|
|
4267
4433
|
int arg1 ;
|
4268
4434
|
int val1 ;
|
4269
4435
|
int ecode1 = 0 ;
|
4270
|
-
|
4436
|
+
|
4271
4437
|
if ((argc < 1) || (argc > 1)) {
|
4272
4438
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4273
4439
|
}
|
4274
4440
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4275
4441
|
if (!SWIG_IsOK(ecode1)) {
|
4276
4442
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softPwmStop", 1, argv[0] ));
|
4277
|
-
}
|
4443
|
+
}
|
4278
4444
|
arg1 = (int)(val1);
|
4279
4445
|
softPwmStop(arg1);
|
4280
4446
|
return Qnil;
|
@@ -4291,19 +4457,19 @@ _wrap_softServoWrite(int argc, VALUE *argv, VALUE self) {
|
|
4291
4457
|
int ecode1 = 0 ;
|
4292
4458
|
int val2 ;
|
4293
4459
|
int ecode2 = 0 ;
|
4294
|
-
|
4460
|
+
|
4295
4461
|
if ((argc < 2) || (argc > 2)) {
|
4296
4462
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4297
4463
|
}
|
4298
4464
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4299
4465
|
if (!SWIG_IsOK(ecode1)) {
|
4300
4466
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softServoWrite", 1, argv[0] ));
|
4301
|
-
}
|
4467
|
+
}
|
4302
4468
|
arg1 = (int)(val1);
|
4303
4469
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4304
4470
|
if (!SWIG_IsOK(ecode2)) {
|
4305
4471
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","softServoWrite", 2, argv[1] ));
|
4306
|
-
}
|
4472
|
+
}
|
4307
4473
|
arg2 = (int)(val2);
|
4308
4474
|
softServoWrite(arg1,arg2);
|
4309
4475
|
return Qnil;
|
@@ -4340,49 +4506,49 @@ _wrap_softServoSetup(int argc, VALUE *argv, VALUE self) {
|
|
4340
4506
|
int ecode8 = 0 ;
|
4341
4507
|
int result;
|
4342
4508
|
VALUE vresult = Qnil;
|
4343
|
-
|
4509
|
+
|
4344
4510
|
if ((argc < 8) || (argc > 8)) {
|
4345
4511
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
|
4346
4512
|
}
|
4347
4513
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4348
4514
|
if (!SWIG_IsOK(ecode1)) {
|
4349
4515
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softServoSetup", 1, argv[0] ));
|
4350
|
-
}
|
4516
|
+
}
|
4351
4517
|
arg1 = (int)(val1);
|
4352
4518
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4353
4519
|
if (!SWIG_IsOK(ecode2)) {
|
4354
4520
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","softServoSetup", 2, argv[1] ));
|
4355
|
-
}
|
4521
|
+
}
|
4356
4522
|
arg2 = (int)(val2);
|
4357
4523
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4358
4524
|
if (!SWIG_IsOK(ecode3)) {
|
4359
4525
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","softServoSetup", 3, argv[2] ));
|
4360
|
-
}
|
4526
|
+
}
|
4361
4527
|
arg3 = (int)(val3);
|
4362
4528
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
4363
4529
|
if (!SWIG_IsOK(ecode4)) {
|
4364
4530
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","softServoSetup", 4, argv[3] ));
|
4365
|
-
}
|
4531
|
+
}
|
4366
4532
|
arg4 = (int)(val4);
|
4367
4533
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
4368
4534
|
if (!SWIG_IsOK(ecode5)) {
|
4369
4535
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","softServoSetup", 5, argv[4] ));
|
4370
|
-
}
|
4536
|
+
}
|
4371
4537
|
arg5 = (int)(val5);
|
4372
4538
|
ecode6 = SWIG_AsVal_int(argv[5], &val6);
|
4373
4539
|
if (!SWIG_IsOK(ecode6)) {
|
4374
4540
|
SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","softServoSetup", 6, argv[5] ));
|
4375
|
-
}
|
4541
|
+
}
|
4376
4542
|
arg6 = (int)(val6);
|
4377
4543
|
ecode7 = SWIG_AsVal_int(argv[6], &val7);
|
4378
4544
|
if (!SWIG_IsOK(ecode7)) {
|
4379
4545
|
SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","softServoSetup", 7, argv[6] ));
|
4380
|
-
}
|
4546
|
+
}
|
4381
4547
|
arg7 = (int)(val7);
|
4382
4548
|
ecode8 = SWIG_AsVal_int(argv[7], &val8);
|
4383
4549
|
if (!SWIG_IsOK(ecode8)) {
|
4384
4550
|
SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "int","softServoSetup", 8, argv[7] ));
|
4385
|
-
}
|
4551
|
+
}
|
4386
4552
|
arg8 = (int)(val8);
|
4387
4553
|
result = (int)softServoSetup(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
4388
4554
|
vresult = SWIG_From_int((int)(result));
|
@@ -4399,14 +4565,14 @@ _wrap_softToneCreate(int argc, VALUE *argv, VALUE self) {
|
|
4399
4565
|
int ecode1 = 0 ;
|
4400
4566
|
int result;
|
4401
4567
|
VALUE vresult = Qnil;
|
4402
|
-
|
4568
|
+
|
4403
4569
|
if ((argc < 1) || (argc > 1)) {
|
4404
4570
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4405
4571
|
}
|
4406
4572
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4407
4573
|
if (!SWIG_IsOK(ecode1)) {
|
4408
4574
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softToneCreate", 1, argv[0] ));
|
4409
|
-
}
|
4575
|
+
}
|
4410
4576
|
arg1 = (int)(val1);
|
4411
4577
|
result = (int)softToneCreate(arg1);
|
4412
4578
|
vresult = SWIG_From_int((int)(result));
|
@@ -4421,14 +4587,14 @@ _wrap_softToneStop(int argc, VALUE *argv, VALUE self) {
|
|
4421
4587
|
int arg1 ;
|
4422
4588
|
int val1 ;
|
4423
4589
|
int ecode1 = 0 ;
|
4424
|
-
|
4590
|
+
|
4425
4591
|
if ((argc < 1) || (argc > 1)) {
|
4426
4592
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4427
4593
|
}
|
4428
4594
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4429
4595
|
if (!SWIG_IsOK(ecode1)) {
|
4430
4596
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softToneStop", 1, argv[0] ));
|
4431
|
-
}
|
4597
|
+
}
|
4432
4598
|
arg1 = (int)(val1);
|
4433
4599
|
softToneStop(arg1);
|
4434
4600
|
return Qnil;
|
@@ -4445,19 +4611,19 @@ _wrap_softToneWrite(int argc, VALUE *argv, VALUE self) {
|
|
4445
4611
|
int ecode1 = 0 ;
|
4446
4612
|
int val2 ;
|
4447
4613
|
int ecode2 = 0 ;
|
4448
|
-
|
4614
|
+
|
4449
4615
|
if ((argc < 2) || (argc > 2)) {
|
4450
4616
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4451
4617
|
}
|
4452
4618
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4453
4619
|
if (!SWIG_IsOK(ecode1)) {
|
4454
4620
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softToneWrite", 1, argv[0] ));
|
4455
|
-
}
|
4621
|
+
}
|
4456
4622
|
arg1 = (int)(val1);
|
4457
4623
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4458
4624
|
if (!SWIG_IsOK(ecode2)) {
|
4459
4625
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","softToneWrite", 2, argv[1] ));
|
4460
|
-
}
|
4626
|
+
}
|
4461
4627
|
arg2 = (int)(val2);
|
4462
4628
|
softToneWrite(arg1,arg2);
|
4463
4629
|
return Qnil;
|
@@ -4479,45 +4645,295 @@ _wrap_sr595Setup(int argc, VALUE *argv, VALUE self) {
|
|
4479
4645
|
int ecode2 = 0 ;
|
4480
4646
|
int val3 ;
|
4481
4647
|
int ecode3 = 0 ;
|
4482
|
-
int val4 ;
|
4483
|
-
int ecode4 = 0 ;
|
4484
|
-
int val5 ;
|
4485
|
-
int ecode5 = 0 ;
|
4648
|
+
int val4 ;
|
4649
|
+
int ecode4 = 0 ;
|
4650
|
+
int val5 ;
|
4651
|
+
int ecode5 = 0 ;
|
4652
|
+
int result;
|
4653
|
+
VALUE vresult = Qnil;
|
4654
|
+
|
4655
|
+
if ((argc < 5) || (argc > 5)) {
|
4656
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
4657
|
+
}
|
4658
|
+
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4659
|
+
if (!SWIG_IsOK(ecode1)) {
|
4660
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","sr595Setup", 1, argv[0] ));
|
4661
|
+
}
|
4662
|
+
arg1 = (int)(val1);
|
4663
|
+
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4664
|
+
if (!SWIG_IsOK(ecode2)) {
|
4665
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","sr595Setup", 2, argv[1] ));
|
4666
|
+
}
|
4667
|
+
arg2 = (int)(val2);
|
4668
|
+
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4669
|
+
if (!SWIG_IsOK(ecode3)) {
|
4670
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","sr595Setup", 3, argv[2] ));
|
4671
|
+
}
|
4672
|
+
arg3 = (int)(val3);
|
4673
|
+
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
4674
|
+
if (!SWIG_IsOK(ecode4)) {
|
4675
|
+
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","sr595Setup", 4, argv[3] ));
|
4676
|
+
}
|
4677
|
+
arg4 = (int)(val4);
|
4678
|
+
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
4679
|
+
if (!SWIG_IsOK(ecode5)) {
|
4680
|
+
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","sr595Setup", 5, argv[4] ));
|
4681
|
+
}
|
4682
|
+
arg5 = (int)(val5);
|
4683
|
+
result = (int)sr595Setup(arg1,arg2,arg3,arg4,arg5);
|
4684
|
+
vresult = SWIG_From_int((int)(result));
|
4685
|
+
return vresult;
|
4686
|
+
fail:
|
4687
|
+
return Qnil;
|
4688
|
+
}
|
4689
|
+
|
4690
|
+
|
4691
|
+
SWIGINTERN VALUE
|
4692
|
+
_wrap_bmp180Setup(int argc, VALUE *argv, VALUE self) {
|
4693
|
+
int arg1 ;
|
4694
|
+
int val1 ;
|
4695
|
+
int ecode1 = 0 ;
|
4696
|
+
int result;
|
4697
|
+
VALUE vresult = Qnil;
|
4698
|
+
|
4699
|
+
if ((argc < 1) || (argc > 1)) {
|
4700
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4701
|
+
}
|
4702
|
+
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4703
|
+
if (!SWIG_IsOK(ecode1)) {
|
4704
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","bmp180Setup", 1, argv[0] ));
|
4705
|
+
}
|
4706
|
+
arg1 = (int)(val1);
|
4707
|
+
result = (int)bmp180Setup(arg1);
|
4708
|
+
vresult = SWIG_From_int((int)(result));
|
4709
|
+
return vresult;
|
4710
|
+
fail:
|
4711
|
+
return Qnil;
|
4712
|
+
}
|
4713
|
+
|
4714
|
+
|
4715
|
+
SWIGINTERN VALUE
|
4716
|
+
_wrap_drcSetupNet(int argc, VALUE *argv, VALUE self) {
|
4717
|
+
int arg1 ;
|
4718
|
+
int arg2 ;
|
4719
|
+
char *arg3 = (char *) 0 ;
|
4720
|
+
char *arg4 = (char *) 0 ;
|
4721
|
+
char *arg5 = (char *) 0 ;
|
4722
|
+
int val1 ;
|
4723
|
+
int ecode1 = 0 ;
|
4724
|
+
int val2 ;
|
4725
|
+
int ecode2 = 0 ;
|
4726
|
+
int res3 ;
|
4727
|
+
char *buf3 = 0 ;
|
4728
|
+
int alloc3 = 0 ;
|
4729
|
+
int res4 ;
|
4730
|
+
char *buf4 = 0 ;
|
4731
|
+
int alloc4 = 0 ;
|
4732
|
+
int res5 ;
|
4733
|
+
char *buf5 = 0 ;
|
4734
|
+
int alloc5 = 0 ;
|
4735
|
+
int result;
|
4736
|
+
VALUE vresult = Qnil;
|
4737
|
+
|
4738
|
+
if ((argc < 5) || (argc > 5)) {
|
4739
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
4740
|
+
}
|
4741
|
+
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4742
|
+
if (!SWIG_IsOK(ecode1)) {
|
4743
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","drcSetupNet", 1, argv[0] ));
|
4744
|
+
}
|
4745
|
+
arg1 = (int)(val1);
|
4746
|
+
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4747
|
+
if (!SWIG_IsOK(ecode2)) {
|
4748
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","drcSetupNet", 2, argv[1] ));
|
4749
|
+
}
|
4750
|
+
arg2 = (int)(val2);
|
4751
|
+
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
|
4752
|
+
if (!SWIG_IsOK(res3)) {
|
4753
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","drcSetupNet", 3, argv[2] ));
|
4754
|
+
}
|
4755
|
+
arg3 = (char *)(buf3);
|
4756
|
+
res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
|
4757
|
+
if (!SWIG_IsOK(res4)) {
|
4758
|
+
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","drcSetupNet", 4, argv[3] ));
|
4759
|
+
}
|
4760
|
+
arg4 = (char *)(buf4);
|
4761
|
+
res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5);
|
4762
|
+
if (!SWIG_IsOK(res5)) {
|
4763
|
+
SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *","drcSetupNet", 5, argv[4] ));
|
4764
|
+
}
|
4765
|
+
arg5 = (char *)(buf5);
|
4766
|
+
result = (int)drcSetupNet(arg1,arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5);
|
4767
|
+
vresult = SWIG_From_int((int)(result));
|
4768
|
+
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
4769
|
+
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
|
4770
|
+
if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
|
4771
|
+
return vresult;
|
4772
|
+
fail:
|
4773
|
+
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
4774
|
+
if (alloc4 == SWIG_NEWOBJ) free((char*)buf4);
|
4775
|
+
if (alloc5 == SWIG_NEWOBJ) free((char*)buf5);
|
4776
|
+
return Qnil;
|
4777
|
+
}
|
4778
|
+
|
4779
|
+
|
4780
|
+
SWIGINTERN VALUE
|
4781
|
+
_wrap_ds18b20Setup(int argc, VALUE *argv, VALUE self) {
|
4782
|
+
int arg1 ;
|
4783
|
+
char *arg2 = (char *) 0 ;
|
4784
|
+
int val1 ;
|
4785
|
+
int ecode1 = 0 ;
|
4786
|
+
int res2 ;
|
4787
|
+
char *buf2 = 0 ;
|
4788
|
+
int alloc2 = 0 ;
|
4789
|
+
int result;
|
4790
|
+
VALUE vresult = Qnil;
|
4791
|
+
|
4792
|
+
if ((argc < 2) || (argc > 2)) {
|
4793
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4794
|
+
}
|
4795
|
+
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4796
|
+
if (!SWIG_IsOK(ecode1)) {
|
4797
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ds18b20Setup", 1, argv[0] ));
|
4798
|
+
}
|
4799
|
+
arg1 = (int)(val1);
|
4800
|
+
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
4801
|
+
if (!SWIG_IsOK(res2)) {
|
4802
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","ds18b20Setup", 2, argv[1] ));
|
4803
|
+
}
|
4804
|
+
arg2 = (char *)(buf2);
|
4805
|
+
result = (int)ds18b20Setup(arg1,(char const *)arg2);
|
4806
|
+
vresult = SWIG_From_int((int)(result));
|
4807
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
4808
|
+
return vresult;
|
4809
|
+
fail:
|
4810
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
4811
|
+
return Qnil;
|
4812
|
+
}
|
4813
|
+
|
4814
|
+
|
4815
|
+
SWIGINTERN VALUE
|
4816
|
+
_wrap_htu21dSetup(int argc, VALUE *argv, VALUE self) {
|
4817
|
+
int arg1 ;
|
4818
|
+
int val1 ;
|
4819
|
+
int ecode1 = 0 ;
|
4820
|
+
int result;
|
4821
|
+
VALUE vresult = Qnil;
|
4822
|
+
|
4823
|
+
if ((argc < 1) || (argc > 1)) {
|
4824
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4825
|
+
}
|
4826
|
+
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4827
|
+
if (!SWIG_IsOK(ecode1)) {
|
4828
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","htu21dSetup", 1, argv[0] ));
|
4829
|
+
}
|
4830
|
+
arg1 = (int)(val1);
|
4831
|
+
result = (int)htu21dSetup(arg1);
|
4832
|
+
vresult = SWIG_From_int((int)(result));
|
4833
|
+
return vresult;
|
4834
|
+
fail:
|
4835
|
+
return Qnil;
|
4836
|
+
}
|
4837
|
+
|
4838
|
+
|
4839
|
+
SWIGINTERN VALUE
|
4840
|
+
_wrap_pseudoPinsSetup(int argc, VALUE *argv, VALUE self) {
|
4841
|
+
int arg1 ;
|
4842
|
+
int val1 ;
|
4843
|
+
int ecode1 = 0 ;
|
4844
|
+
int result;
|
4845
|
+
VALUE vresult = Qnil;
|
4846
|
+
|
4847
|
+
if ((argc < 1) || (argc > 1)) {
|
4848
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4849
|
+
}
|
4850
|
+
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4851
|
+
if (!SWIG_IsOK(ecode1)) {
|
4852
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pseudoPinsSetup", 1, argv[0] ));
|
4853
|
+
}
|
4854
|
+
arg1 = (int)(val1);
|
4855
|
+
result = (int)pseudoPinsSetup(arg1);
|
4856
|
+
vresult = SWIG_From_int((int)(result));
|
4857
|
+
return vresult;
|
4858
|
+
fail:
|
4859
|
+
return Qnil;
|
4860
|
+
}
|
4861
|
+
|
4862
|
+
|
4863
|
+
SWIGINTERN VALUE
|
4864
|
+
_wrap_rht03Setup(int argc, VALUE *argv, VALUE self) {
|
4865
|
+
int arg1 ;
|
4866
|
+
int arg2 ;
|
4867
|
+
int val1 ;
|
4868
|
+
int ecode1 = 0 ;
|
4869
|
+
int val2 ;
|
4870
|
+
int ecode2 = 0 ;
|
4871
|
+
int result;
|
4872
|
+
VALUE vresult = Qnil;
|
4873
|
+
|
4874
|
+
if ((argc < 2) || (argc > 2)) {
|
4875
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4876
|
+
}
|
4877
|
+
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4878
|
+
if (!SWIG_IsOK(ecode1)) {
|
4879
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","rht03Setup", 1, argv[0] ));
|
4880
|
+
}
|
4881
|
+
arg1 = (int)(val1);
|
4882
|
+
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4883
|
+
if (!SWIG_IsOK(ecode2)) {
|
4884
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","rht03Setup", 2, argv[1] ));
|
4885
|
+
}
|
4886
|
+
arg2 = (int)(val2);
|
4887
|
+
result = (int)rht03Setup(arg1,arg2);
|
4888
|
+
vresult = SWIG_From_int((int)(result));
|
4889
|
+
return vresult;
|
4890
|
+
fail:
|
4891
|
+
return Qnil;
|
4892
|
+
}
|
4893
|
+
|
4894
|
+
|
4895
|
+
SWIGINTERN VALUE
|
4896
|
+
_wrap_loadWPiExtension(int argc, VALUE *argv, VALUE self) {
|
4897
|
+
char *arg1 = (char *) 0 ;
|
4898
|
+
char *arg2 = (char *) 0 ;
|
4899
|
+
int arg3 ;
|
4900
|
+
int res1 ;
|
4901
|
+
char *buf1 = 0 ;
|
4902
|
+
int alloc1 = 0 ;
|
4903
|
+
int res2 ;
|
4904
|
+
char *buf2 = 0 ;
|
4905
|
+
int alloc2 = 0 ;
|
4906
|
+
int val3 ;
|
4907
|
+
int ecode3 = 0 ;
|
4486
4908
|
int result;
|
4487
4909
|
VALUE vresult = Qnil;
|
4488
|
-
|
4489
|
-
if ((argc <
|
4490
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
4910
|
+
|
4911
|
+
if ((argc < 3) || (argc > 3)) {
|
4912
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4491
4913
|
}
|
4492
|
-
|
4493
|
-
if (!SWIG_IsOK(
|
4494
|
-
SWIG_exception_fail(SWIG_ArgError(
|
4495
|
-
}
|
4496
|
-
arg1 = (
|
4497
|
-
|
4498
|
-
if (!SWIG_IsOK(
|
4499
|
-
SWIG_exception_fail(SWIG_ArgError(
|
4500
|
-
}
|
4501
|
-
arg2 = (
|
4914
|
+
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
4915
|
+
if (!SWIG_IsOK(res1)) {
|
4916
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","loadWPiExtension", 1, argv[0] ));
|
4917
|
+
}
|
4918
|
+
arg1 = (char *)(buf1);
|
4919
|
+
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
4920
|
+
if (!SWIG_IsOK(res2)) {
|
4921
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","loadWPiExtension", 2, argv[1] ));
|
4922
|
+
}
|
4923
|
+
arg2 = (char *)(buf2);
|
4502
4924
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4503
4925
|
if (!SWIG_IsOK(ecode3)) {
|
4504
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","
|
4505
|
-
}
|
4926
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","loadWPiExtension", 3, argv[2] ));
|
4927
|
+
}
|
4506
4928
|
arg3 = (int)(val3);
|
4507
|
-
|
4508
|
-
if (!SWIG_IsOK(ecode4)) {
|
4509
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","sr595Setup", 4, argv[3] ));
|
4510
|
-
}
|
4511
|
-
arg4 = (int)(val4);
|
4512
|
-
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
4513
|
-
if (!SWIG_IsOK(ecode5)) {
|
4514
|
-
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","sr595Setup", 5, argv[4] ));
|
4515
|
-
}
|
4516
|
-
arg5 = (int)(val5);
|
4517
|
-
result = (int)sr595Setup(arg1,arg2,arg3,arg4,arg5);
|
4929
|
+
result = (int)loadWPiExtension(arg1,arg2,arg3);
|
4518
4930
|
vresult = SWIG_From_int((int)(result));
|
4931
|
+
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
4932
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
4519
4933
|
return vresult;
|
4520
4934
|
fail:
|
4935
|
+
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
4936
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
4521
4937
|
return Qnil;
|
4522
4938
|
}
|
4523
4939
|
|
@@ -4529,14 +4945,14 @@ _wrap_ds1302rtcRead(int argc, VALUE *argv, VALUE self) {
|
|
4529
4945
|
int ecode1 = 0 ;
|
4530
4946
|
unsigned int result;
|
4531
4947
|
VALUE vresult = Qnil;
|
4532
|
-
|
4948
|
+
|
4533
4949
|
if ((argc < 1) || (argc > 1)) {
|
4534
4950
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4535
4951
|
}
|
4536
4952
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4537
4953
|
if (!SWIG_IsOK(ecode1)) {
|
4538
4954
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ds1302rtcRead", 1, argv[0] ));
|
4539
|
-
}
|
4955
|
+
}
|
4540
4956
|
arg1 = (int)(val1);
|
4541
4957
|
result = (unsigned int)ds1302rtcRead(arg1);
|
4542
4958
|
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
|
@@ -4554,19 +4970,19 @@ _wrap_ds1302rtcWrite(int argc, VALUE *argv, VALUE self) {
|
|
4554
4970
|
int ecode1 = 0 ;
|
4555
4971
|
unsigned int val2 ;
|
4556
4972
|
int ecode2 = 0 ;
|
4557
|
-
|
4973
|
+
|
4558
4974
|
if ((argc < 2) || (argc > 2)) {
|
4559
4975
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4560
4976
|
}
|
4561
4977
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4562
4978
|
if (!SWIG_IsOK(ecode1)) {
|
4563
4979
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ds1302rtcWrite", 1, argv[0] ));
|
4564
|
-
}
|
4980
|
+
}
|
4565
4981
|
arg1 = (int)(val1);
|
4566
4982
|
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
|
4567
4983
|
if (!SWIG_IsOK(ecode2)) {
|
4568
4984
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ds1302rtcWrite", 2, argv[1] ));
|
4569
|
-
}
|
4985
|
+
}
|
4570
4986
|
arg2 = (unsigned int)(val2);
|
4571
4987
|
ds1302rtcWrite(arg1,arg2);
|
4572
4988
|
return Qnil;
|
@@ -4582,14 +4998,14 @@ _wrap_ds1302ramRead(int argc, VALUE *argv, VALUE self) {
|
|
4582
4998
|
int ecode1 = 0 ;
|
4583
4999
|
unsigned int result;
|
4584
5000
|
VALUE vresult = Qnil;
|
4585
|
-
|
5001
|
+
|
4586
5002
|
if ((argc < 1) || (argc > 1)) {
|
4587
5003
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4588
5004
|
}
|
4589
5005
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4590
5006
|
if (!SWIG_IsOK(ecode1)) {
|
4591
5007
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ds1302ramRead", 1, argv[0] ));
|
4592
|
-
}
|
5008
|
+
}
|
4593
5009
|
arg1 = (int)(val1);
|
4594
5010
|
result = (unsigned int)ds1302ramRead(arg1);
|
4595
5011
|
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
|
@@ -4607,19 +5023,19 @@ _wrap_ds1302ramWrite(int argc, VALUE *argv, VALUE self) {
|
|
4607
5023
|
int ecode1 = 0 ;
|
4608
5024
|
unsigned int val2 ;
|
4609
5025
|
int ecode2 = 0 ;
|
4610
|
-
|
5026
|
+
|
4611
5027
|
if ((argc < 2) || (argc > 2)) {
|
4612
5028
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4613
5029
|
}
|
4614
5030
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4615
5031
|
if (!SWIG_IsOK(ecode1)) {
|
4616
5032
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ds1302ramWrite", 1, argv[0] ));
|
4617
|
-
}
|
5033
|
+
}
|
4618
5034
|
arg1 = (int)(val1);
|
4619
5035
|
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2);
|
4620
5036
|
if (!SWIG_IsOK(ecode2)) {
|
4621
5037
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","ds1302ramWrite", 2, argv[1] ));
|
4622
|
-
}
|
5038
|
+
}
|
4623
5039
|
arg2 = (unsigned int)(val2);
|
4624
5040
|
ds1302ramWrite(arg1,arg2);
|
4625
5041
|
return Qnil;
|
@@ -4633,14 +5049,14 @@ _wrap_ds1302clockRead(int argc, VALUE *argv, VALUE self) {
|
|
4633
5049
|
int *arg1 ;
|
4634
5050
|
void *argp1 = 0 ;
|
4635
5051
|
int res1 = 0 ;
|
4636
|
-
|
5052
|
+
|
4637
5053
|
if ((argc < 1) || (argc > 1)) {
|
4638
5054
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4639
5055
|
}
|
4640
5056
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_int, 0 | 0 );
|
4641
5057
|
if (!SWIG_IsOK(res1)) {
|
4642
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int [8]","ds1302clockRead", 1, argv[0] ));
|
4643
|
-
}
|
5058
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int [8]","ds1302clockRead", 1, argv[0] ));
|
5059
|
+
}
|
4644
5060
|
arg1 = (int *)(argp1);
|
4645
5061
|
ds1302clockRead(arg1);
|
4646
5062
|
return Qnil;
|
@@ -4654,14 +5070,14 @@ _wrap_ds1302clockWrite(int argc, VALUE *argv, VALUE self) {
|
|
4654
5070
|
int *arg1 ;
|
4655
5071
|
void *argp1 = 0 ;
|
4656
5072
|
int res1 = 0 ;
|
4657
|
-
|
5073
|
+
|
4658
5074
|
if ((argc < 1) || (argc > 1)) {
|
4659
5075
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4660
5076
|
}
|
4661
5077
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_int, 0 | 0 );
|
4662
5078
|
if (!SWIG_IsOK(res1)) {
|
4663
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int const [8]","ds1302clockWrite", 1, argv[0] ));
|
4664
|
-
}
|
5079
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int const [8]","ds1302clockWrite", 1, argv[0] ));
|
5080
|
+
}
|
4665
5081
|
arg1 = (int *)(argp1);
|
4666
5082
|
ds1302clockWrite((int const (*))arg1);
|
4667
5083
|
return Qnil;
|
@@ -4678,19 +5094,19 @@ _wrap_ds1302trickleCharge(int argc, VALUE *argv, VALUE self) {
|
|
4678
5094
|
int ecode1 = 0 ;
|
4679
5095
|
int val2 ;
|
4680
5096
|
int ecode2 = 0 ;
|
4681
|
-
|
5097
|
+
|
4682
5098
|
if ((argc < 2) || (argc > 2)) {
|
4683
5099
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4684
5100
|
}
|
4685
5101
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4686
5102
|
if (!SWIG_IsOK(ecode1)) {
|
4687
5103
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ds1302trickleCharge", 1, argv[0] ));
|
4688
|
-
}
|
5104
|
+
}
|
4689
5105
|
arg1 = (int)(val1);
|
4690
5106
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4691
5107
|
if (!SWIG_IsOK(ecode2)) {
|
4692
5108
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ds1302trickleCharge", 2, argv[1] ));
|
4693
|
-
}
|
5109
|
+
}
|
4694
5110
|
arg2 = (int)(val2);
|
4695
5111
|
ds1302trickleCharge(arg1,arg2);
|
4696
5112
|
return Qnil;
|
@@ -4710,24 +5126,24 @@ _wrap_ds1302setup(int argc, VALUE *argv, VALUE self) {
|
|
4710
5126
|
int ecode2 = 0 ;
|
4711
5127
|
int val3 ;
|
4712
5128
|
int ecode3 = 0 ;
|
4713
|
-
|
5129
|
+
|
4714
5130
|
if ((argc < 3) || (argc > 3)) {
|
4715
5131
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4716
5132
|
}
|
4717
5133
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4718
5134
|
if (!SWIG_IsOK(ecode1)) {
|
4719
5135
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","ds1302setup", 1, argv[0] ));
|
4720
|
-
}
|
5136
|
+
}
|
4721
5137
|
arg1 = (int)(val1);
|
4722
5138
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4723
5139
|
if (!SWIG_IsOK(ecode2)) {
|
4724
5140
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ds1302setup", 2, argv[1] ));
|
4725
|
-
}
|
5141
|
+
}
|
4726
5142
|
arg2 = (int)(val2);
|
4727
5143
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4728
5144
|
if (!SWIG_IsOK(ecode3)) {
|
4729
5145
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","ds1302setup", 3, argv[2] ));
|
4730
|
-
}
|
5146
|
+
}
|
4731
5147
|
arg3 = (int)(val3);
|
4732
5148
|
ds1302setup(arg1,arg2,arg3);
|
4733
5149
|
return Qnil;
|
@@ -4744,19 +5160,19 @@ _wrap_gertboardAnalogWrite(int argc, VALUE *argv, VALUE self) {
|
|
4744
5160
|
int ecode1 = 0 ;
|
4745
5161
|
int val2 ;
|
4746
5162
|
int ecode2 = 0 ;
|
4747
|
-
|
5163
|
+
|
4748
5164
|
if ((argc < 2) || (argc > 2)) {
|
4749
5165
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4750
5166
|
}
|
4751
5167
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4752
5168
|
if (!SWIG_IsOK(ecode1)) {
|
4753
5169
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","gertboardAnalogWrite", 1, argv[0] ));
|
4754
|
-
}
|
5170
|
+
}
|
4755
5171
|
arg1 = (int)(val1);
|
4756
5172
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4757
5173
|
if (!SWIG_IsOK(ecode2)) {
|
4758
5174
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","gertboardAnalogWrite", 2, argv[1] ));
|
4759
|
-
}
|
5175
|
+
}
|
4760
5176
|
arg2 = (int)(val2);
|
4761
5177
|
gertboardAnalogWrite(arg1,arg2);
|
4762
5178
|
return Qnil;
|
@@ -4772,14 +5188,14 @@ _wrap_gertboardAnalogRead(int argc, VALUE *argv, VALUE self) {
|
|
4772
5188
|
int ecode1 = 0 ;
|
4773
5189
|
int result;
|
4774
5190
|
VALUE vresult = Qnil;
|
4775
|
-
|
5191
|
+
|
4776
5192
|
if ((argc < 1) || (argc > 1)) {
|
4777
5193
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4778
5194
|
}
|
4779
5195
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4780
5196
|
if (!SWIG_IsOK(ecode1)) {
|
4781
5197
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","gertboardAnalogRead", 1, argv[0] ));
|
4782
|
-
}
|
5198
|
+
}
|
4783
5199
|
arg1 = (int)(val1);
|
4784
5200
|
result = (int)gertboardAnalogRead(arg1);
|
4785
5201
|
vresult = SWIG_From_int((int)(result));
|
@@ -4793,7 +5209,7 @@ SWIGINTERN VALUE
|
|
4793
5209
|
_wrap_gertboardSPISetup(int argc, VALUE *argv, VALUE self) {
|
4794
5210
|
int result;
|
4795
5211
|
VALUE vresult = Qnil;
|
4796
|
-
|
5212
|
+
|
4797
5213
|
if ((argc < 0) || (argc > 0)) {
|
4798
5214
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
4799
5215
|
}
|
@@ -4812,14 +5228,14 @@ _wrap_gertboardAnalogSetup(int argc, VALUE *argv, VALUE self) {
|
|
4812
5228
|
int ecode1 = 0 ;
|
4813
5229
|
int result;
|
4814
5230
|
VALUE vresult = Qnil;
|
4815
|
-
|
5231
|
+
|
4816
5232
|
if ((argc < 1) || (argc > 1)) {
|
4817
5233
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4818
5234
|
}
|
4819
5235
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4820
5236
|
if (!SWIG_IsOK(ecode1)) {
|
4821
5237
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","gertboardAnalogSetup", 1, argv[0] ));
|
4822
|
-
}
|
5238
|
+
}
|
4823
5239
|
arg1 = (int)(val1);
|
4824
5240
|
result = (int)gertboardAnalogSetup(arg1);
|
4825
5241
|
vresult = SWIG_From_int((int)(result));
|
@@ -4837,19 +5253,19 @@ _wrap_lcd128x64setOrigin(int argc, VALUE *argv, VALUE self) {
|
|
4837
5253
|
int ecode1 = 0 ;
|
4838
5254
|
int val2 ;
|
4839
5255
|
int ecode2 = 0 ;
|
4840
|
-
|
5256
|
+
|
4841
5257
|
if ((argc < 2) || (argc > 2)) {
|
4842
5258
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4843
5259
|
}
|
4844
5260
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4845
5261
|
if (!SWIG_IsOK(ecode1)) {
|
4846
5262
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64setOrigin", 1, argv[0] ));
|
4847
|
-
}
|
5263
|
+
}
|
4848
5264
|
arg1 = (int)(val1);
|
4849
5265
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4850
5266
|
if (!SWIG_IsOK(ecode2)) {
|
4851
5267
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64setOrigin", 2, argv[1] ));
|
4852
|
-
}
|
5268
|
+
}
|
4853
5269
|
arg2 = (int)(val2);
|
4854
5270
|
lcd128x64setOrigin(arg1,arg2);
|
4855
5271
|
return Qnil;
|
@@ -4863,14 +5279,14 @@ _wrap_lcd128x64setOrientation(int argc, VALUE *argv, VALUE self) {
|
|
4863
5279
|
int arg1 ;
|
4864
5280
|
int val1 ;
|
4865
5281
|
int ecode1 = 0 ;
|
4866
|
-
|
5282
|
+
|
4867
5283
|
if ((argc < 1) || (argc > 1)) {
|
4868
5284
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
4869
5285
|
}
|
4870
5286
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4871
5287
|
if (!SWIG_IsOK(ecode1)) {
|
4872
5288
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64setOrientation", 1, argv[0] ));
|
4873
|
-
}
|
5289
|
+
}
|
4874
5290
|
arg1 = (int)(val1);
|
4875
5291
|
lcd128x64setOrientation(arg1);
|
4876
5292
|
return Qnil;
|
@@ -4887,18 +5303,18 @@ _wrap_lcd128x64orientCoordinates(int argc, VALUE *argv, VALUE self) {
|
|
4887
5303
|
int res1 = 0 ;
|
4888
5304
|
void *argp2 = 0 ;
|
4889
5305
|
int res2 = 0 ;
|
4890
|
-
|
5306
|
+
|
4891
5307
|
if ((argc < 2) || (argc > 2)) {
|
4892
5308
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4893
5309
|
}
|
4894
5310
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_int, 0 | 0 );
|
4895
5311
|
if (!SWIG_IsOK(res1)) {
|
4896
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","lcd128x64orientCoordinates", 1, argv[0] ));
|
5312
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","lcd128x64orientCoordinates", 1, argv[0] ));
|
4897
5313
|
}
|
4898
5314
|
arg1 = (int *)(argp1);
|
4899
5315
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
|
4900
5316
|
if (!SWIG_IsOK(res2)) {
|
4901
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","lcd128x64orientCoordinates", 2, argv[1] ));
|
5317
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","lcd128x64orientCoordinates", 2, argv[1] ));
|
4902
5318
|
}
|
4903
5319
|
arg2 = (int *)(argp2);
|
4904
5320
|
lcd128x64orientCoordinates(arg1,arg2);
|
@@ -4916,18 +5332,18 @@ _wrap_lcd128x64getScreenSize(int argc, VALUE *argv, VALUE self) {
|
|
4916
5332
|
int res1 = 0 ;
|
4917
5333
|
void *argp2 = 0 ;
|
4918
5334
|
int res2 = 0 ;
|
4919
|
-
|
5335
|
+
|
4920
5336
|
if ((argc < 2) || (argc > 2)) {
|
4921
5337
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
4922
5338
|
}
|
4923
5339
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_int, 0 | 0 );
|
4924
5340
|
if (!SWIG_IsOK(res1)) {
|
4925
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","lcd128x64getScreenSize", 1, argv[0] ));
|
5341
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "int *","lcd128x64getScreenSize", 1, argv[0] ));
|
4926
5342
|
}
|
4927
5343
|
arg1 = (int *)(argp1);
|
4928
5344
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
|
4929
5345
|
if (!SWIG_IsOK(res2)) {
|
4930
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","lcd128x64getScreenSize", 2, argv[1] ));
|
5346
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","lcd128x64getScreenSize", 2, argv[1] ));
|
4931
5347
|
}
|
4932
5348
|
arg2 = (int *)(argp2);
|
4933
5349
|
lcd128x64getScreenSize(arg1,arg2);
|
@@ -4948,24 +5364,24 @@ _wrap_lcd128x64point(int argc, VALUE *argv, VALUE self) {
|
|
4948
5364
|
int ecode2 = 0 ;
|
4949
5365
|
int val3 ;
|
4950
5366
|
int ecode3 = 0 ;
|
4951
|
-
|
5367
|
+
|
4952
5368
|
if ((argc < 3) || (argc > 3)) {
|
4953
5369
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
4954
5370
|
}
|
4955
5371
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4956
5372
|
if (!SWIG_IsOK(ecode1)) {
|
4957
5373
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64point", 1, argv[0] ));
|
4958
|
-
}
|
5374
|
+
}
|
4959
5375
|
arg1 = (int)(val1);
|
4960
5376
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
4961
5377
|
if (!SWIG_IsOK(ecode2)) {
|
4962
5378
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64point", 2, argv[1] ));
|
4963
|
-
}
|
5379
|
+
}
|
4964
5380
|
arg2 = (int)(val2);
|
4965
5381
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
4966
5382
|
if (!SWIG_IsOK(ecode3)) {
|
4967
5383
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcd128x64point", 3, argv[2] ));
|
4968
|
-
}
|
5384
|
+
}
|
4969
5385
|
arg3 = (int)(val3);
|
4970
5386
|
lcd128x64point(arg1,arg2,arg3);
|
4971
5387
|
return Qnil;
|
@@ -4991,34 +5407,34 @@ _wrap_lcd128x64line(int argc, VALUE *argv, VALUE self) {
|
|
4991
5407
|
int ecode4 = 0 ;
|
4992
5408
|
int val5 ;
|
4993
5409
|
int ecode5 = 0 ;
|
4994
|
-
|
5410
|
+
|
4995
5411
|
if ((argc < 5) || (argc > 5)) {
|
4996
5412
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
4997
5413
|
}
|
4998
5414
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
4999
5415
|
if (!SWIG_IsOK(ecode1)) {
|
5000
5416
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64line", 1, argv[0] ));
|
5001
|
-
}
|
5417
|
+
}
|
5002
5418
|
arg1 = (int)(val1);
|
5003
5419
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5004
5420
|
if (!SWIG_IsOK(ecode2)) {
|
5005
5421
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64line", 2, argv[1] ));
|
5006
|
-
}
|
5422
|
+
}
|
5007
5423
|
arg2 = (int)(val2);
|
5008
5424
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5009
5425
|
if (!SWIG_IsOK(ecode3)) {
|
5010
5426
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcd128x64line", 3, argv[2] ));
|
5011
|
-
}
|
5427
|
+
}
|
5012
5428
|
arg3 = (int)(val3);
|
5013
5429
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
5014
5430
|
if (!SWIG_IsOK(ecode4)) {
|
5015
5431
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","lcd128x64line", 4, argv[3] ));
|
5016
|
-
}
|
5432
|
+
}
|
5017
5433
|
arg4 = (int)(val4);
|
5018
5434
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
5019
5435
|
if (!SWIG_IsOK(ecode5)) {
|
5020
5436
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","lcd128x64line", 5, argv[4] ));
|
5021
|
-
}
|
5437
|
+
}
|
5022
5438
|
arg5 = (int)(val5);
|
5023
5439
|
lcd128x64line(arg1,arg2,arg3,arg4,arg5);
|
5024
5440
|
return Qnil;
|
@@ -5038,24 +5454,24 @@ _wrap_lcd128x64lineTo(int argc, VALUE *argv, VALUE self) {
|
|
5038
5454
|
int ecode2 = 0 ;
|
5039
5455
|
int val3 ;
|
5040
5456
|
int ecode3 = 0 ;
|
5041
|
-
|
5457
|
+
|
5042
5458
|
if ((argc < 3) || (argc > 3)) {
|
5043
5459
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
5044
5460
|
}
|
5045
5461
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5046
5462
|
if (!SWIG_IsOK(ecode1)) {
|
5047
5463
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64lineTo", 1, argv[0] ));
|
5048
|
-
}
|
5464
|
+
}
|
5049
5465
|
arg1 = (int)(val1);
|
5050
5466
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5051
5467
|
if (!SWIG_IsOK(ecode2)) {
|
5052
5468
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64lineTo", 2, argv[1] ));
|
5053
|
-
}
|
5469
|
+
}
|
5054
5470
|
arg2 = (int)(val2);
|
5055
5471
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5056
5472
|
if (!SWIG_IsOK(ecode3)) {
|
5057
5473
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcd128x64lineTo", 3, argv[2] ));
|
5058
|
-
}
|
5474
|
+
}
|
5059
5475
|
arg3 = (int)(val3);
|
5060
5476
|
lcd128x64lineTo(arg1,arg2,arg3);
|
5061
5477
|
return Qnil;
|
@@ -5084,39 +5500,39 @@ _wrap_lcd128x64rectangle(int argc, VALUE *argv, VALUE self) {
|
|
5084
5500
|
int ecode5 = 0 ;
|
5085
5501
|
int val6 ;
|
5086
5502
|
int ecode6 = 0 ;
|
5087
|
-
|
5503
|
+
|
5088
5504
|
if ((argc < 6) || (argc > 6)) {
|
5089
5505
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
|
5090
5506
|
}
|
5091
5507
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5092
5508
|
if (!SWIG_IsOK(ecode1)) {
|
5093
5509
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64rectangle", 1, argv[0] ));
|
5094
|
-
}
|
5510
|
+
}
|
5095
5511
|
arg1 = (int)(val1);
|
5096
5512
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5097
5513
|
if (!SWIG_IsOK(ecode2)) {
|
5098
5514
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64rectangle", 2, argv[1] ));
|
5099
|
-
}
|
5515
|
+
}
|
5100
5516
|
arg2 = (int)(val2);
|
5101
5517
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5102
5518
|
if (!SWIG_IsOK(ecode3)) {
|
5103
5519
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcd128x64rectangle", 3, argv[2] ));
|
5104
|
-
}
|
5520
|
+
}
|
5105
5521
|
arg3 = (int)(val3);
|
5106
5522
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
5107
5523
|
if (!SWIG_IsOK(ecode4)) {
|
5108
5524
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","lcd128x64rectangle", 4, argv[3] ));
|
5109
|
-
}
|
5525
|
+
}
|
5110
5526
|
arg4 = (int)(val4);
|
5111
5527
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
5112
5528
|
if (!SWIG_IsOK(ecode5)) {
|
5113
5529
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","lcd128x64rectangle", 5, argv[4] ));
|
5114
|
-
}
|
5530
|
+
}
|
5115
5531
|
arg5 = (int)(val5);
|
5116
5532
|
ecode6 = SWIG_AsVal_int(argv[5], &val6);
|
5117
5533
|
if (!SWIG_IsOK(ecode6)) {
|
5118
5534
|
SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","lcd128x64rectangle", 6, argv[5] ));
|
5119
|
-
}
|
5535
|
+
}
|
5120
5536
|
arg6 = (int)(val6);
|
5121
5537
|
lcd128x64rectangle(arg1,arg2,arg3,arg4,arg5,arg6);
|
5122
5538
|
return Qnil;
|
@@ -5142,34 +5558,34 @@ _wrap_lcd128x64circle(int argc, VALUE *argv, VALUE self) {
|
|
5142
5558
|
int ecode4 = 0 ;
|
5143
5559
|
int val5 ;
|
5144
5560
|
int ecode5 = 0 ;
|
5145
|
-
|
5561
|
+
|
5146
5562
|
if ((argc < 5) || (argc > 5)) {
|
5147
5563
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
5148
5564
|
}
|
5149
5565
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5150
5566
|
if (!SWIG_IsOK(ecode1)) {
|
5151
5567
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64circle", 1, argv[0] ));
|
5152
|
-
}
|
5568
|
+
}
|
5153
5569
|
arg1 = (int)(val1);
|
5154
5570
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5155
5571
|
if (!SWIG_IsOK(ecode2)) {
|
5156
5572
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64circle", 2, argv[1] ));
|
5157
|
-
}
|
5573
|
+
}
|
5158
5574
|
arg2 = (int)(val2);
|
5159
5575
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5160
5576
|
if (!SWIG_IsOK(ecode3)) {
|
5161
5577
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcd128x64circle", 3, argv[2] ));
|
5162
|
-
}
|
5578
|
+
}
|
5163
5579
|
arg3 = (int)(val3);
|
5164
5580
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
5165
5581
|
if (!SWIG_IsOK(ecode4)) {
|
5166
5582
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","lcd128x64circle", 4, argv[3] ));
|
5167
|
-
}
|
5583
|
+
}
|
5168
5584
|
arg4 = (int)(val4);
|
5169
5585
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
5170
5586
|
if (!SWIG_IsOK(ecode5)) {
|
5171
5587
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","lcd128x64circle", 5, argv[4] ));
|
5172
|
-
}
|
5588
|
+
}
|
5173
5589
|
arg5 = (int)(val5);
|
5174
5590
|
lcd128x64circle(arg1,arg2,arg3,arg4,arg5);
|
5175
5591
|
return Qnil;
|
@@ -5198,39 +5614,39 @@ _wrap_lcd128x64ellipse(int argc, VALUE *argv, VALUE self) {
|
|
5198
5614
|
int ecode5 = 0 ;
|
5199
5615
|
int val6 ;
|
5200
5616
|
int ecode6 = 0 ;
|
5201
|
-
|
5617
|
+
|
5202
5618
|
if ((argc < 6) || (argc > 6)) {
|
5203
5619
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
|
5204
5620
|
}
|
5205
5621
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5206
5622
|
if (!SWIG_IsOK(ecode1)) {
|
5207
5623
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64ellipse", 1, argv[0] ));
|
5208
|
-
}
|
5624
|
+
}
|
5209
5625
|
arg1 = (int)(val1);
|
5210
5626
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5211
5627
|
if (!SWIG_IsOK(ecode2)) {
|
5212
5628
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64ellipse", 2, argv[1] ));
|
5213
|
-
}
|
5629
|
+
}
|
5214
5630
|
arg2 = (int)(val2);
|
5215
5631
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5216
5632
|
if (!SWIG_IsOK(ecode3)) {
|
5217
5633
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcd128x64ellipse", 3, argv[2] ));
|
5218
|
-
}
|
5634
|
+
}
|
5219
5635
|
arg3 = (int)(val3);
|
5220
5636
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
5221
5637
|
if (!SWIG_IsOK(ecode4)) {
|
5222
5638
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","lcd128x64ellipse", 4, argv[3] ));
|
5223
|
-
}
|
5639
|
+
}
|
5224
5640
|
arg4 = (int)(val4);
|
5225
5641
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
5226
5642
|
if (!SWIG_IsOK(ecode5)) {
|
5227
5643
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","lcd128x64ellipse", 5, argv[4] ));
|
5228
|
-
}
|
5644
|
+
}
|
5229
5645
|
arg5 = (int)(val5);
|
5230
5646
|
ecode6 = SWIG_AsVal_int(argv[5], &val6);
|
5231
5647
|
if (!SWIG_IsOK(ecode6)) {
|
5232
5648
|
SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","lcd128x64ellipse", 6, argv[5] ));
|
5233
|
-
}
|
5649
|
+
}
|
5234
5650
|
arg6 = (int)(val6);
|
5235
5651
|
lcd128x64ellipse(arg1,arg2,arg3,arg4,arg5,arg6);
|
5236
5652
|
return Qnil;
|
@@ -5256,34 +5672,34 @@ _wrap_lcd128x64putchar(int argc, VALUE *argv, VALUE self) {
|
|
5256
5672
|
int ecode4 = 0 ;
|
5257
5673
|
int val5 ;
|
5258
5674
|
int ecode5 = 0 ;
|
5259
|
-
|
5675
|
+
|
5260
5676
|
if ((argc < 5) || (argc > 5)) {
|
5261
5677
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
5262
5678
|
}
|
5263
5679
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5264
5680
|
if (!SWIG_IsOK(ecode1)) {
|
5265
5681
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64putchar", 1, argv[0] ));
|
5266
|
-
}
|
5682
|
+
}
|
5267
5683
|
arg1 = (int)(val1);
|
5268
5684
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5269
5685
|
if (!SWIG_IsOK(ecode2)) {
|
5270
5686
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64putchar", 2, argv[1] ));
|
5271
|
-
}
|
5687
|
+
}
|
5272
5688
|
arg2 = (int)(val2);
|
5273
5689
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5274
5690
|
if (!SWIG_IsOK(ecode3)) {
|
5275
5691
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcd128x64putchar", 3, argv[2] ));
|
5276
|
-
}
|
5692
|
+
}
|
5277
5693
|
arg3 = (int)(val3);
|
5278
5694
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
5279
5695
|
if (!SWIG_IsOK(ecode4)) {
|
5280
5696
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","lcd128x64putchar", 4, argv[3] ));
|
5281
|
-
}
|
5697
|
+
}
|
5282
5698
|
arg4 = (int)(val4);
|
5283
5699
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
5284
5700
|
if (!SWIG_IsOK(ecode5)) {
|
5285
5701
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","lcd128x64putchar", 5, argv[4] ));
|
5286
|
-
}
|
5702
|
+
}
|
5287
5703
|
arg5 = (int)(val5);
|
5288
5704
|
lcd128x64putchar(arg1,arg2,arg3,arg4,arg5);
|
5289
5705
|
return Qnil;
|
@@ -5310,19 +5726,19 @@ _wrap_lcd128x64puts(int argc, VALUE *argv, VALUE self) {
|
|
5310
5726
|
int ecode4 = 0 ;
|
5311
5727
|
int val5 ;
|
5312
5728
|
int ecode5 = 0 ;
|
5313
|
-
|
5729
|
+
|
5314
5730
|
if ((argc < 5) || (argc > 5)) {
|
5315
5731
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
5316
5732
|
}
|
5317
5733
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5318
5734
|
if (!SWIG_IsOK(ecode1)) {
|
5319
5735
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64puts", 1, argv[0] ));
|
5320
|
-
}
|
5736
|
+
}
|
5321
5737
|
arg1 = (int)(val1);
|
5322
5738
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5323
5739
|
if (!SWIG_IsOK(ecode2)) {
|
5324
5740
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcd128x64puts", 2, argv[1] ));
|
5325
|
-
}
|
5741
|
+
}
|
5326
5742
|
arg2 = (int)(val2);
|
5327
5743
|
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
|
5328
5744
|
if (!SWIG_IsOK(res3)) {
|
@@ -5332,12 +5748,12 @@ _wrap_lcd128x64puts(int argc, VALUE *argv, VALUE self) {
|
|
5332
5748
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
5333
5749
|
if (!SWIG_IsOK(ecode4)) {
|
5334
5750
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","lcd128x64puts", 4, argv[3] ));
|
5335
|
-
}
|
5751
|
+
}
|
5336
5752
|
arg4 = (int)(val4);
|
5337
5753
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
5338
5754
|
if (!SWIG_IsOK(ecode5)) {
|
5339
5755
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","lcd128x64puts", 5, argv[4] ));
|
5340
|
-
}
|
5756
|
+
}
|
5341
5757
|
arg5 = (int)(val5);
|
5342
5758
|
lcd128x64puts(arg1,arg2,(char const *)arg3,arg4,arg5);
|
5343
5759
|
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
@@ -5365,14 +5781,14 @@ _wrap_lcd128x64clear(int argc, VALUE *argv, VALUE self) {
|
|
5365
5781
|
int arg1 ;
|
5366
5782
|
int val1 ;
|
5367
5783
|
int ecode1 = 0 ;
|
5368
|
-
|
5784
|
+
|
5369
5785
|
if ((argc < 1) || (argc > 1)) {
|
5370
5786
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5371
5787
|
}
|
5372
5788
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5373
5789
|
if (!SWIG_IsOK(ecode1)) {
|
5374
5790
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcd128x64clear", 1, argv[0] ));
|
5375
|
-
}
|
5791
|
+
}
|
5376
5792
|
arg1 = (int)(val1);
|
5377
5793
|
lcd128x64clear(arg1);
|
5378
5794
|
return Qnil;
|
@@ -5385,7 +5801,7 @@ SWIGINTERN VALUE
|
|
5385
5801
|
_wrap_lcd128x64setup(int argc, VALUE *argv, VALUE self) {
|
5386
5802
|
int result;
|
5387
5803
|
VALUE vresult = Qnil;
|
5388
|
-
|
5804
|
+
|
5389
5805
|
if ((argc < 0) || (argc > 0)) {
|
5390
5806
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5391
5807
|
}
|
@@ -5402,14 +5818,14 @@ _wrap_lcdHome(int argc, VALUE *argv, VALUE self) {
|
|
5402
5818
|
int arg1 ;
|
5403
5819
|
int val1 ;
|
5404
5820
|
int ecode1 = 0 ;
|
5405
|
-
|
5821
|
+
|
5406
5822
|
if ((argc < 1) || (argc > 1)) {
|
5407
5823
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5408
5824
|
}
|
5409
5825
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5410
5826
|
if (!SWIG_IsOK(ecode1)) {
|
5411
5827
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdHome", 1, argv[0] ));
|
5412
|
-
}
|
5828
|
+
}
|
5413
5829
|
arg1 = (int)(val1);
|
5414
5830
|
lcdHome(arg1);
|
5415
5831
|
return Qnil;
|
@@ -5423,14 +5839,14 @@ _wrap_lcdClear(int argc, VALUE *argv, VALUE self) {
|
|
5423
5839
|
int arg1 ;
|
5424
5840
|
int val1 ;
|
5425
5841
|
int ecode1 = 0 ;
|
5426
|
-
|
5842
|
+
|
5427
5843
|
if ((argc < 1) || (argc > 1)) {
|
5428
5844
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5429
5845
|
}
|
5430
5846
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5431
5847
|
if (!SWIG_IsOK(ecode1)) {
|
5432
5848
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdClear", 1, argv[0] ));
|
5433
|
-
}
|
5849
|
+
}
|
5434
5850
|
arg1 = (int)(val1);
|
5435
5851
|
lcdClear(arg1);
|
5436
5852
|
return Qnil;
|
@@ -5447,19 +5863,19 @@ _wrap_lcdDisplay(int argc, VALUE *argv, VALUE self) {
|
|
5447
5863
|
int ecode1 = 0 ;
|
5448
5864
|
int val2 ;
|
5449
5865
|
int ecode2 = 0 ;
|
5450
|
-
|
5866
|
+
|
5451
5867
|
if ((argc < 2) || (argc > 2)) {
|
5452
5868
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5453
5869
|
}
|
5454
5870
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5455
5871
|
if (!SWIG_IsOK(ecode1)) {
|
5456
5872
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdDisplay", 1, argv[0] ));
|
5457
|
-
}
|
5873
|
+
}
|
5458
5874
|
arg1 = (int)(val1);
|
5459
5875
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5460
5876
|
if (!SWIG_IsOK(ecode2)) {
|
5461
5877
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcdDisplay", 2, argv[1] ));
|
5462
|
-
}
|
5878
|
+
}
|
5463
5879
|
arg2 = (int)(val2);
|
5464
5880
|
lcdDisplay(arg1,arg2);
|
5465
5881
|
return Qnil;
|
@@ -5476,19 +5892,19 @@ _wrap_lcdCursor(int argc, VALUE *argv, VALUE self) {
|
|
5476
5892
|
int ecode1 = 0 ;
|
5477
5893
|
int val2 ;
|
5478
5894
|
int ecode2 = 0 ;
|
5479
|
-
|
5895
|
+
|
5480
5896
|
if ((argc < 2) || (argc > 2)) {
|
5481
5897
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5482
5898
|
}
|
5483
5899
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5484
5900
|
if (!SWIG_IsOK(ecode1)) {
|
5485
5901
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdCursor", 1, argv[0] ));
|
5486
|
-
}
|
5902
|
+
}
|
5487
5903
|
arg1 = (int)(val1);
|
5488
5904
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5489
5905
|
if (!SWIG_IsOK(ecode2)) {
|
5490
5906
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcdCursor", 2, argv[1] ));
|
5491
|
-
}
|
5907
|
+
}
|
5492
5908
|
arg2 = (int)(val2);
|
5493
5909
|
lcdCursor(arg1,arg2);
|
5494
5910
|
return Qnil;
|
@@ -5505,19 +5921,19 @@ _wrap_lcdCursorBlink(int argc, VALUE *argv, VALUE self) {
|
|
5505
5921
|
int ecode1 = 0 ;
|
5506
5922
|
int val2 ;
|
5507
5923
|
int ecode2 = 0 ;
|
5508
|
-
|
5924
|
+
|
5509
5925
|
if ((argc < 2) || (argc > 2)) {
|
5510
5926
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5511
5927
|
}
|
5512
5928
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5513
5929
|
if (!SWIG_IsOK(ecode1)) {
|
5514
5930
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdCursorBlink", 1, argv[0] ));
|
5515
|
-
}
|
5931
|
+
}
|
5516
5932
|
arg1 = (int)(val1);
|
5517
5933
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5518
5934
|
if (!SWIG_IsOK(ecode2)) {
|
5519
5935
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcdCursorBlink", 2, argv[1] ));
|
5520
|
-
}
|
5936
|
+
}
|
5521
5937
|
arg2 = (int)(val2);
|
5522
5938
|
lcdCursorBlink(arg1,arg2);
|
5523
5939
|
return Qnil;
|
@@ -5534,19 +5950,19 @@ _wrap_lcdSendCommand(int argc, VALUE *argv, VALUE self) {
|
|
5534
5950
|
int ecode1 = 0 ;
|
5535
5951
|
unsigned char val2 ;
|
5536
5952
|
int ecode2 = 0 ;
|
5537
|
-
|
5953
|
+
|
5538
5954
|
if ((argc < 2) || (argc > 2)) {
|
5539
5955
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5540
5956
|
}
|
5541
5957
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5542
5958
|
if (!SWIG_IsOK(ecode1)) {
|
5543
5959
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdSendCommand", 1, argv[0] ));
|
5544
|
-
}
|
5960
|
+
}
|
5545
5961
|
arg1 = (int)(val1);
|
5546
5962
|
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
|
5547
5963
|
if (!SWIG_IsOK(ecode2)) {
|
5548
5964
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned char","lcdSendCommand", 2, argv[1] ));
|
5549
|
-
}
|
5965
|
+
}
|
5550
5966
|
arg2 = (unsigned char)(val2);
|
5551
5967
|
lcdSendCommand(arg1,arg2);
|
5552
5968
|
return Qnil;
|
@@ -5566,24 +5982,24 @@ _wrap_lcdPosition(int argc, VALUE *argv, VALUE self) {
|
|
5566
5982
|
int ecode2 = 0 ;
|
5567
5983
|
int val3 ;
|
5568
5984
|
int ecode3 = 0 ;
|
5569
|
-
|
5985
|
+
|
5570
5986
|
if ((argc < 3) || (argc > 3)) {
|
5571
5987
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
5572
5988
|
}
|
5573
5989
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5574
5990
|
if (!SWIG_IsOK(ecode1)) {
|
5575
5991
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdPosition", 1, argv[0] ));
|
5576
|
-
}
|
5992
|
+
}
|
5577
5993
|
arg1 = (int)(val1);
|
5578
5994
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5579
5995
|
if (!SWIG_IsOK(ecode2)) {
|
5580
5996
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcdPosition", 2, argv[1] ));
|
5581
|
-
}
|
5997
|
+
}
|
5582
5998
|
arg2 = (int)(val2);
|
5583
5999
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5584
6000
|
if (!SWIG_IsOK(ecode3)) {
|
5585
6001
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcdPosition", 3, argv[2] ));
|
5586
|
-
}
|
6002
|
+
}
|
5587
6003
|
arg3 = (int)(val3);
|
5588
6004
|
lcdPosition(arg1,arg2,arg3);
|
5589
6005
|
return Qnil;
|
@@ -5603,24 +6019,24 @@ _wrap_lcdCharDef(int argc, VALUE *argv, VALUE self) {
|
|
5603
6019
|
int ecode2 = 0 ;
|
5604
6020
|
void *argp3 = 0 ;
|
5605
6021
|
int res3 = 0 ;
|
5606
|
-
|
6022
|
+
|
5607
6023
|
if ((argc < 3) || (argc > 3)) {
|
5608
6024
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
5609
6025
|
}
|
5610
6026
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5611
6027
|
if (!SWIG_IsOK(ecode1)) {
|
5612
6028
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdCharDef", 1, argv[0] ));
|
5613
|
-
}
|
6029
|
+
}
|
5614
6030
|
arg1 = (int)(val1);
|
5615
6031
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5616
6032
|
if (!SWIG_IsOK(ecode2)) {
|
5617
6033
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcdCharDef", 2, argv[1] ));
|
5618
|
-
}
|
6034
|
+
}
|
5619
6035
|
arg2 = (int)(val2);
|
5620
6036
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
|
5621
6037
|
if (!SWIG_IsOK(res3)) {
|
5622
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "unsigned char [8]","lcdCharDef", 3, argv[2] ));
|
5623
|
-
}
|
6038
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "unsigned char [8]","lcdCharDef", 3, argv[2] ));
|
6039
|
+
}
|
5624
6040
|
arg3 = (unsigned char *)(argp3);
|
5625
6041
|
lcdCharDef(arg1,arg2,arg3);
|
5626
6042
|
return Qnil;
|
@@ -5637,19 +6053,19 @@ _wrap_lcdPutchar(int argc, VALUE *argv, VALUE self) {
|
|
5637
6053
|
int ecode1 = 0 ;
|
5638
6054
|
unsigned char val2 ;
|
5639
6055
|
int ecode2 = 0 ;
|
5640
|
-
|
6056
|
+
|
5641
6057
|
if ((argc < 2) || (argc > 2)) {
|
5642
6058
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5643
6059
|
}
|
5644
6060
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5645
6061
|
if (!SWIG_IsOK(ecode1)) {
|
5646
6062
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdPutchar", 1, argv[0] ));
|
5647
|
-
}
|
6063
|
+
}
|
5648
6064
|
arg1 = (int)(val1);
|
5649
6065
|
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
|
5650
6066
|
if (!SWIG_IsOK(ecode2)) {
|
5651
6067
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned char","lcdPutchar", 2, argv[1] ));
|
5652
|
-
}
|
6068
|
+
}
|
5653
6069
|
arg2 = (unsigned char)(val2);
|
5654
6070
|
lcdPutchar(arg1,arg2);
|
5655
6071
|
return Qnil;
|
@@ -5667,14 +6083,14 @@ _wrap_lcdPuts(int argc, VALUE *argv, VALUE self) {
|
|
5667
6083
|
int res2 ;
|
5668
6084
|
char *buf2 = 0 ;
|
5669
6085
|
int alloc2 = 0 ;
|
5670
|
-
|
6086
|
+
|
5671
6087
|
if ((argc < 2) || (argc > 2)) {
|
5672
6088
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5673
6089
|
}
|
5674
6090
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5675
6091
|
if (!SWIG_IsOK(ecode1)) {
|
5676
6092
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdPuts", 1, argv[0] ));
|
5677
|
-
}
|
6093
|
+
}
|
5678
6094
|
arg1 = (int)(val1);
|
5679
6095
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
5680
6096
|
if (!SWIG_IsOK(res2)) {
|
@@ -5700,14 +6116,14 @@ _wrap_lcdPrintf(int argc, VALUE *argv, VALUE self) {
|
|
5700
6116
|
int res2 ;
|
5701
6117
|
char *buf2 = 0 ;
|
5702
6118
|
int alloc2 = 0 ;
|
5703
|
-
|
6119
|
+
|
5704
6120
|
if (argc < 2) {
|
5705
6121
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5706
6122
|
}
|
5707
6123
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5708
6124
|
if (!SWIG_IsOK(ecode1)) {
|
5709
6125
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdPrintf", 1, argv[0] ));
|
5710
|
-
}
|
6126
|
+
}
|
5711
6127
|
arg1 = (int)(val1);
|
5712
6128
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
5713
6129
|
if (!SWIG_IsOK(res2)) {
|
@@ -5766,74 +6182,74 @@ _wrap_lcdInit(int argc, VALUE *argv, VALUE self) {
|
|
5766
6182
|
int ecode13 = 0 ;
|
5767
6183
|
int result;
|
5768
6184
|
VALUE vresult = Qnil;
|
5769
|
-
|
6185
|
+
|
5770
6186
|
if ((argc < 13) || (argc > 13)) {
|
5771
6187
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 13)",argc); SWIG_fail;
|
5772
6188
|
}
|
5773
6189
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5774
6190
|
if (!SWIG_IsOK(ecode1)) {
|
5775
6191
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdInit", 1, argv[0] ));
|
5776
|
-
}
|
6192
|
+
}
|
5777
6193
|
arg1 = (int)(val1);
|
5778
6194
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5779
6195
|
if (!SWIG_IsOK(ecode2)) {
|
5780
6196
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcdInit", 2, argv[1] ));
|
5781
|
-
}
|
6197
|
+
}
|
5782
6198
|
arg2 = (int)(val2);
|
5783
6199
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5784
6200
|
if (!SWIG_IsOK(ecode3)) {
|
5785
6201
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcdInit", 3, argv[2] ));
|
5786
|
-
}
|
6202
|
+
}
|
5787
6203
|
arg3 = (int)(val3);
|
5788
6204
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
5789
6205
|
if (!SWIG_IsOK(ecode4)) {
|
5790
6206
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","lcdInit", 4, argv[3] ));
|
5791
|
-
}
|
6207
|
+
}
|
5792
6208
|
arg4 = (int)(val4);
|
5793
6209
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
5794
6210
|
if (!SWIG_IsOK(ecode5)) {
|
5795
6211
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","lcdInit", 5, argv[4] ));
|
5796
|
-
}
|
6212
|
+
}
|
5797
6213
|
arg5 = (int)(val5);
|
5798
6214
|
ecode6 = SWIG_AsVal_int(argv[5], &val6);
|
5799
6215
|
if (!SWIG_IsOK(ecode6)) {
|
5800
6216
|
SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","lcdInit", 6, argv[5] ));
|
5801
|
-
}
|
6217
|
+
}
|
5802
6218
|
arg6 = (int)(val6);
|
5803
6219
|
ecode7 = SWIG_AsVal_int(argv[6], &val7);
|
5804
6220
|
if (!SWIG_IsOK(ecode7)) {
|
5805
6221
|
SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","lcdInit", 7, argv[6] ));
|
5806
|
-
}
|
6222
|
+
}
|
5807
6223
|
arg7 = (int)(val7);
|
5808
6224
|
ecode8 = SWIG_AsVal_int(argv[7], &val8);
|
5809
6225
|
if (!SWIG_IsOK(ecode8)) {
|
5810
6226
|
SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "int","lcdInit", 8, argv[7] ));
|
5811
|
-
}
|
6227
|
+
}
|
5812
6228
|
arg8 = (int)(val8);
|
5813
6229
|
ecode9 = SWIG_AsVal_int(argv[8], &val9);
|
5814
6230
|
if (!SWIG_IsOK(ecode9)) {
|
5815
6231
|
SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "int","lcdInit", 9, argv[8] ));
|
5816
|
-
}
|
6232
|
+
}
|
5817
6233
|
arg9 = (int)(val9);
|
5818
6234
|
ecode10 = SWIG_AsVal_int(argv[9], &val10);
|
5819
6235
|
if (!SWIG_IsOK(ecode10)) {
|
5820
6236
|
SWIG_exception_fail(SWIG_ArgError(ecode10), Ruby_Format_TypeError( "", "int","lcdInit", 10, argv[9] ));
|
5821
|
-
}
|
6237
|
+
}
|
5822
6238
|
arg10 = (int)(val10);
|
5823
6239
|
ecode11 = SWIG_AsVal_int(argv[10], &val11);
|
5824
6240
|
if (!SWIG_IsOK(ecode11)) {
|
5825
6241
|
SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","lcdInit", 11, argv[10] ));
|
5826
|
-
}
|
6242
|
+
}
|
5827
6243
|
arg11 = (int)(val11);
|
5828
6244
|
ecode12 = SWIG_AsVal_int(argv[11], &val12);
|
5829
6245
|
if (!SWIG_IsOK(ecode12)) {
|
5830
6246
|
SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "int","lcdInit", 12, argv[11] ));
|
5831
|
-
}
|
6247
|
+
}
|
5832
6248
|
arg12 = (int)(val12);
|
5833
6249
|
ecode13 = SWIG_AsVal_int(argv[12], &val13);
|
5834
6250
|
if (!SWIG_IsOK(ecode13)) {
|
5835
6251
|
SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","lcdInit", 13, argv[12] ));
|
5836
|
-
}
|
6252
|
+
}
|
5837
6253
|
arg13 = (int)(val13);
|
5838
6254
|
result = (int)lcdInit(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
|
5839
6255
|
vresult = SWIG_From_int((int)(result));
|
@@ -5853,19 +6269,19 @@ _wrap_maxDetectRead(int argc, VALUE *argv, VALUE self) {
|
|
5853
6269
|
int res2 = 0 ;
|
5854
6270
|
int result;
|
5855
6271
|
VALUE vresult = Qnil;
|
5856
|
-
|
6272
|
+
|
5857
6273
|
if ((argc < 2) || (argc > 2)) {
|
5858
6274
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5859
6275
|
}
|
5860
6276
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5861
6277
|
if (!SWIG_IsOK(ecode1)) {
|
5862
6278
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","maxDetectRead", 1, argv[0] ));
|
5863
|
-
}
|
6279
|
+
}
|
5864
6280
|
arg1 = (int)(val1);
|
5865
6281
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
|
5866
6282
|
if (!SWIG_IsOK(res2)) {
|
5867
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "unsigned char [4]","maxDetectRead", 2, argv[1] ));
|
5868
|
-
}
|
6283
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "unsigned char [4]","maxDetectRead", 2, argv[1] ));
|
6284
|
+
}
|
5869
6285
|
arg2 = (unsigned char *)(argp2);
|
5870
6286
|
result = (int)maxDetectRead(arg1,arg2);
|
5871
6287
|
vresult = SWIG_From_int((int)(result));
|
@@ -5888,23 +6304,23 @@ _wrap_readRHT03(int argc, VALUE *argv, VALUE self) {
|
|
5888
6304
|
int res3 = 0 ;
|
5889
6305
|
int result;
|
5890
6306
|
VALUE vresult = Qnil;
|
5891
|
-
|
6307
|
+
|
5892
6308
|
if ((argc < 3) || (argc > 3)) {
|
5893
6309
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
5894
6310
|
}
|
5895
6311
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5896
6312
|
if (!SWIG_IsOK(ecode1)) {
|
5897
6313
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","readRHT03", 1, argv[0] ));
|
5898
|
-
}
|
6314
|
+
}
|
5899
6315
|
arg1 = (int)(val1);
|
5900
6316
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_int, 0 | 0 );
|
5901
6317
|
if (!SWIG_IsOK(res2)) {
|
5902
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","readRHT03", 2, argv[1] ));
|
6318
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int *","readRHT03", 2, argv[1] ));
|
5903
6319
|
}
|
5904
6320
|
arg2 = (int *)(argp2);
|
5905
6321
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_int, 0 | 0 );
|
5906
6322
|
if (!SWIG_IsOK(res3)) {
|
5907
|
-
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "int *","readRHT03", 3, argv[2] ));
|
6323
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "int *","readRHT03", 3, argv[2] ));
|
5908
6324
|
}
|
5909
6325
|
arg3 = (int *)(argp3);
|
5910
6326
|
result = (int)readRHT03(arg1,arg2,arg3);
|
@@ -5926,24 +6342,24 @@ _wrap_piGlow1(int argc, VALUE *argv, VALUE self) {
|
|
5926
6342
|
int ecode2 = 0 ;
|
5927
6343
|
int val3 ;
|
5928
6344
|
int ecode3 = 0 ;
|
5929
|
-
|
6345
|
+
|
5930
6346
|
if ((argc < 3) || (argc > 3)) {
|
5931
6347
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
5932
6348
|
}
|
5933
6349
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5934
6350
|
if (!SWIG_IsOK(ecode1)) {
|
5935
6351
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piGlow1", 1, argv[0] ));
|
5936
|
-
}
|
6352
|
+
}
|
5937
6353
|
arg1 = (int)(val1);
|
5938
6354
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5939
6355
|
if (!SWIG_IsOK(ecode2)) {
|
5940
6356
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","piGlow1", 2, argv[1] ));
|
5941
|
-
}
|
6357
|
+
}
|
5942
6358
|
arg2 = (int)(val2);
|
5943
6359
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
5944
6360
|
if (!SWIG_IsOK(ecode3)) {
|
5945
6361
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","piGlow1", 3, argv[2] ));
|
5946
|
-
}
|
6362
|
+
}
|
5947
6363
|
arg3 = (int)(val3);
|
5948
6364
|
piGlow1(arg1,arg2,arg3);
|
5949
6365
|
return Qnil;
|
@@ -5960,19 +6376,19 @@ _wrap_piGlowLeg(int argc, VALUE *argv, VALUE self) {
|
|
5960
6376
|
int ecode1 = 0 ;
|
5961
6377
|
int val2 ;
|
5962
6378
|
int ecode2 = 0 ;
|
5963
|
-
|
6379
|
+
|
5964
6380
|
if ((argc < 2) || (argc > 2)) {
|
5965
6381
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5966
6382
|
}
|
5967
6383
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5968
6384
|
if (!SWIG_IsOK(ecode1)) {
|
5969
6385
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piGlowLeg", 1, argv[0] ));
|
5970
|
-
}
|
6386
|
+
}
|
5971
6387
|
arg1 = (int)(val1);
|
5972
6388
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
5973
6389
|
if (!SWIG_IsOK(ecode2)) {
|
5974
6390
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","piGlowLeg", 2, argv[1] ));
|
5975
|
-
}
|
6391
|
+
}
|
5976
6392
|
arg2 = (int)(val2);
|
5977
6393
|
piGlowLeg(arg1,arg2);
|
5978
6394
|
return Qnil;
|
@@ -5989,19 +6405,19 @@ _wrap_piGlowRing(int argc, VALUE *argv, VALUE self) {
|
|
5989
6405
|
int ecode1 = 0 ;
|
5990
6406
|
int val2 ;
|
5991
6407
|
int ecode2 = 0 ;
|
5992
|
-
|
6408
|
+
|
5993
6409
|
if ((argc < 2) || (argc > 2)) {
|
5994
6410
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
5995
6411
|
}
|
5996
6412
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
5997
6413
|
if (!SWIG_IsOK(ecode1)) {
|
5998
6414
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piGlowRing", 1, argv[0] ));
|
5999
|
-
}
|
6415
|
+
}
|
6000
6416
|
arg1 = (int)(val1);
|
6001
6417
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6002
6418
|
if (!SWIG_IsOK(ecode2)) {
|
6003
6419
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","piGlowRing", 2, argv[1] ));
|
6004
|
-
}
|
6420
|
+
}
|
6005
6421
|
arg2 = (int)(val2);
|
6006
6422
|
piGlowRing(arg1,arg2);
|
6007
6423
|
return Qnil;
|
@@ -6015,14 +6431,14 @@ _wrap_piGlowSetup(int argc, VALUE *argv, VALUE self) {
|
|
6015
6431
|
int arg1 ;
|
6016
6432
|
int val1 ;
|
6017
6433
|
int ecode1 = 0 ;
|
6018
|
-
|
6434
|
+
|
6019
6435
|
if ((argc < 1) || (argc > 1)) {
|
6020
6436
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6021
6437
|
}
|
6022
6438
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6023
6439
|
if (!SWIG_IsOK(ecode1)) {
|
6024
6440
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piGlowSetup", 1, argv[0] ));
|
6025
|
-
}
|
6441
|
+
}
|
6026
6442
|
arg1 = (int)(val1);
|
6027
6443
|
piGlowSetup(arg1);
|
6028
6444
|
return Qnil;
|
@@ -6044,24 +6460,24 @@ _wrap_setupNesJoystick(int argc, VALUE *argv, VALUE self) {
|
|
6044
6460
|
int ecode3 = 0 ;
|
6045
6461
|
int result;
|
6046
6462
|
VALUE vresult = Qnil;
|
6047
|
-
|
6463
|
+
|
6048
6464
|
if ((argc < 3) || (argc > 3)) {
|
6049
6465
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
6050
6466
|
}
|
6051
6467
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6052
6468
|
if (!SWIG_IsOK(ecode1)) {
|
6053
6469
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","setupNesJoystick", 1, argv[0] ));
|
6054
|
-
}
|
6470
|
+
}
|
6055
6471
|
arg1 = (int)(val1);
|
6056
6472
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6057
6473
|
if (!SWIG_IsOK(ecode2)) {
|
6058
6474
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setupNesJoystick", 2, argv[1] ));
|
6059
|
-
}
|
6475
|
+
}
|
6060
6476
|
arg2 = (int)(val2);
|
6061
6477
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
6062
6478
|
if (!SWIG_IsOK(ecode3)) {
|
6063
6479
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","setupNesJoystick", 3, argv[2] ));
|
6064
|
-
}
|
6480
|
+
}
|
6065
6481
|
arg3 = (int)(val3);
|
6066
6482
|
result = (int)setupNesJoystick(arg1,arg2,arg3);
|
6067
6483
|
vresult = SWIG_From_int((int)(result));
|
@@ -6078,14 +6494,14 @@ _wrap_readNesJoystick(int argc, VALUE *argv, VALUE self) {
|
|
6078
6494
|
int ecode1 = 0 ;
|
6079
6495
|
unsigned int result;
|
6080
6496
|
VALUE vresult = Qnil;
|
6081
|
-
|
6497
|
+
|
6082
6498
|
if ((argc < 1) || (argc > 1)) {
|
6083
6499
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6084
6500
|
}
|
6085
6501
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6086
6502
|
if (!SWIG_IsOK(ecode1)) {
|
6087
6503
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","readNesJoystick", 1, argv[0] ));
|
6088
|
-
}
|
6504
|
+
}
|
6089
6505
|
arg1 = (int)(val1);
|
6090
6506
|
result = (unsigned int)readNesJoystick(arg1);
|
6091
6507
|
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
|
@@ -6106,24 +6522,24 @@ _wrap_scrollPhatPoint(int argc, VALUE *argv, VALUE self) {
|
|
6106
6522
|
int ecode2 = 0 ;
|
6107
6523
|
int val3 ;
|
6108
6524
|
int ecode3 = 0 ;
|
6109
|
-
|
6525
|
+
|
6110
6526
|
if ((argc < 3) || (argc > 3)) {
|
6111
6527
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
6112
6528
|
}
|
6113
6529
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6114
6530
|
if (!SWIG_IsOK(ecode1)) {
|
6115
6531
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","scrollPhatPoint", 1, argv[0] ));
|
6116
|
-
}
|
6532
|
+
}
|
6117
6533
|
arg1 = (int)(val1);
|
6118
6534
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6119
6535
|
if (!SWIG_IsOK(ecode2)) {
|
6120
6536
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","scrollPhatPoint", 2, argv[1] ));
|
6121
|
-
}
|
6537
|
+
}
|
6122
6538
|
arg2 = (int)(val2);
|
6123
6539
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
6124
6540
|
if (!SWIG_IsOK(ecode3)) {
|
6125
6541
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","scrollPhatPoint", 3, argv[2] ));
|
6126
|
-
}
|
6542
|
+
}
|
6127
6543
|
arg3 = (int)(val3);
|
6128
6544
|
scrollPhatPoint(arg1,arg2,arg3);
|
6129
6545
|
return Qnil;
|
@@ -6149,34 +6565,34 @@ _wrap_scrollPhatLine(int argc, VALUE *argv, VALUE self) {
|
|
6149
6565
|
int ecode4 = 0 ;
|
6150
6566
|
int val5 ;
|
6151
6567
|
int ecode5 = 0 ;
|
6152
|
-
|
6568
|
+
|
6153
6569
|
if ((argc < 5) || (argc > 5)) {
|
6154
6570
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
6155
6571
|
}
|
6156
6572
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6157
6573
|
if (!SWIG_IsOK(ecode1)) {
|
6158
6574
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","scrollPhatLine", 1, argv[0] ));
|
6159
|
-
}
|
6575
|
+
}
|
6160
6576
|
arg1 = (int)(val1);
|
6161
6577
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6162
6578
|
if (!SWIG_IsOK(ecode2)) {
|
6163
6579
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","scrollPhatLine", 2, argv[1] ));
|
6164
|
-
}
|
6580
|
+
}
|
6165
6581
|
arg2 = (int)(val2);
|
6166
6582
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
6167
6583
|
if (!SWIG_IsOK(ecode3)) {
|
6168
6584
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","scrollPhatLine", 3, argv[2] ));
|
6169
|
-
}
|
6585
|
+
}
|
6170
6586
|
arg3 = (int)(val3);
|
6171
6587
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
6172
6588
|
if (!SWIG_IsOK(ecode4)) {
|
6173
6589
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","scrollPhatLine", 4, argv[3] ));
|
6174
|
-
}
|
6590
|
+
}
|
6175
6591
|
arg4 = (int)(val4);
|
6176
6592
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
6177
6593
|
if (!SWIG_IsOK(ecode5)) {
|
6178
6594
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","scrollPhatLine", 5, argv[4] ));
|
6179
|
-
}
|
6595
|
+
}
|
6180
6596
|
arg5 = (int)(val5);
|
6181
6597
|
scrollPhatLine(arg1,arg2,arg3,arg4,arg5);
|
6182
6598
|
return Qnil;
|
@@ -6196,24 +6612,24 @@ _wrap_scrollPhatLineTo(int argc, VALUE *argv, VALUE self) {
|
|
6196
6612
|
int ecode2 = 0 ;
|
6197
6613
|
int val3 ;
|
6198
6614
|
int ecode3 = 0 ;
|
6199
|
-
|
6615
|
+
|
6200
6616
|
if ((argc < 3) || (argc > 3)) {
|
6201
6617
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
6202
6618
|
}
|
6203
6619
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6204
6620
|
if (!SWIG_IsOK(ecode1)) {
|
6205
6621
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","scrollPhatLineTo", 1, argv[0] ));
|
6206
|
-
}
|
6622
|
+
}
|
6207
6623
|
arg1 = (int)(val1);
|
6208
6624
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6209
6625
|
if (!SWIG_IsOK(ecode2)) {
|
6210
6626
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","scrollPhatLineTo", 2, argv[1] ));
|
6211
|
-
}
|
6627
|
+
}
|
6212
6628
|
arg2 = (int)(val2);
|
6213
6629
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
6214
6630
|
if (!SWIG_IsOK(ecode3)) {
|
6215
6631
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","scrollPhatLineTo", 3, argv[2] ));
|
6216
|
-
}
|
6632
|
+
}
|
6217
6633
|
arg3 = (int)(val3);
|
6218
6634
|
scrollPhatLineTo(arg1,arg2,arg3);
|
6219
6635
|
return Qnil;
|
@@ -6242,39 +6658,39 @@ _wrap_scrollPhatRectangle(int argc, VALUE *argv, VALUE self) {
|
|
6242
6658
|
int ecode5 = 0 ;
|
6243
6659
|
int val6 ;
|
6244
6660
|
int ecode6 = 0 ;
|
6245
|
-
|
6661
|
+
|
6246
6662
|
if ((argc < 6) || (argc > 6)) {
|
6247
6663
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
|
6248
6664
|
}
|
6249
6665
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6250
6666
|
if (!SWIG_IsOK(ecode1)) {
|
6251
6667
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","scrollPhatRectangle", 1, argv[0] ));
|
6252
|
-
}
|
6668
|
+
}
|
6253
6669
|
arg1 = (int)(val1);
|
6254
6670
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
6255
6671
|
if (!SWIG_IsOK(ecode2)) {
|
6256
6672
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","scrollPhatRectangle", 2, argv[1] ));
|
6257
|
-
}
|
6673
|
+
}
|
6258
6674
|
arg2 = (int)(val2);
|
6259
6675
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
6260
6676
|
if (!SWIG_IsOK(ecode3)) {
|
6261
6677
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","scrollPhatRectangle", 3, argv[2] ));
|
6262
|
-
}
|
6678
|
+
}
|
6263
6679
|
arg3 = (int)(val3);
|
6264
6680
|
ecode4 = SWIG_AsVal_int(argv[3], &val4);
|
6265
6681
|
if (!SWIG_IsOK(ecode4)) {
|
6266
6682
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","scrollPhatRectangle", 4, argv[3] ));
|
6267
|
-
}
|
6683
|
+
}
|
6268
6684
|
arg4 = (int)(val4);
|
6269
6685
|
ecode5 = SWIG_AsVal_int(argv[4], &val5);
|
6270
6686
|
if (!SWIG_IsOK(ecode5)) {
|
6271
6687
|
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","scrollPhatRectangle", 5, argv[4] ));
|
6272
|
-
}
|
6688
|
+
}
|
6273
6689
|
arg5 = (int)(val5);
|
6274
6690
|
ecode6 = SWIG_AsVal_int(argv[5], &val6);
|
6275
6691
|
if (!SWIG_IsOK(ecode6)) {
|
6276
6692
|
SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","scrollPhatRectangle", 6, argv[5] ));
|
6277
|
-
}
|
6693
|
+
}
|
6278
6694
|
arg6 = (int)(val6);
|
6279
6695
|
scrollPhatRectangle(arg1,arg2,arg3,arg4,arg5,arg6);
|
6280
6696
|
return Qnil;
|
@@ -6314,14 +6730,14 @@ _wrap_scrollPhatPutchar(int argc, VALUE *argv, VALUE self) {
|
|
6314
6730
|
int ecode1 = 0 ;
|
6315
6731
|
int result;
|
6316
6732
|
VALUE vresult = Qnil;
|
6317
|
-
|
6733
|
+
|
6318
6734
|
if ((argc < 1) || (argc > 1)) {
|
6319
6735
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6320
6736
|
}
|
6321
6737
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6322
6738
|
if (!SWIG_IsOK(ecode1)) {
|
6323
6739
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","scrollPhatPutchar", 1, argv[0] ));
|
6324
|
-
}
|
6740
|
+
}
|
6325
6741
|
arg1 = (int)(val1);
|
6326
6742
|
result = (int)scrollPhatPutchar(arg1);
|
6327
6743
|
vresult = SWIG_From_int((int)(result));
|
@@ -6337,7 +6753,7 @@ _wrap_scrollPhatPuts(int argc, VALUE *argv, VALUE self) {
|
|
6337
6753
|
int res1 ;
|
6338
6754
|
char *buf1 = 0 ;
|
6339
6755
|
int alloc1 = 0 ;
|
6340
|
-
|
6756
|
+
|
6341
6757
|
if ((argc < 1) || (argc > 1)) {
|
6342
6758
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6343
6759
|
}
|
@@ -6362,7 +6778,7 @@ _wrap_scrollPhatPrintf(int argc, VALUE *argv, VALUE self) {
|
|
6362
6778
|
int res1 ;
|
6363
6779
|
char *buf1 = 0 ;
|
6364
6780
|
int alloc1 = 0 ;
|
6365
|
-
|
6781
|
+
|
6366
6782
|
if (argc < 1) {
|
6367
6783
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6368
6784
|
}
|
@@ -6385,14 +6801,14 @@ _wrap_scrollPhatPrintSpeed(int argc, VALUE *argv, VALUE self) {
|
|
6385
6801
|
int arg1 ;
|
6386
6802
|
int val1 ;
|
6387
6803
|
int ecode1 = 0 ;
|
6388
|
-
|
6804
|
+
|
6389
6805
|
if ((argc < 1) || (argc > 1)) {
|
6390
6806
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6391
6807
|
}
|
6392
6808
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6393
6809
|
if (!SWIG_IsOK(ecode1)) {
|
6394
6810
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","scrollPhatPrintSpeed", 1, argv[0] ));
|
6395
|
-
}
|
6811
|
+
}
|
6396
6812
|
arg1 = (int)(val1);
|
6397
6813
|
scrollPhatPrintSpeed(arg1);
|
6398
6814
|
return Qnil;
|
@@ -6406,14 +6822,14 @@ _wrap_scrollPhatIntensity(int argc, VALUE *argv, VALUE self) {
|
|
6406
6822
|
int arg1 ;
|
6407
6823
|
int val1 ;
|
6408
6824
|
int ecode1 = 0 ;
|
6409
|
-
|
6825
|
+
|
6410
6826
|
if ((argc < 1) || (argc > 1)) {
|
6411
6827
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6412
6828
|
}
|
6413
6829
|
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6414
6830
|
if (!SWIG_IsOK(ecode1)) {
|
6415
6831
|
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","scrollPhatIntensity", 1, argv[0] ));
|
6416
|
-
}
|
6832
|
+
}
|
6417
6833
|
arg1 = (int)(val1);
|
6418
6834
|
scrollPhatIntensity(arg1);
|
6419
6835
|
return Qnil;
|
@@ -6426,7 +6842,7 @@ SWIGINTERN VALUE
|
|
6426
6842
|
_wrap_scrollPhatSetup(int argc, VALUE *argv, VALUE self) {
|
6427
6843
|
int result;
|
6428
6844
|
VALUE vresult = Qnil;
|
6429
|
-
|
6845
|
+
|
6430
6846
|
if ((argc < 0) || (argc > 0)) {
|
6431
6847
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
6432
6848
|
}
|
@@ -6438,6 +6854,30 @@ fail:
|
|
6438
6854
|
}
|
6439
6855
|
|
6440
6856
|
|
6857
|
+
SWIGINTERN VALUE
|
6858
|
+
_wrap_piFaceSetup(int argc, VALUE *argv, VALUE self) {
|
6859
|
+
int arg1 ;
|
6860
|
+
int val1 ;
|
6861
|
+
int ecode1 = 0 ;
|
6862
|
+
int result;
|
6863
|
+
VALUE vresult = Qnil;
|
6864
|
+
|
6865
|
+
if ((argc < 1) || (argc > 1)) {
|
6866
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6867
|
+
}
|
6868
|
+
ecode1 = SWIG_AsVal_int(argv[0], &val1);
|
6869
|
+
if (!SWIG_IsOK(ecode1)) {
|
6870
|
+
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piFaceSetup", 1, argv[0] ));
|
6871
|
+
}
|
6872
|
+
arg1 = (int)(val1);
|
6873
|
+
result = (int)piFaceSetup(arg1);
|
6874
|
+
vresult = SWIG_From_int((int)(result));
|
6875
|
+
return vresult;
|
6876
|
+
fail:
|
6877
|
+
return Qnil;
|
6878
|
+
}
|
6879
|
+
|
6880
|
+
|
6441
6881
|
|
6442
6882
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
6443
6883
|
|
@@ -6529,7 +6969,7 @@ SWIGRUNTIME void
|
|
6529
6969
|
SWIG_InitializeModule(void *clientdata) {
|
6530
6970
|
size_t i;
|
6531
6971
|
swig_module_info *module_head, *iter;
|
6532
|
-
int
|
6972
|
+
int init;
|
6533
6973
|
|
6534
6974
|
/* check to see if the circular list has been setup, if not, set it up */
|
6535
6975
|
if (swig_module.next==0) {
|
@@ -6548,22 +6988,18 @@ SWIG_InitializeModule(void *clientdata) {
|
|
6548
6988
|
/* This is the first module loaded for this interpreter */
|
6549
6989
|
/* so set the swig module into the interpreter */
|
6550
6990
|
SWIG_SetModule(clientdata, &swig_module);
|
6551
|
-
module_head = &swig_module;
|
6552
6991
|
} else {
|
6553
6992
|
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
|
6554
|
-
found=0;
|
6555
6993
|
iter=module_head;
|
6556
6994
|
do {
|
6557
6995
|
if (iter==&swig_module) {
|
6558
|
-
|
6559
|
-
|
6996
|
+
/* Our module is already in the list, so there's nothing more to do. */
|
6997
|
+
return;
|
6560
6998
|
}
|
6561
6999
|
iter=iter->next;
|
6562
7000
|
} while (iter!= module_head);
|
6563
7001
|
|
6564
|
-
/*
|
6565
|
-
if (found) return;
|
6566
|
-
/* otherwise we must add out module into the list */
|
7002
|
+
/* otherwise we must add our module into the list */
|
6567
7003
|
swig_module.next = module_head->next;
|
6568
7004
|
module_head->next = &swig_module;
|
6569
7005
|
}
|
@@ -6715,19 +7151,20 @@ extern "C"
|
|
6715
7151
|
#endif
|
6716
7152
|
SWIGEXPORT void Init_wiringpi(void) {
|
6717
7153
|
size_t i;
|
6718
|
-
|
7154
|
+
|
6719
7155
|
SWIG_InitRuntime();
|
6720
7156
|
mWiringpi = rb_define_module("Wiringpi");
|
6721
|
-
|
7157
|
+
|
6722
7158
|
SWIG_InitializeModule(0);
|
6723
7159
|
for (i = 0; i < swig_module.size; i++) {
|
6724
7160
|
SWIG_define_class(swig_module.types[i]);
|
6725
7161
|
}
|
6726
|
-
|
7162
|
+
|
6727
7163
|
SWIG_RubyInitializeTrackings();
|
6728
7164
|
rb_define_module_function(mWiringpi, "wiringPiFailure", _wrap_wiringPiFailure, -1);
|
6729
7165
|
rb_define_module_function(mWiringpi, "wiringPiFindNode", _wrap_wiringPiFindNode, -1);
|
6730
7166
|
rb_define_module_function(mWiringpi, "wiringPiNewNode", _wrap_wiringPiNewNode, -1);
|
7167
|
+
rb_define_module_function(mWiringpi, "wiringPiVersion", _wrap_wiringPiVersion, -1);
|
6731
7168
|
rb_define_module_function(mWiringpi, "wiringPiSetup", _wrap_wiringPiSetup, -1);
|
6732
7169
|
rb_define_module_function(mWiringpi, "wiringPiSetupSys", _wrap_wiringPiSetupSys, -1);
|
6733
7170
|
rb_define_module_function(mWiringpi, "wiringPiSetupGpio", _wrap_wiringPiSetupGpio, -1);
|
@@ -6737,9 +7174,12 @@ SWIGEXPORT void Init_wiringpi(void) {
|
|
6737
7174
|
rb_define_module_function(mWiringpi, "pullUpDnControl", _wrap_pullUpDnControl, -1);
|
6738
7175
|
rb_define_module_function(mWiringpi, "digitalRead", _wrap_digitalRead, -1);
|
6739
7176
|
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);
|
6740
7179
|
rb_define_module_function(mWiringpi, "pwmWrite", _wrap_pwmWrite, -1);
|
6741
7180
|
rb_define_module_function(mWiringpi, "analogRead", _wrap_analogRead, -1);
|
6742
7181
|
rb_define_module_function(mWiringpi, "analogWrite", _wrap_analogWrite, -1);
|
7182
|
+
rb_define_module_function(mWiringpi, "piGpioLayout", _wrap_piGpioLayout, -1);
|
6743
7183
|
rb_define_module_function(mWiringpi, "piBoardRev", _wrap_piBoardRev, -1);
|
6744
7184
|
rb_define_module_function(mWiringpi, "piBoardId", _wrap_piBoardId, -1);
|
6745
7185
|
rb_define_module_function(mWiringpi, "wpiPinToGpio", _wrap_wpiPinToGpio, -1);
|
@@ -6747,12 +7187,14 @@ SWIGEXPORT void Init_wiringpi(void) {
|
|
6747
7187
|
rb_define_module_function(mWiringpi, "setPadDrive", _wrap_setPadDrive, -1);
|
6748
7188
|
rb_define_module_function(mWiringpi, "getAlt", _wrap_getAlt, -1);
|
6749
7189
|
rb_define_module_function(mWiringpi, "pwmToneWrite", _wrap_pwmToneWrite, -1);
|
6750
|
-
rb_define_module_function(mWiringpi, "digitalWriteByte", _wrap_digitalWriteByte, -1);
|
6751
|
-
rb_define_module_function(mWiringpi, "digitalReadByte", _wrap_digitalReadByte, -1);
|
6752
7190
|
rb_define_module_function(mWiringpi, "pwmSetMode", _wrap_pwmSetMode, -1);
|
6753
7191
|
rb_define_module_function(mWiringpi, "pwmSetRange", _wrap_pwmSetRange, -1);
|
6754
7192
|
rb_define_module_function(mWiringpi, "pwmSetClock", _wrap_pwmSetClock, -1);
|
6755
7193
|
rb_define_module_function(mWiringpi, "gpioClockSet", _wrap_gpioClockSet, -1);
|
7194
|
+
rb_define_module_function(mWiringpi, "digitalReadByte", _wrap_digitalReadByte, -1);
|
7195
|
+
rb_define_module_function(mWiringpi, "digitalReadByte2", _wrap_digitalReadByte2, -1);
|
7196
|
+
rb_define_module_function(mWiringpi, "digitalWriteByte", _wrap_digitalWriteByte, -1);
|
7197
|
+
rb_define_module_function(mWiringpi, "digitalWriteByte2", _wrap_digitalWriteByte2, -1);
|
6756
7198
|
rb_define_module_function(mWiringpi, "waitForInterrupt", _wrap_waitForInterrupt, -1);
|
6757
7199
|
rb_define_module_function(mWiringpi, "piThreadCreate", _wrap_piThreadCreate, -1);
|
6758
7200
|
rb_define_module_function(mWiringpi, "piLock", _wrap_piLock, -1);
|
@@ -6809,6 +7251,13 @@ SWIGEXPORT void Init_wiringpi(void) {
|
|
6809
7251
|
rb_define_module_function(mWiringpi, "softToneStop", _wrap_softToneStop, -1);
|
6810
7252
|
rb_define_module_function(mWiringpi, "softToneWrite", _wrap_softToneWrite, -1);
|
6811
7253
|
rb_define_module_function(mWiringpi, "sr595Setup", _wrap_sr595Setup, -1);
|
7254
|
+
rb_define_module_function(mWiringpi, "bmp180Setup", _wrap_bmp180Setup, -1);
|
7255
|
+
rb_define_module_function(mWiringpi, "drcSetupNet", _wrap_drcSetupNet, -1);
|
7256
|
+
rb_define_module_function(mWiringpi, "ds18b20Setup", _wrap_ds18b20Setup, -1);
|
7257
|
+
rb_define_module_function(mWiringpi, "htu21dSetup", _wrap_htu21dSetup, -1);
|
7258
|
+
rb_define_module_function(mWiringpi, "pseudoPinsSetup", _wrap_pseudoPinsSetup, -1);
|
7259
|
+
rb_define_module_function(mWiringpi, "rht03Setup", _wrap_rht03Setup, -1);
|
7260
|
+
rb_define_module_function(mWiringpi, "loadWPiExtension", _wrap_loadWPiExtension, -1);
|
6812
7261
|
rb_define_module_function(mWiringpi, "ds1302rtcRead", _wrap_ds1302rtcRead, -1);
|
6813
7262
|
rb_define_module_function(mWiringpi, "ds1302rtcWrite", _wrap_ds1302rtcWrite, -1);
|
6814
7263
|
rb_define_module_function(mWiringpi, "ds1302ramRead", _wrap_ds1302ramRead, -1);
|
@@ -6868,5 +7317,5 @@ SWIGEXPORT void Init_wiringpi(void) {
|
|
6868
7317
|
rb_define_module_function(mWiringpi, "scrollPhatPrintSpeed", _wrap_scrollPhatPrintSpeed, -1);
|
6869
7318
|
rb_define_module_function(mWiringpi, "scrollPhatIntensity", _wrap_scrollPhatIntensity, -1);
|
6870
7319
|
rb_define_module_function(mWiringpi, "scrollPhatSetup", _wrap_scrollPhatSetup, -1);
|
7320
|
+
rb_define_module_function(mWiringpi, "piFaceSetup", _wrap_piFaceSetup, -1);
|
6871
7321
|
}
|
6872
|
-
|