Module: Wiringpi2
- Defined in:
- ext/wiringpi/wiringpi_wrap.c
Class Method Summary collapse
- .analogRead(*args) ⇒ Object
- .analogWrite(*args) ⇒ Object
- .delay(*args) ⇒ Object
- .delayMicroseconds(*args) ⇒ Object
- .digitalRead(*args) ⇒ Object
- .digitalWrite(*args) ⇒ Object
- .lcdClear(*args) ⇒ Object
- .lcdHome(*args) ⇒ Object
- .lcdInit(*args) ⇒ Object
- .lcdPosition(*args) ⇒ Object
- .lcdPrintf(*args) ⇒ Object
- .lcdPutchar(*args) ⇒ Object
- .lcdPuts(*args) ⇒ Object
- .lcdSendCommand(*args) ⇒ Object
- .mcp23008Setup(*args) ⇒ Object
- .mcp23017Setup(*args) ⇒ Object
- .mcp23s08Setup(*args) ⇒ Object
- .mcp23s17Setup(*args) ⇒ Object
- .micros(*args) ⇒ Object
- .millis(*args) ⇒ Object
- .physPinToGpio(*args) ⇒ Object
- .piBoardRev(*args) ⇒ Object
- .piFaceSetup(*args) ⇒ Object
- .piHiPri(*args) ⇒ Object
- .piLock(*args) ⇒ Object
- .pinMode(*args) ⇒ Object
- .piThreadCreate(*args) ⇒ Object
- .piUnlock(*args) ⇒ Object
- .pullUpDnControl(*args) ⇒ Object
- .pwmWrite(*args) ⇒ Object
- .serialClose(*args) ⇒ Object
- .serialDataAvail(*args) ⇒ Object
- .serialFlush(*args) ⇒ Object
- .serialGetchar(*args) ⇒ Object
- .serialOpen(*args) ⇒ Object
- .serialPrintf(*args) ⇒ Object
- .serialPutchar(*args) ⇒ Object
- .serialPuts(*args) ⇒ Object
- .shiftIn(*args) ⇒ Object
- .shiftOut(*args) ⇒ Object
- .softPwmCreate(*args) ⇒ Object
- .softPwmWrite(*args) ⇒ Object
- .softServoSetup(*args) ⇒ Object
- .softServoWrite(*args) ⇒ Object
- .softToneCreate(*args) ⇒ Object
- .softToneWrite(*args) ⇒ Object
- .sr595Setup(*args) ⇒ Object
- .waitForInterrupt ⇒ Object
- .waitForInterrupt=(_val) ⇒ Object
- .wiringPiI2CRead(*args) ⇒ Object
- .wiringPiI2CReadReg16(*args) ⇒ Object
- .wiringPiI2CReadReg8(*args) ⇒ Object
- .wiringPiI2CSetup(*args) ⇒ Object
- .wiringPiI2CSetupInterface(*args) ⇒ Object
- .wiringPiI2CWrite(*args) ⇒ Object
- .wiringPiI2CWriteReg16(*args) ⇒ Object
- .wiringPiI2CWriteReg8(*args) ⇒ Object
- .wiringPiISR(*args) ⇒ Object
- .wiringPiSetup(*args) ⇒ Object
- .wiringPiSetupGpio(*args) ⇒ Object
- .wiringPiSetupPhys(*args) ⇒ Object
- .wiringPiSetupSys(*args) ⇒ Object
- .wiringPiSPIDataRW(*args) ⇒ Object
- .wiringPiSPIGetFd(*args) ⇒ Object
- .wiringPiSPISetup(*args) ⇒ Object
- .wpiPinToGpio(*args) ⇒ Object
Class Method Details
.analogRead(*args) ⇒ Object
2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2278
SWIGINTERN VALUE
_wrap_analogRead(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","analogRead", 1, argv[0] ));
}
arg1 = (int)(val1);
result = (int)analogRead(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.analogWrite(*args) ⇒ Object
2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2302
SWIGINTERN VALUE
_wrap_analogWrite(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","analogWrite", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","analogWrite", 2, argv[1] ));
}
arg2 = (int)(val2);
analogWrite(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
|
.delay(*args) ⇒ Object
2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2546
SWIGINTERN VALUE
_wrap_delay(int argc, VALUE *argv, VALUE self) {
unsigned int arg1 ;
unsigned int val1 ;
int ecode1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned int","delay", 1, argv[0] ));
}
arg1 = (unsigned int)(val1);
delay(arg1);
return Qnil;
fail:
return Qnil;
}
|
.delayMicroseconds(*args) ⇒ Object
2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2567
SWIGINTERN VALUE
_wrap_delayMicroseconds(int argc, VALUE *argv, VALUE self) {
unsigned int arg1 ;
unsigned int val1 ;
int ecode1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_unsigned_SS_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "unsigned int","delayMicroseconds", 1, argv[0] ));
}
arg1 = (unsigned int)(val1);
delayMicroseconds(arg1);
return Qnil;
fail:
return Qnil;
}
|
.digitalRead(*args) ⇒ Object
2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2196
SWIGINTERN VALUE
_wrap_digitalRead(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","digitalRead", 1, argv[0] ));
}
arg1 = (int)(val1);
result = (int)digitalRead(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.digitalWrite(*args) ⇒ Object
2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2220
SWIGINTERN VALUE
_wrap_digitalWrite(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","digitalWrite", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","digitalWrite", 2, argv[1] ));
}
arg2 = (int)(val2);
digitalWrite(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
|
.lcdClear(*args) ⇒ Object
3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3721
SWIGINTERN VALUE
_wrap_lcdClear(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdClear", 1, argv[0] ));
}
arg1 = (int)(val1);
lcdClear(arg1);
return Qnil;
fail:
return Qnil;
}
|
.lcdHome(*args) ⇒ Object
3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3700
SWIGINTERN VALUE
_wrap_lcdHome(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdHome", 1, argv[0] ));
}
arg1 = (int)(val1);
lcdHome(arg1);
return Qnil;
fail:
return Qnil;
}
|
.lcdInit(*args) ⇒ Object
3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3902
SWIGINTERN VALUE
_wrap_lcdInit(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int arg3 ;
int arg4 ;
int arg5 ;
int arg6 ;
int arg7 ;
int arg8 ;
int arg9 ;
int arg10 ;
int arg11 ;
int arg12 ;
int arg13 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
int val5 ;
int ecode5 = 0 ;
int val6 ;
int ecode6 = 0 ;
int val7 ;
int ecode7 = 0 ;
int val8 ;
int ecode8 = 0 ;
int val9 ;
int ecode9 = 0 ;
int val10 ;
int ecode10 = 0 ;
int val11 ;
int ecode11 = 0 ;
int val12 ;
int ecode12 = 0 ;
int val13 ;
int ecode13 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 13) || (argc > 13)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 13)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdInit", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcdInit", 2, argv[1] ));
}
arg2 = (int)(val2);
ecode3 = SWIG_AsVal_int(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcdInit", 3, argv[2] ));
}
arg3 = (int)(val3);
ecode4 = SWIG_AsVal_int(argv[3], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","lcdInit", 4, argv[3] ));
}
arg4 = (int)(val4);
ecode5 = SWIG_AsVal_int(argv[4], &val5);
if (!SWIG_IsOK(ecode5)) {
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","lcdInit", 5, argv[4] ));
}
arg5 = (int)(val5);
ecode6 = SWIG_AsVal_int(argv[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","lcdInit", 6, argv[5] ));
}
arg6 = (int)(val6);
ecode7 = SWIG_AsVal_int(argv[6], &val7);
if (!SWIG_IsOK(ecode7)) {
SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","lcdInit", 7, argv[6] ));
}
arg7 = (int)(val7);
ecode8 = SWIG_AsVal_int(argv[7], &val8);
if (!SWIG_IsOK(ecode8)) {
SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "int","lcdInit", 8, argv[7] ));
}
arg8 = (int)(val8);
ecode9 = SWIG_AsVal_int(argv[8], &val9);
if (!SWIG_IsOK(ecode9)) {
SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "int","lcdInit", 9, argv[8] ));
}
arg9 = (int)(val9);
ecode10 = SWIG_AsVal_int(argv[9], &val10);
if (!SWIG_IsOK(ecode10)) {
SWIG_exception_fail(SWIG_ArgError(ecode10), Ruby_Format_TypeError( "", "int","lcdInit", 10, argv[9] ));
}
arg10 = (int)(val10);
ecode11 = SWIG_AsVal_int(argv[10], &val11);
if (!SWIG_IsOK(ecode11)) {
SWIG_exception_fail(SWIG_ArgError(ecode11), Ruby_Format_TypeError( "", "int","lcdInit", 11, argv[10] ));
}
arg11 = (int)(val11);
ecode12 = SWIG_AsVal_int(argv[11], &val12);
if (!SWIG_IsOK(ecode12)) {
SWIG_exception_fail(SWIG_ArgError(ecode12), Ruby_Format_TypeError( "", "int","lcdInit", 12, argv[11] ));
}
arg12 = (int)(val12);
ecode13 = SWIG_AsVal_int(argv[12], &val13);
if (!SWIG_IsOK(ecode13)) {
SWIG_exception_fail(SWIG_ArgError(ecode13), Ruby_Format_TypeError( "", "int","lcdInit", 13, argv[12] ));
}
arg13 = (int)(val13);
result = (int)lcdInit(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.lcdPosition(*args) ⇒ Object
3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3771
SWIGINTERN VALUE
_wrap_lcdPosition(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdPosition", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","lcdPosition", 2, argv[1] ));
}
arg2 = (int)(val2);
ecode3 = SWIG_AsVal_int(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","lcdPosition", 3, argv[2] ));
}
arg3 = (int)(val3);
lcdPosition(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
|
.lcdPrintf(*args) ⇒ Object
3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3869
SWIGINTERN VALUE
_wrap_lcdPrintf(int argc, VALUE *argv, VALUE self) {
int arg1 ;
char *arg2 = (char *) 0 ;
void *arg3 = 0 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
if (argc < 2) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdPrintf", 1, argv[0] ));
}
arg1 = (int)(val1);
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","lcdPrintf", 2, argv[1] ));
}
arg2 = (char *)(buf2);
lcdPrintf(arg1,arg2,arg3);
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
|
.lcdPutchar(*args) ⇒ Object
3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3808
SWIGINTERN VALUE
_wrap_lcdPutchar(int argc, VALUE *argv, VALUE self) {
int arg1 ;
uint8_t arg2 ;
int val1 ;
int ecode1 = 0 ;
unsigned char val2 ;
int ecode2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdPutchar", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","lcdPutchar", 2, argv[1] ));
}
arg2 = (uint8_t)(val2);
lcdPutchar(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
|
.lcdPuts(*args) ⇒ Object
3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3837
SWIGINTERN VALUE
_wrap_lcdPuts(int argc, VALUE *argv, VALUE self) {
int arg1 ;
char *arg2 = (char *) 0 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdPuts", 1, argv[0] ));
}
arg1 = (int)(val1);
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","lcdPuts", 2, argv[1] ));
}
arg2 = (char *)(buf2);
lcdPuts(arg1,arg2);
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
|
.lcdSendCommand(*args) ⇒ Object
3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3742
SWIGINTERN VALUE
_wrap_lcdSendCommand(int argc, VALUE *argv, VALUE self) {
int arg1 ;
uint8_t arg2 ;
int val1 ;
int ecode1 = 0 ;
unsigned char val2 ;
int ecode2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","lcdSendCommand", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","lcdSendCommand", 2, argv[1] ));
}
arg2 = (uint8_t)(val2);
lcdSendCommand(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
|
.mcp23008Setup(*args) ⇒ Object
3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3612
SWIGINTERN VALUE
_wrap_mcp23008Setup(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp23008Setup", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp23008Setup", 2, argv[1] ));
}
arg2 = (int)(val2);
result = (int)mcp23008Setup(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.mcp23017Setup(*args) ⇒ Object
3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3540
SWIGINTERN VALUE
_wrap_mcp23017Setup(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp23017Setup", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp23017Setup", 2, argv[1] ));
}
arg2 = (int)(val2);
result = (int)mcp23017Setup(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.mcp23s08Setup(*args) ⇒ Object
3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3572
SWIGINTERN VALUE
_wrap_mcp23s08Setup(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp23s08Setup", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp23s08Setup", 2, argv[1] ));
}
arg2 = (int)(val2);
ecode3 = SWIG_AsVal_int(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","mcp23s08Setup", 3, argv[2] ));
}
arg3 = (int)(val3);
result = (int)mcp23s08Setup(arg1,arg2,arg3);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.mcp23s17Setup(*args) ⇒ Object
3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3500
SWIGINTERN VALUE
_wrap_mcp23s17Setup(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","mcp23s17Setup", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mcp23s17Setup", 2, argv[1] ));
}
arg2 = (int)(val2);
ecode3 = SWIG_AsVal_int(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","mcp23s17Setup", 3, argv[2] ));
}
arg3 = (int)(val3);
result = (int)mcp23s17Setup(arg1,arg2,arg3);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.micros(*args) ⇒ Object
2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2604
SWIGINTERN VALUE
_wrap_micros(int argc, VALUE *argv, VALUE self) {
unsigned int result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (unsigned int)micros();
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
return vresult;
fail:
return Qnil;
}
|
.millis(*args) ⇒ Object
2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2588
SWIGINTERN VALUE
_wrap_millis(int argc, VALUE *argv, VALUE self) {
unsigned int result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (unsigned int)millis();
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
return vresult;
fail:
return Qnil;
}
|
.physPinToGpio(*args) ⇒ Object
2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2371
SWIGINTERN VALUE
_wrap_physPinToGpio(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","physPinToGpio", 1, argv[0] ));
}
arg1 = (int)(val1);
result = (int)physPinToGpio(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.piBoardRev(*args) ⇒ Object
2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2331
SWIGINTERN VALUE
_wrap_piBoardRev(int argc, VALUE *argv, VALUE self) {
int result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (int)piBoardRev();
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.piFaceSetup(*args) ⇒ Object
2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2114
SWIGINTERN VALUE
_wrap_piFaceSetup(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piFaceSetup", 1, argv[0] ));
}
arg1 = (int)(val1);
result = (int)piFaceSetup(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.piHiPri(*args) ⇒ Object
2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2522
SWIGINTERN VALUE
_wrap_piHiPri(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piHiPri", 1, argv[0] ));
}
arg1 = (int)(val1);
result = (int)piHiPri(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.piLock(*args) ⇒ Object
2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2480
SWIGINTERN VALUE
_wrap_piLock(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piLock", 1, argv[0] ));
}
arg1 = (int)(val1);
piLock(arg1);
return Qnil;
fail:
return Qnil;
}
|
.pinMode(*args) ⇒ Object
2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2138
SWIGINTERN VALUE
_wrap_pinMode(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pinMode", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pinMode", 2, argv[1] ));
}
arg2 = (int)(val2);
pinMode(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
|
.piThreadCreate(*args) ⇒ Object
2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2457
SWIGINTERN VALUE
_wrap_piThreadCreate(int argc, VALUE *argv, VALUE self) {
void *(*arg1)(void *) = (void *(*)(void *)) 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
{
int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg1), SWIGTYPE_p_f_p_void__p_void);
if (!SWIG_IsOK(res)) {
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void *(*)(void *)","piThreadCreate", 1, argv[0] ));
}
}
result = (int)piThreadCreate(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.piUnlock(*args) ⇒ Object
2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2501
SWIGINTERN VALUE
_wrap_piUnlock(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","piUnlock", 1, argv[0] ));
}
arg1 = (int)(val1);
piUnlock(arg1);
return Qnil;
fail:
return Qnil;
}
|
.pullUpDnControl(*args) ⇒ Object
2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2167
SWIGINTERN VALUE
_wrap_pullUpDnControl(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pullUpDnControl", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pullUpDnControl", 2, argv[1] ));
}
arg2 = (int)(val2);
pullUpDnControl(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
|
.pwmWrite(*args) ⇒ Object
2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2249
SWIGINTERN VALUE
_wrap_pwmWrite(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","pwmWrite", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","pwmWrite", 2, argv[1] ));
}
arg2 = (int)(val2);
pwmWrite(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
|
.serialClose(*args) ⇒ Object
2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2655
SWIGINTERN VALUE
_wrap_serialClose(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialClose", 1, argv[0] ));
}
arg1 = (int)(val1);
serialClose(arg1);
return Qnil;
fail:
return Qnil;
}
|
.serialDataAvail(*args) ⇒ Object
2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2791
SWIGINTERN VALUE
_wrap_serialDataAvail(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialDataAvail", 1, argv[0] ));
}
arg1 = (int)(val1);
result = (int)serialDataAvail(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.serialFlush(*args) ⇒ Object
2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2676
SWIGINTERN VALUE
_wrap_serialFlush(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialFlush", 1, argv[0] ));
}
arg1 = (int)(val1);
serialFlush(arg1);
return Qnil;
fail:
return Qnil;
}
|
.serialGetchar(*args) ⇒ Object
2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2815
SWIGINTERN VALUE
_wrap_serialGetchar(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialGetchar", 1, argv[0] ));
}
arg1 = (int)(val1);
result = (int)serialGetchar(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.serialOpen(*args) ⇒ Object
2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2620
SWIGINTERN VALUE
_wrap_serialOpen(int argc, VALUE *argv, VALUE self) {
char *arg1 = (char *) 0 ;
int arg2 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","serialOpen", 1, argv[0] ));
}
arg1 = (char *)(buf1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","serialOpen", 2, argv[1] ));
}
arg2 = (int)(val2);
result = (int)serialOpen(arg1,arg2);
vresult = SWIG_From_int((int)(result));
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
return vresult;
fail:
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
return Qnil;
}
|
.serialPrintf(*args) ⇒ Object
2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2758
SWIGINTERN VALUE
_wrap_serialPrintf(int argc, VALUE *argv, VALUE self) {
int arg1 ;
char *arg2 = (char *) 0 ;
void *arg3 = 0 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
if (argc < 2) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialPrintf", 1, argv[0] ));
}
arg1 = (int)(val1);
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","serialPrintf", 2, argv[1] ));
}
arg2 = (char *)(buf2);
serialPrintf(arg1,arg2,arg3);
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
|
.serialPutchar(*args) ⇒ Object
2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2697
SWIGINTERN VALUE
_wrap_serialPutchar(int argc, VALUE *argv, VALUE self) {
int arg1 ;
unsigned char arg2 ;
int val1 ;
int ecode1 = 0 ;
unsigned char val2 ;
int ecode2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialPutchar", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned char","serialPutchar", 2, argv[1] ));
}
arg2 = (unsigned char)(val2);
serialPutchar(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
|
.serialPuts(*args) ⇒ Object
2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2726
SWIGINTERN VALUE
_wrap_serialPuts(int argc, VALUE *argv, VALUE self) {
int arg1 ;
char *arg2 = (char *) 0 ;
int val1 ;
int ecode1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","serialPuts", 1, argv[0] ));
}
arg1 = (int)(val1);
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","serialPuts", 2, argv[1] ));
}
arg2 = (char *)(buf2);
serialPuts(arg1,arg2);
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
|
.shiftIn(*args) ⇒ Object
2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2884
SWIGINTERN VALUE
_wrap_shiftIn(int argc, VALUE *argv, VALUE self) {
uint8_t arg1 ;
uint8_t arg2 ;
uint8_t arg3 ;
unsigned char val1 ;
int ecode1 = 0 ;
unsigned char val2 ;
int ecode2 = 0 ;
unsigned char val3 ;
int ecode3 = 0 ;
uint8_t result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_unsigned_SS_char(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint8_t","shiftIn", 1, argv[0] ));
}
arg1 = (uint8_t)(val1);
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","shiftIn", 2, argv[1] ));
}
arg2 = (uint8_t)(val2);
ecode3 = SWIG_AsVal_unsigned_SS_char(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint8_t","shiftIn", 3, argv[2] ));
}
arg3 = (uint8_t)(val3);
result = shiftIn(arg1,arg2,arg3);
vresult = SWIG_From_unsigned_SS_char((unsigned char)(result));
return vresult;
fail:
return Qnil;
}
|
.shiftOut(*args) ⇒ Object
2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2839
SWIGINTERN VALUE
_wrap_shiftOut(int argc, VALUE *argv, VALUE self) {
uint8_t arg1 ;
uint8_t arg2 ;
uint8_t arg3 ;
uint8_t arg4 ;
unsigned char val1 ;
int ecode1 = 0 ;
unsigned char val2 ;
int ecode2 = 0 ;
unsigned char val3 ;
int ecode3 = 0 ;
unsigned char val4 ;
int ecode4 = 0 ;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_unsigned_SS_char(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint8_t","shiftOut", 1, argv[0] ));
}
arg1 = (uint8_t)(val1);
ecode2 = SWIG_AsVal_unsigned_SS_char(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","shiftOut", 2, argv[1] ));
}
arg2 = (uint8_t)(val2);
ecode3 = SWIG_AsVal_unsigned_SS_char(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint8_t","shiftOut", 3, argv[2] ));
}
arg3 = (uint8_t)(val3);
ecode4 = SWIG_AsVal_unsigned_SS_char(argv[3], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint8_t","shiftOut", 4, argv[3] ));
}
arg4 = (uint8_t)(val4);
shiftOut(arg1,arg2,arg3,arg4);
return Qnil;
fail:
return Qnil;
}
|
.softPwmCreate(*args) ⇒ Object
3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3431
SWIGINTERN VALUE
_wrap_softPwmCreate(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softPwmCreate", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","softPwmCreate", 2, argv[1] ));
}
arg2 = (int)(val2);
ecode3 = SWIG_AsVal_int(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","softPwmCreate", 3, argv[2] ));
}
arg3 = (int)(val3);
result = (int)softPwmCreate(arg1,arg2,arg3);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.softPwmWrite(*args) ⇒ Object
3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3471
SWIGINTERN VALUE
_wrap_softPwmWrite(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softPwmWrite", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","softPwmWrite", 2, argv[1] ));
}
arg2 = (int)(val2);
softPwmWrite(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
|
.softServoSetup(*args) ⇒ Object
3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3351
SWIGINTERN VALUE
_wrap_softServoSetup(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int arg3 ;
int arg4 ;
int arg5 ;
int arg6 ;
int arg7 ;
int arg8 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
int val5 ;
int ecode5 = 0 ;
int val6 ;
int ecode6 = 0 ;
int val7 ;
int ecode7 = 0 ;
int val8 ;
int ecode8 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 8) || (argc > 8)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softServoSetup", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","softServoSetup", 2, argv[1] ));
}
arg2 = (int)(val2);
ecode3 = SWIG_AsVal_int(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","softServoSetup", 3, argv[2] ));
}
arg3 = (int)(val3);
ecode4 = SWIG_AsVal_int(argv[3], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","softServoSetup", 4, argv[3] ));
}
arg4 = (int)(val4);
ecode5 = SWIG_AsVal_int(argv[4], &val5);
if (!SWIG_IsOK(ecode5)) {
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","softServoSetup", 5, argv[4] ));
}
arg5 = (int)(val5);
ecode6 = SWIG_AsVal_int(argv[5], &val6);
if (!SWIG_IsOK(ecode6)) {
SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "int","softServoSetup", 6, argv[5] ));
}
arg6 = (int)(val6);
ecode7 = SWIG_AsVal_int(argv[6], &val7);
if (!SWIG_IsOK(ecode7)) {
SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "int","softServoSetup", 7, argv[6] ));
}
arg7 = (int)(val7);
ecode8 = SWIG_AsVal_int(argv[7], &val8);
if (!SWIG_IsOK(ecode8)) {
SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "int","softServoSetup", 8, argv[7] ));
}
arg8 = (int)(val8);
result = (int)softServoSetup(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.softServoWrite(*args) ⇒ Object
3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3322
SWIGINTERN VALUE
_wrap_softServoWrite(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softServoWrite", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","softServoWrite", 2, argv[1] ));
}
arg2 = (int)(val2);
softServoWrite(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
|
.softToneCreate(*args) ⇒ Object
3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3269
SWIGINTERN VALUE
_wrap_softToneCreate(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softToneCreate", 1, argv[0] ));
}
arg1 = (int)(val1);
result = (int)softToneCreate(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.softToneWrite(*args) ⇒ Object
3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3293
SWIGINTERN VALUE
_wrap_softToneWrite(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","softToneWrite", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","softToneWrite", 2, argv[1] ));
}
arg2 = (int)(val2);
softToneWrite(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
|
.sr595Setup(*args) ⇒ Object
3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3644
SWIGINTERN VALUE
_wrap_sr595Setup(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int arg3 ;
int arg4 ;
int arg5 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int val4 ;
int ecode4 = 0 ;
int val5 ;
int ecode5 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 5) || (argc > 5)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","sr595Setup", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","sr595Setup", 2, argv[1] ));
}
arg2 = (int)(val2);
ecode3 = SWIG_AsVal_int(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","sr595Setup", 3, argv[2] ));
}
arg3 = (int)(val3);
ecode4 = SWIG_AsVal_int(argv[3], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","sr595Setup", 4, argv[3] ));
}
arg4 = (int)(val4);
ecode5 = SWIG_AsVal_int(argv[4], &val5);
if (!SWIG_IsOK(ecode5)) {
SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "int","sr595Setup", 5, argv[4] ));
}
arg5 = (int)(val5);
result = (int)sr595Setup(arg1,arg2,arg3,arg4,arg5);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.waitForInterrupt ⇒ Object
2395 2396 2397 2398 2399 2400 2401 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2395
SWIGINTERN VALUE
_wrap_waitForInterrupt_get(VALUE self) {
VALUE _val;
_val = SWIG_NewFunctionPtrObj((void *)(waitForInterrupt), SWIGTYPE_p_f_int_int__int);
return _val;
}
|
.waitForInterrupt=(_val) ⇒ Object
2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2404
SWIGINTERN VALUE
_wrap_waitForInterrupt_set(VALUE self, VALUE _val) {
{
int res = SWIG_ConvertFunctionPtr(_val, (void**)(&waitForInterrupt), SWIGTYPE_p_f_int_int__int);
if (!SWIG_IsOK(res)) {
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""waitForInterrupt""' of type '""int (*)(int,int)""'");
}
}
return _val;
fail:
return Qnil;
}
|
.wiringPiI2CRead(*args) ⇒ Object
3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3069
SWIGINTERN VALUE
_wrap_wiringPiI2CRead(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CRead", 1, argv[0] ));
}
arg1 = (int)(val1);
result = (int)wiringPiI2CRead(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.wiringPiI2CReadReg16(*args) ⇒ Object
3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3125
SWIGINTERN VALUE
_wrap_wiringPiI2CReadReg16(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CReadReg16", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CReadReg16", 2, argv[1] ));
}
arg2 = (int)(val2);
result = (int)wiringPiI2CReadReg16(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.wiringPiI2CReadReg8(*args) ⇒ Object
3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3093
SWIGINTERN VALUE
_wrap_wiringPiI2CReadReg8(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CReadReg8", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CReadReg8", 2, argv[1] ));
}
arg2 = (int)(val2);
result = (int)wiringPiI2CReadReg8(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.wiringPiI2CSetup(*args) ⇒ Object
3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3045
SWIGINTERN VALUE
_wrap_wiringPiI2CSetup(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CSetup", 1, argv[0] ));
}
arg1 = (int)(val1);
result = (int)wiringPiI2CSetup(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.wiringPiI2CSetupInterface(*args) ⇒ Object
3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3010
SWIGINTERN VALUE
_wrap_wiringPiI2CSetupInterface(int argc, VALUE *argv, VALUE self) {
char *arg1 = (char *) 0 ;
int arg2 ;
int res1 ;
char *buf1 = 0 ;
int alloc1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","wiringPiI2CSetupInterface", 1, argv[0] ));
}
arg1 = (char *)(buf1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CSetupInterface", 2, argv[1] ));
}
arg2 = (int)(val2);
result = (int)wiringPiI2CSetupInterface(arg1,arg2);
vresult = SWIG_From_int((int)(result));
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
return vresult;
fail:
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
return Qnil;
}
|
.wiringPiI2CWrite(*args) ⇒ Object
3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3157
SWIGINTERN VALUE
_wrap_wiringPiI2CWrite(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CWrite", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CWrite", 2, argv[1] ));
}
arg2 = (int)(val2);
result = (int)wiringPiI2CWrite(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.wiringPiI2CWriteReg16(*args) ⇒ Object
3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3229
SWIGINTERN VALUE
_wrap_wiringPiI2CWriteReg16(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg16", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg16", 2, argv[1] ));
}
arg2 = (int)(val2);
ecode3 = SWIG_AsVal_int(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg16", 3, argv[2] ));
}
arg3 = (int)(val3);
result = (int)wiringPiI2CWriteReg16(arg1,arg2,arg3);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.wiringPiI2CWriteReg8(*args) ⇒ Object
3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 3189
SWIGINTERN VALUE
_wrap_wiringPiI2CWriteReg8(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int val3 ;
int ecode3 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg8", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg8", 2, argv[1] ));
}
arg2 = (int)(val2);
ecode3 = SWIG_AsVal_int(argv[2], &val3);
if (!SWIG_IsOK(ecode3)) {
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","wiringPiI2CWriteReg8", 3, argv[2] ));
}
arg3 = (int)(val3);
result = (int)wiringPiI2CWriteReg8(arg1,arg2,arg3);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.wiringPiISR(*args) ⇒ Object
2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2418
SWIGINTERN VALUE
_wrap_wiringPiISR(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
void (*arg3)(void) = (void (*)(void)) 0 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiISR", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiISR", 2, argv[1] ));
}
arg2 = (int)(val2);
{
int res = SWIG_ConvertFunctionPtr(argv[2], (void**)(&arg3), SWIGTYPE_p_f_void__void);
if (!SWIG_IsOK(res)) {
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "void (*)(void)","wiringPiISR", 3, argv[2] ));
}
}
result = (int)wiringPiISR(arg1,arg2,arg3);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.wiringPiSetup(*args) ⇒ Object
2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2050
SWIGINTERN VALUE
_wrap_wiringPiSetup(int argc, VALUE *argv, VALUE self) {
int result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (int)wiringPiSetup();
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.wiringPiSetupGpio(*args) ⇒ Object
2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2082
SWIGINTERN VALUE
_wrap_wiringPiSetupGpio(int argc, VALUE *argv, VALUE self) {
int result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (int)wiringPiSetupGpio();
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.wiringPiSetupPhys(*args) ⇒ Object
2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2098
SWIGINTERN VALUE
_wrap_wiringPiSetupPhys(int argc, VALUE *argv, VALUE self) {
int result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (int)wiringPiSetupPhys();
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.wiringPiSetupSys(*args) ⇒ Object
2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2066
SWIGINTERN VALUE
_wrap_wiringPiSetupSys(int argc, VALUE *argv, VALUE self) {
int result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (int)wiringPiSetupSys();
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.wiringPiSPIDataRW(*args) ⇒ Object
2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2948
SWIGINTERN VALUE
_wrap_wiringPiSPIDataRW(int argc, VALUE *argv, VALUE self) {
int arg1 ;
unsigned char *arg2 = (unsigned char *) 0 ;
int arg3 ;
int val1 ;
int ecode1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiSPIDataRW", 1, argv[0] ));
}
arg1 = (int)(val1);
{
arg2 = StringValuePtr(argv[1]);
arg3 = strlen(arg2);
}
result = (int)wiringPiSPIDataRW(arg1,arg2,arg3);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.wiringPiSPIGetFd(*args) ⇒ Object
2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2924
SWIGINTERN VALUE
_wrap_wiringPiSPIGetFd(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiSPIGetFd", 1, argv[0] ));
}
arg1 = (int)(val1);
result = (int)wiringPiSPIGetFd(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.wiringPiSPISetup(*args) ⇒ Object
2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2978
SWIGINTERN VALUE
_wrap_wiringPiSPISetup(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int arg2 ;
int val1 ;
int ecode1 = 0 ;
int val2 ;
int ecode2 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wiringPiSPISetup", 1, argv[0] ));
}
arg1 = (int)(val1);
ecode2 = SWIG_AsVal_int(argv[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","wiringPiSPISetup", 2, argv[1] ));
}
arg2 = (int)(val2);
result = (int)wiringPiSPISetup(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|
.wpiPinToGpio(*args) ⇒ Object
2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 |
# File 'ext/wiringpi/wiringpi_wrap.c', line 2347
SWIGINTERN VALUE
_wrap_wpiPinToGpio(int argc, VALUE *argv, VALUE self) {
int arg1 ;
int val1 ;
int ecode1 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
ecode1 = SWIG_AsVal_int(argv[0], &val1);
if (!SWIG_IsOK(ecode1)) {
SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","wpiPinToGpio", 1, argv[0] ));
}
arg1 = (int)(val1);
result = (int)wpiPinToGpio(arg1);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
|