Module: Phid

Included in:
PhidgetRfidReader
Defined in:
ext/phid_wrap.c

Class Method Summary collapse

Class Method Details

.callback(*args) ⇒ Object



2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
# File 'ext/phid_wrap.c', line 2321

SWIGINTERN VALUE
_wrap_callback(int argc, VALUE *argv, VALUE self) {
  void *arg1 = (void *) 0 ;
  int arg2 ;
  char **arg3 = (char **) 0 ;
  char **arg4 = (char **) 0 ;
  int res1 ;
  int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","callback", 1, argv[0] )); 
  }
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","callback", 2, argv[1] ));
  } 
  arg2 = (int)(val2);
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_p_char, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char **","callback", 3, argv[2] )); 
  }
  arg3 = (char **)(argp3);
  res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_p_char, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char **","callback", 4, argv[3] )); 
  }
  arg4 = (char **)(argp4);
  result = (int)callback(arg1,arg2,arg3,arg4);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.count_tags(*args) ⇒ Object



2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
# File 'ext/phid_wrap.c', line 2579

SWIGINTERN VALUE
_wrap_count_tags(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)count_tags();
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.dbObject



2001
2002
2003
2004
2005
2006
2007
# File 'ext/phid_wrap.c', line 2001

SWIGINTERN VALUE
_wrap_db_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_NewPointerObj(SWIG_as_voidptr(db), SWIGTYPE_p_sqlite3,  0 );
  return _val;
}

.db=(_val) ⇒ Object



2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
# File 'ext/phid_wrap.c', line 2010

SWIGINTERN VALUE
_wrap_db_set(VALUE self, VALUE _val) {
  {
    void *argp = 0;
    int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_sqlite3,  0 );  
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""db""' of type '""sqlite3 *""'");
    }
    db = (sqlite3 *)(argp);
  }
  return _val;
fail:
  return Qnil;
}

.disable_loggin(*args) ⇒ Object



2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
# File 'ext/phid_wrap.c', line 2186

SWIGINTERN VALUE
_wrap_disable_loggin(int argc, VALUE *argv, VALUE self) {
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  disable_loggin();
  return Qnil;
fail:
  return Qnil;
}

.enable_loggin(*args) ⇒ Object



2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
# File 'ext/phid_wrap.c', line 2162

SWIGINTERN VALUE
_wrap_enable_loggin(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",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 *","enable_loggin", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  enable_loggin(arg1);
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.get_device_name(*args) ⇒ Object



2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
# File 'ext/phid_wrap.c', line 2233

SWIGINTERN VALUE
_wrap_get_device_name(int argc, VALUE *argv, VALUE self) {
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (char *)get_device_name();
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}

.get_device_type(*args) ⇒ Object



2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
# File 'ext/phid_wrap.c', line 2249

SWIGINTERN VALUE
_wrap_get_device_type(int argc, VALUE *argv, VALUE self) {
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (char *)get_device_type();
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}

.get_device_version(*args) ⇒ Object



2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
# File 'ext/phid_wrap.c', line 2281

SWIGINTERN VALUE
_wrap_get_device_version(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)get_device_version();
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.get_error_description(*args) ⇒ Object



2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
# File 'ext/phid_wrap.c', line 2539

SWIGINTERN VALUE
_wrap_get_error_description(int argc, VALUE *argv, VALUE self) {
  int arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  char *result = 0 ;
  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","get_error_description", 1, argv[0] ));
  } 
  arg1 = (int)(val1);
  result = (char *)get_error_description(arg1);
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}

.get_lastTag(*args) ⇒ Object



2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
# File 'ext/phid_wrap.c', line 2563

SWIGINTERN VALUE
_wrap_get_lastTag(int argc, VALUE *argv, VALUE self) {
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (char *)get_lastTag();
  vresult = SWIG_FromCharPtr((const char *)result);
  return vresult;
fail:
  return Qnil;
}

.get_serial_number(*args) ⇒ Object



2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
# File 'ext/phid_wrap.c', line 2265

SWIGINTERN VALUE
_wrap_get_serial_number(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)get_serial_number();
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.last_tagObject



2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
# File 'ext/phid_wrap.c', line 2081

SWIGINTERN VALUE
_wrap_last_tag_get(VALUE self) {
  VALUE _val;
  
  size_t size = 25;
  
  while (size && (last_tag[size - 1] == '\0')) --size;
  
  _val = SWIG_FromCharPtrAndSize(last_tag, size);
  return _val;
}

.last_tag=(_val) ⇒ Object



2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
# File 'ext/phid_wrap.c', line 2094

SWIGINTERN VALUE
_wrap_last_tag_set(VALUE self, VALUE _val) {
  {
    int res = SWIG_AsCharArray(_val, last_tag, 25);
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""last_tag""' of type '""char [25]""'");
    }
  }
  return _val;
