Class: OpalKelly::OkTRegisterEntry

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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 16222

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

Instance Method Details

#address(*args) ⇒ Object



16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 16130

SWIGINTERN VALUE
_wrap_okTRegisterEntry_address_get(int argc, VALUE *argv, VALUE self) {
  okTRegisterEntry *arg1 = (okTRegisterEntry *) 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_okTRegisterEntry, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTRegisterEntry *","address", 1, self )); 
  }
  arg1 = reinterpret_cast< okTRegisterEntry * >(argp1);
  result = (UINT32) ((arg1)->address);
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}

#address=(*args) ⇒ Object



16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 16101

SWIGINTERN VALUE
_wrap_okTRegisterEntry_address_set(int argc, VALUE *argv, VALUE self) {
  okTRegisterEntry *arg1 = (okTRegisterEntry *) 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_okTRegisterEntry, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTRegisterEntry *","address", 1, self )); 
  }
  arg1 = reinterpret_cast< okTRegisterEntry * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT32","address", 2, argv[0] ));
  } 
  arg2 = static_cast< UINT32 >(val2);
  if (arg1) (arg1)->address = arg2;
  return Qnil;
fail:
  return Qnil;
}

#data(*args) ⇒ Object



16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 16183

SWIGINTERN VALUE
_wrap_okTRegisterEntry_data_get(int argc, VALUE *argv, VALUE self) {
  okTRegisterEntry *arg1 = (okTRegisterEntry *) 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_okTRegisterEntry, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTRegisterEntry *","data", 1, self )); 
  }
  arg1 = reinterpret_cast< okTRegisterEntry * >(argp1);
  result = (UINT32) ((arg1)->data);
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}

#data=(*args) ⇒ Object



16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
# File 'ext/OpalKelly/FrontPanelDLL_wrap.cxx', line 16154

SWIGINTERN VALUE
_wrap_okTRegisterEntry_data_set(int argc, VALUE *argv, VALUE self) {
  okTRegisterEntry *arg1 = (okTRegisterEntry *) 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_okTRegisterEntry, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTRegisterEntry *","data", 1, self )); 
  }
  arg1 = reinterpret_cast< okTRegisterEntry * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT32","data", 2, argv[0] ));
  } 
  arg2 = static_cast< UINT32 >(val2);
  if (arg1) (arg1)->data = arg2;
  return Qnil;
fail:
  return Qnil;
}