Class: OpalKelly::OkCPLL22150

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19769

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

Instance Method Details

#GetDiv1Divider(*args) ⇒ Object



20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20115

SWIGINTERN VALUE
_wrap_okCPLL22150_GetDiv1Divider(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22150 *arg1 = (OpalKellyLegacy::okCPLL22150 *) 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_OpalKellyLegacy__okCPLL22150, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22150 *","GetDiv1Divider", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22150 * >(argp1);
  result = (int)(arg1)->GetDiv1Divider();
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#GetDiv1Source(*args) ⇒ Object



20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20067

SWIGINTERN VALUE
_wrap_okCPLL22150_GetDiv1Source(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22150 *arg1 = (OpalKellyLegacy::okCPLL22150 *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OpalKellyLegacy::okCPLL22150::DividerSource 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_OpalKellyLegacy__okCPLL22150, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22150 *","GetDiv1Source", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22150 * >(argp1);
  result = (OpalKellyLegacy::okCPLL22150::DividerSource)(arg1)->GetDiv1Source();
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#GetDiv2Divider(*args) ⇒ Object



20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20139

SWIGINTERN VALUE
_wrap_okCPLL22150_GetDiv2Divider(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22150 *arg1 = (OpalKellyLegacy::okCPLL22150 *) 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_OpalKellyLegacy__okCPLL22150, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22150 *","GetDiv2Divider", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22150 * >(argp1);
  result = (int)(arg1)->GetDiv2Divider();
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#GetDiv2Source(*args) ⇒ Object



20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20091

SWIGINTERN VALUE
_wrap_okCPLL22150_GetDiv2Source(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22150 *arg1 = (OpalKellyLegacy::okCPLL22150 *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OpalKellyLegacy::okCPLL22150::DividerSource 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_OpalKellyLegacy__okCPLL22150, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22150 *","GetDiv2Source", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22150 * >(argp1);
  result = (OpalKellyLegacy::okCPLL22150::DividerSource)(arg1)->GetDiv2Source();
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#GetOutputFrequency(*args) ⇒ Object



20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20269

SWIGINTERN VALUE
_wrap_okCPLL22150_GetOutputFrequency(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22150 *arg1 = (OpalKellyLegacy::okCPLL22150 *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  double result;
  VALUE vresult = Qnil;
  
  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_OpalKellyLegacy__okCPLL22150, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22150 *","GetOutputFrequency", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22150 * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetOutputFrequency", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  result = (double)(arg1)->GetOutputFrequency(arg2);
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#GetOutputSource(*args) ⇒ Object



20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20237

SWIGINTERN VALUE
_wrap_okCPLL22150_GetOutputSource(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22150 *arg1 = (OpalKellyLegacy::okCPLL22150 *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  OpalKellyLegacy::okCPLL22150::ClockSource result;
  VALUE vresult = Qnil;
  
  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_OpalKellyLegacy__okCPLL22150, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22150 *","GetOutputSource", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22150 * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","GetOutputSource", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  result = (OpalKellyLegacy::okCPLL22150::ClockSource)(arg1)->GetOutputSource(arg2);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#GetReference(*args) ⇒ Object



19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19857

SWIGINTERN VALUE
_wrap_okCPLL22150_GetReference(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22150 *arg1 = (OpalKellyLegacy::okCPLL22150 *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double 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_OpalKellyLegacy__okCPLL22150, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22150 *","GetReference", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22150 * >(argp1);
  result = (double)(arg1)->GetReference();
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#GetVCOFrequency(*args) ⇒ Object



19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19969

SWIGINTERN VALUE
_wrap_okCPLL22150_GetVCOFrequency(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22150 *arg1 = (OpalKellyLegacy::okCPLL22150 *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double 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_OpalKellyLegacy__okCPLL22150, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22150 *","GetVCOFrequency", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22150 * >(argp1);
  result = (double)(arg1)->GetVCOFrequency();
  vresult = SWIG_From_double(static_cast< double >(result));
  return vresult;
fail:
  return Qnil;
}

#GetVCOP(*args) ⇒ Object



19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19921

SWIGINTERN VALUE
_wrap_okCPLL22150_GetVCOP(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22150 *arg1 = (OpalKellyLegacy::okCPLL22150 *) 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_OpalKellyLegacy__okCPLL22150, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22150 *","GetVCOP", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22150 * >(argp1);
  result = (int)(arg1)->GetVCOP();
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#GetVCOQ(*args) ⇒ Object



19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19945

SWIGINTERN VALUE
_wrap_okCPLL22150_GetVCOQ(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22150 *arg1 = (OpalKellyLegacy::okCPLL22150 *) 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_OpalKellyLegacy__okCPLL22150, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22150 *","GetVCOQ", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22150 * >(argp1);
  result = (int)(arg1)->GetVCOQ();
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}

#IsOutputEnabled(*args) ⇒ Object



20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20301

SWIGINTERN VALUE
_wrap_okCPLL22150_IsOutputEnabled(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22150 *arg1 = (OpalKellyLegacy::okCPLL22150 *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  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_OpalKellyLegacy__okCPLL22150, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22150 *","IsOutputEnabled", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22150 * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","IsOutputEnabled", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  result = (bool)(arg1)->IsOutputEnabled(arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}

#SetCrystalLoad(*args) ⇒ Object



19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19791

SWIGINTERN VALUE
_wrap_okCPLL22150_SetCrystalLoad(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22150 *arg1 = (OpalKellyLegacy::okCPLL22150 *) 0 ;
  double arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double 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_OpalKellyLegacy__okCPLL22150, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22150 *","SetCrystalLoad", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22150 * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetCrystalLoad", 2, argv[0] ));
  } 
  arg2 = static_cast< double >(val2);
  (arg1)->SetCrystalLoad(arg2);
  return Qnil;
fail:
  return Qnil;
}

#SetDiv1(*args) ⇒ Object



19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19993

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

#SetDiv2(*args) ⇒ Object



20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20030

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

#SetOutputEnable(*args) ⇒ Object



20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20200

SWIGINTERN VALUE
_wrap_okCPLL22150_SetOutputEnable(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22150 *arg1 = (OpalKellyLegacy::okCPLL22150 *) 0 ;
  int arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCPLL22150, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22150 *","SetOutputEnable", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22150 * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetOutputEnable", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","SetOutputEnable", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  (arg1)->SetOutputEnable(arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}

#SetOutputSource(*args) ⇒ Object



20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20163

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

#SetReference(*args) ⇒ Object



19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19820

SWIGINTERN VALUE
_wrap_okCPLL22150_SetReference(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22150 *arg1 = (OpalKellyLegacy::okCPLL22150 *) 0 ;
  double arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double val2 ;
  int ecode2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCPLL22150, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22150 *","SetReference", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22150 * >(argp1);
  ecode2 = SWIG_AsVal_double(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","SetReference", 2, argv[0] ));
  } 
  arg2 = static_cast< double >(val2);
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","SetReference", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  (arg1)->SetReference(arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}

#SetVCOParameters(*args) ⇒ Object



19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 19881

SWIGINTERN VALUE
_wrap_okCPLL22150_SetVCOParameters(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22150 *arg1 = (OpalKellyLegacy::okCPLL22150 *) 0 ;
  int arg2 ;
  int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCPLL22150, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22150 *","SetVCOParameters", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22150 * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","SetVCOParameters", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_int(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","SetVCOParameters", 3, argv[1] ));
  } 
  arg3 = static_cast< int >(val3);
  result = (bool)(arg1)->SetVCOParameters(arg2,arg3);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}