fail:
  return Qnil;
}

.levelObject



2133
2134
2135
2136
2137
2138
2139
# File 'ext/phid_wrap.c', line 2133

SWIGINTERN VALUE
_wrap_level_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_NewPointerObj(SWIG_as_voidptr(&level), SWIGTYPE_p_CPhidgetLog_level,  0 );
  return _val;
}

.level=(_val) ⇒ Object



2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
# File 'ext/phid_wrap.c', line 2142

SWIGINTERN VALUE
_wrap_level_set(VALUE self, VALUE _val) {
  {
    void *argp = 0;
    int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_CPhidgetLog_level,  0 );
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""level""' of type '""CPhidgetLog_level""'");
    }
    if (!argp) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""level""' of type '""CPhidgetLog_level""'");
    } else {
      level = *((CPhidgetLog_level *)(argp));
    }
  }
  return _val;
fail:
  return Qnil;
}

.log_message(*args) ⇒ Object



2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
# File 'ext/phid_wrap.c', line 2198

SWIGINTERN VALUE
_wrap_log_message(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  char *arg2 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 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;
  }
  res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char *","log_message", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","log_message", 2, argv[1] ));
  }
  arg2 = (char *)(buf2);
  log_message(arg1,arg2);
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
  return Qnil;
}

.rcObject



2056
2057
2058
2059
2060
2061
2062
# File 'ext/phid_wrap.c', line 2056

SWIGINTERN VALUE
_wrap_rc_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_int((int)(rc));
  return _val;
}

.rc=(_val) ⇒ Object



2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
# File 'ext/phid_wrap.c', line 2065

SWIGINTERN VALUE
_wrap_rc_set(VALUE self, VALUE _val) {
  {
    int val;
    int res = SWIG_AsVal_int(_val, &val);
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""rc""' of type '""int""'");
    }
    rc = (int)(val);
  }
  return _val;
fail:
  return Qnil;
}

.rfidObject



1972
1973
1974
1975
1976
1977
1978
# File 'ext/phid_wrap.c', line 1972

SWIGINTERN VALUE
_wrap_rfid_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_NewPointerObj(SWIG_as_voidptr(&rfid), SWIGTYPE_p_CPhidgetRFIDHandle,  0 );
  return _val;
}

.rfid=(_val) ⇒ Object



1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
# File 'ext/phid_wrap.c', line 1981

SWIGINTERN VALUE
_wrap_rfid_set(VALUE self, VALUE _val) {
  {
    void *argp = 0;
    int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_CPhidgetRFIDHandle,  0 );
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""rfid""' of type '""CPhidgetRFIDHandle""'");
    }
    if (!argp) {
      SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""rfid""' of type '""CPhidgetRFIDHandle""'");
    } else {
      rfid = *((CPhidgetRFIDHandle *)(argp));
    }
  }
  return _val;
fail:
  return Qnil;
}

.rfid_create(*args) ⇒ Object



2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
# File 'ext/phid_wrap.c', line 2479

SWIGINTERN VALUE
_wrap_rfid_create(int argc, VALUE *argv, VALUE self) {
  char *arg1 = (char *) 0 ;
  int res1 ;
  char *buf1 = 0 ;
  int alloc1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",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 *","rfid_create", 1, argv[0] ));
  }
  arg1 = (char *)(buf1);
  rfid_create(arg1);
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
fail:
  if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
  return Qnil;
}

.rfid_delete(*args) ⇒ Object



2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
# File 'ext/phid_wrap.c', line 2503

SWIGINTERN VALUE
_wrap_rfid_delete(int argc, VALUE *argv, VALUE self) {
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  rfid_delete();
  return Qnil;
fail:
  return Qnil;
}

.tag_handler(*args) ⇒ Object



2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
# File 'ext/phid_wrap.c', line 2367

