Class: OpalKelly::OkTDeviceMatchInfo

Inherits:
Object
  • Object
show all
Defined in:
ext/OpalKelly/FrontPanelDLL_wrap.cxx

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19265

SWIGINTERN VALUE
_wrap_new_okTDeviceMatchInfo(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "OpalKelly::okTDeviceMatchInfo";
  okTDeviceMatchInfo *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (okTDeviceMatchInfo *)new okTDeviceMatchInfo();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}

Instance Method Details

#pciDID(*args) ⇒ Object



19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19226

SWIGINTERN VALUE
_wrap_okTDeviceMatchInfo_pciDID_get(int argc, VALUE *argv, VALUE self) {
  okTDeviceMatchInfo *arg1 = (okTDeviceMatchInfo *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  UINT32 result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceMatchInfo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceMatchInfo *","pciDID", 1, self )); 
  }
  arg1 = reinterpret_cast< okTDeviceMatchInfo * >(argp1);
  result = (UINT32) ((arg1)->pciDID);
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}

#pciDID=(*args) ⇒ Object



19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19197

SWIGINTERN VALUE
_wrap_okTDeviceMatchInfo_pciDID_set(int argc, VALUE *argv, VALUE self) {
  okTDeviceMatchInfo *arg1 = (okTDeviceMatchInfo *) 0 ;
  UINT32 arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceMatchInfo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceMatchInfo *","pciDID", 1, self )); 
  }
  arg1 = reinterpret_cast< okTDeviceMatchInfo * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT32","pciDID", 2, argv[0] ));
  } 
  arg2 = static_cast< UINT32 >(val2);
  if (arg1) (arg1)->pciDID = arg2;
  return Qnil;
fail:
  return Qnil;
}

#productBaseID(*args) ⇒ Object



19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19014

SWIGINTERN VALUE
_wrap_okTDeviceMatchInfo_productBaseID_get(int argc, VALUE *argv, VALUE self) {
  okTDeviceMatchInfo *arg1 = (okTDeviceMatchInfo *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  okEProduct result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceMatchInfo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceMatchInfo *","productBaseID", 1, self )); 
  }
  arg1 = reinterpret_cast< okTDeviceMatchInfo * >(argp1);
  result = (okEProduct) ((arg1)->productBaseID);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#productBaseID=(*args) ⇒ Object



18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 18985

SWIGINTERN VALUE
_wrap_okTDeviceMatchInfo_productBaseID_set(int argc, VALUE *argv, VALUE self) {
  okTDeviceMatchInfo *arg1 = (okTDeviceMatchInfo *) 0 ;
  okEProduct arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceMatchInfo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceMatchInfo *","productBaseID", 1, self )); 
  }
  arg1 = reinterpret_cast< okTDeviceMatchInfo * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "okEProduct","productBaseID", 2, argv[0] ));
  } 
  arg2 = static_cast< okEProduct >(val2);
  if (arg1) (arg1)->productBaseID = arg2;
  return Qnil;
fail:
  return Qnil;
}

#productID(*args) ⇒ Object



19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19067

