Class: OpalKelly::OkCPLL22393

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20350

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

Instance Method Details

#GetOutputDivider(*args) ⇒ Object



20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20895

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

#GetOutputFrequency(*args) ⇒ Object



20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20959

SWIGINTERN VALUE
_wrap_okCPLL22393_GetOutputFrequency(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22393 *arg1 = (OpalKellyLegacy::okCPLL22393 *) 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__okCPLL22393, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22393 *","GetOutputFrequency", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22393 * >(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



20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20927

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

#GetPLLFrequency(*args) ⇒ Object



20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20863

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

#GetPLLP(*args) ⇒ Object



20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20799

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

#GetPLLQ(*args) ⇒ Object



20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20831

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

#GetReference(*args) ⇒ Object



20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20433

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

#IsOutputEnabled(*args) ⇒ Object



20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20991

SWIGINTERN VALUE
_wrap_okCPLL22393_IsOutputEnabled(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22393 *arg1 = (OpalKellyLegacy::okCPLL22393 *) 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__okCPLL22393, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22393 *","IsOutputEnabled", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22393 * >(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;
}

#IsPLLEnabled(*args) ⇒ Object



21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 21023

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

#SetCrystalLoad(*args) ⇒ Object



20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20372

SWIGINTERN VALUE
_wrap_okCPLL22393_SetCrystalLoad(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22393 *arg1 = (OpalKellyLegacy::okCPLL22393 *) 0 ;
  double arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  double 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__okCPLL22393, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22393 *","SetCrystalLoad", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22393 * >(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);
  result = (bool)(arg1)->SetCrystalLoad(arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}

#SetOutputDivider(*args) ⇒ Object



20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20682

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

#SetOutputEnable(*args) ⇒ Object



20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20762

SWIGINTERN VALUE
_wrap_okCPLL22393_SetOutputEnable(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22393 *arg1 = (OpalKellyLegacy::okCPLL22393 *) 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__okCPLL22393, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22393 *","SetOutputEnable", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22393 * >(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



20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20722

SWIGINTERN VALUE
_wrap_okCPLL22393_SetOutputSource(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22393 *arg1 = (OpalKellyLegacy::okCPLL22393 *) 0 ;
  int arg2 ;
  OpalKellyLegacy::okCPLL22393::ClockSource 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__okCPLL22393, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22393 *","SetOutputSource", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22393 * >(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::okCPLL22393::ClockSource","SetOutputSource", 3, argv[1] ));
  } 
  arg3 = static_cast< OpalKellyLegacy::okCPLL22393::ClockSource >(val3);
  result = (bool)(arg1)->SetOutputSource(arg2,arg3);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}

#SetPLLLF(*args) ⇒ Object



20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20642

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

#SetPLLParameters(*args, self) ⇒ Object



20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20561

SWIGINTERN VALUE _wrap_okCPLL22393_SetPLLParameters(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[6];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 6) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCPLL22393, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_okCPLL22393_SetPLLParameters__SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCPLL22393, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            {
              int res = SWIG_AsVal_bool(argv[4], NULL);
              _v = SWIG_CheckState(res);
            }
            if (_v) {
              return _wrap_okCPLL22393_SetPLLParameters__SWIG_0(nargs, args, self);
            }
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 6, "okCPLL22393.SetPLLParameters", 
    "    bool okCPLL22393.SetPLLParameters(int n, int p, int q, bool enable)\n"
    "    bool okCPLL22393.SetPLLParameters(int n, int p, int q)\n");
  
  return Qnil;
}

#SetReference(*args) ⇒ Object



20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 20404

SWIGINTERN VALUE
_wrap_okCPLL22393_SetReference(int argc, VALUE *argv, VALUE self) {
  OpalKellyLegacy::okCPLL22393 *arg1 = (OpalKellyLegacy::okCPLL22393 *) 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__okCPLL22393, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCPLL22393 *","SetReference", 1, self )); 
  }
  arg1 = reinterpret_cast< OpalKellyLegacy::okCPLL22393 * >(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);
  (arg1)->SetReference(arg2);
  return Qnil;
fail:
  return Qnil;
}