SWIGINTERN VALUE
_wrap_tag_handler(int argc, VALUE *argv, VALUE self) {
  CPhidgetRFIDHandle arg1 ;
  void *arg2 = (void *) 0 ;
  unsigned char *arg3 = (unsigned char *) 0 ;
  void *argp1 ;
  int res1 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  {
    res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_CPhidgetRFIDHandle,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CPhidgetRFIDHandle","tag_handler", 1, argv[0] )); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "CPhidgetRFIDHandle","tag_handler", 1, argv[0]));
    } else {
      arg1 = *((CPhidgetRFIDHandle *)(argp1));
    }
  }
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","tag_handler", 2, argv[1] )); 
  }
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_unsigned_char, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "unsigned char *","tag_handler", 3, argv[2] )); 
  }
  arg3 = (unsigned char *)(argp3);
  result = (int)tag_handler(arg1,arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.tag_lost_handler(*args) ⇒ Object



2411
2412
2413
2414
2415
2416
2417
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
# File 'ext/phid_wrap.c', line 2411

SWIGINTERN VALUE
_wrap_tag_lost_handler(int argc, VALUE *argv, VALUE self) {
  CPhidgetRFIDHandle arg1 ;
  void *arg2 = (void *) 0 ;
  unsigned char *arg3 = (unsigned char *) 0 ;
  void *argp1 ;
  int res1 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  {
    res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_CPhidgetRFIDHandle,  0 );
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "CPhidgetRFIDHandle","tag_lost_handler", 1, argv[0] )); 
    }  
    if (!argp1) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "CPhidgetRFIDHandle","tag_lost_handler", 1, argv[0]));
    } else {
      arg1 = *((CPhidgetRFIDHandle *)(argp1));
    }
  }
  res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","tag_lost_handler", 2, argv[1] )); 
  }
  res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_unsigned_char, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "unsigned char *","tag_lost_handler", 3, argv[2] )); 
  }
  arg3 = (unsigned char *)(argp3);
  result = (int)tag_lost_handler(arg1,arg2,arg3);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.tagsObject



2108
2109
2110
2111
2112
2113
2114
# File 'ext/phid_wrap.c', line 2108

SWIGINTERN VALUE
_wrap_tags_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_From_int((int)(tags));
  return _val;
}

.tags=(_val) ⇒ Object



2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
# File 'ext/phid_wrap.c', line 2117

SWIGINTERN VALUE
_wrap_tags_set(VALUE self, VALUE _val) {
  {
    int val;
    int res = SWIG_AsVal_int(_val, &val);
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""tags""' of type '""int""'");
    }
    tags = (int)(val);
  }
  return _val;
fail:
  return Qnil;
}

.turn_antenna_off(*args) ⇒ Object



2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
# File 'ext/phid_wrap.c', line 2467

SWIGINTERN VALUE
_wrap_turn_antenna_off(int argc, VALUE *argv, VALUE self) {
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  turn_antenna_off();
  return Qnil;
fail:
  return Qnil;
}

.turn_antenna_on(*args) ⇒ Object



2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
# File 'ext/phid_wrap.c', line 2455

SWIGINTERN VALUE
_wrap_turn_antenna_on(int argc, VALUE *argv, VALUE self) {
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  turn_antenna_on();
  return Qnil;
fail:
  return Qnil;
}

.turn_led_off(*args) ⇒ Object



2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
# File 'ext/phid_wrap.c', line 2309

SWIGINTERN VALUE
_wrap_turn_led_off(int argc, VALUE *argv, VALUE self) {
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  turn_led_off();
  return Qnil;
fail:
  return Qnil;
}

.turn_led_on(*args) ⇒ Object



2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
# File 'ext/phid_wrap.c', line 2297

SWIGINTERN VALUE
_wrap_turn_led_on(int argc, VALUE *argv, VALUE self) {
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  turn_led_on();
  return Qnil;
fail:
  return Qnil;
}

.wait_attachment(*args) ⇒ Object



2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
# File 'ext/phid_wrap.c', line 2515

SWIGINTERN VALUE
_wrap_wait_attachment(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","wait_attachment", 1, argv[0] ));
  } 
  arg1 = (int)(val1);
  result = (int)wait_attachment(arg1);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}

.zErrMsgObject



2026
2027
2028
2029
2030
2031
2032
# File 'ext/phid_wrap.c', line 2026

SWIGINTERN VALUE
_wrap_zErrMsg_get(VALUE self) {
  VALUE _val;
  
  _val = SWIG_FromCharPtr(zErrMsg);
  return _val;
}

.zErrMsg=(_val) ⇒ Object



2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
# File 'ext/phid_wrap.c', line 2035

SWIGINTERN VALUE
_wrap_zErrMsg_set(VALUE self, VALUE _val) {
  {
    char *cptr = 0; size_t csize = 0; int alloc = SWIG_NEWOBJ;
    int res = SWIG_AsCharPtrAndSize(_val, &cptr, &csize, &alloc);
    if (!SWIG_IsOK(res)) {
      SWIG_exception_fail(SWIG_ArgError(res), "in variable '""zErrMsg""' of type '""char *""'");
    }
    if (zErrMsg) free((char*)zErrMsg);
    if (alloc == SWIG_NEWOBJ) {
      zErrMsg = cptr;
    } else {
      zErrMsg = csize ? (char *)(char *)memcpy((char *)malloc((csize)*sizeof(char)), cptr, sizeof(char)*(csize)) : 0;
    }
  }
  return _val;
fail:
  return Qnil;
}