SWIGINTERN VALUE
_wrap_okTDeviceMatchInfo_productID_get(int argc, VALUE *argv, VALUE self) {
  okTDeviceMatchInfo *arg1 = (okTDeviceMatchInfo *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceMatchInfo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceMatchInfo *","productID", 1, self )); 
  }
  arg1 = reinterpret_cast< okTDeviceMatchInfo * >(argp1);
  result = (int) ((arg1)->productID);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#productID=(*args) ⇒ Object



19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19038

SWIGINTERN VALUE
_wrap_okTDeviceMatchInfo_productID_set(int argc, VALUE *argv, VALUE self) {
  okTDeviceMatchInfo *arg1 = (okTDeviceMatchInfo *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceMatchInfo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceMatchInfo *","productID", 1, self )); 
  }
  arg1 = reinterpret_cast< okTDeviceMatchInfo * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","productID", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  if (arg1) (arg1)->productID = arg2;
  return Qnil;
fail:
  return Qnil;
}

#productName(*args) ⇒ Object



18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 18961

SWIGINTERN VALUE
_wrap_okTDeviceMatchInfo_productName_get(int argc, VALUE *argv, VALUE self) {
  okTDeviceMatchInfo *arg1 = (okTDeviceMatchInfo *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceMatchInfo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceMatchInfo *","productName", 1, self )); 
  }
  arg1 = reinterpret_cast< okTDeviceMatchInfo * >(argp1);
  result = (char *)(char *) ((arg1)->productName);
  vresult = SWIG_FromCharPtrAndSize(result, strlen(result));
  return vresult;
fail:
  return Qnil;
}

#productName=(*args) ⇒ Object



18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 18931

SWIGINTERN VALUE
_wrap_okTDeviceMatchInfo_productName_set(int argc, VALUE *argv, VALUE self) {
  okTDeviceMatchInfo *arg1 = (okTDeviceMatchInfo *) 0 ;
  char *arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  char temp2[(128)] ;
  int res2 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceMatchInfo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceMatchInfo *","productName", 1, self )); 
  }
  arg1 = reinterpret_cast< okTDeviceMatchInfo * >(argp1);
  res2 = SWIG_AsCharArray(argv[0], temp2, (128));
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [(128)]","productName", 2, argv[0] ));
  }
  arg2 = reinterpret_cast< char * >(temp2);
  if (arg2) memcpy(arg1->productName,arg2,(128)*sizeof(char));
  else memset(arg1->productName,0,(128)*sizeof(char));
  return Qnil;
fail:
  return Qnil;
}

#usbPID(*args) ⇒ Object



19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19173

SWIGINTERN VALUE
_wrap_okTDeviceMatchInfo_usbPID_get(int argc, VALUE *argv, VALUE self) {
  okTDeviceMatchInfo *arg1 = (okTDeviceMatchInfo *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  UINT32 result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceMatchInfo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceMatchInfo *","usbPID", 1, self )); 
  }
  arg1 = reinterpret_cast< okTDeviceMatchInfo * >(argp1);
  result = (UINT32) ((arg1)->usbPID);
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}

#usbPID=(*args) ⇒ Object



19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19144

SWIGINTERN VALUE
_wrap_okTDeviceMatchInfo_usbPID_set(int argc, VALUE *argv, VALUE self) {
  okTDeviceMatchInfo *arg1 = (okTDeviceMatchInfo *) 0 ;
  UINT32 arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceMatchInfo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceMatchInfo *","usbPID", 1, self )); 
  }
  arg1 = reinterpret_cast< okTDeviceMatchInfo * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT32","usbPID", 2, argv[0] ));
  } 
  arg2 = static_cast< UINT32 >(val2);
  if (arg1) (arg1)->usbPID = arg2;
  return Qnil;
fail:
  return Qnil;
}

#usbVID(*args) ⇒ Object



19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19120

SWIGINTERN VALUE
_wrap_okTDeviceMatchInfo_usbVID_get(int argc, VALUE *argv, VALUE self) {
  okTDeviceMatchInfo *arg1 = (okTDeviceMatchInfo *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  UINT32 result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceMatchInfo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceMatchInfo *","usbVID", 1, self )); 
  }
  arg1 = reinterpret_cast< okTDeviceMatchInfo * >(argp1);
  result = (UINT32) ((arg1)->usbVID);
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}

#usbVID=(*args) ⇒ Object



19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19091

SWIGINTERN VALUE
_wrap_okTDeviceMatchInfo_usbVID_set(int argc, VALUE *argv, VALUE self) {
  okTDeviceMatchInfo *arg1 = (okTDeviceMatchInfo *) 0 ;
  UINT32 arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceMatchInfo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceMatchInfo *","usbVID", 1, self )); 
  }
  arg1 = reinterpret_cast< okTDeviceMatchInfo * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT32","usbVID", 2, argv[0] ));
  } 
  arg2 = static_cast< UINT32 >(val2);
  if (arg1) (arg1)->usbVID = arg2;
  return Qnil;
fail:
  return Qnil;
}