OpalKelly 6.0.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2199,40 +2199,41 @@ namespace Swig {
2199
2199
  #define SWIGTYPE_p_char swig_types[23]
2200
2200
  #define SWIGTYPE_p_difference_type swig_types[24]
2201
2201
  #define SWIGTYPE_p_int swig_types[25]
2202
- #define SWIGTYPE_p_okEDeviceSensorType swig_types[26]
2203
- #define SWIGTYPE_p_okEFPGAConfigurationMethod swig_types[27]
2204
- #define SWIGTYPE_p_okEFPGAVendor swig_types[28]
2205
- #define SWIGTYPE_p_okTCallbackInfo swig_types[29]
2206
- #define SWIGTYPE_p_okTDeviceInfo swig_types[30]
2207
- #define SWIGTYPE_p_okTDeviceMatchInfo swig_types[31]
2208
- #define SWIGTYPE_p_okTDeviceSensor swig_types[32]
2209
- #define SWIGTYPE_p_okTFPGAResetProfile swig_types[33]
2210
- #define SWIGTYPE_p_okTFlashLayout swig_types[34]
2211
- #define SWIGTYPE_p_okTOperationStatistics swig_types[35]
2212
- #define SWIGTYPE_p_okTRegisterEntry swig_types[36]
2213
- #define SWIGTYPE_p_okTTriggerEntry swig_types[37]
2214
- #define SWIGTYPE_p_p_void swig_types[38]
2215
- #define SWIGTYPE_p_size_type swig_types[39]
2216
- #define SWIGTYPE_p_std__allocatorT_OpalKelly__ScriptValue_t swig_types[40]
2217
- #define SWIGTYPE_p_std__allocatorT_okTDeviceSensor_t swig_types[41]
2218
- #define SWIGTYPE_p_std__allocatorT_okTRegisterEntry_t swig_types[42]
2219
- #define SWIGTYPE_p_std__allocatorT_std__string_t swig_types[43]
2220
- #define SWIGTYPE_p_std__runtime_error swig_types[44]
2221
- #define SWIGTYPE_p_std__unique_ptrT_OpalKellyLegacy__okCFrontPanel_t swig_types[45]
2222
- #define SWIGTYPE_p_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t swig_types[46]
2223
- #define SWIGTYPE_p_std__vectorT_okTDeviceSensor_std__allocatorT_okTDeviceSensor_t_t swig_types[47]
2224
- #define SWIGTYPE_p_std__vectorT_okTRegisterEntry_std__allocatorT_okTRegisterEntry_t_t swig_types[48]
2225
- #define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t swig_types[49]
2226
- #define SWIGTYPE_p_swig__ConstIterator swig_types[50]
2227
- #define SWIGTYPE_p_swig__GC_VALUE swig_types[51]
2228
- #define SWIGTYPE_p_swig__Iterator swig_types[52]
2229
- #define SWIGTYPE_p_unsigned_char swig_types[53]
2230
- #define SWIGTYPE_p_unsigned_int swig_types[54]
2231
- #define SWIGTYPE_p_unsigned_long_long swig_types[55]
2232
- #define SWIGTYPE_p_value_type swig_types[56]
2233
- #define SWIGTYPE_p_void swig_types[57]
2234
- static swig_type_info *swig_types[59];
2235
- static swig_module_info swig_module = {swig_types, 58, 0, 0, 0, 0};
2202
+ #define SWIGTYPE_p_okEBandwidthMode swig_types[26]
2203
+ #define SWIGTYPE_p_okEDeviceSensorType swig_types[27]
2204
+ #define SWIGTYPE_p_okEFPGAConfigurationMethod swig_types[28]
2205
+ #define SWIGTYPE_p_okEFPGAVendor swig_types[29]
2206
+ #define SWIGTYPE_p_okTCallbackInfo swig_types[30]
2207
+ #define SWIGTYPE_p_okTDeviceInfo swig_types[31]
2208
+ #define SWIGTYPE_p_okTDeviceMatchInfo swig_types[32]
2209
+ #define SWIGTYPE_p_okTDeviceSensor swig_types[33]
2210
+ #define SWIGTYPE_p_okTFPGAResetProfile swig_types[34]
2211
+ #define SWIGTYPE_p_okTFlashLayout swig_types[35]
2212
+ #define SWIGTYPE_p_okTOperationStatistics swig_types[36]
2213
+ #define SWIGTYPE_p_okTRegisterEntry swig_types[37]
2214
+ #define SWIGTYPE_p_okTTriggerEntry swig_types[38]
2215
+ #define SWIGTYPE_p_p_void swig_types[39]
2216
+ #define SWIGTYPE_p_size_type swig_types[40]
2217
+ #define SWIGTYPE_p_std__allocatorT_OpalKelly__ScriptValue_t swig_types[41]
2218
+ #define SWIGTYPE_p_std__allocatorT_okTDeviceSensor_t swig_types[42]
2219
+ #define SWIGTYPE_p_std__allocatorT_okTRegisterEntry_t swig_types[43]
2220
+ #define SWIGTYPE_p_std__allocatorT_std__string_t swig_types[44]
2221
+ #define SWIGTYPE_p_std__runtime_error swig_types[45]
2222
+ #define SWIGTYPE_p_std__unique_ptrT_OpalKellyLegacy__okCFrontPanel_t swig_types[46]
2223
+ #define SWIGTYPE_p_std__vectorT_OpalKelly__ScriptValue_std__allocatorT_OpalKelly__ScriptValue_t_t swig_types[47]
2224
+ #define SWIGTYPE_p_std__vectorT_okTDeviceSensor_std__allocatorT_okTDeviceSensor_t_t swig_types[48]
2225
+ #define SWIGTYPE_p_std__vectorT_okTRegisterEntry_std__allocatorT_okTRegisterEntry_t_t swig_types[49]
2226
+ #define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t swig_types[50]
2227
+ #define SWIGTYPE_p_swig__ConstIterator swig_types[51]
2228
+ #define SWIGTYPE_p_swig__GC_VALUE swig_types[52]
2229
+ #define SWIGTYPE_p_swig__Iterator swig_types[53]
2230
+ #define SWIGTYPE_p_unsigned_char swig_types[54]
2231
+ #define SWIGTYPE_p_unsigned_int swig_types[55]
2232
+ #define SWIGTYPE_p_unsigned_long_long swig_types[56]
2233
+ #define SWIGTYPE_p_value_type swig_types[57]
2234
+ #define SWIGTYPE_p_void swig_types[58]
2235
+ static swig_type_info *swig_types[60];
2236
+ static swig_module_info swig_module = {swig_types, 59, 0, 0, 0, 0};
2236
2237
  #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2237
2238
  #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2238
2239
 
@@ -5019,6 +5020,16 @@ SWIG_From_int (int value)
5019
5020
  // class names, so we bring it into scope here for the wrapper only.
5020
5021
  using namespace OpalKellyLegacy;
5021
5022
 
5023
+ // SWIG's parser doesn't see okFrontPanel.h until %include later in this file,
5024
+ // so the AXI %extend blocks below use numeric literals as default-argument
5025
+ // values rather than the macros. Catch drift at compile time.
5026
+ static_assert(OK_DEFAULT_AXI_TIMEOUT_MS == 10000,
5027
+ "OK_DEFAULT_AXI_TIMEOUT_MS changed in okFrontPanel.h; "
5028
+ "update the SWIG default arguments in FrontPanelDLL.i to match.");
5029
+ static_assert(OK_DEFAULT_AXI_BURST == 16,
5030
+ "OK_DEFAULT_AXI_BURST changed in okFrontPanel.h; "
5031
+ "update the SWIG default arguments in FrontPanelDLL.i to match.");
5032
+
5022
5033
 
5023
5034
  namespace swig {
5024
5035
  template <> struct traits< OpalKelly::ScriptValue > {
@@ -6004,13 +6015,92 @@ SWIGINTERN std::vector< okTRegisterEntry >::iterator std_vector_Sl_okTRegisterEn
6004
6015
  SWIGINTERN std::vector< okTRegisterEntry >::iterator std_vector_Sl_okTRegisterEntry_Sg__insert__SWIG_1(std::vector< okTRegisterEntry > *self,std::vector< okTRegisterEntry >::iterator pos,std::vector< okTRegisterEntry >::value_type const &x){ return self->insert(pos, x); }
6005
6016
  SWIGINTERN void std_vector_Sl_okTRegisterEntry_Sg__insert__SWIG_2(std::vector< okTRegisterEntry > *self,std::vector< okTRegisterEntry >::iterator pos,std::vector< okTRegisterEntry >::size_type n,std::vector< okTRegisterEntry >::value_type const &x){ self->insert(pos, n, x); }
6006
6017
 
6018
+ class okFrontPanelException : public std::runtime_error {
6019
+ public:
6020
+ int errorCode;
6021
+ okFrontPanelException(ErrorCode ec)
6022
+ : std::runtime_error(makeMessage(ec)), errorCode(static_cast<int>(ec)) {}
6023
+ protected:
6024
+ static std::string makeMessage(ErrorCode ec) {
6025
+ char buf[64];
6026
+ sprintf(buf, "Error %d", static_cast<int>(ec));
6027
+ return std::string(buf);
6028
+ }
6029
+ };
6030
+
6031
+
6007
6032
  void ThrowOnError(ErrorCode ec)
6008
6033
  {
6009
6034
  if (ec != ErrorCode::NoError) {
6010
- char buf[256];
6035
+ throw okFrontPanelException(ec);
6036
+ }
6037
+ }
6038
+
6039
+
6040
+ class okPyAXITransferException : public std::runtime_error {
6041
+ public:
6042
+ int errorCode;
6043
+ unsigned long long transferByteCount;
6044
+ okPyAXITransferException(ErrorCode ec, unsigned long long tbc)
6045
+ : std::runtime_error(makeMessage(ec)),
6046
+ errorCode(static_cast<int>(ec)), transferByteCount(tbc) {}
6047
+ protected:
6048
+ static std::string makeMessage(ErrorCode ec) {
6049
+ char buf[64];
6011
6050
  sprintf(buf, "Error %d", static_cast<int>(ec));
6012
- throw std::runtime_error(buf);
6051
+ return std::string(buf);
6013
6052
  }
6053
+ };
6054
+
6055
+ class okPyAXIOperationException : public okPyAXITransferException {
6056
+ public:
6057
+ unsigned long long transactionCount;
6058
+ okPyAXIOperationException(ErrorCode ec, unsigned long long tbc, unsigned long long txn)
6059
+ : okPyAXITransferException(ec, tbc), transactionCount(txn) {}
6060
+ };
6061
+
6062
+ // Thrown by the AXI %extend methods on error; caught by okExceptionHandlingCode.
6063
+ static void ThrowAXITransferOnError(ErrorCode ec, UINT64 transferByteCount) {
6064
+ if (ec != ErrorCode::NoError)
6065
+ throw okPyAXITransferException(ec, static_cast<unsigned long long>(transferByteCount));
6066
+ }
6067
+ static void ThrowAXIOperationOnError(ErrorCode ec, const okTOperationStatistics& stats) {
6068
+ if (ec != ErrorCode::NoError)
6069
+ throw okPyAXIOperationException(ec,
6070
+ static_cast<unsigned long long>(stats.TransferByteCount),
6071
+ static_cast<unsigned long long>(stats.TransactionCount));
6072
+ }
6073
+
6074
+
6075
+ // Ruby AXI exception classes (OpalKelly::AXITransferException /
6076
+ // AXIOperationException, defined in %init below) and the raise helpers that build
6077
+ // an instance carrying the statistics as attributes and raise it — the Ruby analog
6078
+ // of the Python okPySetPending* path. rb_exc_raise longjmps, so any typemap cleanup
6079
+ // after $action is skipped (like the Java early-return); the AXI buffer typemaps
6080
+ // are written to need none.
6081
+ static VALUE okRb_eAXITransferException = Qnil;
6082
+ static VALUE okRb_eAXIOperationException = Qnil;
6083
+ static VALUE okRb_eFrontPanelException = Qnil;
6084
+
6085
+ static void okRbRaiseAXITransfer(const okPyAXITransferException& e) {
6086
+ VALUE exc = rb_exc_new_cstr(okRb_eAXITransferException, e.what());
6087
+ rb_iv_set(exc, "@error_code", INT2NUM(e.errorCode));
6088
+ rb_iv_set(exc, "@transfer_byte_count", ULL2NUM(e.transferByteCount));
6089
+ rb_exc_raise(exc);
6090
+ }
6091
+ static void okRbRaiseAXIOperation(const okPyAXIOperationException& e) {
6092
+ VALUE exc = rb_exc_new_cstr(okRb_eAXIOperationException, e.what());
6093
+ rb_iv_set(exc, "@error_code", INT2NUM(e.errorCode));
6094
+ rb_iv_set(exc, "@transfer_byte_count", ULL2NUM(e.transferByteCount));
6095
+ rb_iv_set(exc, "@transaction_count", ULL2NUM(e.transactionCount));
6096
+ rb_exc_raise(exc);
6097
+ }
6098
+ // General throw path (ENG-3323): raise the typed OpalKelly::FrontPanelException carrying the
6099
+ // code (no statistics) — the general analog of okRbRaiseAXITransfer.
6100
+ static void okRbRaiseFrontPanel(const okFrontPanelException& e) {
6101
+ VALUE exc = rb_exc_new_cstr(okRb_eFrontPanelException, e.what());
6102
+ rb_iv_set(exc, "@error_code", INT2NUM(e.errorCode));
6103
+ rb_exc_raise(exc);
6014
6104
  }
6015
6105
 
6016
6106
 
@@ -6114,6 +6204,46 @@ SWIG_AsVal_double (VALUE obj, double *val)
6114
6204
 
6115
6205
  #define SWIG_From_double rb_float_new
6116
6206
 
6207
+ SWIGINTERN UINT32 OpalKellyLegacy_okCFrontPanelAXILite_Read__SWIG_0(OpalKellyLegacy::okCFrontPanelAXILite *self,UINT64 address,UINT32 timeoutMilliseconds=10000){
6208
+ UINT32 value;
6209
+ ThrowAXITransferOnError(self->Read(address, value, timeoutMilliseconds), 0);
6210
+ return value;
6211
+ }
6212
+ SWIGINTERN void OpalKellyLegacy_okCFrontPanelAXILite_Write__SWIG_0(OpalKellyLegacy::okCFrontPanelAXILite *self,UINT64 address,UINT32 value,UINT32 timeoutMilliseconds=10000){
6213
+ ThrowAXITransferOnError(self->Write(address, value, timeoutMilliseconds), 0);
6214
+ }
6215
+ SWIGINTERN UINT64 OpalKellyLegacy_okCFrontPanelAXILite_ReadBulk__SWIG_0(OpalKellyLegacy::okCFrontPanelAXILite *self,UINT64 address,VALUE words,UINT32 timeoutMilliseconds=10000){
6216
+ Check_Type(words, T_ARRAY);
6217
+ std::size_t count = (std::size_t) RARRAY_LEN(words);
6218
+ std::vector<UINT32> buf(count);
6219
+ UINT64 transferByteCount;
6220
+ ErrorCode ec = self->ReadBulk(address, buf.data(), count,
6221
+ timeoutMilliseconds, transferByteCount);
6222
+ for (std::size_t i = 0; i < count; ++i)
6223
+ rb_ary_store(words, (long)i, UINT2NUM(buf[i]));
6224
+ ThrowAXITransferOnError(ec, transferByteCount);
6225
+ return transferByteCount;
6226
+ }
6227
+ SWIGINTERN okTOperationStatistics OpalKellyLegacy_okCFrontPanelAXILite_WriteBulk__SWIG_0(OpalKellyLegacy::okCFrontPanelAXILite *self,UINT64 address,VALUE words,UINT32 timeoutMilliseconds=10000){
6228
+ Check_Type(words, T_ARRAY);
6229
+ std::size_t count = (std::size_t) RARRAY_LEN(words);
6230
+ std::vector<UINT32> buf(count);
6231
+ for (std::size_t i = 0; i < count; ++i) {
6232
+ // Enforce 32-bit register width: NUM2UINT would silently wrap a
6233
+ // negative (e.g. -1 -> 0xFFFFFFFF), so range-check explicitly and
6234
+ // raise a clear error rather than transferring surprising data.
6235
+ long long v = NUM2LL(rb_ary_entry(words, (long)i));
6236
+ if (v < 0 || v > 0xFFFFFFFFLL)
6237
+ rb_raise(rb_eRangeError,
6238
+ "AXI-Lite register value %lld out of range (must be 0..0xFFFFFFFF)", v);
6239
+ buf[i] = (UINT32) v;
6240
+ }
6241
+ okTOperationStatistics operationStats;
6242
+ ErrorCode ec = self->WriteBulk(address, buf.data(), count,
6243
+ timeoutMilliseconds, operationStats);
6244
+ ThrowAXIOperationOnError(ec, operationStats);
6245
+ return operationStats;
6246
+ }
6117
6247
 
6118
6248
  SWIGINTERNINLINE VALUE
6119
6249
  SWIG_From_unsigned_SS_char (unsigned char value)
@@ -6124,6 +6254,34 @@ SWIG_From_unsigned_SS_char (unsigned char value)
6124
6254
 
6125
6255
 
6126
6256
 
6257
+ SWIGINTERN UINT64 OpalKellyLegacy_okCFrontPanelAXIFull_Read__SWIG_0(OpalKellyLegacy::okCFrontPanelAXIFull *self,UINT64 address,char *data,int length,UINT32 burst=16,UINT32 timeoutMilliseconds=10000){
6258
+ UINT64 transferByteCount;
6259
+ ErrorCode ec = self->Read(address, (unsigned char*)data, length,
6260
+ burst, timeoutMilliseconds, transferByteCount);
6261
+ ThrowAXITransferOnError(ec, transferByteCount);
6262
+ return transferByteCount;
6263
+ }
6264
+ SWIGINTERN okTOperationStatistics OpalKellyLegacy_okCFrontPanelAXIFull_Write__SWIG_0(OpalKellyLegacy::okCFrontPanelAXIFull *self,UINT64 address,char *data,int length,UINT32 burst=16,UINT32 timeoutMilliseconds=10000){
6265
+ okTOperationStatistics operationStats;
6266
+ ErrorCode ec = self->Write(address, (const unsigned char*)data, length,
6267
+ burst, timeoutMilliseconds, operationStats);
6268
+ ThrowAXIOperationOnError(ec, operationStats);
6269
+ return operationStats;
6270
+ }
6271
+ SWIGINTERN UINT64 OpalKellyLegacy_okCFrontPanelAXIStream_Read__SWIG_0(OpalKellyLegacy::okCFrontPanelAXIStream *self,char *data,int length,UINT32 timeoutMilliseconds=10000){
6272
+ UINT64 transferByteCount;
6273
+ ErrorCode ec = self->Read((unsigned char*)data, length,
6274
+ timeoutMilliseconds, transferByteCount);
6275
+ ThrowAXITransferOnError(ec, transferByteCount);
6276
+ return transferByteCount;
6277
+ }
6278
+ SWIGINTERN UINT64 OpalKellyLegacy_okCFrontPanelAXIStream_Write__SWIG_0(OpalKellyLegacy::okCFrontPanelAXIStream *self,char *data,int length,UINT32 timeoutMilliseconds=10000){
6279
+ UINT64 transferByteCount;
6280
+ ErrorCode ec = self->Write((const unsigned char*)data, length,
6281
+ timeoutMilliseconds, transferByteCount);
6282
+ ThrowAXITransferOnError(ec, transferByteCount);
6283
+ return transferByteCount;
6284
+ }
6127
6285
  SWIGINTERN long OpalKellyLegacy_okCFPGADataPortClassic_WriteToPipeIn(OpalKellyLegacy::okCFPGADataPortClassic *self,int epAddr,char *data,int length){
6128
6286
  return(self->WriteToPipeIn(epAddr, (long)length, (unsigned char *)data));
6129
6287
  }
@@ -18912,6 +19070,165 @@ fail:
18912
19070
  }
18913
19071
 
18914
19072
 
19073
+ SWIGINTERN VALUE
19074
+ _wrap_okTDeviceInfo_supportedBandwidthModesMask_set(int argc, VALUE *argv, VALUE self) {
19075
+ okTDeviceInfo *arg1 = (okTDeviceInfo *) 0 ;
19076
+ UINT32 arg2 ;
19077
+ void *argp1 = 0 ;
19078
+ int res1 = 0 ;
19079
+ unsigned int val2 ;
19080
+ int ecode2 = 0 ;
19081
+
19082
+ if ((argc < 1) || (argc > 1)) {
19083
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
19084
+ }
19085
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceInfo, 0 | 0 );
19086
+ if (!SWIG_IsOK(res1)) {
19087
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceInfo *","supportedBandwidthModesMask", 1, self ));
19088
+ }
19089
+ arg1 = reinterpret_cast< okTDeviceInfo * >(argp1);
19090
+ ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
19091
+ if (!SWIG_IsOK(ecode2)) {
19092
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT32","supportedBandwidthModesMask", 2, argv[0] ));
19093
+ }
19094
+ arg2 = static_cast< UINT32 >(val2);
19095
+ if (arg1) (arg1)->supportedBandwidthModesMask = arg2;
19096
+ return Qnil;
19097
+ fail:
19098
+ return Qnil;
19099
+ }
19100
+
19101
+
19102
+ SWIGINTERN VALUE
19103
+ _wrap_okTDeviceInfo_supportedBandwidthModesMask_get(int argc, VALUE *argv, VALUE self) {
19104
+ okTDeviceInfo *arg1 = (okTDeviceInfo *) 0 ;
19105
+ void *argp1 = 0 ;
19106
+ int res1 = 0 ;
19107
+ UINT32 result;
19108
+ VALUE vresult = Qnil;
19109
+
19110
+ if ((argc < 0) || (argc > 0)) {
19111
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
19112
+ }
19113
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceInfo, 0 | 0 );
19114
+ if (!SWIG_IsOK(res1)) {
19115
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceInfo *","supportedBandwidthModesMask", 1, self ));
19116
+ }
19117
+ arg1 = reinterpret_cast< okTDeviceInfo * >(argp1);
19118
+ result = (UINT32) ((arg1)->supportedBandwidthModesMask);
19119
+ vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19120
+ return vresult;
19121
+ fail:
19122
+ return Qnil;
19123
+ }
19124
+
19125
+
19126
+ SWIGINTERN VALUE
19127
+ _wrap_okTDeviceInfo_family_set(int argc, VALUE *argv, VALUE self) {
19128
+ okTDeviceInfo *arg1 = (okTDeviceInfo *) 0 ;
19129
+ okEDeviceFamily arg2 ;
19130
+ void *argp1 = 0 ;
19131
+ int res1 = 0 ;
19132
+ int val2 ;
19133
+ int ecode2 = 0 ;
19134
+
19135
+ if ((argc < 1) || (argc > 1)) {
19136
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
19137
+ }
19138
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceInfo, 0 | 0 );
19139
+ if (!SWIG_IsOK(res1)) {
19140
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceInfo *","family", 1, self ));
19141
+ }
19142
+ arg1 = reinterpret_cast< okTDeviceInfo * >(argp1);
19143
+ ecode2 = SWIG_AsVal_int(argv[0], &val2);
19144
+ if (!SWIG_IsOK(ecode2)) {
19145
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "okEDeviceFamily","family", 2, argv[0] ));
19146
+ }
19147
+ arg2 = static_cast< okEDeviceFamily >(val2);
19148
+ if (arg1) (arg1)->family = arg2;
19149
+ return Qnil;
19150
+ fail:
19151
+ return Qnil;
19152
+ }
19153
+
19154
+
19155
+ SWIGINTERN VALUE
19156
+ _wrap_okTDeviceInfo_family_get(int argc, VALUE *argv, VALUE self) {
19157
+ okTDeviceInfo *arg1 = (okTDeviceInfo *) 0 ;
19158
+ void *argp1 = 0 ;
19159
+ int res1 = 0 ;
19160
+ okEDeviceFamily result;
19161
+ VALUE vresult = Qnil;
19162
+
19163
+ if ((argc < 0) || (argc > 0)) {
19164
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
19165
+ }
19166
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceInfo, 0 | 0 );
19167
+ if (!SWIG_IsOK(res1)) {
19168
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceInfo *","family", 1, self ));
19169
+ }
19170
+ arg1 = reinterpret_cast< okTDeviceInfo * >(argp1);
19171
+ result = (okEDeviceFamily) ((arg1)->family);
19172
+ vresult = SWIG_From_int(static_cast< int >(result));
19173
+ return vresult;
19174
+ fail:
19175
+ return Qnil;
19176
+ }
19177
+
19178
+
19179
+ SWIGINTERN VALUE
19180
+ _wrap_okTDeviceInfo_dataport_set(int argc, VALUE *argv, VALUE self) {
19181
+ okTDeviceInfo *arg1 = (okTDeviceInfo *) 0 ;
19182
+ okEDataport arg2 ;
19183
+ void *argp1 = 0 ;
19184
+ int res1 = 0 ;
19185
+ int val2 ;
19186
+ int ecode2 = 0 ;
19187
+
19188
+ if ((argc < 1) || (argc > 1)) {
19189
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
19190
+ }
19191
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceInfo, 0 | 0 );
19192
+ if (!SWIG_IsOK(res1)) {
19193
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceInfo *","dataport", 1, self ));
19194
+ }
19195
+ arg1 = reinterpret_cast< okTDeviceInfo * >(argp1);
19196
+ ecode2 = SWIG_AsVal_int(argv[0], &val2);
19197
+ if (!SWIG_IsOK(ecode2)) {
19198
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "okEDataport","dataport", 2, argv[0] ));
19199
+ }
19200
+ arg2 = static_cast< okEDataport >(val2);
19201
+ if (arg1) (arg1)->dataport = arg2;
19202
+ return Qnil;
19203
+ fail:
19204
+ return Qnil;
19205
+ }
19206
+
19207
+
19208
+ SWIGINTERN VALUE
19209
+ _wrap_okTDeviceInfo_dataport_get(int argc, VALUE *argv, VALUE self) {
19210
+ okTDeviceInfo *arg1 = (okTDeviceInfo *) 0 ;
19211
+ void *argp1 = 0 ;
19212
+ int res1 = 0 ;
19213
+ okEDataport result;
19214
+ VALUE vresult = Qnil;
19215
+
19216
+ if ((argc < 0) || (argc > 0)) {
19217
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
19218
+ }
19219
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_okTDeviceInfo, 0 | 0 );
19220
+ if (!SWIG_IsOK(res1)) {
19221
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "okTDeviceInfo *","dataport", 1, self ));
19222
+ }
19223
+ arg1 = reinterpret_cast< okTDeviceInfo * >(argp1);
19224
+ result = (okEDataport) ((arg1)->dataport);
19225
+ vresult = SWIG_From_int(static_cast< int >(result));
19226
+ return vresult;
19227
+ fail:
19228
+ return Qnil;
19229
+ }
19230
+
19231
+
18915
19232
  SWIGINTERN VALUE
18916
19233
  #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
18917
19234
  _wrap_okTDeviceInfo_allocate(VALUE self)
@@ -21223,49 +21540,22 @@ fail:
21223
21540
  static swig_class SwigClassOkCFrontPanelAXILite;
21224
21541
 
21225
21542
  SWIGINTERN VALUE
21226
- _wrap_okCFrontPanelAXILite_Read__SWIG_0(int argc, VALUE *argv, VALUE self) {
21543
+ _wrap_okCFrontPanelAXILite_Reset(int argc, VALUE *argv, VALUE self) {
21227
21544
  OpalKellyLegacy::okCFrontPanelAXILite *arg1 = (OpalKellyLegacy::okCFrontPanelAXILite *) 0 ;
21228
- UINT64 arg2 ;
21229
- UINT32 *arg3 = 0 ;
21230
- UINT32 arg4 ;
21231
21545
  void *argp1 = 0 ;
21232
21546
  int res1 = 0 ;
21233
- unsigned long long val2 ;
21234
- int ecode2 = 0 ;
21235
- void *argp3 = 0 ;
21236
- int res3 = 0 ;
21237
- unsigned int val4 ;
21238
- int ecode4 = 0 ;
21239
21547
  OpalKellyLegacy::ErrorCode result;
21240
21548
  VALUE vresult = Qnil;
21241
21549
 
21242
- if ((argc < 3) || (argc > 3)) {
21243
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
21550
+ if ((argc < 0) || (argc > 0)) {
21551
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
21244
21552
  }
21245
21553
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0 | 0 );
21246
21554
  if (!SWIG_IsOK(res1)) {
21247
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","Read", 1, self ));
21555
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","Reset", 1, self ));
21248
21556
  }
21249
21557
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXILite * >(argp1);
21250
- ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
21251
- if (!SWIG_IsOK(ecode2)) {
21252
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","Read", 2, argv[0] ));
21253
- }
21254
- arg2 = static_cast< UINT64 >(val2);
21255
- res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_unsigned_int, 0 );
21256
- if (!SWIG_IsOK(res3)) {
21257
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "UINT32 &","Read", 3, argv[1] ));
21258
- }
21259
- if (!argp3) {
21260
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "UINT32 &","Read", 3, argv[1]));
21261
- }
21262
- arg3 = reinterpret_cast< UINT32 * >(argp3);
21263
- ecode4 = SWIG_AsVal_unsigned_SS_int(argv[2], &val4);
21264
- if (!SWIG_IsOK(ecode4)) {
21265
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "UINT32","Read", 4, argv[2] ));
21266
- }
21267
- arg4 = static_cast< UINT32 >(val4);
21268
- result = (OpalKellyLegacy::ErrorCode)(arg1)->Read(arg2,*arg3,arg4);
21558
+ result = (OpalKellyLegacy::ErrorCode)(arg1)->Reset();
21269
21559
  vresult = SWIG_From_int(static_cast< int >(result));
21270
21560
  return vresult;
21271
21561
  fail:
@@ -21274,47 +21564,56 @@ fail:
21274
21564
 
21275
21565
 
21276
21566
  SWIGINTERN VALUE
21277
- _wrap_okCFrontPanelAXILite_Write__SWIG_0(int argc, VALUE *argv, VALUE self) {
21567
+ _wrap_okCFrontPanelAXILite_Read__SWIG_0(int argc, VALUE *argv, VALUE self) {
21278
21568
  OpalKellyLegacy::okCFrontPanelAXILite *arg1 = (OpalKellyLegacy::okCFrontPanelAXILite *) 0 ;
21279
21569
  UINT64 arg2 ;
21280
21570
  UINT32 arg3 ;
21281
- UINT32 arg4 ;
21282
21571
  void *argp1 = 0 ;
21283
21572
  int res1 = 0 ;
21284
21573
  unsigned long long val2 ;
21285
21574
  int ecode2 = 0 ;
21286
21575
  unsigned int val3 ;
21287
21576
  int ecode3 = 0 ;
21288
- unsigned int val4 ;
21289
- int ecode4 = 0 ;
21290
- OpalKellyLegacy::ErrorCode result;
21577
+ UINT32 result;
21291
21578
  VALUE vresult = Qnil;
21292
21579
 
21293
- if ((argc < 3) || (argc > 3)) {
21294
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
21580
+ if ((argc < 2) || (argc > 2)) {
21581
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
21295
21582
  }
21296
21583
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0 | 0 );
21297
21584
  if (!SWIG_IsOK(res1)) {
21298
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","Write", 1, self ));
21585
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","Read", 1, self ));
21299
21586
  }
21300
21587
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXILite * >(argp1);
21301
21588
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
21302
21589
  if (!SWIG_IsOK(ecode2)) {
21303
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","Write", 2, argv[0] ));
21590
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","Read", 2, argv[0] ));
21304
21591
  }
21305
21592
  arg2 = static_cast< UINT64 >(val2);
21306
21593
  ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3);
21307
21594
  if (!SWIG_IsOK(ecode3)) {
21308
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "UINT32","Write", 3, argv[1] ));
21595
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "UINT32","Read", 3, argv[1] ));
21309
21596
  }
21310
21597
  arg3 = static_cast< UINT32 >(val3);
21311
- ecode4 = SWIG_AsVal_unsigned_SS_int(argv[2], &val4);
21312
- if (!SWIG_IsOK(ecode4)) {
21313
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "UINT32","Write", 4, argv[2] ));
21314
- }
21315
- arg4 = static_cast< UINT32 >(val4);
21316
- result = (OpalKellyLegacy::ErrorCode)(arg1)->Write(arg2,arg3,arg4);
21317
- vresult = SWIG_From_int(static_cast< int >(result));
21598
+ {
21599
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
21600
+ result = (UINT32)OpalKellyLegacy_okCFrontPanelAXILite_Read__SWIG_0(arg1,arg2,arg3);
21601
+ } catch (const okPyAXIOperationException& e) {
21602
+ okRbRaiseAXIOperation(e);
21603
+ goto fail;
21604
+ } catch (const okPyAXITransferException& e) {
21605
+ okRbRaiseAXITransfer(e);
21606
+ goto fail;
21607
+ } catch (const okFrontPanelException& e) {
21608
+ okRbRaiseFrontPanel(e);
21609
+ goto fail;
21610
+ } catch (const std::exception& e) {
21611
+ SWIG_Error(SWIG_RuntimeError, e.what());
21612
+ goto fail;
21613
+ }
21614
+ /*@SWIG@*/
21615
+ }
21616
+ vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
21318
21617
  return vresult;
21319
21618
  fail:
21320
21619
  return Qnil;
@@ -21322,183 +21621,228 @@ fail:
21322
21621
 
21323
21622
 
21324
21623
  SWIGINTERN VALUE
21325
- _wrap_okCFrontPanelAXILite_ReadBulk__SWIG_0(int argc, VALUE *argv, VALUE self) {
21624
+ _wrap_okCFrontPanelAXILite_Read__SWIG_1(int argc, VALUE *argv, VALUE self) {
21326
21625
  OpalKellyLegacy::okCFrontPanelAXILite *arg1 = (OpalKellyLegacy::okCFrontPanelAXILite *) 0 ;
21327
21626
  UINT64 arg2 ;
21328
- UINT32 *arg3 = (UINT32 *) 0 ;
21329
- std::size_t arg4 ;
21330
- UINT32 arg5 ;
21331
- UINT64 *arg6 = 0 ;
21332
21627
  void *argp1 = 0 ;
21333
21628
  int res1 = 0 ;
21334
21629
  unsigned long long val2 ;
21335
21630
  int ecode2 = 0 ;
21336
- void *argp3 = 0 ;
21337
- int res3 = 0 ;
21338
- size_t val4 ;
21339
- int ecode4 = 0 ;
21340
- unsigned int val5 ;
21341
- int ecode5 = 0 ;
21342
- void *argp6 = 0 ;
21343
- int res6 = 0 ;
21344
- OpalKellyLegacy::ErrorCode result;
21631
+ UINT32 result;
21345
21632
  VALUE vresult = Qnil;
21346
21633
 
21347
- if ((argc < 5) || (argc > 5)) {
21348
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
21634
+ if ((argc < 1) || (argc > 1)) {
21635
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
21349
21636
  }
21350
21637
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0 | 0 );
21351
21638
  if (!SWIG_IsOK(res1)) {
21352
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","ReadBulk", 1, self ));
21639
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","Read", 1, self ));
21353
21640
  }
21354
21641
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXILite * >(argp1);
21355
21642
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
21356
21643
  if (!SWIG_IsOK(ecode2)) {
21357
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","ReadBulk", 2, argv[0] ));
21644
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","Read", 2, argv[0] ));
21358
21645
  }
21359
21646
  arg2 = static_cast< UINT64 >(val2);
21360
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_unsigned_int, 0 | 0 );
21361
- if (!SWIG_IsOK(res3)) {
21362
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "UINT32 *","ReadBulk", 3, argv[1] ));
21647
+ {
21648
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
21649
+ result = (UINT32)OpalKellyLegacy_okCFrontPanelAXILite_Read__SWIG_0(arg1,arg2);
21650
+ } catch (const okPyAXIOperationException& e) {
21651
+ okRbRaiseAXIOperation(e);
21652
+ goto fail;
21653
+ } catch (const okPyAXITransferException& e) {
21654
+ okRbRaiseAXITransfer(e);
21655
+ goto fail;
21656
+ } catch (const okFrontPanelException& e) {
21657
+ okRbRaiseFrontPanel(e);
21658
+ goto fail;
21659
+ } catch (const std::exception& e) {
21660
+ SWIG_Error(SWIG_RuntimeError, e.what());
21661
+ goto fail;
21662
+ }
21663
+ /*@SWIG@*/
21363
21664
  }
21364
- arg3 = reinterpret_cast< UINT32 * >(argp3);
21365
- ecode4 = SWIG_AsVal_size_t(argv[2], &val4);
21366
- if (!SWIG_IsOK(ecode4)) {
21367
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "std::size_t","ReadBulk", 4, argv[2] ));
21368
- }
21369
- arg4 = static_cast< std::size_t >(val4);
21370
- ecode5 = SWIG_AsVal_unsigned_SS_int(argv[3], &val5);
21371
- if (!SWIG_IsOK(ecode5)) {
21372
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "UINT32","ReadBulk", 5, argv[3] ));
21373
- }
21374
- arg5 = static_cast< UINT32 >(val5);
21375
- res6 = SWIG_ConvertPtr(argv[4], &argp6, SWIGTYPE_p_unsigned_long_long, 0 );
21376
- if (!SWIG_IsOK(res6)) {
21377
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "UINT64 &","ReadBulk", 6, argv[4] ));
21665
+ vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
21666
+ return vresult;
21667
+ fail:
21668
+ return Qnil;
21669
+ }
21670
+
21671
+
21672
+ SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_Read(int nargs, VALUE *args, VALUE self) {
21673
+ int argc;
21674
+ VALUE argv[4];
21675
+ int ii;
21676
+
21677
+ argc = nargs + 1;
21678
+ argv[0] = self;
21679
+ if (argc > 4) SWIG_fail;
21680
+ for (ii = 1; (ii < argc); ++ii) {
21681
+ argv[ii] = args[ii-1];
21378
21682
  }
21379
- if (!argp6) {
21380
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "UINT64 &","ReadBulk", 6, argv[4]));
21683
+ if (argc == 2) {
21684
+ int _v;
21685
+ void *vptr = 0;
21686
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0);
21687
+ _v = SWIG_CheckState(res);
21688
+ if (_v) {
21689
+ {
21690
+ int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL);
21691
+ _v = SWIG_CheckState(res);
21692
+ }
21693
+ if (_v) {
21694
+ return _wrap_okCFrontPanelAXILite_Read__SWIG_1(nargs, args, self);
21695
+ }
21696
+ }
21381
21697
  }
21382
- arg6 = reinterpret_cast< UINT64 * >(argp6);
21383
- result = (OpalKellyLegacy::ErrorCode)(arg1)->ReadBulk(arg2,arg3,arg4,arg5,*arg6);
21384
- vresult = SWIG_From_int(static_cast< int >(result));
21385
- return vresult;
21698
+ if (argc == 3) {
21699
+ int _v;
21700
+ void *vptr = 0;
21701
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0);
21702
+ _v = SWIG_CheckState(res);
21703
+ if (_v) {
21704
+ {
21705
+ int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL);
21706
+ _v = SWIG_CheckState(res);
21707
+ }
21708
+ if (_v) {
21709
+ {
21710
+ int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
21711
+ _v = SWIG_CheckState(res);
21712
+ }
21713
+ if (_v) {
21714
+ return _wrap_okCFrontPanelAXILite_Read__SWIG_0(nargs, args, self);
21715
+ }
21716
+ }
21717
+ }
21718
+ }
21719
+
21386
21720
  fail:
21721
+ Ruby_Format_OverloadedError( argc, 4, "Read",
21722
+ " UINT32 Read(UINT64 address, UINT32 timeoutMilliseconds)\n"
21723
+ " UINT32 Read(UINT64 address)\n");
21724
+
21387
21725
  return Qnil;
21388
21726
  }
21389
21727
 
21390
21728
 
21391
21729
  SWIGINTERN VALUE
21392
- _wrap_okCFrontPanelAXILite_WriteBulk__SWIG_0(int argc, VALUE *argv, VALUE self) {
21730
+ _wrap_okCFrontPanelAXILite_Write__SWIG_0(int argc, VALUE *argv, VALUE self) {
21393
21731
  OpalKellyLegacy::okCFrontPanelAXILite *arg1 = (OpalKellyLegacy::okCFrontPanelAXILite *) 0 ;
21394
21732
  UINT64 arg2 ;
21395
- UINT32 *arg3 = (UINT32 *) 0 ;
21396
- std::size_t arg4 ;
21397
- UINT32 arg5 ;
21398
- okTOperationStatistics *arg6 = 0 ;
21733
+ UINT32 arg3 ;
21734
+ UINT32 arg4 ;
21399
21735
  void *argp1 = 0 ;
21400
21736
  int res1 = 0 ;
21401
21737
  unsigned long long val2 ;
21402
21738
  int ecode2 = 0 ;
21403
- void *argp3 = 0 ;
21404
- int res3 = 0 ;
21405
- size_t val4 ;
21739
+ unsigned int val3 ;
21740
+ int ecode3 = 0 ;
21741
+ unsigned int val4 ;
21406
21742
  int ecode4 = 0 ;
21407
- unsigned int val5 ;
21408
- int ecode5 = 0 ;
21409
- void *argp6 = 0 ;
21410
- int res6 = 0 ;
21411
- OpalKellyLegacy::ErrorCode result;
21412
- VALUE vresult = Qnil;
21413
21743
 
21414
- if ((argc < 5) || (argc > 5)) {
21415
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
21744
+ if ((argc < 3) || (argc > 3)) {
21745
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
21416
21746
  }
21417
21747
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0 | 0 );
21418
21748
  if (!SWIG_IsOK(res1)) {
21419
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","WriteBulk", 1, self ));
21749
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","Write", 1, self ));
21420
21750
  }
21421
21751
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXILite * >(argp1);
21422
21752
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
21423
21753
  if (!SWIG_IsOK(ecode2)) {
21424
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","WriteBulk", 2, argv[0] ));
21754
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","Write", 2, argv[0] ));
21425
21755
  }
21426
21756
  arg2 = static_cast< UINT64 >(val2);
21427
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_unsigned_int, 0 | 0 );
21428
- if (!SWIG_IsOK(res3)) {
21429
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "UINT32 const *","WriteBulk", 3, argv[1] ));
21430
- }
21431
- arg3 = reinterpret_cast< UINT32 * >(argp3);
21432
- ecode4 = SWIG_AsVal_size_t(argv[2], &val4);
21433
- if (!SWIG_IsOK(ecode4)) {
21434
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "std::size_t","WriteBulk", 4, argv[2] ));
21757
+ ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3);
21758
+ if (!SWIG_IsOK(ecode3)) {
21759
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "UINT32","Write", 3, argv[1] ));
21435
21760
  }
21436
- arg4 = static_cast< std::size_t >(val4);
21437
- ecode5 = SWIG_AsVal_unsigned_SS_int(argv[3], &val5);
21438
- if (!SWIG_IsOK(ecode5)) {
21439
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "UINT32","WriteBulk", 5, argv[3] ));
21761
+ arg3 = static_cast< UINT32 >(val3);
21762
+ ecode4 = SWIG_AsVal_unsigned_SS_int(argv[2], &val4);
21763
+ if (!SWIG_IsOK(ecode4)) {
21764
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "UINT32","Write", 4, argv[2] ));
21440
21765
  }
21441
- arg5 = static_cast< UINT32 >(val5);
21442
- res6 = SWIG_ConvertPtr(argv[4], &argp6, SWIGTYPE_p_okTOperationStatistics, 0 );
21443
- if (!SWIG_IsOK(res6)) {
21444
- SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "okTOperationStatistics &","WriteBulk", 6, argv[4] ));
21445
- }
21446
- if (!argp6) {
21447
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "okTOperationStatistics &","WriteBulk", 6, argv[4]));
21766
+ arg4 = static_cast< UINT32 >(val4);
21767
+ {
21768
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
21769
+ OpalKellyLegacy_okCFrontPanelAXILite_Write__SWIG_0(arg1,arg2,arg3,arg4);
21770
+ } catch (const okPyAXIOperationException& e) {
21771
+ okRbRaiseAXIOperation(e);
21772
+ goto fail;
21773
+ } catch (const okPyAXITransferException& e) {
21774
+ okRbRaiseAXITransfer(e);
21775
+ goto fail;
21776
+ } catch (const okFrontPanelException& e) {
21777
+ okRbRaiseFrontPanel(e);
21778
+ goto fail;
21779
+ } catch (const std::exception& e) {
21780
+ SWIG_Error(SWIG_RuntimeError, e.what());
21781
+ goto fail;
21782
+ }
21783
+ /*@SWIG@*/
21448
21784
  }
21449
- arg6 = reinterpret_cast< okTOperationStatistics * >(argp6);
21450
- result = (OpalKellyLegacy::ErrorCode)(arg1)->WriteBulk(arg2,(UINT32 const *)arg3,arg4,arg5,*arg6);
21451
- vresult = SWIG_From_int(static_cast< int >(result));
21452
- return vresult;
21785
+ return Qnil;
21453
21786
  fail:
21454
21787
  return Qnil;
21455
21788
  }
21456
21789
 
21457
21790
 
21458
21791
  SWIGINTERN VALUE
21459
- _wrap_okCFrontPanelAXILite_Read__SWIG_1(int argc, VALUE *argv, VALUE self) {
21792
+ _wrap_okCFrontPanelAXILite_Write__SWIG_1(int argc, VALUE *argv, VALUE self) {
21460
21793
  OpalKellyLegacy::okCFrontPanelAXILite *arg1 = (OpalKellyLegacy::okCFrontPanelAXILite *) 0 ;
21461
21794
  UINT64 arg2 ;
21462
- UINT32 *arg3 = 0 ;
21795
+ UINT32 arg3 ;
21463
21796
  void *argp1 = 0 ;
21464
21797
  int res1 = 0 ;
21465
21798
  unsigned long long val2 ;
21466
21799
  int ecode2 = 0 ;
21467
- void *argp3 = 0 ;
21468
- int res3 = 0 ;
21469
- OpalKellyLegacy::ErrorCode result;
21470
- VALUE vresult = Qnil;
21800
+ unsigned int val3 ;
21801
+ int ecode3 = 0 ;
21471
21802
 
21472
21803
  if ((argc < 2) || (argc > 2)) {
21473
21804
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
21474
21805
  }
21475
21806
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0 | 0 );
21476
21807
  if (!SWIG_IsOK(res1)) {
21477
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","Read", 1, self ));
21808
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","Write", 1, self ));
21478
21809
  }
21479
21810
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXILite * >(argp1);
21480
21811
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
21481
21812
  if (!SWIG_IsOK(ecode2)) {
21482
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","Read", 2, argv[0] ));
21813
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","Write", 2, argv[0] ));
21483
21814
  }
21484
21815
  arg2 = static_cast< UINT64 >(val2);
21485
- res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_unsigned_int, 0 );
21486
- if (!SWIG_IsOK(res3)) {
21487
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "UINT32 &","Read", 3, argv[1] ));
21488
- }
21489
- if (!argp3) {
21490
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "UINT32 &","Read", 3, argv[1]));
21816
+ ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3);
21817
+ if (!SWIG_IsOK(ecode3)) {
21818
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "UINT32","Write", 3, argv[1] ));
21819
+ }
21820
+ arg3 = static_cast< UINT32 >(val3);
21821
+ {
21822
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
21823
+ OpalKellyLegacy_okCFrontPanelAXILite_Write__SWIG_0(arg1,arg2,arg3);
21824
+ } catch (const okPyAXIOperationException& e) {
21825
+ okRbRaiseAXIOperation(e);
21826
+ goto fail;
21827
+ } catch (const okPyAXITransferException& e) {
21828
+ okRbRaiseAXITransfer(e);
21829
+ goto fail;
21830
+ } catch (const okFrontPanelException& e) {
21831
+ okRbRaiseFrontPanel(e);
21832
+ goto fail;
21833
+ } catch (const std::exception& e) {
21834
+ SWIG_Error(SWIG_RuntimeError, e.what());
21835
+ goto fail;
21836
+ }
21837
+ /*@SWIG@*/
21491
21838
  }
21492
- arg3 = reinterpret_cast< UINT32 * >(argp3);
21493
- result = (OpalKellyLegacy::ErrorCode)(arg1)->Read(arg2,*arg3);
21494
- vresult = SWIG_From_int(static_cast< int >(result));
21495
- return vresult;
21839
+ return Qnil;
21496
21840
  fail:
21497
21841
  return Qnil;
21498
21842
  }
21499
21843
 
21500
21844
 
21501
- SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_Read(int nargs, VALUE *args, VALUE self) {
21845
+ SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_Write(int nargs, VALUE *args, VALUE self) {
21502
21846
  int argc;
21503
21847
  VALUE argv[5];
21504
21848
  int ii;
@@ -21520,11 +21864,12 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_Read(int nargs, VALUE *args, VALUE s
21520
21864
  _v = SWIG_CheckState(res);
21521
21865
  }
21522
21866
  if (_v) {
21523
- void *vptr = 0;
21524
- int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_int, SWIG_POINTER_NO_NULL);
21525
- _v = SWIG_CheckState(res);
21867
+ {
21868
+ int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
21869
+ _v = SWIG_CheckState(res);
21870
+ }
21526
21871
  if (_v) {
21527
- return _wrap_okCFrontPanelAXILite_Read__SWIG_1(nargs, args, self);
21872
+ return _wrap_okCFrontPanelAXILite_Write__SWIG_1(nargs, args, self);
21528
21873
  }
21529
21874
  }
21530
21875
  }
@@ -21540,16 +21885,17 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_Read(int nargs, VALUE *args, VALUE s
21540
21885
  _v = SWIG_CheckState(res);
21541
21886
  }
21542
21887
  if (_v) {
21543
- void *vptr = 0;
21544
- int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_int, SWIG_POINTER_NO_NULL);
21545
- _v = SWIG_CheckState(res);
21888
+ {
21889
+ int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
21890
+ _v = SWIG_CheckState(res);
21891
+ }
21546
21892
  if (_v) {
21547
21893
  {
21548
21894
  int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
21549
21895
  _v = SWIG_CheckState(res);
21550
21896
  }
21551
21897
  if (_v) {
21552
- return _wrap_okCFrontPanelAXILite_Read__SWIG_0(nargs, args, self);
21898
+ return _wrap_okCFrontPanelAXILite_Write__SWIG_0(nargs, args, self);
21553
21899
  }
21554
21900
  }
21555
21901
  }
@@ -21557,26 +21903,83 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_Read(int nargs, VALUE *args, VALUE s
21557
21903
  }
21558
21904
 
21559
21905
  fail:
21560
- Ruby_Format_OverloadedError( argc, 5, "okCFrontPanelAXILite.Read",
21561
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXILite.Read(UINT64 address, UINT32 &value, UINT32 timeoutMilliseconds)\n"
21562
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXILite.Read(UINT64 address, UINT32 &value)\n");
21906
+ Ruby_Format_OverloadedError( argc, 5, "Write",
21907
+ " void Write(UINT64 address, UINT32 value, UINT32 timeoutMilliseconds)\n"
21908
+ " void Write(UINT64 address, UINT32 value)\n");
21563
21909
 
21564
21910
  return Qnil;
21565
21911
  }
21566
21912
 
21567
21913
 
21568
21914
  SWIGINTERN VALUE
21569
- _wrap_okCFrontPanelAXILite_Write__SWIG_1(int argc, VALUE *argv, VALUE self) {
21915
+ _wrap_okCFrontPanelAXILite_ReadBulk__SWIG_0(int argc, VALUE *argv, VALUE self) {
21570
21916
  OpalKellyLegacy::okCFrontPanelAXILite *arg1 = (OpalKellyLegacy::okCFrontPanelAXILite *) 0 ;
21571
21917
  UINT64 arg2 ;
21572
- UINT32 arg3 ;
21918
+ VALUE arg3 = (VALUE) 0 ;
21919
+ UINT32 arg4 ;
21573
21920
  void *argp1 = 0 ;
21574
21921
  int res1 = 0 ;
21575
21922
  unsigned long long val2 ;
21576
21923
  int ecode2 = 0 ;
21577
- unsigned int val3 ;
21578
- int ecode3 = 0 ;
21579
- OpalKellyLegacy::ErrorCode result;
21924
+ unsigned int val4 ;
21925
+ int ecode4 = 0 ;
21926
+ UINT64 result;
21927
+ VALUE vresult = Qnil;
21928
+
21929
+ if ((argc < 3) || (argc > 3)) {
21930
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
21931
+ }
21932
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0 | 0 );
21933
+ if (!SWIG_IsOK(res1)) {
21934
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","ReadBulk", 1, self ));
21935
+ }
21936
+ arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXILite * >(argp1);
21937
+ ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
21938
+ if (!SWIG_IsOK(ecode2)) {
21939
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","ReadBulk", 2, argv[0] ));
21940
+ }
21941
+ arg2 = static_cast< UINT64 >(val2);
21942
+ arg3 = argv[1];
21943
+ ecode4 = SWIG_AsVal_unsigned_SS_int(argv[2], &val4);
21944
+ if (!SWIG_IsOK(ecode4)) {
21945
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "UINT32","ReadBulk", 4, argv[2] ));
21946
+ }
21947
+ arg4 = static_cast< UINT32 >(val4);
21948
+ {
21949
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
21950
+ result = (UINT64)OpalKellyLegacy_okCFrontPanelAXILite_ReadBulk__SWIG_0(arg1,arg2,arg3,arg4);
21951
+ } catch (const okPyAXIOperationException& e) {
21952
+ okRbRaiseAXIOperation(e);
21953
+ goto fail;
21954
+ } catch (const okPyAXITransferException& e) {
21955
+ okRbRaiseAXITransfer(e);
21956
+ goto fail;
21957
+ } catch (const okFrontPanelException& e) {
21958
+ okRbRaiseFrontPanel(e);
21959
+ goto fail;
21960
+ } catch (const std::exception& e) {
21961
+ SWIG_Error(SWIG_RuntimeError, e.what());
21962
+ goto fail;
21963
+ }
21964
+ /*@SWIG@*/
21965
+ }
21966
+ vresult = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
21967
+ return vresult;
21968
+ fail:
21969
+ return Qnil;
21970
+ }
21971
+
21972
+
21973
+ SWIGINTERN VALUE
21974
+ _wrap_okCFrontPanelAXILite_ReadBulk__SWIG_1(int argc, VALUE *argv, VALUE self) {
21975
+ OpalKellyLegacy::okCFrontPanelAXILite *arg1 = (OpalKellyLegacy::okCFrontPanelAXILite *) 0 ;
21976
+ UINT64 arg2 ;
21977
+ VALUE arg3 = (VALUE) 0 ;
21978
+ void *argp1 = 0 ;
21979
+ int res1 = 0 ;
21980
+ unsigned long long val2 ;
21981
+ int ecode2 = 0 ;
21982
+ UINT64 result;
21580
21983
  VALUE vresult = Qnil;
21581
21984
 
21582
21985
  if ((argc < 2) || (argc > 2)) {
@@ -21584,28 +21987,41 @@ _wrap_okCFrontPanelAXILite_Write__SWIG_1(int argc, VALUE *argv, VALUE self) {
21584
21987
  }
21585
21988
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0 | 0 );
21586
21989
  if (!SWIG_IsOK(res1)) {
21587
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","Write", 1, self ));
21990
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","ReadBulk", 1, self ));
21588
21991
  }
21589
21992
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXILite * >(argp1);
21590
21993
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
21591
21994
  if (!SWIG_IsOK(ecode2)) {
21592
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","Write", 2, argv[0] ));
21995
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","ReadBulk", 2, argv[0] ));
21593
21996
  }
21594
21997
  arg2 = static_cast< UINT64 >(val2);
21595
- ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3);
21596
- if (!SWIG_IsOK(ecode3)) {
21597
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "UINT32","Write", 3, argv[1] ));
21598
- }
21599
- arg3 = static_cast< UINT32 >(val3);
21600
- result = (OpalKellyLegacy::ErrorCode)(arg1)->Write(arg2,arg3);
21601
- vresult = SWIG_From_int(static_cast< int >(result));
21998
+ arg3 = argv[1];
21999
+ {
22000
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
22001
+ result = (UINT64)OpalKellyLegacy_okCFrontPanelAXILite_ReadBulk__SWIG_0(arg1,arg2,arg3);
22002
+ } catch (const okPyAXIOperationException& e) {
22003
+ okRbRaiseAXIOperation(e);
22004
+ goto fail;
22005
+ } catch (const okPyAXITransferException& e) {
22006
+ okRbRaiseAXITransfer(e);
22007
+ goto fail;
22008
+ } catch (const okFrontPanelException& e) {
22009
+ okRbRaiseFrontPanel(e);
22010
+ goto fail;
22011
+ } catch (const std::exception& e) {
22012
+ SWIG_Error(SWIG_RuntimeError, e.what());
22013
+ goto fail;
22014
+ }
22015
+ /*@SWIG@*/
22016
+ }
22017
+ vresult = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
21602
22018
  return vresult;
21603
22019
  fail:
21604
22020
  return Qnil;
21605
22021
  }
21606
22022
 
21607
22023
 
21608
- SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_Write(int nargs, VALUE *args, VALUE self) {
22024
+ SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_ReadBulk(int nargs, VALUE *args, VALUE self) {
21609
22025
  int argc;
21610
22026
  VALUE argv[5];
21611
22027
  int ii;
@@ -21627,12 +22043,9 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_Write(int nargs, VALUE *args, VALUE
21627
22043
  _v = SWIG_CheckState(res);
21628
22044
  }
21629
22045
  if (_v) {
21630
- {
21631
- int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
21632
- _v = SWIG_CheckState(res);
21633
- }
22046
+ _v = (argv[2] != 0);
21634
22047
  if (_v) {
21635
- return _wrap_okCFrontPanelAXILite_Write__SWIG_1(nargs, args, self);
22048
+ return _wrap_okCFrontPanelAXILite_ReadBulk__SWIG_1(nargs, args, self);
21636
22049
  }
21637
22050
  }
21638
22051
  }
@@ -21648,17 +22061,14 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_Write(int nargs, VALUE *args, VALUE
21648
22061
  _v = SWIG_CheckState(res);
21649
22062
  }
21650
22063
  if (_v) {
21651
- {
21652
- int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
21653
- _v = SWIG_CheckState(res);
21654
- }
22064
+ _v = (argv[2] != 0);
21655
22065
  if (_v) {
21656
22066
  {
21657
22067
  int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
21658
22068
  _v = SWIG_CheckState(res);
21659
22069
  }
21660
22070
  if (_v) {
21661
- return _wrap_okCFrontPanelAXILite_Write__SWIG_0(nargs, args, self);
22071
+ return _wrap_okCFrontPanelAXILite_ReadBulk__SWIG_0(nargs, args, self);
21662
22072
  }
21663
22073
  }
21664
22074
  }
@@ -21666,158 +22076,69 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_Write(int nargs, VALUE *args, VALUE
21666
22076
  }
21667
22077
 
21668
22078
  fail:
21669
- Ruby_Format_OverloadedError( argc, 5, "okCFrontPanelAXILite.Write",
21670
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXILite.Write(UINT64 address, UINT32 value, UINT32 timeoutMilliseconds)\n"
21671
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXILite.Write(UINT64 address, UINT32 value)\n");
22079
+ Ruby_Format_OverloadedError( argc, 5, "ReadBulk",
22080
+ " UINT64 ReadBulk(UINT64 address, VALUE words, UINT32 timeoutMilliseconds)\n"
22081
+ " UINT64 ReadBulk(UINT64 address, VALUE words)\n");
21672
22082
 
21673
22083
  return Qnil;
21674
22084
  }
21675
22085
 
21676
22086
 
21677
22087
  SWIGINTERN VALUE
21678
- _wrap_okCFrontPanelAXILite_ReadBulk__SWIG_1(int argc, VALUE *argv, VALUE self) {
22088
+ _wrap_okCFrontPanelAXILite_WriteBulk__SWIG_0(int argc, VALUE *argv, VALUE self) {
21679
22089
  OpalKellyLegacy::okCFrontPanelAXILite *arg1 = (OpalKellyLegacy::okCFrontPanelAXILite *) 0 ;
21680
22090
  UINT64 arg2 ;
21681
- UINT32 *arg3 = (UINT32 *) 0 ;
21682
- std::size_t arg4 ;
21683
- UINT64 *arg5 = 0 ;
22091
+ VALUE arg3 = (VALUE) 0 ;
22092
+ UINT32 arg4 ;
21684
22093
  void *argp1 = 0 ;
21685
22094
  int res1 = 0 ;
21686
22095
  unsigned long long val2 ;
21687
22096
  int ecode2 = 0 ;
21688
- void *argp3 = 0 ;
21689
- int res3 = 0 ;
21690
- size_t val4 ;
22097
+ unsigned int val4 ;
21691
22098
  int ecode4 = 0 ;
21692
- void *argp5 = 0 ;
21693
- int res5 = 0 ;
21694
- OpalKellyLegacy::ErrorCode result;
22099
+ okTOperationStatistics result;
21695
22100
  VALUE vresult = Qnil;
21696
22101
 
21697
- if ((argc < 4) || (argc > 4)) {
21698
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
22102
+ if ((argc < 3) || (argc > 3)) {
22103
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
21699
22104
  }
21700
22105
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0 | 0 );
21701
22106
  if (!SWIG_IsOK(res1)) {
21702
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","ReadBulk", 1, self ));
22107
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","WriteBulk", 1, self ));
21703
22108
  }
21704
22109
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXILite * >(argp1);
21705
22110
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
21706
22111
  if (!SWIG_IsOK(ecode2)) {
21707
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","ReadBulk", 2, argv[0] ));
22112
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","WriteBulk", 2, argv[0] ));
21708
22113
  }
21709
22114
  arg2 = static_cast< UINT64 >(val2);
21710
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_unsigned_int, 0 | 0 );
21711
- if (!SWIG_IsOK(res3)) {
21712
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "UINT32 *","ReadBulk", 3, argv[1] ));
21713
- }
21714
- arg3 = reinterpret_cast< UINT32 * >(argp3);
21715
- ecode4 = SWIG_AsVal_size_t(argv[2], &val4);
22115
+ arg3 = argv[1];
22116
+ ecode4 = SWIG_AsVal_unsigned_SS_int(argv[2], &val4);
21716
22117
  if (!SWIG_IsOK(ecode4)) {
21717
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "std::size_t","ReadBulk", 4, argv[2] ));
22118
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "UINT32","WriteBulk", 4, argv[2] ));
21718
22119
  }
21719
- arg4 = static_cast< std::size_t >(val4);
21720
- res5 = SWIG_ConvertPtr(argv[3], &argp5, SWIGTYPE_p_unsigned_long_long, 0 );
21721
- if (!SWIG_IsOK(res5)) {
21722
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "UINT64 &","ReadBulk", 5, argv[3] ));
21723
- }
21724
- if (!argp5) {
21725
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "UINT64 &","ReadBulk", 5, argv[3]));
21726
- }
21727
- arg5 = reinterpret_cast< UINT64 * >(argp5);
21728
- result = (OpalKellyLegacy::ErrorCode)(arg1)->ReadBulk(arg2,arg3,arg4,*arg5);
21729
- vresult = SWIG_From_int(static_cast< int >(result));
21730
- return vresult;
21731
- fail:
21732
- return Qnil;
21733
- }
21734
-
21735
-
21736
- SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_ReadBulk(int nargs, VALUE *args, VALUE self) {
21737
- int argc;
21738
- VALUE argv[7];
21739
- int ii;
21740
-
21741
- argc = nargs + 1;
21742
- argv[0] = self;
21743
- if (argc > 7) SWIG_fail;
21744
- for (ii = 1; (ii < argc); ++ii) {
21745
- argv[ii] = args[ii-1];
21746
- }
21747
- if (argc == 5) {
21748
- int _v;
21749
- void *vptr = 0;
21750
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0);
21751
- _v = SWIG_CheckState(res);
21752
- if (_v) {
21753
- {
21754
- int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL);
21755
- _v = SWIG_CheckState(res);
21756
- }
21757
- if (_v) {
21758
- void *vptr = 0;
21759
- int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_int, 0);
21760
- _v = SWIG_CheckState(res);
21761
- if (_v) {
21762
- {
21763
- int res = SWIG_AsVal_size_t(argv[3], NULL);
21764
- _v = SWIG_CheckState(res);
21765
- }
21766
- if (_v) {
21767
- void *vptr = 0;
21768
- int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_long_long, SWIG_POINTER_NO_NULL);
21769
- _v = SWIG_CheckState(res);
21770
- if (_v) {
21771
- return _wrap_okCFrontPanelAXILite_ReadBulk__SWIG_1(nargs, args, self);
21772
- }
21773
- }
21774
- }
21775
- }
21776
- }
21777
- }
21778
- if (argc == 6) {
21779
- int _v;
21780
- void *vptr = 0;
21781
- int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0);
21782
- _v = SWIG_CheckState(res);
21783
- if (_v) {
21784
- {
21785
- int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL);
21786
- _v = SWIG_CheckState(res);
21787
- }
21788
- if (_v) {
21789
- void *vptr = 0;
21790
- int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_int, 0);
21791
- _v = SWIG_CheckState(res);
21792
- if (_v) {
21793
- {
21794
- int res = SWIG_AsVal_size_t(argv[3], NULL);
21795
- _v = SWIG_CheckState(res);
21796
- }
21797
- if (_v) {
21798
- {
21799
- int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
21800
- _v = SWIG_CheckState(res);
21801
- }
21802
- if (_v) {
21803
- void *vptr = 0;
21804
- int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_unsigned_long_long, SWIG_POINTER_NO_NULL);
21805
- _v = SWIG_CheckState(res);
21806
- if (_v) {
21807
- return _wrap_okCFrontPanelAXILite_ReadBulk__SWIG_0(nargs, args, self);
21808
- }
21809
- }
21810
- }
21811
- }
21812
- }
22120
+ arg4 = static_cast< UINT32 >(val4);
22121
+ {
22122
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
22123
+ result = OpalKellyLegacy_okCFrontPanelAXILite_WriteBulk__SWIG_0(arg1,arg2,arg3,arg4);
22124
+ } catch (const okPyAXIOperationException& e) {
22125
+ okRbRaiseAXIOperation(e);
22126
+ goto fail;
22127
+ } catch (const okPyAXITransferException& e) {
22128
+ okRbRaiseAXITransfer(e);
22129
+ goto fail;
22130
+ } catch (const okFrontPanelException& e) {
22131
+ okRbRaiseFrontPanel(e);
22132
+ goto fail;
22133
+ } catch (const std::exception& e) {
22134
+ SWIG_Error(SWIG_RuntimeError, e.what());
22135
+ goto fail;
21813
22136
  }
22137
+ /*@SWIG@*/
21814
22138
  }
21815
-
22139
+ vresult = SWIG_NewPointerObj((new okTOperationStatistics(static_cast< const okTOperationStatistics& >(result))), SWIGTYPE_p_okTOperationStatistics, SWIG_POINTER_OWN | 0 );
22140
+ return vresult;
21816
22141
  fail:
21817
- Ruby_Format_OverloadedError( argc, 7, "okCFrontPanelAXILite.ReadBulk",
21818
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXILite.ReadBulk(UINT64 address, UINT32 *pBuffer, std::size_t count, UINT32 timeoutMilliseconds, UINT64 &transferByteCount)\n"
21819
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXILite.ReadBulk(UINT64 address, UINT32 *pBuffer, std::size_t count, UINT64 &transferByteCount)\n");
21820
-
21821
22142
  return Qnil;
21822
22143
  }
21823
22144
 
@@ -21826,24 +22147,16 @@ SWIGINTERN VALUE
21826
22147
  _wrap_okCFrontPanelAXILite_WriteBulk__SWIG_1(int argc, VALUE *argv, VALUE self) {
21827
22148
  OpalKellyLegacy::okCFrontPanelAXILite *arg1 = (OpalKellyLegacy::okCFrontPanelAXILite *) 0 ;
21828
22149
  UINT64 arg2 ;
21829
- UINT32 *arg3 = (UINT32 *) 0 ;
21830
- std::size_t arg4 ;
21831
- okTOperationStatistics *arg5 = 0 ;
22150
+ VALUE arg3 = (VALUE) 0 ;
21832
22151
  void *argp1 = 0 ;
21833
22152
  int res1 = 0 ;
21834
22153
  unsigned long long val2 ;
21835
22154
  int ecode2 = 0 ;
21836
- void *argp3 = 0 ;
21837
- int res3 = 0 ;
21838
- size_t val4 ;
21839
- int ecode4 = 0 ;
21840
- void *argp5 = 0 ;
21841
- int res5 = 0 ;
21842
- OpalKellyLegacy::ErrorCode result;
22155
+ okTOperationStatistics result;
21843
22156
  VALUE vresult = Qnil;
21844
22157
 
21845
- if ((argc < 4) || (argc > 4)) {
21846
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
22158
+ if ((argc < 2) || (argc > 2)) {
22159
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
21847
22160
  }
21848
22161
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0 | 0 );
21849
22162
  if (!SWIG_IsOK(res1)) {
@@ -21855,26 +22168,26 @@ _wrap_okCFrontPanelAXILite_WriteBulk__SWIG_1(int argc, VALUE *argv, VALUE self)
21855
22168
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","WriteBulk", 2, argv[0] ));
21856
22169
  }
21857
22170
  arg2 = static_cast< UINT64 >(val2);
21858
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_unsigned_int, 0 | 0 );
21859
- if (!SWIG_IsOK(res3)) {
21860
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "UINT32 const *","WriteBulk", 3, argv[1] ));
21861
- }
21862
- arg3 = reinterpret_cast< UINT32 * >(argp3);
21863
- ecode4 = SWIG_AsVal_size_t(argv[2], &val4);
21864
- if (!SWIG_IsOK(ecode4)) {
21865
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "std::size_t","WriteBulk", 4, argv[2] ));
21866
- }
21867
- arg4 = static_cast< std::size_t >(val4);
21868
- res5 = SWIG_ConvertPtr(argv[3], &argp5, SWIGTYPE_p_okTOperationStatistics, 0 );
21869
- if (!SWIG_IsOK(res5)) {
21870
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "okTOperationStatistics &","WriteBulk", 5, argv[3] ));
21871
- }
21872
- if (!argp5) {
21873
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "okTOperationStatistics &","WriteBulk", 5, argv[3]));
22171
+ arg3 = argv[1];
22172
+ {
22173
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
22174
+ result = OpalKellyLegacy_okCFrontPanelAXILite_WriteBulk__SWIG_0(arg1,arg2,arg3);
22175
+ } catch (const okPyAXIOperationException& e) {
22176
+ okRbRaiseAXIOperation(e);
22177
+ goto fail;
22178
+ } catch (const okPyAXITransferException& e) {
22179
+ okRbRaiseAXITransfer(e);
22180
+ goto fail;
22181
+ } catch (const okFrontPanelException& e) {
22182
+ okRbRaiseFrontPanel(e);
22183
+ goto fail;
22184
+ } catch (const std::exception& e) {
22185
+ SWIG_Error(SWIG_RuntimeError, e.what());
22186
+ goto fail;
22187
+ }
22188
+ /*@SWIG@*/
21874
22189
  }
21875
- arg5 = reinterpret_cast< okTOperationStatistics * >(argp5);
21876
- result = (OpalKellyLegacy::ErrorCode)(arg1)->WriteBulk(arg2,(UINT32 const *)arg3,arg4,*arg5);
21877
- vresult = SWIG_From_int(static_cast< int >(result));
22190
+ vresult = SWIG_NewPointerObj((new okTOperationStatistics(static_cast< const okTOperationStatistics& >(result))), SWIGTYPE_p_okTOperationStatistics, SWIG_POINTER_OWN | 0 );
21878
22191
  return vresult;
21879
22192
  fail:
21880
22193
  return Qnil;
@@ -21883,16 +22196,16 @@ fail:
21883
22196
 
21884
22197
  SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_WriteBulk(int nargs, VALUE *args, VALUE self) {
21885
22198
  int argc;
21886
- VALUE argv[7];
22199
+ VALUE argv[5];
21887
22200
  int ii;
21888
22201
 
21889
22202
  argc = nargs + 1;
21890
22203
  argv[0] = self;
21891
- if (argc > 7) SWIG_fail;
22204
+ if (argc > 5) SWIG_fail;
21892
22205
  for (ii = 1; (ii < argc); ++ii) {
21893
22206
  argv[ii] = args[ii-1];
21894
22207
  }
21895
- if (argc == 5) {
22208
+ if (argc == 3) {
21896
22209
  int _v;
21897
22210
  void *vptr = 0;
21898
22211
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0);
@@ -21903,27 +22216,14 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_WriteBulk(int nargs, VALUE *args, VA
21903
22216
  _v = SWIG_CheckState(res);
21904
22217
  }
21905
22218
  if (_v) {
21906
- void *vptr = 0;
21907
- int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_int, 0);
21908
- _v = SWIG_CheckState(res);
22219
+ _v = (argv[2] != 0);
21909
22220
  if (_v) {
21910
- {
21911
- int res = SWIG_AsVal_size_t(argv[3], NULL);
21912
- _v = SWIG_CheckState(res);
21913
- }
21914
- if (_v) {
21915
- void *vptr = 0;
21916
- int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_okTOperationStatistics, SWIG_POINTER_NO_NULL);
21917
- _v = SWIG_CheckState(res);
21918
- if (_v) {
21919
- return _wrap_okCFrontPanelAXILite_WriteBulk__SWIG_1(nargs, args, self);
21920
- }
21921
- }
22221
+ return _wrap_okCFrontPanelAXILite_WriteBulk__SWIG_1(nargs, args, self);
21922
22222
  }
21923
22223
  }
21924
22224
  }
21925
22225
  }
21926
- if (argc == 6) {
22226
+ if (argc == 4) {
21927
22227
  int _v;
21928
22228
  void *vptr = 0;
21929
22229
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0);
@@ -21934,27 +22234,14 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_WriteBulk(int nargs, VALUE *args, VA
21934
22234
  _v = SWIG_CheckState(res);
21935
22235
  }
21936
22236
  if (_v) {
21937
- void *vptr = 0;
21938
- int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_int, 0);
21939
- _v = SWIG_CheckState(res);
22237
+ _v = (argv[2] != 0);
21940
22238
  if (_v) {
21941
22239
  {
21942
- int res = SWIG_AsVal_size_t(argv[3], NULL);
22240
+ int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
21943
22241
  _v = SWIG_CheckState(res);
21944
22242
  }
21945
22243
  if (_v) {
21946
- {
21947
- int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL);
21948
- _v = SWIG_CheckState(res);
21949
- }
21950
- if (_v) {
21951
- void *vptr = 0;
21952
- int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_okTOperationStatistics, SWIG_POINTER_NO_NULL);
21953
- _v = SWIG_CheckState(res);
21954
- if (_v) {
21955
- return _wrap_okCFrontPanelAXILite_WriteBulk__SWIG_0(nargs, args, self);
21956
- }
21957
- }
22244
+ return _wrap_okCFrontPanelAXILite_WriteBulk__SWIG_0(nargs, args, self);
21958
22245
  }
21959
22246
  }
21960
22247
  }
@@ -21962,52 +22249,52 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXILite_WriteBulk(int nargs, VALUE *args, VA
21962
22249
  }
21963
22250
 
21964
22251
  fail:
21965
- Ruby_Format_OverloadedError( argc, 7, "okCFrontPanelAXILite.WriteBulk",
21966
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXILite.WriteBulk(UINT64 address, UINT32 const *pData, std::size_t count, UINT32 timeoutMilliseconds, okTOperationStatistics &operationStats)\n"
21967
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXILite.WriteBulk(UINT64 address, UINT32 const *pData, std::size_t count, okTOperationStatistics &operationStats)\n");
22252
+ Ruby_Format_OverloadedError( argc, 5, "WriteBulk",
22253
+ " okTOperationStatistics WriteBulk(UINT64 address, VALUE words, UINT32 timeoutMilliseconds)\n"
22254
+ " okTOperationStatistics WriteBulk(UINT64 address, VALUE words)\n");
21968
22255
 
21969
22256
  return Qnil;
21970
22257
  }
21971
22258
 
21972
22259
 
22260
+ SWIGINTERN void
22261
+ free_OpalKellyLegacy_okCFrontPanelAXILite(void *self) {
22262
+ OpalKellyLegacy::okCFrontPanelAXILite *arg1 = (OpalKellyLegacy::okCFrontPanelAXILite *)self;
22263
+ delete arg1;
22264
+ }
22265
+
22266
+ static swig_class SwigClassOkCFrontPanelAXIFull;
22267
+
21973
22268
  SWIGINTERN VALUE
21974
- _wrap_okCFrontPanelAXILite_Reset(int argc, VALUE *argv, VALUE self) {
21975
- OpalKellyLegacy::okCFrontPanelAXILite *arg1 = (OpalKellyLegacy::okCFrontPanelAXILite *) 0 ;
22269
+ _wrap_okCFrontPanelAXIFull_GetDatapathWidthByteCount(int argc, VALUE *argv, VALUE self) {
22270
+ OpalKellyLegacy::okCFrontPanelAXIFull *arg1 = (OpalKellyLegacy::okCFrontPanelAXIFull *) 0 ;
21976
22271
  void *argp1 = 0 ;
21977
22272
  int res1 = 0 ;
21978
- OpalKellyLegacy::ErrorCode result;
22273
+ UINT8 result;
21979
22274
  VALUE vresult = Qnil;
21980
22275
 
21981
22276
  if ((argc < 0) || (argc > 0)) {
21982
22277
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
21983
22278
  }
21984
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, 0 | 0 );
22279
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, 0 | 0 );
21985
22280
  if (!SWIG_IsOK(res1)) {
21986
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXILite *","Reset", 1, self ));
22281
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIFull *","GetDatapathWidthByteCount", 1, self ));
21987
22282
  }
21988
- arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXILite * >(argp1);
21989
- result = (OpalKellyLegacy::ErrorCode)(arg1)->Reset();
21990
- vresult = SWIG_From_int(static_cast< int >(result));
22283
+ arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXIFull * >(argp1);
22284
+ result = (UINT8)(arg1)->GetDatapathWidthByteCount();
22285
+ vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
21991
22286
  return vresult;
21992
22287
  fail:
21993
22288
  return Qnil;
21994
22289
  }
21995
22290
 
21996
22291
 
21997
- SWIGINTERN void
21998
- free_OpalKellyLegacy_okCFrontPanelAXILite(void *self) {
21999
- OpalKellyLegacy::okCFrontPanelAXILite *arg1 = (OpalKellyLegacy::okCFrontPanelAXILite *)self;
22000
- delete arg1;
22001
- }
22002
-
22003
- static swig_class SwigClassOkCFrontPanelAXIFull;
22004
-
22005
22292
  SWIGINTERN VALUE
22006
- _wrap_okCFrontPanelAXIFull_GetDatapathWidthByteCount(int argc, VALUE *argv, VALUE self) {
22293
+ _wrap_okCFrontPanelAXIFull_Reset(int argc, VALUE *argv, VALUE self) {
22007
22294
  OpalKellyLegacy::okCFrontPanelAXIFull *arg1 = (OpalKellyLegacy::okCFrontPanelAXIFull *) 0 ;
22008
22295
  void *argp1 = 0 ;
22009
22296
  int res1 = 0 ;
22010
- UINT8 result;
22297
+ OpalKellyLegacy::ErrorCode result;
22011
22298
  VALUE vresult = Qnil;
22012
22299
 
22013
22300
  if ((argc < 0) || (argc > 0)) {
@@ -22015,11 +22302,11 @@ _wrap_okCFrontPanelAXIFull_GetDatapathWidthByteCount(int argc, VALUE *argv, VALU
22015
22302
  }
22016
22303
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, 0 | 0 );
22017
22304
  if (!SWIG_IsOK(res1)) {
22018
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIFull *","GetDatapathWidthByteCount", 1, self ));
22305
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIFull *","Reset", 1, self ));
22019
22306
  }
22020
22307
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXIFull * >(argp1);
22021
- result = (UINT8)(arg1)->GetDatapathWidthByteCount();
22022
- vresult = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
22308
+ result = (OpalKellyLegacy::ErrorCode)(arg1)->Reset();
22309
+ vresult = SWIG_From_int(static_cast< int >(result));
22023
22310
  return vresult;
22024
22311
  fail:
22025
22312
  return Qnil;
@@ -22030,30 +22317,27 @@ SWIGINTERN VALUE
22030
22317
  _wrap_okCFrontPanelAXIFull_Read__SWIG_0(int argc, VALUE *argv, VALUE self) {
22031
22318
  OpalKellyLegacy::okCFrontPanelAXIFull *arg1 = (OpalKellyLegacy::okCFrontPanelAXIFull *) 0 ;
22032
22319
  UINT64 arg2 ;
22033
- unsigned char *arg3 = (unsigned char *) 0 ;
22034
- std::size_t arg4 ;
22320
+ char *arg3 = (char *) 0 ;
22321
+ int arg4 ;
22035
22322
  UINT32 arg5 ;
22036
22323
  UINT32 arg6 ;
22037
- UINT64 *arg7 = 0 ;
22038
22324
  void *argp1 = 0 ;
22039
22325
  int res1 = 0 ;
22040
22326
  unsigned long long val2 ;
22041
22327
  int ecode2 = 0 ;
22042
- void *argp3 = 0 ;
22043
- int res3 = 0 ;
22044
- size_t val4 ;
22045
- int ecode4 = 0 ;
22328
+ int res3 ;
22329
+ char *buf3 = 0 ;
22330
+ size_t size3 = 0 ;
22331
+ int alloc3 = 0 ;
22046
22332
  unsigned int val5 ;
22047
22333
  int ecode5 = 0 ;
22048
22334
  unsigned int val6 ;
22049
22335
  int ecode6 = 0 ;
22050
- void *argp7 = 0 ;
22051
- int res7 = 0 ;
22052
- OpalKellyLegacy::ErrorCode result;
22336
+ UINT64 result;
22053
22337
  VALUE vresult = Qnil;
22054
22338
 
22055
- if ((argc < 6) || (argc > 6)) {
22056
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
22339
+ if ((argc < 4) || (argc > 4)) {
22340
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
22057
22341
  }
22058
22342
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, 0 | 0 );
22059
22343
  if (!SWIG_IsOK(res1)) {
@@ -22065,139 +22349,139 @@ _wrap_okCFrontPanelAXIFull_Read__SWIG_0(int argc, VALUE *argv, VALUE self) {
22065
22349
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","Read", 2, argv[0] ));
22066
22350
  }
22067
22351
  arg2 = static_cast< UINT64 >(val2);
22068
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
22352
+ res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, &size3, &alloc3);
22069
22353
  if (!SWIG_IsOK(res3)) {
22070
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "unsigned char *","Read", 3, argv[1] ));
22071
- }
22072
- arg3 = reinterpret_cast< unsigned char * >(argp3);
22073
- ecode4 = SWIG_AsVal_size_t(argv[2], &val4);
22074
- if (!SWIG_IsOK(ecode4)) {
22075
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "std::size_t","Read", 4, argv[2] ));
22076
- }
22077
- arg4 = static_cast< std::size_t >(val4);
22078
- ecode5 = SWIG_AsVal_unsigned_SS_int(argv[3], &val5);
22354
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","Read", 3, argv[1] ));
22355
+ }
22356
+ arg3 = reinterpret_cast< char * >(buf3);
22357
+ arg4 = static_cast< int >(size3 - 1);
22358
+ ecode5 = SWIG_AsVal_unsigned_SS_int(argv[2], &val5);
22079
22359
  if (!SWIG_IsOK(ecode5)) {
22080
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "UINT32","Read", 5, argv[3] ));
22360
+ SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "UINT32","Read", 5, argv[2] ));
22081
22361
  }
22082
22362
  arg5 = static_cast< UINT32 >(val5);
22083
- ecode6 = SWIG_AsVal_unsigned_SS_int(argv[4], &val6);
22363
+ ecode6 = SWIG_AsVal_unsigned_SS_int(argv[3], &val6);
22084
22364
  if (!SWIG_IsOK(ecode6)) {
22085
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "UINT32","Read", 6, argv[4] ));
22365
+ SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "UINT32","Read", 6, argv[3] ));
22086
22366
  }
22087
22367
  arg6 = static_cast< UINT32 >(val6);
22088
- res7 = SWIG_ConvertPtr(argv[5], &argp7, SWIGTYPE_p_unsigned_long_long, 0 );
22089
- if (!SWIG_IsOK(res7)) {
22090
- SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "UINT64 &","Read", 7, argv[5] ));
22091
- }
22092
- if (!argp7) {
22093
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "UINT64 &","Read", 7, argv[5]));
22368
+ {
22369
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
22370
+ result = (UINT64)OpalKellyLegacy_okCFrontPanelAXIFull_Read__SWIG_0(arg1,arg2,arg3,arg4,arg5,arg6);
22371
+ } catch (const okPyAXIOperationException& e) {
22372
+ okRbRaiseAXIOperation(e);
22373
+ goto fail;
22374
+ } catch (const okPyAXITransferException& e) {
22375
+ okRbRaiseAXITransfer(e);
22376
+ goto fail;
22377
+ } catch (const okFrontPanelException& e) {
22378
+ okRbRaiseFrontPanel(e);
22379
+ goto fail;
22380
+ } catch (const std::exception& e) {
22381
+ SWIG_Error(SWIG_RuntimeError, e.what());
22382
+ goto fail;
22383
+ }
22384
+ /*@SWIG@*/
22094
22385
  }
22095
- arg7 = reinterpret_cast< UINT64 * >(argp7);
22096
- result = (OpalKellyLegacy::ErrorCode)(arg1)->Read(arg2,arg3,arg4,arg5,arg6,*arg7);
22097
- vresult = SWIG_From_int(static_cast< int >(result));
22386
+ vresult = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
22387
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
22098
22388
  return vresult;
22099
22389
  fail:
22390
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
22100
22391
  return Qnil;
22101
22392
  }
22102
22393
 
22103
22394
 
22104
22395
  SWIGINTERN VALUE
22105
- _wrap_okCFrontPanelAXIFull_Write__SWIG_0(int argc, VALUE *argv, VALUE self) {
22396
+ _wrap_okCFrontPanelAXIFull_Read__SWIG_1(int argc, VALUE *argv, VALUE self) {
22106
22397
  OpalKellyLegacy::okCFrontPanelAXIFull *arg1 = (OpalKellyLegacy::okCFrontPanelAXIFull *) 0 ;
22107
22398
  UINT64 arg2 ;
22108
- unsigned char *arg3 = (unsigned char *) 0 ;
22109
- std::size_t arg4 ;
22399
+ char *arg3 = (char *) 0 ;
22400
+ int arg4 ;
22110
22401
  UINT32 arg5 ;
22111
- UINT32 arg6 ;
22112
- okTOperationStatistics *arg7 = 0 ;
22113
22402
  void *argp1 = 0 ;
22114
22403
  int res1 = 0 ;
22115
22404
  unsigned long long val2 ;
22116
22405
  int ecode2 = 0 ;
22117
- void *argp3 = 0 ;
22118
- int res3 = 0 ;
22119
- size_t val4 ;
22120
- int ecode4 = 0 ;
22406
+ int res3 ;
22407
+ char *buf3 = 0 ;
22408
+ size_t size3 = 0 ;
22409
+ int alloc3 = 0 ;
22121
22410
  unsigned int val5 ;
22122
22411
  int ecode5 = 0 ;
22123
- unsigned int val6 ;
22124
- int ecode6 = 0 ;
22125
- void *argp7 = 0 ;
22126
- int res7 = 0 ;
22127
- OpalKellyLegacy::ErrorCode result;
22412
+ UINT64 result;
22128
22413
  VALUE vresult = Qnil;
22129
22414
 
22130
- if ((argc < 6) || (argc > 6)) {
22131
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
22415
+ if ((argc < 3) || (argc > 3)) {
22416
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
22132
22417
  }
22133
22418
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, 0 | 0 );
22134
22419
  if (!SWIG_IsOK(res1)) {
22135
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIFull *","Write", 1, self ));
22420
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIFull *","Read", 1, self ));
22136
22421
  }
22137
22422
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXIFull * >(argp1);
22138
22423
  ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
22139
22424
  if (!SWIG_IsOK(ecode2)) {
22140
- SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","Write", 2, argv[0] ));
22425
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","Read", 2, argv[0] ));
22141
22426
  }
22142
22427
  arg2 = static_cast< UINT64 >(val2);
22143
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
22428
+ res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, &size3, &alloc3);
22144
22429
  if (!SWIG_IsOK(res3)) {
22145
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "unsigned char const *","Write", 3, argv[1] ));
22146
- }
22147
- arg3 = reinterpret_cast< unsigned char * >(argp3);
22148
- ecode4 = SWIG_AsVal_size_t(argv[2], &val4);
22149
- if (!SWIG_IsOK(ecode4)) {
22150
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "std::size_t","Write", 4, argv[2] ));
22151
- }
22152
- arg4 = static_cast< std::size_t >(val4);
22153
- ecode5 = SWIG_AsVal_unsigned_SS_int(argv[3], &val5);
22430
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","Read", 3, argv[1] ));
22431
+ }
22432
+ arg3 = reinterpret_cast< char * >(buf3);
22433
+ arg4 = static_cast< int >(size3 - 1);
22434
+ ecode5 = SWIG_AsVal_unsigned_SS_int(argv[2], &val5);
22154
22435
  if (!SWIG_IsOK(ecode5)) {
22155
- SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "UINT32","Write", 5, argv[3] ));
22436
+ SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "UINT32","Read", 5, argv[2] ));
22156
22437
  }
22157
22438
  arg5 = static_cast< UINT32 >(val5);
22158
- ecode6 = SWIG_AsVal_unsigned_SS_int(argv[4], &val6);
22159
- if (!SWIG_IsOK(ecode6)) {
22160
- SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "UINT32","Write", 6, argv[4] ));
22161
- }
22162
- arg6 = static_cast< UINT32 >(val6);
22163
- res7 = SWIG_ConvertPtr(argv[5], &argp7, SWIGTYPE_p_okTOperationStatistics, 0 );
22164
- if (!SWIG_IsOK(res7)) {
22165
- SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "okTOperationStatistics &","Write", 7, argv[5] ));
22166
- }
22167
- if (!argp7) {
22168
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "okTOperationStatistics &","Write", 7, argv[5]));
22439
+ {
22440
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
22441
+ result = (UINT64)OpalKellyLegacy_okCFrontPanelAXIFull_Read__SWIG_0(arg1,arg2,arg3,arg4,arg5);
22442
+ } catch (const okPyAXIOperationException& e) {
22443
+ okRbRaiseAXIOperation(e);
22444
+ goto fail;
22445
+ } catch (const okPyAXITransferException& e) {
22446
+ okRbRaiseAXITransfer(e);
22447
+ goto fail;
22448
+ } catch (const okFrontPanelException& e) {
22449
+ okRbRaiseFrontPanel(e);
22450
+ goto fail;
22451
+ } catch (const std::exception& e) {
22452
+ SWIG_Error(SWIG_RuntimeError, e.what());
22453
+ goto fail;
22454
+ }
22455
+ /*@SWIG@*/
22169
22456
  }
22170
- arg7 = reinterpret_cast< okTOperationStatistics * >(argp7);
22171
- result = (OpalKellyLegacy::ErrorCode)(arg1)->Write(arg2,(unsigned char const *)arg3,arg4,arg5,arg6,*arg7);
22172
- vresult = SWIG_From_int(static_cast< int >(result));
22457
+ vresult = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
22458
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
22173
22459
  return vresult;
22174
22460
  fail:
22461
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
22175
22462
  return Qnil;
22176
22463
  }
22177
22464
 
22178
22465
 
22179
22466
  SWIGINTERN VALUE
22180
- _wrap_okCFrontPanelAXIFull_Read__SWIG_1(int argc, VALUE *argv, VALUE self) {
22467
+ _wrap_okCFrontPanelAXIFull_Read__SWIG_2(int argc, VALUE *argv, VALUE self) {
22181
22468
  OpalKellyLegacy::okCFrontPanelAXIFull *arg1 = (OpalKellyLegacy::okCFrontPanelAXIFull *) 0 ;
22182
22469
  UINT64 arg2 ;
22183
- unsigned char *arg3 = (unsigned char *) 0 ;
22184
- std::size_t arg4 ;
22185
- UINT64 *arg5 = 0 ;
22470
+ char *arg3 = (char *) 0 ;
22471
+ int arg4 ;
22186
22472
  void *argp1 = 0 ;
22187
22473
  int res1 = 0 ;
22188
22474
  unsigned long long val2 ;
22189
22475
  int ecode2 = 0 ;
22190
- void *argp3 = 0 ;
22191
- int res3 = 0 ;
22192
- size_t val4 ;
22193
- int ecode4 = 0 ;
22194
- void *argp5 = 0 ;
22195
- int res5 = 0 ;
22196
- OpalKellyLegacy::ErrorCode result;
22476
+ int res3 ;
22477
+ char *buf3 = 0 ;
22478
+ size_t size3 = 0 ;
22479
+ int alloc3 = 0 ;
22480
+ UINT64 result;
22197
22481
  VALUE vresult = Qnil;
22198
22482
 
22199
- if ((argc < 4) || (argc > 4)) {
22200
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
22483
+ if ((argc < 2) || (argc > 2)) {
22484
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
22201
22485
  }
22202
22486
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, 0 | 0 );
22203
22487
  if (!SWIG_IsOK(res1)) {
@@ -22209,44 +22493,51 @@ _wrap_okCFrontPanelAXIFull_Read__SWIG_1(int argc, VALUE *argv, VALUE self) {
22209
22493
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","Read", 2, argv[0] ));
22210
22494
  }
22211
22495
  arg2 = static_cast< UINT64 >(val2);
22212
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
22496
+ res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, &size3, &alloc3);
22213
22497
  if (!SWIG_IsOK(res3)) {
22214
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "unsigned char *","Read", 3, argv[1] ));
22215
- }
22216
- arg3 = reinterpret_cast< unsigned char * >(argp3);
22217
- ecode4 = SWIG_AsVal_size_t(argv[2], &val4);
22218
- if (!SWIG_IsOK(ecode4)) {
22219
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "std::size_t","Read", 4, argv[2] ));
22220
- }
22221
- arg4 = static_cast< std::size_t >(val4);
22222
- res5 = SWIG_ConvertPtr(argv[3], &argp5, SWIGTYPE_p_unsigned_long_long, 0 );
22223
- if (!SWIG_IsOK(res5)) {
22224
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "UINT64 &","Read", 5, argv[3] ));
22225
- }
22226
- if (!argp5) {
22227
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "UINT64 &","Read", 5, argv[3]));
22498
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","Read", 3, argv[1] ));
22499
+ }
22500
+ arg3 = reinterpret_cast< char * >(buf3);
22501
+ arg4 = static_cast< int >(size3 - 1);
22502
+ {
22503
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
22504
+ result = (UINT64)OpalKellyLegacy_okCFrontPanelAXIFull_Read__SWIG_0(arg1,arg2,arg3,arg4);
22505
+ } catch (const okPyAXIOperationException& e) {
22506
+ okRbRaiseAXIOperation(e);
22507
+ goto fail;
22508
+ } catch (const okPyAXITransferException& e) {
22509
+ okRbRaiseAXITransfer(e);
22510
+ goto fail;
22511
+ } catch (const okFrontPanelException& e) {
22512
+ okRbRaiseFrontPanel(e);
22513
+ goto fail;
22514
+ } catch (const std::exception& e) {
22515
+ SWIG_Error(SWIG_RuntimeError, e.what());
22516
+ goto fail;
22517
+ }
22518
+ /*@SWIG@*/
22228
22519
  }
22229
- arg5 = reinterpret_cast< UINT64 * >(argp5);
22230
- result = (OpalKellyLegacy::ErrorCode)(arg1)->Read(arg2,arg3,arg4,*arg5);
22231
- vresult = SWIG_From_int(static_cast< int >(result));
22520
+ vresult = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
22521
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
22232
22522
  return vresult;
22233
22523
  fail:
22524
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
22234
22525
  return Qnil;
22235
22526
  }
22236
22527
 
22237
22528
 
22238
22529
  SWIGINTERN VALUE _wrap_okCFrontPanelAXIFull_Read(int nargs, VALUE *args, VALUE self) {
22239
22530
  int argc;
22240
- VALUE argv[8];
22531
+ VALUE argv[6];
22241
22532
  int ii;
22242
22533
 
22243
22534
  argc = nargs + 1;
22244
22535
  argv[0] = self;
22245
- if (argc > 8) SWIG_fail;
22536
+ if (argc > 6) SWIG_fail;
22246
22537
  for (ii = 1; (ii < argc); ++ii) {
22247
22538
  argv[ii] = args[ii-1];
22248
22539
  }
22249
- if (argc == 5) {
22540
+ if (argc == 3) {
22250
22541
  int _v;
22251
22542
  void *vptr = 0;
22252
22543
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, 0);
@@ -22257,27 +22548,49 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXIFull_Read(int nargs, VALUE *args, VALUE s
22257
22548
  _v = SWIG_CheckState(res);
22258
22549
  }
22259
22550
  if (_v) {
22260
- void *vptr = 0;
22261
- int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
22551
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
22262
22552
  _v = SWIG_CheckState(res);
22263
22553
  if (_v) {
22554
+ if (argc <= 3) {
22555
+ return _wrap_okCFrontPanelAXIFull_Read__SWIG_2(nargs, args, self);
22556
+ }
22264
22557
  {
22265
- int res = SWIG_AsVal_size_t(argv[3], NULL);
22558
+ int res = SWIG_AsVal_int(argv[3], NULL);
22266
22559
  _v = SWIG_CheckState(res);
22267
22560
  }
22268
22561
  if (_v) {
22269
- void *vptr = 0;
22270
- int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_long_long, SWIG_POINTER_NO_NULL);
22562
+ return _wrap_okCFrontPanelAXIFull_Read__SWIG_2(nargs, args, self);
22563
+ }
22564
+ }
22565
+ }
22566
+ }
22567
+ }
22568
+ if (argc == 4) {
22569
+ int _v;
22570
+ void *vptr = 0;
22571
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, 0);
22572
+ _v = SWIG_CheckState(res);
22573
+ if (_v) {
22574
+ {
22575
+ int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL);
22576
+ _v = SWIG_CheckState(res);
22577
+ }
22578
+ if (_v) {
22579
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
22580
+ _v = SWIG_CheckState(res);
22581
+ if (_v) {
22582
+ {
22583
+ int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
22271
22584
  _v = SWIG_CheckState(res);
22272
- if (_v) {
22273
- return _wrap_okCFrontPanelAXIFull_Read__SWIG_1(nargs, args, self);
22274
- }
22585
+ }
22586
+ if (_v) {
22587
+ return _wrap_okCFrontPanelAXIFull_Read__SWIG_1(nargs, args, self);
22275
22588
  }
22276
22589
  }
22277
22590
  }
22278
22591
  }
22279
22592
  }
22280
- if (argc == 7) {
22593
+ if (argc == 5) {
22281
22594
  int _v;
22282
22595
  void *vptr = 0;
22283
22596
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, 0);
@@ -22288,12 +22601,11 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXIFull_Read(int nargs, VALUE *args, VALUE s
22288
22601
  _v = SWIG_CheckState(res);
22289
22602
  }
22290
22603
  if (_v) {
22291
- void *vptr = 0;
22292
- int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
22604
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
22293
22605
  _v = SWIG_CheckState(res);
22294
22606
  if (_v) {
22295
22607
  {
22296
- int res = SWIG_AsVal_size_t(argv[3], NULL);
22608
+ int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
22297
22609
  _v = SWIG_CheckState(res);
22298
22610
  }
22299
22611
  if (_v) {
@@ -22302,56 +22614,193 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXIFull_Read(int nargs, VALUE *args, VALUE s
22302
22614
  _v = SWIG_CheckState(res);
22303
22615
  }
22304
22616
  if (_v) {
22305
- {
22306
- int res = SWIG_AsVal_unsigned_SS_int(argv[5], NULL);
22307
- _v = SWIG_CheckState(res);
22308
- }
22309
- if (_v) {
22310
- void *vptr = 0;
22311
- int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_unsigned_long_long, SWIG_POINTER_NO_NULL);
22312
- _v = SWIG_CheckState(res);
22313
- if (_v) {
22314
- return _wrap_okCFrontPanelAXIFull_Read__SWIG_0(nargs, args, self);
22315
- }
22316
- }
22617
+ return _wrap_okCFrontPanelAXIFull_Read__SWIG_0(nargs, args, self);
22317
22618
  }
22318
22619
  }
22319
22620
  }
22320
22621
  }
22321
22622
  }
22322
22623
  }
22323
-
22624
+
22625
+ fail:
22626
+ Ruby_Format_OverloadedError( argc, 6, "Read",
22627
+ " UINT64 Read(UINT64 address, char *data, int length, UINT32 burst, UINT32 timeoutMilliseconds)\n"
22628
+ " UINT64 Read(UINT64 address, char *data, int length, UINT32 burst)\n"
22629
+ " UINT64 Read(UINT64 address, char *data, int length)\n");
22630
+
22631
+ return Qnil;
22632
+ }
22633
+
22634
+
22635
+ SWIGINTERN VALUE
22636
+ _wrap_okCFrontPanelAXIFull_Write__SWIG_0(int argc, VALUE *argv, VALUE self) {
22637
+ OpalKellyLegacy::okCFrontPanelAXIFull *arg1 = (OpalKellyLegacy::okCFrontPanelAXIFull *) 0 ;
22638
+ UINT64 arg2 ;
22639
+ char *arg3 = (char *) 0 ;
22640
+ int arg4 ;
22641
+ UINT32 arg5 ;
22642
+ UINT32 arg6 ;
22643
+ void *argp1 = 0 ;
22644
+ int res1 = 0 ;
22645
+ unsigned long long val2 ;
22646
+ int ecode2 = 0 ;
22647
+ int res3 ;
22648
+ char *buf3 = 0 ;
22649
+ size_t size3 = 0 ;
22650
+ int alloc3 = 0 ;
22651
+ unsigned int val5 ;
22652
+ int ecode5 = 0 ;
22653
+ unsigned int val6 ;
22654
+ int ecode6 = 0 ;
22655
+ okTOperationStatistics result;
22656
+ VALUE vresult = Qnil;
22657
+
22658
+ if ((argc < 4) || (argc > 4)) {
22659
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
22660
+ }
22661
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, 0 | 0 );
22662
+ if (!SWIG_IsOK(res1)) {
22663
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIFull *","Write", 1, self ));
22664
+ }
22665
+ arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXIFull * >(argp1);
22666
+ ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
22667
+ if (!SWIG_IsOK(ecode2)) {
22668
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","Write", 2, argv[0] ));
22669
+ }
22670
+ arg2 = static_cast< UINT64 >(val2);
22671
+ res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, &size3, &alloc3);
22672
+ if (!SWIG_IsOK(res3)) {
22673
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","Write", 3, argv[1] ));
22674
+ }
22675
+ arg3 = reinterpret_cast< char * >(buf3);
22676
+ arg4 = static_cast< int >(size3 - 1);
22677
+ ecode5 = SWIG_AsVal_unsigned_SS_int(argv[2], &val5);
22678
+ if (!SWIG_IsOK(ecode5)) {
22679
+ SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "UINT32","Write", 5, argv[2] ));
22680
+ }
22681
+ arg5 = static_cast< UINT32 >(val5);
22682
+ ecode6 = SWIG_AsVal_unsigned_SS_int(argv[3], &val6);
22683
+ if (!SWIG_IsOK(ecode6)) {
22684
+ SWIG_exception_fail(SWIG_ArgError(ecode6), Ruby_Format_TypeError( "", "UINT32","Write", 6, argv[3] ));
22685
+ }
22686
+ arg6 = static_cast< UINT32 >(val6);
22687
+ {
22688
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
22689
+ result = OpalKellyLegacy_okCFrontPanelAXIFull_Write__SWIG_0(arg1,arg2,arg3,arg4,arg5,arg6);
22690
+ } catch (const okPyAXIOperationException& e) {
22691
+ okRbRaiseAXIOperation(e);
22692
+ goto fail;
22693
+ } catch (const okPyAXITransferException& e) {
22694
+ okRbRaiseAXITransfer(e);
22695
+ goto fail;
22696
+ } catch (const okFrontPanelException& e) {
22697
+ okRbRaiseFrontPanel(e);
22698
+ goto fail;
22699
+ } catch (const std::exception& e) {
22700
+ SWIG_Error(SWIG_RuntimeError, e.what());
22701
+ goto fail;
22702
+ }
22703
+ /*@SWIG@*/
22704
+ }
22705
+ vresult = SWIG_NewPointerObj((new okTOperationStatistics(static_cast< const okTOperationStatistics& >(result))), SWIGTYPE_p_okTOperationStatistics, SWIG_POINTER_OWN | 0 );
22706
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
22707
+ return vresult;
22708
+ fail:
22709
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
22710
+ return Qnil;
22711
+ }
22712
+
22713
+
22714
+ SWIGINTERN VALUE
22715
+ _wrap_okCFrontPanelAXIFull_Write__SWIG_1(int argc, VALUE *argv, VALUE self) {
22716
+ OpalKellyLegacy::okCFrontPanelAXIFull *arg1 = (OpalKellyLegacy::okCFrontPanelAXIFull *) 0 ;
22717
+ UINT64 arg2 ;
22718
+ char *arg3 = (char *) 0 ;
22719
+ int arg4 ;
22720
+ UINT32 arg5 ;
22721
+ void *argp1 = 0 ;
22722
+ int res1 = 0 ;
22723
+ unsigned long long val2 ;
22724
+ int ecode2 = 0 ;
22725
+ int res3 ;
22726
+ char *buf3 = 0 ;
22727
+ size_t size3 = 0 ;
22728
+ int alloc3 = 0 ;
22729
+ unsigned int val5 ;
22730
+ int ecode5 = 0 ;
22731
+ okTOperationStatistics result;
22732
+ VALUE vresult = Qnil;
22733
+
22734
+ if ((argc < 3) || (argc > 3)) {
22735
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
22736
+ }
22737
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, 0 | 0 );
22738
+ if (!SWIG_IsOK(res1)) {
22739
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIFull *","Write", 1, self ));
22740
+ }
22741
+ arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXIFull * >(argp1);
22742
+ ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
22743
+ if (!SWIG_IsOK(ecode2)) {
22744
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","Write", 2, argv[0] ));
22745
+ }
22746
+ arg2 = static_cast< UINT64 >(val2);
22747
+ res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, &size3, &alloc3);
22748
+ if (!SWIG_IsOK(res3)) {
22749
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","Write", 3, argv[1] ));
22750
+ }
22751
+ arg3 = reinterpret_cast< char * >(buf3);
22752
+ arg4 = static_cast< int >(size3 - 1);
22753
+ ecode5 = SWIG_AsVal_unsigned_SS_int(argv[2], &val5);
22754
+ if (!SWIG_IsOK(ecode5)) {
22755
+ SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "UINT32","Write", 5, argv[2] ));
22756
+ }
22757
+ arg5 = static_cast< UINT32 >(val5);
22758
+ {
22759
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
22760
+ result = OpalKellyLegacy_okCFrontPanelAXIFull_Write__SWIG_0(arg1,arg2,arg3,arg4,arg5);
22761
+ } catch (const okPyAXIOperationException& e) {
22762
+ okRbRaiseAXIOperation(e);
22763
+ goto fail;
22764
+ } catch (const okPyAXITransferException& e) {
22765
+ okRbRaiseAXITransfer(e);
22766
+ goto fail;
22767
+ } catch (const okFrontPanelException& e) {
22768
+ okRbRaiseFrontPanel(e);
22769
+ goto fail;
22770
+ } catch (const std::exception& e) {
22771
+ SWIG_Error(SWIG_RuntimeError, e.what());
22772
+ goto fail;
22773
+ }
22774
+ /*@SWIG@*/
22775
+ }
22776
+ vresult = SWIG_NewPointerObj((new okTOperationStatistics(static_cast< const okTOperationStatistics& >(result))), SWIGTYPE_p_okTOperationStatistics, SWIG_POINTER_OWN | 0 );
22777
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
22778
+ return vresult;
22324
22779
  fail:
22325
- Ruby_Format_OverloadedError( argc, 8, "okCFrontPanelAXIFull.Read",
22326
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXIFull.Read(UINT64 address, unsigned char *pBuffer, std::size_t bufferSize, UINT32 burst, UINT32 timeoutMilliseconds, UINT64 &transferByteCount)\n"
22327
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXIFull.Read(UINT64 address, unsigned char *pBuffer, std::size_t bufferSize, UINT64 &transferByteCount)\n");
22328
-
22780
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
22329
22781
  return Qnil;
22330
22782
  }
22331
22783
 
22332
22784
 
22333
22785
  SWIGINTERN VALUE
22334
- _wrap_okCFrontPanelAXIFull_Write__SWIG_1(int argc, VALUE *argv, VALUE self) {
22786
+ _wrap_okCFrontPanelAXIFull_Write__SWIG_2(int argc, VALUE *argv, VALUE self) {
22335
22787
  OpalKellyLegacy::okCFrontPanelAXIFull *arg1 = (OpalKellyLegacy::okCFrontPanelAXIFull *) 0 ;
22336
22788
  UINT64 arg2 ;
22337
- unsigned char *arg3 = (unsigned char *) 0 ;
22338
- std::size_t arg4 ;
22339
- okTOperationStatistics *arg5 = 0 ;
22789
+ char *arg3 = (char *) 0 ;
22790
+ int arg4 ;
22340
22791
  void *argp1 = 0 ;
22341
22792
  int res1 = 0 ;
22342
22793
  unsigned long long val2 ;
22343
22794
  int ecode2 = 0 ;
22344
- void *argp3 = 0 ;
22345
- int res3 = 0 ;
22346
- size_t val4 ;
22347
- int ecode4 = 0 ;
22348
- void *argp5 = 0 ;
22349
- int res5 = 0 ;
22350
- OpalKellyLegacy::ErrorCode result;
22795
+ int res3 ;
22796
+ char *buf3 = 0 ;
22797
+ size_t size3 = 0 ;
22798
+ int alloc3 = 0 ;
22799
+ okTOperationStatistics result;
22351
22800
  VALUE vresult = Qnil;
22352
22801
 
22353
- if ((argc < 4) || (argc > 4)) {
22354
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
22802
+ if ((argc < 2) || (argc > 2)) {
22803
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
22355
22804
  }
22356
22805
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, 0 | 0 );
22357
22806
  if (!SWIG_IsOK(res1)) {
@@ -22363,44 +22812,51 @@ _wrap_okCFrontPanelAXIFull_Write__SWIG_1(int argc, VALUE *argv, VALUE self) {
22363
22812
  SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "UINT64","Write", 2, argv[0] ));
22364
22813
  }
22365
22814
  arg2 = static_cast< UINT64 >(val2);
22366
- res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
22815
+ res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, &size3, &alloc3);
22367
22816
  if (!SWIG_IsOK(res3)) {
22368
- SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "unsigned char const *","Write", 3, argv[1] ));
22369
- }
22370
- arg3 = reinterpret_cast< unsigned char * >(argp3);
22371
- ecode4 = SWIG_AsVal_size_t(argv[2], &val4);
22372
- if (!SWIG_IsOK(ecode4)) {
22373
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "std::size_t","Write", 4, argv[2] ));
22374
- }
22375
- arg4 = static_cast< std::size_t >(val4);
22376
- res5 = SWIG_ConvertPtr(argv[3], &argp5, SWIGTYPE_p_okTOperationStatistics, 0 );
22377
- if (!SWIG_IsOK(res5)) {
22378
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "okTOperationStatistics &","Write", 5, argv[3] ));
22379
- }
22380
- if (!argp5) {
22381
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "okTOperationStatistics &","Write", 5, argv[3]));
22817
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","Write", 3, argv[1] ));
22818
+ }
22819
+ arg3 = reinterpret_cast< char * >(buf3);
22820
+ arg4 = static_cast< int >(size3 - 1);
22821
+ {
22822
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
22823
+ result = OpalKellyLegacy_okCFrontPanelAXIFull_Write__SWIG_0(arg1,arg2,arg3,arg4);
22824
+ } catch (const okPyAXIOperationException& e) {
22825
+ okRbRaiseAXIOperation(e);
22826
+ goto fail;
22827
+ } catch (const okPyAXITransferException& e) {
22828
+ okRbRaiseAXITransfer(e);
22829
+ goto fail;
22830
+ } catch (const okFrontPanelException& e) {
22831
+ okRbRaiseFrontPanel(e);
22832
+ goto fail;
22833
+ } catch (const std::exception& e) {
22834
+ SWIG_Error(SWIG_RuntimeError, e.what());
22835
+ goto fail;
22836
+ }
22837
+ /*@SWIG@*/
22382
22838
  }
22383
- arg5 = reinterpret_cast< okTOperationStatistics * >(argp5);
22384
- result = (OpalKellyLegacy::ErrorCode)(arg1)->Write(arg2,(unsigned char const *)arg3,arg4,*arg5);
22385
- vresult = SWIG_From_int(static_cast< int >(result));
22839
+ vresult = SWIG_NewPointerObj((new okTOperationStatistics(static_cast< const okTOperationStatistics& >(result))), SWIGTYPE_p_okTOperationStatistics, SWIG_POINTER_OWN | 0 );
22840
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
22386
22841
  return vresult;
22387
22842
  fail:
22843
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
22388
22844
  return Qnil;
22389
22845
  }
22390
22846
 
22391
22847
 
22392
22848
  SWIGINTERN VALUE _wrap_okCFrontPanelAXIFull_Write(int nargs, VALUE *args, VALUE self) {
22393
22849
  int argc;
22394
- VALUE argv[8];
22850
+ VALUE argv[6];
22395
22851
  int ii;
22396
22852
 
22397
22853
  argc = nargs + 1;
22398
22854
  argv[0] = self;
22399
- if (argc > 8) SWIG_fail;
22855
+ if (argc > 6) SWIG_fail;
22400
22856
  for (ii = 1; (ii < argc); ++ii) {
22401
22857
  argv[ii] = args[ii-1];
22402
22858
  }
22403
- if (argc == 5) {
22859
+ if (argc == 3) {
22404
22860
  int _v;
22405
22861
  void *vptr = 0;
22406
22862
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, 0);
@@ -22411,27 +22867,49 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXIFull_Write(int nargs, VALUE *args, VALUE
22411
22867
  _v = SWIG_CheckState(res);
22412
22868
  }
22413
22869
  if (_v) {
22414
- void *vptr = 0;
22415
- int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
22870
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
22416
22871
  _v = SWIG_CheckState(res);
22417
22872
  if (_v) {
22873
+ if (argc <= 3) {
22874
+ return _wrap_okCFrontPanelAXIFull_Write__SWIG_2(nargs, args, self);
22875
+ }
22418
22876
  {
22419
- int res = SWIG_AsVal_size_t(argv[3], NULL);
22877
+ int res = SWIG_AsVal_int(argv[3], NULL);
22420
22878
  _v = SWIG_CheckState(res);
22421
22879
  }
22422
22880
  if (_v) {
22423
- void *vptr = 0;
22424
- int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_okTOperationStatistics, SWIG_POINTER_NO_NULL);
22881
+ return _wrap_okCFrontPanelAXIFull_Write__SWIG_2(nargs, args, self);
22882
+ }
22883
+ }
22884
+ }
22885
+ }
22886
+ }
22887
+ if (argc == 4) {
22888
+ int _v;
22889
+ void *vptr = 0;
22890
+ int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, 0);
22891
+ _v = SWIG_CheckState(res);
22892
+ if (_v) {
22893
+ {
22894
+ int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], NULL);
22895
+ _v = SWIG_CheckState(res);
22896
+ }
22897
+ if (_v) {
22898
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
22899
+ _v = SWIG_CheckState(res);
22900
+ if (_v) {
22901
+ {
22902
+ int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
22425
22903
  _v = SWIG_CheckState(res);
22426
- if (_v) {
22427
- return _wrap_okCFrontPanelAXIFull_Write__SWIG_1(nargs, args, self);
22428
- }
22904
+ }
22905
+ if (_v) {
22906
+ return _wrap_okCFrontPanelAXIFull_Write__SWIG_1(nargs, args, self);
22429
22907
  }
22430
22908
  }
22431
22909
  }
22432
22910
  }
22433
22911
  }
22434
- if (argc == 7) {
22912
+ if (argc == 5) {
22435
22913
  int _v;
22436
22914
  void *vptr = 0;
22437
22915
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, 0);
@@ -22442,12 +22920,11 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXIFull_Write(int nargs, VALUE *args, VALUE
22442
22920
  _v = SWIG_CheckState(res);
22443
22921
  }
22444
22922
  if (_v) {
22445
- void *vptr = 0;
22446
- int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_char, 0);
22923
+ int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
22447
22924
  _v = SWIG_CheckState(res);
22448
22925
  if (_v) {
22449
22926
  {
22450
- int res = SWIG_AsVal_size_t(argv[3], NULL);
22927
+ int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
22451
22928
  _v = SWIG_CheckState(res);
22452
22929
  }
22453
22930
  if (_v) {
@@ -22456,18 +22933,7 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXIFull_Write(int nargs, VALUE *args, VALUE
22456
22933
  _v = SWIG_CheckState(res);
22457
22934
  }
22458
22935
  if (_v) {
22459
- {
22460
- int res = SWIG_AsVal_unsigned_SS_int(argv[5], NULL);
22461
- _v = SWIG_CheckState(res);
22462
- }
22463
- if (_v) {
22464
- void *vptr = 0;
22465
- int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_okTOperationStatistics, SWIG_POINTER_NO_NULL);
22466
- _v = SWIG_CheckState(res);
22467
- if (_v) {
22468
- return _wrap_okCFrontPanelAXIFull_Write__SWIG_0(nargs, args, self);
22469
- }
22470
- }
22936
+ return _wrap_okCFrontPanelAXIFull_Write__SWIG_0(nargs, args, self);
22471
22937
  }
22472
22938
  }
22473
22939
  }
@@ -22476,34 +22942,11 @@ SWIGINTERN VALUE _wrap_okCFrontPanelAXIFull_Write(int nargs, VALUE *args, VALUE
22476
22942
  }
22477
22943
 
22478
22944
  fail:
22479
- Ruby_Format_OverloadedError( argc, 8, "okCFrontPanelAXIFull.Write",
22480
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXIFull.Write(UINT64 address, unsigned char const *pData, std::size_t dataSize, UINT32 burst, UINT32 timeoutMilliseconds, okTOperationStatistics &operationStats)\n"
22481
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXIFull.Write(UINT64 address, unsigned char const *pData, std::size_t dataSize, okTOperationStatistics &operationStats)\n");
22482
-
22483
- return Qnil;
22484
- }
22485
-
22486
-
22487
- SWIGINTERN VALUE
22488
- _wrap_okCFrontPanelAXIFull_Reset(int argc, VALUE *argv, VALUE self) {
22489
- OpalKellyLegacy::okCFrontPanelAXIFull *arg1 = (OpalKellyLegacy::okCFrontPanelAXIFull *) 0 ;
22490
- void *argp1 = 0 ;
22491
- int res1 = 0 ;
22492
- OpalKellyLegacy::ErrorCode result;
22493
- VALUE vresult = Qnil;
22945
+ Ruby_Format_OverloadedError( argc, 6, "Write",
22946
+ " okTOperationStatistics Write(UINT64 address, char *data, int length, UINT32 burst, UINT32 timeoutMilliseconds)\n"
22947
+ " okTOperationStatistics Write(UINT64 address, char *data, int length, UINT32 burst)\n"
22948
+ " okTOperationStatistics Write(UINT64 address, char *data, int length)\n");
22494
22949
 
22495
- if ((argc < 0) || (argc > 0)) {
22496
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
22497
- }
22498
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, 0 | 0 );
22499
- if (!SWIG_IsOK(res1)) {
22500
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIFull *","Reset", 1, self ));
22501
- }
22502
- arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXIFull * >(argp1);
22503
- result = (OpalKellyLegacy::ErrorCode)(arg1)->Reset();
22504
- vresult = SWIG_From_int(static_cast< int >(result));
22505
- return vresult;
22506
- fail:
22507
22950
  return Qnil;
22508
22951
  }
22509
22952
 
@@ -22565,57 +23008,22 @@ fail:
22565
23008
 
22566
23009
 
22567
23010
  SWIGINTERN VALUE
22568
- _wrap_okCFrontPanelAXIStream_Read__SWIG_0(int argc, VALUE *argv, VALUE self) {
23011
+ _wrap_okCFrontPanelAXIStream_Reset(int argc, VALUE *argv, VALUE self) {
22569
23012
  OpalKellyLegacy::okCFrontPanelAXIStream *arg1 = (OpalKellyLegacy::okCFrontPanelAXIStream *) 0 ;
22570
- unsigned char *arg2 = (unsigned char *) 0 ;
22571
- std::size_t arg3 ;
22572
- UINT32 arg4 ;
22573
- UINT64 *arg5 = 0 ;
22574
23013
  void *argp1 = 0 ;
22575
23014
  int res1 = 0 ;
22576
- void *argp2 = 0 ;
22577
- int res2 = 0 ;
22578
- size_t val3 ;
22579
- int ecode3 = 0 ;
22580
- unsigned int val4 ;
22581
- int ecode4 = 0 ;
22582
- void *argp5 = 0 ;
22583
- int res5 = 0 ;
22584
23015
  OpalKellyLegacy::ErrorCode result;
22585
23016
  VALUE vresult = Qnil;
22586
23017
 
22587
- if ((argc < 4) || (argc > 4)) {
22588
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
23018
+ if ((argc < 0) || (argc > 0)) {
23019
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
22589
23020
  }
22590
23021
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIStream, 0 | 0 );
22591
23022
  if (!SWIG_IsOK(res1)) {
22592
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIStream *","Read", 1, self ));
23023
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIStream *","Reset", 1, self ));
22593
23024
  }
22594
23025
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXIStream * >(argp1);
22595
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
22596
- if (!SWIG_IsOK(res2)) {
22597
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "unsigned char *","Read", 2, argv[0] ));
22598
- }
22599
- arg2 = reinterpret_cast< unsigned char * >(argp2);
22600
- ecode3 = SWIG_AsVal_size_t(argv[1], &val3);
22601
- if (!SWIG_IsOK(ecode3)) {
22602
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "std::size_t","Read", 3, argv[1] ));
22603
- }
22604
- arg3 = static_cast< std::size_t >(val3);
22605
- ecode4 = SWIG_AsVal_unsigned_SS_int(argv[2], &val4);
22606
- if (!SWIG_IsOK(ecode4)) {
22607
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "UINT32","Read", 4, argv[2] ));
22608
- }
22609
- arg4 = static_cast< UINT32 >(val4);
22610
- res5 = SWIG_ConvertPtr(argv[3], &argp5, SWIGTYPE_p_unsigned_long_long, 0 );
22611
- if (!SWIG_IsOK(res5)) {
22612
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "UINT64 &","Read", 5, argv[3] ));
22613
- }
22614
- if (!argp5) {
22615
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "UINT64 &","Read", 5, argv[3]));
22616
- }
22617
- arg5 = reinterpret_cast< UINT64 * >(argp5);
22618
- result = (OpalKellyLegacy::ErrorCode)(arg1)->Read(arg2,arg3,arg4,*arg5);
23026
+ result = (OpalKellyLegacy::ErrorCode)(arg1)->Reset();
22619
23027
  vresult = SWIG_From_int(static_cast< int >(result));
22620
23028
  return vresult;
22621
23029
  fail:
@@ -22624,60 +23032,64 @@ fail:
22624
23032
 
22625
23033
 
22626
23034
  SWIGINTERN VALUE
22627
- _wrap_okCFrontPanelAXIStream_Write__SWIG_0(int argc, VALUE *argv, VALUE self) {
23035
+ _wrap_okCFrontPanelAXIStream_Read__SWIG_0(int argc, VALUE *argv, VALUE self) {
22628
23036
  OpalKellyLegacy::okCFrontPanelAXIStream *arg1 = (OpalKellyLegacy::okCFrontPanelAXIStream *) 0 ;
22629
- unsigned char *arg2 = (unsigned char *) 0 ;
22630
- std::size_t arg3 ;
23037
+ char *arg2 = (char *) 0 ;
23038
+ int arg3 ;
22631
23039
  UINT32 arg4 ;
22632
- UINT64 *arg5 = 0 ;
22633
23040
  void *argp1 = 0 ;
22634
23041
  int res1 = 0 ;
22635
- void *argp2 = 0 ;
22636
- int res2 = 0 ;
22637
- size_t val3 ;
22638
- int ecode3 = 0 ;
23042
+ int res2 ;
23043
+ char *buf2 = 0 ;
23044
+ size_t size2 = 0 ;
23045
+ int alloc2 = 0 ;
22639
23046
  unsigned int val4 ;
22640
23047
  int ecode4 = 0 ;
22641
- void *argp5 = 0 ;
22642
- int res5 = 0 ;
22643
- OpalKellyLegacy::ErrorCode result;
23048
+ UINT64 result;
22644
23049
  VALUE vresult = Qnil;
22645
23050
 
22646
- if ((argc < 4) || (argc > 4)) {
22647
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
23051
+ if ((argc < 2) || (argc > 2)) {
23052
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
22648
23053
  }
22649
23054
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIStream, 0 | 0 );
22650
23055
  if (!SWIG_IsOK(res1)) {
22651
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIStream *","Write", 1, self ));
23056
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIStream *","Read", 1, self ));
22652
23057
  }
22653
23058
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXIStream * >(argp1);
22654
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
23059
+ res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, &size2, &alloc2);
22655
23060
  if (!SWIG_IsOK(res2)) {
22656
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "unsigned char const *","Write", 2, argv[0] ));
22657
- }
22658
- arg2 = reinterpret_cast< unsigned char * >(argp2);
22659
- ecode3 = SWIG_AsVal_size_t(argv[1], &val3);
22660
- if (!SWIG_IsOK(ecode3)) {
22661
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "std::size_t","Write", 3, argv[1] ));
22662
- }
22663
- arg3 = static_cast< std::size_t >(val3);
22664
- ecode4 = SWIG_AsVal_unsigned_SS_int(argv[2], &val4);
23061
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","Read", 2, argv[0] ));
23062
+ }
23063
+ arg2 = reinterpret_cast< char * >(buf2);
23064
+ arg3 = static_cast< int >(size2 - 1);
23065
+ ecode4 = SWIG_AsVal_unsigned_SS_int(argv[1], &val4);
22665
23066
  if (!SWIG_IsOK(ecode4)) {
22666
- SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "UINT32","Write", 4, argv[2] ));
23067
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "UINT32","Read", 4, argv[1] ));
22667
23068
  }
22668
23069
  arg4 = static_cast< UINT32 >(val4);
22669
- res5 = SWIG_ConvertPtr(argv[3], &argp5, SWIGTYPE_p_unsigned_long_long, 0 );
22670
- if (!SWIG_IsOK(res5)) {
22671
- SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "UINT64 &","Write", 5, argv[3] ));
22672
- }
22673
- if (!argp5) {
22674
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "UINT64 &","Write", 5, argv[3]));
23070
+ {
23071
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
23072
+ result = (UINT64)OpalKellyLegacy_okCFrontPanelAXIStream_Read__SWIG_0(arg1,arg2,arg3,arg4);
23073
+ } catch (const okPyAXIOperationException& e) {
23074
+ okRbRaiseAXIOperation(e);
23075
+ goto fail;
23076
+ } catch (const okPyAXITransferException& e) {
23077
+ okRbRaiseAXITransfer(e);
23078
+ goto fail;
23079
+ } catch (const okFrontPanelException& e) {
23080
+ okRbRaiseFrontPanel(e);
23081
+ goto fail;
23082
+ } catch (const std::exception& e) {
23083
+ SWIG_Error(SWIG_RuntimeError, e.what());
23084
+ goto fail;
23085
+ }
23086
+ /*@SWIG@*/
22675
23087
  }
22676
- arg5 = reinterpret_cast< UINT64 * >(argp5);
22677
- result = (OpalKellyLegacy::ErrorCode)(arg1)->Write((unsigned char const *)arg2,arg3,arg4,*arg5);
22678
- vresult = SWIG_From_int(static_cast< int >(result));
23088
+ vresult = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
23089
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
22679
23090
  return vresult;
22680
23091
  fail:
23092
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
22681
23093
  return Qnil;
22682
23094
  }
22683
23095
 
@@ -22685,279 +23097,296 @@ fail:
22685
23097
  SWIGINTERN VALUE
22686
23098
  _wrap_okCFrontPanelAXIStream_Read__SWIG_1(int argc, VALUE *argv, VALUE self) {
22687
23099
  OpalKellyLegacy::okCFrontPanelAXIStream *arg1 = (OpalKellyLegacy::okCFrontPanelAXIStream *) 0 ;
22688
- unsigned char *arg2 = (unsigned char *) 0 ;
22689
- std::size_t arg3 ;
22690
- UINT64 *arg4 = 0 ;
23100
+ char *arg2 = (char *) 0 ;
23101
+ int arg3 ;
22691
23102
  void *argp1 = 0 ;
22692
23103
  int res1 = 0 ;
22693
- void *argp2 = 0 ;
22694
- int res2 = 0 ;
22695
- size_t val3 ;
22696
- int ecode3 = 0 ;
22697
- void *argp4 = 0 ;
22698
- int res4 = 0 ;
22699
- OpalKellyLegacy::ErrorCode result;
23104
+ int res2 ;
23105
+ char *buf2 = 0 ;
23106
+ size_t size2 = 0 ;
23107
+ int alloc2 = 0 ;
23108
+ UINT64 result;
22700
23109
  VALUE vresult = Qnil;
22701
23110
 
22702
- if ((argc < 3) || (argc > 3)) {
22703
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
23111
+ if ((argc < 1) || (argc > 1)) {
23112
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
22704
23113
  }
22705
23114
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIStream, 0 | 0 );
22706
23115
  if (!SWIG_IsOK(res1)) {
22707
23116
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIStream *","Read", 1, self ));
22708
23117
  }
22709
23118
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXIStream * >(argp1);
22710
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
23119
+ res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, &size2, &alloc2);
22711
23120
  if (!SWIG_IsOK(res2)) {
22712
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "unsigned char *","Read", 2, argv[0] ));
22713
- }
22714
- arg2 = reinterpret_cast< unsigned char * >(argp2);
22715
- ecode3 = SWIG_AsVal_size_t(argv[1], &val3);
22716
- if (!SWIG_IsOK(ecode3)) {
22717
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "std::size_t","Read", 3, argv[1] ));
22718
- }
22719
- arg3 = static_cast< std::size_t >(val3);
22720
- res4 = SWIG_ConvertPtr(argv[2], &argp4, SWIGTYPE_p_unsigned_long_long, 0 );
22721
- if (!SWIG_IsOK(res4)) {
22722
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "UINT64 &","Read", 4, argv[2] ));
22723
- }
22724
- if (!argp4) {
22725
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "UINT64 &","Read", 4, argv[2]));
23121
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","Read", 2, argv[0] ));
23122
+ }
23123
+ arg2 = reinterpret_cast< char * >(buf2);
23124
+ arg3 = static_cast< int >(size2 - 1);
23125
+ {
23126
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
23127
+ result = (UINT64)OpalKellyLegacy_okCFrontPanelAXIStream_Read__SWIG_0(arg1,arg2,arg3);
23128
+ } catch (const okPyAXIOperationException& e) {
23129
+ okRbRaiseAXIOperation(e);
23130
+ goto fail;
23131
+ } catch (const okPyAXITransferException& e) {
23132
+ okRbRaiseAXITransfer(e);
23133
+ goto fail;
23134
+ } catch (const okFrontPanelException& e) {
23135
+ okRbRaiseFrontPanel(e);
23136
+ goto fail;
23137
+ } catch (const std::exception& e) {
23138
+ SWIG_Error(SWIG_RuntimeError, e.what());
23139
+ goto fail;
23140
+ }
23141
+ /*@SWIG@*/
22726
23142
  }
22727
- arg4 = reinterpret_cast< UINT64 * >(argp4);
22728
- result = (OpalKellyLegacy::ErrorCode)(arg1)->Read(arg2,arg3,*arg4);
22729
- vresult = SWIG_From_int(static_cast< int >(result));
23143
+ vresult = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
23144
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
22730
23145
  return vresult;
22731
23146
  fail:
23147
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
22732
23148
  return Qnil;
22733
23149
  }
22734
23150
 
22735
23151
 
22736
23152
  SWIGINTERN VALUE _wrap_okCFrontPanelAXIStream_Read(int nargs, VALUE *args, VALUE self) {
22737
23153
  int argc;
22738
- VALUE argv[6];
23154
+ VALUE argv[4];
22739
23155
  int ii;
22740
23156
 
22741
23157
  argc = nargs + 1;
22742
23158
  argv[0] = self;
22743
- if (argc > 6) SWIG_fail;
23159
+ if (argc > 4) SWIG_fail;
22744
23160
  for (ii = 1; (ii < argc); ++ii) {
22745
23161
  argv[ii] = args[ii-1];
22746
23162
  }
22747
- if (argc == 4) {
23163
+ if (argc == 2) {
22748
23164
  int _v;
22749
23165
  void *vptr = 0;
22750
23166
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIStream, 0);
22751
23167
  _v = SWIG_CheckState(res);
22752
23168
  if (_v) {
22753
- void *vptr = 0;
22754
- int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
23169
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
22755
23170
  _v = SWIG_CheckState(res);
22756
23171
  if (_v) {
23172
+ if (argc <= 2) {
23173
+ return _wrap_okCFrontPanelAXIStream_Read__SWIG_1(nargs, args, self);
23174
+ }
22757
23175
  {
22758
- int res = SWIG_AsVal_size_t(argv[2], NULL);
23176
+ int res = SWIG_AsVal_int(argv[2], NULL);
22759
23177
  _v = SWIG_CheckState(res);
22760
23178
  }
22761
23179
  if (_v) {
22762
- void *vptr = 0;
22763
- int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_long_long, SWIG_POINTER_NO_NULL);
22764
- _v = SWIG_CheckState(res);
22765
- if (_v) {
22766
- return _wrap_okCFrontPanelAXIStream_Read__SWIG_1(nargs, args, self);
22767
- }
23180
+ return _wrap_okCFrontPanelAXIStream_Read__SWIG_1(nargs, args, self);
22768
23181
  }
22769
23182
  }
22770
23183
  }
22771
23184
  }
22772
- if (argc == 5) {
23185
+ if (argc == 3) {
22773
23186
  int _v;
22774
23187
  void *vptr = 0;
22775
23188
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIStream, 0);
22776
23189
  _v = SWIG_CheckState(res);
22777
23190
  if (_v) {
22778
- void *vptr = 0;
22779
- int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
23191
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
22780
23192
  _v = SWIG_CheckState(res);
22781
23193
  if (_v) {
22782
23194
  {
22783
- int res = SWIG_AsVal_size_t(argv[2], NULL);
23195
+ int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
22784
23196
  _v = SWIG_CheckState(res);
22785
23197
  }
22786
23198
  if (_v) {
22787
- {
22788
- int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
22789
- _v = SWIG_CheckState(res);
22790
- }
22791
- if (_v) {
22792
- void *vptr = 0;
22793
- int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_long_long, SWIG_POINTER_NO_NULL);
22794
- _v = SWIG_CheckState(res);
22795
- if (_v) {
22796
- return _wrap_okCFrontPanelAXIStream_Read__SWIG_0(nargs, args, self);
22797
- }
22798
- }
23199
+ return _wrap_okCFrontPanelAXIStream_Read__SWIG_0(nargs, args, self);
22799
23200
  }
22800
23201
  }
22801
23202
  }
22802
23203
  }
22803
23204
 
22804
23205
  fail:
22805
- Ruby_Format_OverloadedError( argc, 6, "okCFrontPanelAXIStream.Read",
22806
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXIStream.Read(unsigned char *pBuffer, std::size_t bufferSize, UINT32 timeoutMilliseconds, UINT64 &transferByteCount)\n"
22807
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXIStream.Read(unsigned char *pBuffer, std::size_t bufferSize, UINT64 &transferByteCount)\n");
23206
+ Ruby_Format_OverloadedError( argc, 4, "Read",
23207
+ " UINT64 Read(char *data, int length, UINT32 timeoutMilliseconds)\n"
23208
+ " UINT64 Read(char *data, int length)\n");
22808
23209
 
22809
23210
  return Qnil;
22810
23211
  }
22811
23212
 
22812
23213
 
22813
23214
  SWIGINTERN VALUE
22814
- _wrap_okCFrontPanelAXIStream_Write__SWIG_1(int argc, VALUE *argv, VALUE self) {
23215
+ _wrap_okCFrontPanelAXIStream_Write__SWIG_0(int argc, VALUE *argv, VALUE self) {
22815
23216
  OpalKellyLegacy::okCFrontPanelAXIStream *arg1 = (OpalKellyLegacy::okCFrontPanelAXIStream *) 0 ;
22816
- unsigned char *arg2 = (unsigned char *) 0 ;
22817
- std::size_t arg3 ;
22818
- UINT64 *arg4 = 0 ;
23217
+ char *arg2 = (char *) 0 ;
23218
+ int arg3 ;
23219
+ UINT32 arg4 ;
22819
23220
  void *argp1 = 0 ;
22820
23221
  int res1 = 0 ;
22821
- void *argp2 = 0 ;
22822
- int res2 = 0 ;
22823
- size_t val3 ;
22824
- int ecode3 = 0 ;
22825
- void *argp4 = 0 ;
22826
- int res4 = 0 ;
22827
- OpalKellyLegacy::ErrorCode result;
23222
+ int res2 ;
23223
+ char *buf2 = 0 ;
23224
+ size_t size2 = 0 ;
23225
+ int alloc2 = 0 ;
23226
+ unsigned int val4 ;
23227
+ int ecode4 = 0 ;
23228
+ UINT64 result;
22828
23229
  VALUE vresult = Qnil;
22829
23230
 
22830
- if ((argc < 3) || (argc > 3)) {
22831
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
23231
+ if ((argc < 2) || (argc > 2)) {
23232
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
22832
23233
  }
22833
23234
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIStream, 0 | 0 );
22834
23235
  if (!SWIG_IsOK(res1)) {
22835
23236
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIStream *","Write", 1, self ));
22836
23237
  }
22837
23238
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXIStream * >(argp1);
22838
- res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
23239
+ res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, &size2, &alloc2);
22839
23240
  if (!SWIG_IsOK(res2)) {
22840
- SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "unsigned char const *","Write", 2, argv[0] ));
22841
- }
22842
- arg2 = reinterpret_cast< unsigned char * >(argp2);
22843
- ecode3 = SWIG_AsVal_size_t(argv[1], &val3);
22844
- if (!SWIG_IsOK(ecode3)) {
22845
- SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "std::size_t","Write", 3, argv[1] ));
23241
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","Write", 2, argv[0] ));
23242
+ }
23243
+ arg2 = reinterpret_cast< char * >(buf2);
23244
+ arg3 = static_cast< int >(size2 - 1);
23245
+ ecode4 = SWIG_AsVal_unsigned_SS_int(argv[1], &val4);
23246
+ if (!SWIG_IsOK(ecode4)) {
23247
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "UINT32","Write", 4, argv[1] ));
22846
23248
  }
22847
- arg3 = static_cast< std::size_t >(val3);
22848
- res4 = SWIG_ConvertPtr(argv[2], &argp4, SWIGTYPE_p_unsigned_long_long, 0 );
22849
- if (!SWIG_IsOK(res4)) {
22850
- SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "UINT64 &","Write", 4, argv[2] ));
23249
+ arg4 = static_cast< UINT32 >(val4);
23250
+ {
23251
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
23252
+ result = (UINT64)OpalKellyLegacy_okCFrontPanelAXIStream_Write__SWIG_0(arg1,arg2,arg3,arg4);
23253
+ } catch (const okPyAXIOperationException& e) {
23254
+ okRbRaiseAXIOperation(e);
23255
+ goto fail;
23256
+ } catch (const okPyAXITransferException& e) {
23257
+ okRbRaiseAXITransfer(e);
23258
+ goto fail;
23259
+ } catch (const okFrontPanelException& e) {
23260
+ okRbRaiseFrontPanel(e);
23261
+ goto fail;
23262
+ } catch (const std::exception& e) {
23263
+ SWIG_Error(SWIG_RuntimeError, e.what());
23264
+ goto fail;
23265
+ }
23266
+ /*@SWIG@*/
22851
23267
  }
22852
- if (!argp4) {
22853
- SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "UINT64 &","Write", 4, argv[2]));
23268
+ vresult = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
23269
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
23270
+ return vresult;
23271
+ fail:
23272
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
23273
+ return Qnil;
23274
+ }
23275
+
23276
+
23277
+ SWIGINTERN VALUE
23278
+ _wrap_okCFrontPanelAXIStream_Write__SWIG_1(int argc, VALUE *argv, VALUE self) {
23279
+ OpalKellyLegacy::okCFrontPanelAXIStream *arg1 = (OpalKellyLegacy::okCFrontPanelAXIStream *) 0 ;
23280
+ char *arg2 = (char *) 0 ;
23281
+ int arg3 ;
23282
+ void *argp1 = 0 ;
23283
+ int res1 = 0 ;
23284
+ int res2 ;
23285
+ char *buf2 = 0 ;
23286
+ size_t size2 = 0 ;
23287
+ int alloc2 = 0 ;
23288
+ UINT64 result;
23289
+ VALUE vresult = Qnil;
23290
+
23291
+ if ((argc < 1) || (argc > 1)) {
23292
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
22854
23293
  }
22855
- arg4 = reinterpret_cast< UINT64 * >(argp4);
22856
- result = (OpalKellyLegacy::ErrorCode)(arg1)->Write((unsigned char const *)arg2,arg3,*arg4);
22857
- vresult = SWIG_From_int(static_cast< int >(result));
23294
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIStream, 0 | 0 );
23295
+ if (!SWIG_IsOK(res1)) {
23296
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIStream *","Write", 1, self ));
23297
+ }
23298
+ arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXIStream * >(argp1);
23299
+ res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, &size2, &alloc2);
23300
+ if (!SWIG_IsOK(res2)) {
23301
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","Write", 2, argv[0] ));
23302
+ }
23303
+ arg2 = reinterpret_cast< char * >(buf2);
23304
+ arg3 = static_cast< int >(size2 - 1);
23305
+ {
23306
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
23307
+ result = (UINT64)OpalKellyLegacy_okCFrontPanelAXIStream_Write__SWIG_0(arg1,arg2,arg3);
23308
+ } catch (const okPyAXIOperationException& e) {
23309
+ okRbRaiseAXIOperation(e);
23310
+ goto fail;
23311
+ } catch (const okPyAXITransferException& e) {
23312
+ okRbRaiseAXITransfer(e);
23313
+ goto fail;
23314
+ } catch (const okFrontPanelException& e) {
23315
+ okRbRaiseFrontPanel(e);
23316
+ goto fail;
23317
+ } catch (const std::exception& e) {
23318
+ SWIG_Error(SWIG_RuntimeError, e.what());
23319
+ goto fail;
23320
+ }
23321
+ /*@SWIG@*/
23322
+ }
23323
+ vresult = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
23324
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
22858
23325
  return vresult;
22859
23326
  fail:
23327
+ if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
22860
23328
  return Qnil;
22861
23329
  }
22862
23330
 
22863
23331
 
22864
23332
  SWIGINTERN VALUE _wrap_okCFrontPanelAXIStream_Write(int nargs, VALUE *args, VALUE self) {
22865
23333
  int argc;
22866
- VALUE argv[6];
23334
+ VALUE argv[4];
22867
23335
  int ii;
22868
23336
 
22869
23337
  argc = nargs + 1;
22870
23338
  argv[0] = self;
22871
- if (argc > 6) SWIG_fail;
23339
+ if (argc > 4) SWIG_fail;
22872
23340
  for (ii = 1; (ii < argc); ++ii) {
22873
23341
  argv[ii] = args[ii-1];
22874
23342
  }
22875
- if (argc == 4) {
23343
+ if (argc == 2) {
22876
23344
  int _v;
22877
23345
  void *vptr = 0;
22878
23346
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIStream, 0);
22879
23347
  _v = SWIG_CheckState(res);
22880
23348
  if (_v) {
22881
- void *vptr = 0;
22882
- int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
23349
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
22883
23350
  _v = SWIG_CheckState(res);
22884
23351
  if (_v) {
23352
+ if (argc <= 2) {
23353
+ return _wrap_okCFrontPanelAXIStream_Write__SWIG_1(nargs, args, self);
23354
+ }
22885
23355
  {
22886
- int res = SWIG_AsVal_size_t(argv[2], NULL);
23356
+ int res = SWIG_AsVal_int(argv[2], NULL);
22887
23357
  _v = SWIG_CheckState(res);
22888
23358
  }
22889
23359
  if (_v) {
22890
- void *vptr = 0;
22891
- int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_unsigned_long_long, SWIG_POINTER_NO_NULL);
22892
- _v = SWIG_CheckState(res);
22893
- if (_v) {
22894
- return _wrap_okCFrontPanelAXIStream_Write__SWIG_1(nargs, args, self);
22895
- }
23360
+ return _wrap_okCFrontPanelAXIStream_Write__SWIG_1(nargs, args, self);
22896
23361
  }
22897
23362
  }
22898
23363
  }
22899
23364
  }
22900
- if (argc == 5) {
23365
+ if (argc == 3) {
22901
23366
  int _v;
22902
23367
  void *vptr = 0;
22903
23368
  int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIStream, 0);
22904
23369
  _v = SWIG_CheckState(res);
22905
23370
  if (_v) {
22906
- void *vptr = 0;
22907
- int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_char, 0);
23371
+ int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
22908
23372
  _v = SWIG_CheckState(res);
22909
23373
  if (_v) {
22910
23374
  {
22911
- int res = SWIG_AsVal_size_t(argv[2], NULL);
23375
+ int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL);
22912
23376
  _v = SWIG_CheckState(res);
22913
23377
  }
22914
23378
  if (_v) {
22915
- {
22916
- int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL);
22917
- _v = SWIG_CheckState(res);
22918
- }
22919
- if (_v) {
22920
- void *vptr = 0;
22921
- int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_unsigned_long_long, SWIG_POINTER_NO_NULL);
22922
- _v = SWIG_CheckState(res);
22923
- if (_v) {
22924
- return _wrap_okCFrontPanelAXIStream_Write__SWIG_0(nargs, args, self);
22925
- }
22926
- }
23379
+ return _wrap_okCFrontPanelAXIStream_Write__SWIG_0(nargs, args, self);
22927
23380
  }
22928
23381
  }
22929
23382
  }
22930
23383
  }
22931
23384
 
22932
23385
  fail:
22933
- Ruby_Format_OverloadedError( argc, 6, "okCFrontPanelAXIStream.Write",
22934
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXIStream.Write(unsigned char const *pData, std::size_t dataSize, UINT32 timeoutMilliseconds, UINT64 &transferByteCount)\n"
22935
- " OpalKellyLegacy::ErrorCode okCFrontPanelAXIStream.Write(unsigned char const *pData, std::size_t dataSize, UINT64 &transferByteCount)\n");
22936
-
22937
- return Qnil;
22938
- }
22939
-
22940
-
22941
- SWIGINTERN VALUE
22942
- _wrap_okCFrontPanelAXIStream_Reset(int argc, VALUE *argv, VALUE self) {
22943
- OpalKellyLegacy::okCFrontPanelAXIStream *arg1 = (OpalKellyLegacy::okCFrontPanelAXIStream *) 0 ;
22944
- void *argp1 = 0 ;
22945
- int res1 = 0 ;
22946
- OpalKellyLegacy::ErrorCode result;
22947
- VALUE vresult = Qnil;
23386
+ Ruby_Format_OverloadedError( argc, 4, "Write",
23387
+ " UINT64 Write(char *data, int length, UINT32 timeoutMilliseconds)\n"
23388
+ " UINT64 Write(char *data, int length)\n");
22948
23389
 
22949
- if ((argc < 0) || (argc > 0)) {
22950
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
22951
- }
22952
- res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIStream, 0 | 0 );
22953
- if (!SWIG_IsOK(res1)) {
22954
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanelAXIStream *","Reset", 1, self ));
22955
- }
22956
- arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanelAXIStream * >(argp1);
22957
- result = (OpalKellyLegacy::ErrorCode)(arg1)->Reset();
22958
- vresult = SWIG_From_int(static_cast< int >(result));
22959
- return vresult;
22960
- fail:
22961
23390
  return Qnil;
22962
23391
  }
22963
23392
 
@@ -25221,10 +25650,23 @@ _wrap_okCFrontPanel_GetDeviceSensors(int argc, VALUE *argv, VALUE self) {
25221
25650
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanel *","GetDeviceSensors", 1, self ));
25222
25651
  }
25223
25652
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanel * >(argp1);
25224
- try {
25225
- result = OpalKellyLegacy_okCFrontPanel_GetDeviceSensors(arg1);
25226
- } catch(std::runtime_error &_e) {
25227
- SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
25653
+ {
25654
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
25655
+ result = OpalKellyLegacy_okCFrontPanel_GetDeviceSensors(arg1);
25656
+ } catch (const okPyAXIOperationException& e) {
25657
+ okRbRaiseAXIOperation(e);
25658
+ goto fail;
25659
+ } catch (const okPyAXITransferException& e) {
25660
+ okRbRaiseAXITransfer(e);
25661
+ goto fail;
25662
+ } catch (const okFrontPanelException& e) {
25663
+ okRbRaiseFrontPanel(e);
25664
+ goto fail;
25665
+ } catch (const std::exception& e) {
25666
+ SWIG_Error(SWIG_RuntimeError, e.what());
25667
+ goto fail;
25668
+ }
25669
+ /*@SWIG@*/
25228
25670
  }
25229
25671
  vresult = swig::from(static_cast< std::vector< okTDeviceSensor,std::allocator< okTDeviceSensor > > >(result));
25230
25672
  return vresult;
@@ -25249,10 +25691,23 @@ _wrap_okCFrontPanel_GetFPGADataPortAXI(int argc, VALUE *argv, VALUE self) {
25249
25691
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanel *","GetFPGADataPortAXI", 1, self ));
25250
25692
  }
25251
25693
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanel * >(argp1);
25252
- try {
25253
- result = OpalKellyLegacy_okCFrontPanel_GetFPGADataPortAXI(arg1);
25254
- } catch(std::runtime_error &_e) {
25255
- SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
25694
+ {
25695
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
25696
+ result = OpalKellyLegacy_okCFrontPanel_GetFPGADataPortAXI(arg1);
25697
+ } catch (const okPyAXIOperationException& e) {
25698
+ okRbRaiseAXIOperation(e);
25699
+ goto fail;
25700
+ } catch (const okPyAXITransferException& e) {
25701
+ okRbRaiseAXITransfer(e);
25702
+ goto fail;
25703
+ } catch (const okFrontPanelException& e) {
25704
+ okRbRaiseFrontPanel(e);
25705
+ goto fail;
25706
+ } catch (const std::exception& e) {
25707
+ SWIG_Error(SWIG_RuntimeError, e.what());
25708
+ goto fail;
25709
+ }
25710
+ /*@SWIG@*/
25256
25711
  }
25257
25712
  vresult = SWIG_NewPointerObj((new OpalKellyLegacy::okCFPGADataPortAXI(static_cast< const OpalKellyLegacy::okCFPGADataPortAXI& >(result))), SWIGTYPE_p_OpalKellyLegacy__okCFPGADataPortAXI, SWIG_POINTER_OWN | 0 );
25258
25713
  return vresult;
@@ -25277,10 +25732,23 @@ _wrap_okCFrontPanel_GetFPGADataPortClassic(int argc, VALUE *argv, VALUE self) {
25277
25732
  SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanel *","GetFPGADataPortClassic", 1, self ));
25278
25733
  }
25279
25734
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanel * >(argp1);
25280
- try {
25281
- result = OpalKellyLegacy_okCFrontPanel_GetFPGADataPortClassic(arg1);
25282
- } catch(std::runtime_error &_e) {
25283
- SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
25735
+ {
25736
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
25737
+ result = OpalKellyLegacy_okCFrontPanel_GetFPGADataPortClassic(arg1);
25738
+ } catch (const okPyAXIOperationException& e) {
25739
+ okRbRaiseAXIOperation(e);
25740
+ goto fail;
25741
+ } catch (const okPyAXITransferException& e) {
25742
+ okRbRaiseAXITransfer(e);
25743
+ goto fail;
25744
+ } catch (const okFrontPanelException& e) {
25745
+ okRbRaiseFrontPanel(e);
25746
+ goto fail;
25747
+ } catch (const std::exception& e) {
25748
+ SWIG_Error(SWIG_RuntimeError, e.what());
25749
+ goto fail;
25750
+ }
25751
+ /*@SWIG@*/
25284
25752
  }
25285
25753
  vresult = SWIG_NewPointerObj((new OpalKellyLegacy::okCFPGADataPortClassic(static_cast< const OpalKellyLegacy::okCFPGADataPortClassic& >(result))), SWIGTYPE_p_OpalKellyLegacy__okCFPGADataPortClassic, SWIG_POINTER_OWN | 0 );
25286
25754
  return vresult;
@@ -25306,8 +25774,17 @@ _wrap_okCFrontPanel_CreateLuaScriptEngine(int argc, VALUE *argv, VALUE self) {
25306
25774
  }
25307
25775
  arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanel * >(argp1);
25308
25776
  {
25309
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
25777
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
25310
25778
  result = OpalKellyLegacy_okCFrontPanel_CreateLuaScriptEngine(arg1);
25779
+ } catch (const okPyAXIOperationException& e) {
25780
+ okRbRaiseAXIOperation(e);
25781
+ goto fail;
25782
+ } catch (const okPyAXITransferException& e) {
25783
+ okRbRaiseAXITransfer(e);
25784
+ goto fail;
25785
+ } catch (const okFrontPanelException& e) {
25786
+ okRbRaiseFrontPanel(e);
25787
+ goto fail;
25311
25788
  } catch (const std::exception& e) {
25312
25789
  SWIG_Error(SWIG_RuntimeError, e.what());
25313
25790
  goto fail;
@@ -25392,8 +25869,17 @@ _wrap_okCDeviceSettings_GetString(int argc, VALUE *argv, VALUE self) {
25392
25869
  arg2 = ptr;
25393
25870
  }
25394
25871
  {
25395
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
25872
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
25396
25873
  result = OpalKellyLegacy_okCDeviceSettings_GetString(arg1,(std::string const &)*arg2);
25874
+ } catch (const okPyAXIOperationException& e) {
25875
+ okRbRaiseAXIOperation(e);
25876
+ goto fail;
25877
+ } catch (const okPyAXITransferException& e) {
25878
+ okRbRaiseAXITransfer(e);
25879
+ goto fail;
25880
+ } catch (const okFrontPanelException& e) {
25881
+ okRbRaiseFrontPanel(e);
25882
+ goto fail;
25397
25883
  } catch (const std::exception& e) {
25398
25884
  SWIG_Error(SWIG_RuntimeError, e.what());
25399
25885
  goto fail;
@@ -25439,8 +25925,17 @@ _wrap_okCDeviceSettings_GetInt(int argc, VALUE *argv, VALUE self) {
25439
25925
  arg2 = ptr;
25440
25926
  }
25441
25927
  {
25442
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
25928
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
25443
25929
  result = (UINT32)OpalKellyLegacy_okCDeviceSettings_GetInt(arg1,(std::string const &)*arg2);
25930
+ } catch (const okPyAXIOperationException& e) {
25931
+ okRbRaiseAXIOperation(e);
25932
+ goto fail;
25933
+ } catch (const okPyAXITransferException& e) {
25934
+ okRbRaiseAXITransfer(e);
25935
+ goto fail;
25936
+ } catch (const okFrontPanelException& e) {
25937
+ okRbRaiseFrontPanel(e);
25938
+ goto fail;
25444
25939
  } catch (const std::exception& e) {
25445
25940
  SWIG_Error(SWIG_RuntimeError, e.what());
25446
25941
  goto fail;
@@ -25497,8 +25992,17 @@ _wrap_okCDeviceSettings_SetString(int argc, VALUE *argv, VALUE self) {
25497
25992
  arg3 = ptr;
25498
25993
  }
25499
25994
  {
25500
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
25995
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
25501
25996
  OpalKellyLegacy_okCDeviceSettings_SetString(arg1,(std::string const &)*arg2,(std::string const &)*arg3);
25997
+ } catch (const okPyAXIOperationException& e) {
25998
+ okRbRaiseAXIOperation(e);
25999
+ goto fail;
26000
+ } catch (const okPyAXITransferException& e) {
26001
+ okRbRaiseAXITransfer(e);
26002
+ goto fail;
26003
+ } catch (const okFrontPanelException& e) {
26004
+ okRbRaiseFrontPanel(e);
26005
+ goto fail;
25502
26006
  } catch (const std::exception& e) {
25503
26007
  SWIG_Error(SWIG_RuntimeError, e.what());
25504
26008
  goto fail;
@@ -25551,8 +26055,17 @@ _wrap_okCDeviceSettings_SetInt(int argc, VALUE *argv, VALUE self) {
25551
26055
  }
25552
26056
  arg3 = static_cast< UINT32 >(val3);
25553
26057
  {
25554
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
26058
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
25555
26059
  OpalKellyLegacy_okCDeviceSettings_SetInt(arg1,(std::string const &)*arg2,arg3);
26060
+ } catch (const okPyAXIOperationException& e) {
26061
+ okRbRaiseAXIOperation(e);
26062
+ goto fail;
26063
+ } catch (const okPyAXITransferException& e) {
26064
+ okRbRaiseAXITransfer(e);
26065
+ goto fail;
26066
+ } catch (const okFrontPanelException& e) {
26067
+ okRbRaiseFrontPanel(e);
26068
+ goto fail;
25556
26069
  } catch (const std::exception& e) {
25557
26070
  SWIG_Error(SWIG_RuntimeError, e.what());
25558
26071
  goto fail;
@@ -25584,8 +26097,17 @@ _wrap_okCDeviceSettings_List(int argc, VALUE *argv, VALUE self) {
25584
26097
  }
25585
26098
  arg1 = reinterpret_cast< OpalKellyLegacy::okCDeviceSettings * >(argp1);
25586
26099
  {
25587
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
26100
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
25588
26101
  result = OpalKellyLegacy_okCDeviceSettings_List(arg1);
26102
+ } catch (const okPyAXIOperationException& e) {
26103
+ okRbRaiseAXIOperation(e);
26104
+ goto fail;
26105
+ } catch (const okPyAXITransferException& e) {
26106
+ okRbRaiseAXITransfer(e);
26107
+ goto fail;
26108
+ } catch (const okFrontPanelException& e) {
26109
+ okRbRaiseFrontPanel(e);
26110
+ goto fail;
25589
26111
  } catch (const std::exception& e) {
25590
26112
  SWIG_Error(SWIG_RuntimeError, e.what());
25591
26113
  goto fail;
@@ -25627,8 +26149,17 @@ _wrap_okCDeviceSettings_Delete(int argc, VALUE *argv, VALUE self) {
25627
26149
  arg2 = ptr;
25628
26150
  }
25629
26151
  {
25630
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
26152
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
25631
26153
  OpalKellyLegacy_okCDeviceSettings_Delete(arg1,(std::string const &)*arg2);
26154
+ } catch (const okPyAXIOperationException& e) {
26155
+ okRbRaiseAXIOperation(e);
26156
+ goto fail;
26157
+ } catch (const okPyAXITransferException& e) {
26158
+ okRbRaiseAXITransfer(e);
26159
+ goto fail;
26160
+ } catch (const okFrontPanelException& e) {
26161
+ okRbRaiseFrontPanel(e);
26162
+ goto fail;
25632
26163
  } catch (const std::exception& e) {
25633
26164
  SWIG_Error(SWIG_RuntimeError, e.what());
25634
26165
  goto fail;
@@ -25658,12 +26189,17 @@ _wrap_okCDeviceSettings_Save(int argc, VALUE *argv, VALUE self) {
25658
26189
  }
25659
26190
  arg1 = reinterpret_cast< OpalKellyLegacy::okCDeviceSettings * >(argp1);
25660
26191
  {
25661
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
25662
- try {
25663
- OpalKellyLegacy_okCDeviceSettings_Save(arg1);
25664
- } catch(std::runtime_error &_e) {
25665
- SWIG_exception_fail(SWIG_RuntimeError, (&_e)->what());
25666
- }
26192
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
26193
+ OpalKellyLegacy_okCDeviceSettings_Save(arg1);
26194
+ } catch (const okPyAXIOperationException& e) {
26195
+ okRbRaiseAXIOperation(e);
26196
+ goto fail;
26197
+ } catch (const okPyAXITransferException& e) {
26198
+ okRbRaiseAXITransfer(e);
26199
+ goto fail;
26200
+ } catch (const okFrontPanelException& e) {
26201
+ okRbRaiseFrontPanel(e);
26202
+ goto fail;
25667
26203
  } catch (const std::exception& e) {
25668
26204
  SWIG_Error(SWIG_RuntimeError, e.what());
25669
26205
  goto fail;
@@ -26240,8 +26776,17 @@ _wrap_okCScriptValue_GetNumber(int argc, VALUE *argv, VALUE self) {
26240
26776
  }
26241
26777
  arg1 = reinterpret_cast< OpalKelly::ScriptValue * >(argp1);
26242
26778
  {
26243
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
26779
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
26244
26780
  result = (int)((OpalKelly::ScriptValue const *)arg1)->GetNumber();
26781
+ } catch (const okPyAXIOperationException& e) {
26782
+ okRbRaiseAXIOperation(e);
26783
+ goto fail;
26784
+ } catch (const okPyAXITransferException& e) {
26785
+ okRbRaiseAXITransfer(e);
26786
+ goto fail;
26787
+ } catch (const okFrontPanelException& e) {
26788
+ okRbRaiseFrontPanel(e);
26789
+ goto fail;
26245
26790
  } catch (const std::exception& e) {
26246
26791
  SWIG_Error(SWIG_RuntimeError, e.what());
26247
26792
  goto fail;
@@ -26296,8 +26841,17 @@ _wrap_okCScriptValue_GetBool(int argc, VALUE *argv, VALUE self) {
26296
26841
  }
26297
26842
  arg1 = reinterpret_cast< OpalKelly::ScriptValue * >(argp1);
26298
26843
  {
26299
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
26844
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
26300
26845
  result = (bool)((OpalKelly::ScriptValue const *)arg1)->GetBool();
26846
+ } catch (const okPyAXIOperationException& e) {
26847
+ okRbRaiseAXIOperation(e);
26848
+ goto fail;
26849
+ } catch (const okPyAXITransferException& e) {
26850
+ okRbRaiseAXITransfer(e);
26851
+ goto fail;
26852
+ } catch (const okFrontPanelException& e) {
26853
+ okRbRaiseFrontPanel(e);
26854
+ goto fail;
26301
26855
  } catch (const std::exception& e) {
26302
26856
  SWIG_Error(SWIG_RuntimeError, e.what());
26303
26857
  goto fail;
@@ -26352,8 +26906,17 @@ _wrap_okCScriptValue_GetString(int argc, VALUE *argv, VALUE self) {
26352
26906
  }
26353
26907
  arg1 = reinterpret_cast< OpalKelly::ScriptValue * >(argp1);
26354
26908
  {
26355
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
26909
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
26356
26910
  result = ((OpalKelly::ScriptValue const *)arg1)->GetString();
26911
+ } catch (const okPyAXIOperationException& e) {
26912
+ okRbRaiseAXIOperation(e);
26913
+ goto fail;
26914
+ } catch (const okPyAXITransferException& e) {
26915
+ okRbRaiseAXITransfer(e);
26916
+ goto fail;
26917
+ } catch (const okFrontPanelException& e) {
26918
+ okRbRaiseFrontPanel(e);
26919
+ goto fail;
26357
26920
  } catch (const std::exception& e) {
26358
26921
  SWIG_Error(SWIG_RuntimeError, e.what());
26359
26922
  goto fail;
@@ -26408,8 +26971,17 @@ _wrap_okCScriptValue_GetBuffer(int argc, VALUE *argv, VALUE self) {
26408
26971
  }
26409
26972
  arg1 = reinterpret_cast< OpalKelly::ScriptValue * >(argp1);
26410
26973
  {
26411
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
26974
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
26412
26975
  result = ((OpalKelly::ScriptValue const *)arg1)->GetBuffer();
26976
+ } catch (const okPyAXIOperationException& e) {
26977
+ okRbRaiseAXIOperation(e);
26978
+ goto fail;
26979
+ } catch (const okPyAXITransferException& e) {
26980
+ okRbRaiseAXITransfer(e);
26981
+ goto fail;
26982
+ } catch (const okFrontPanelException& e) {
26983
+ okRbRaiseFrontPanel(e);
26984
+ goto fail;
26413
26985
  } catch (const std::exception& e) {
26414
26986
  SWIG_Error(SWIG_RuntimeError, e.what());
26415
26987
  goto fail;
@@ -26472,8 +27044,17 @@ _wrap_okCScriptEngine_LoadScript(int argc, VALUE *argv, VALUE self) {
26472
27044
  arg3 = ptr;
26473
27045
  }
26474
27046
  {
26475
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
27047
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
26476
27048
  (arg1)->LoadScript((std::string const &)*arg2,(std::string const &)*arg3);
27049
+ } catch (const okPyAXIOperationException& e) {
27050
+ okRbRaiseAXIOperation(e);
27051
+ goto fail;
27052
+ } catch (const okPyAXITransferException& e) {
27053
+ okRbRaiseAXITransfer(e);
27054
+ goto fail;
27055
+ } catch (const okFrontPanelException& e) {
27056
+ okRbRaiseFrontPanel(e);
27057
+ goto fail;
26477
27058
  } catch (const std::exception& e) {
26478
27059
  SWIG_Error(SWIG_RuntimeError, e.what());
26479
27060
  goto fail;
@@ -26518,8 +27099,17 @@ _wrap_okCScriptEngine_LoadFile(int argc, VALUE *argv, VALUE self) {
26518
27099
  arg2 = ptr;
26519
27100
  }
26520
27101
  {
26521
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
27102
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
26522
27103
  (arg1)->LoadFile((std::string const &)*arg2);
27104
+ } catch (const okPyAXIOperationException& e) {
27105
+ okRbRaiseAXIOperation(e);
27106
+ goto fail;
27107
+ } catch (const okPyAXITransferException& e) {
27108
+ okRbRaiseAXITransfer(e);
27109
+ goto fail;
27110
+ } catch (const okFrontPanelException& e) {
27111
+ okRbRaiseFrontPanel(e);
27112
+ goto fail;
26523
27113
  } catch (const std::exception& e) {
26524
27114
  SWIG_Error(SWIG_RuntimeError, e.what());
26525
27115
  goto fail;
@@ -26619,8 +27209,17 @@ _wrap_okCScriptEngine_RunScriptFunction__SWIG_0(int argc, VALUE *argv, VALUE sel
26619
27209
  arg3 = ptr;
26620
27210
  }
26621
27211
  {
26622
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
27212
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
26623
27213
  result = OpalKelly_ScriptEngine_RunScriptFunction__SWIG_0(arg1,(std::string const &)*arg2,(std::vector< OpalKelly::ScriptValue,std::allocator< OpalKelly::ScriptValue > > const &)*arg3);
27214
+ } catch (const okPyAXIOperationException& e) {
27215
+ okRbRaiseAXIOperation(e);
27216
+ goto fail;
27217
+ } catch (const okPyAXITransferException& e) {
27218
+ okRbRaiseAXITransfer(e);
27219
+ goto fail;
27220
+ } catch (const okFrontPanelException& e) {
27221
+ okRbRaiseFrontPanel(e);
27222
+ goto fail;
26624
27223
  } catch (const std::exception& e) {
26625
27224
  SWIG_Error(SWIG_RuntimeError, e.what());
26626
27225
  goto fail;
@@ -26668,8 +27267,17 @@ _wrap_okCScriptEngine_RunScriptFunction__SWIG_1(int argc, VALUE *argv, VALUE sel
26668
27267
  arg2 = ptr;
26669
27268
  }
26670
27269
  {
26671
- /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,104,okExceptionHandlingCode@*/ try {
27270
+ /*@SWIG:/home/runner/work/frontpanel-release/frontpanel-release/frontpanel-src/FrontPanelDLL/FrontPanelDLL.i,300,okExceptionHandlingCode@*/ try {
26672
27271
  result = OpalKelly_ScriptEngine_RunScriptFunction__SWIG_0(arg1,(std::string const &)*arg2);
27272
+ } catch (const okPyAXIOperationException& e) {
27273
+ okRbRaiseAXIOperation(e);
27274
+ goto fail;
27275
+ } catch (const okPyAXITransferException& e) {
27276
+ okRbRaiseAXITransfer(e);
27277
+ goto fail;
27278
+ } catch (const okFrontPanelException& e) {
27279
+ okRbRaiseFrontPanel(e);
27280
+ goto fail;
26673
27281
  } catch (const std::exception& e) {
26674
27282
  SWIG_Error(SWIG_RuntimeError, e.what());
26675
27283
  goto fail;
@@ -28020,6 +28628,7 @@ static swig_type_info _swigt__p_bool = {"_p_bool", "bool *|okBool *", 0, 0, (voi
28020
28628
  static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
28021
28629
  static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0};
28022
28630
  static swig_type_info _swigt__p_int = {"_p_int", "Bool *|int *", 0, 0, (void*)0, 0};
28631
+ static swig_type_info _swigt__p_okEBandwidthMode = {"_p_okEBandwidthMode", "enum okEBandwidthMode *|okEBandwidthMode *", 0, 0, (void*)0, 0};
28023
28632
  static swig_type_info _swigt__p_okEDeviceSensorType = {"_p_okEDeviceSensorType", "enum okEDeviceSensorType *|okEDeviceSensorType *", 0, 0, (void*)0, 0};
28024
28633
  static swig_type_info _swigt__p_okEFPGAConfigurationMethod = {"_p_okEFPGAConfigurationMethod", "enum okEFPGAConfigurationMethod *|ok_FPGAConfigurationMethod *", 0, 0, (void*)0, 0};
28025
28634
  static swig_type_info _swigt__p_okEFPGAVendor = {"_p_okEFPGAVendor", "enum okEFPGAVendor *|okEFPGAVendor *", 0, 0, (void*)0, 0};
@@ -28081,6 +28690,7 @@ static swig_type_info *swig_type_initial[] = {
28081
28690
  &_swigt__p_char,
28082
28691
  &_swigt__p_difference_type,
28083
28692
  &_swigt__p_int,
28693
+ &_swigt__p_okEBandwidthMode,
28084
28694
  &_swigt__p_okEDeviceSensorType,
28085
28695
  &_swigt__p_okEFPGAConfigurationMethod,
28086
28696
  &_swigt__p_okEFPGAVendor,
@@ -28140,6 +28750,7 @@ static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0,
28140
28750
  static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
28141
28751
  static swig_cast_info _swigc__p_difference_type[] = { {&_swigt__p_difference_type, 0, 0, 0},{0, 0, 0, 0}};
28142
28752
  static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
28753
+ static swig_cast_info _swigc__p_okEBandwidthMode[] = { {&_swigt__p_okEBandwidthMode, 0, 0, 0},{0, 0, 0, 0}};
28143
28754
  static swig_cast_info _swigc__p_okEDeviceSensorType[] = { {&_swigt__p_okEDeviceSensorType, 0, 0, 0},{0, 0, 0, 0}};
28144
28755
  static swig_cast_info _swigc__p_okEFPGAConfigurationMethod[] = { {&_swigt__p_okEFPGAConfigurationMethod, 0, 0, 0},{0, 0, 0, 0}};
28145
28756
  static swig_cast_info _swigc__p_okEFPGAVendor[] = { {&_swigt__p_okEFPGAVendor, 0, 0, 0},{0, 0, 0, 0}};
@@ -28201,6 +28812,7 @@ static swig_cast_info *swig_cast_initial[] = {
28201
28812
  _swigc__p_char,
28202
28813
  _swigc__p_difference_type,
28203
28814
  _swigc__p_int,
28815
+ _swigc__p_okEBandwidthMode,
28204
28816
  _swigc__p_okEDeviceSensorType,
28205
28817
  _swigc__p_okEFPGAConfigurationMethod,
28206
28818
  _swigc__p_okEFPGAVendor,
@@ -28718,6 +29330,24 @@ SWIGEXPORT void Init_OpalKelly(void) {
28718
29330
  SwigClassOkTRegisterEntries.mark = 0;
28719
29331
  SwigClassOkTRegisterEntries.destroy = (void (*)(void *)) free_std_vector_Sl_okTRegisterEntry_Sg_;
28720
29332
  SwigClassOkTRegisterEntries.trackObjects = 0;
29333
+
29334
+ {
29335
+ VALUE _okmod = rb_path2class("OpalKelly");
29336
+ okRb_eAXITransferException = rb_define_class_under(_okmod,
29337
+ "AXITransferException", rb_eRuntimeError);
29338
+ rb_define_attr(okRb_eAXITransferException, "error_code", 1, 0);
29339
+ rb_define_attr(okRb_eAXITransferException, "transfer_byte_count", 1, 0);
29340
+ okRb_eAXIOperationException = rb_define_class_under(_okmod,
29341
+ "AXIOperationException", okRb_eAXITransferException);
29342
+ rb_define_attr(okRb_eAXIOperationException, "transaction_count", 1, 0);
29343
+
29344
+ // General (non-AXI) structured error (ENG-3323). Derives from RuntimeError,
29345
+ // carries error_code only. Reachable as an OpalKelly constant, so GC-safe.
29346
+ okRb_eFrontPanelException = rb_define_class_under(_okmod,
29347
+ "FrontPanelException", rb_eRuntimeError);
29348
+ rb_define_attr(okRb_eFrontPanelException, "error_code", 1, 0);
29349
+ }
29350
+
28721
29351
  rb_define_const(mOpalKelly, "OK_MAX_DEVICEID_LENGTH", SWIG_From_int(static_cast< int >((33))));
28722
29352
  rb_define_const(mOpalKelly, "OK_MAX_SERIALNUMBER_LENGTH", SWIG_From_int(static_cast< int >((11))));
28723
29353
  rb_define_const(mOpalKelly, "OK_MAX_PRODUCT_NAME_LENGTH", SWIG_From_int(static_cast< int >((128))));
@@ -28746,6 +29376,22 @@ SWIGEXPORT void Init_OpalKelly(void) {
28746
29376
  rb_define_const(mOpalKelly, "OkDEVICEINTERFACE_PCIE", SWIG_From_int(static_cast< int >(okDEVICEINTERFACE_PCIE)));
28747
29377
  rb_define_const(mOpalKelly, "OkDEVICEINTERFACE_USB3", SWIG_From_int(static_cast< int >(okDEVICEINTERFACE_USB3)));
28748
29378
  rb_define_const(mOpalKelly, "OkDEVICEINTERFACE_GEN3", SWIG_From_int(static_cast< int >(okDEVICEINTERFACE_GEN3)));
29379
+ rb_define_const(mOpalKelly, "OK_DEVICEFAMILY_UNKNOWN", SWIG_From_int(static_cast< int >((0))));
29380
+ rb_define_const(mOpalKelly, "OK_DEVICEFAMILY_USBGEN1", SWIG_From_int(static_cast< int >((1))));
29381
+ rb_define_const(mOpalKelly, "OK_DEVICEFAMILY_USBGEN2", SWIG_From_int(static_cast< int >((2))));
29382
+ rb_define_const(mOpalKelly, "OK_DEVICEFAMILY_USBGEN3", SWIG_From_int(static_cast< int >((3))));
29383
+ rb_define_const(mOpalKelly, "OK_DEVICEFAMILY_PCIEGEN1", SWIG_From_int(static_cast< int >((4))));
29384
+ rb_define_const(mOpalKelly, "OkDEVICEFAMILY_UNKNOWN", SWIG_From_int(static_cast< int >(okDEVICEFAMILY_UNKNOWN)));
29385
+ rb_define_const(mOpalKelly, "OkDEVICEFAMILY_USBGEN1", SWIG_From_int(static_cast< int >(okDEVICEFAMILY_USBGEN1)));
29386
+ rb_define_const(mOpalKelly, "OkDEVICEFAMILY_USBGEN2", SWIG_From_int(static_cast< int >(okDEVICEFAMILY_USBGEN2)));
29387
+ rb_define_const(mOpalKelly, "OkDEVICEFAMILY_USBGEN3", SWIG_From_int(static_cast< int >(okDEVICEFAMILY_USBGEN3)));
29388
+ rb_define_const(mOpalKelly, "OkDEVICEFAMILY_PCIEGEN1", SWIG_From_int(static_cast< int >(okDEVICEFAMILY_PCIEGEN1)));
29389
+ rb_define_const(mOpalKelly, "OK_DATAPORT_UNKNOWN", SWIG_From_int(static_cast< int >((0))));
29390
+ rb_define_const(mOpalKelly, "OK_DATAPORT_LEGACY", SWIG_From_int(static_cast< int >((1))));
29391
+ rb_define_const(mOpalKelly, "OK_DATAPORT_AXI", SWIG_From_int(static_cast< int >((2))));
29392
+ rb_define_const(mOpalKelly, "OkDATAPORT_UNKNOWN", SWIG_From_int(static_cast< int >(okDATAPORT_UNKNOWN)));
29393
+ rb_define_const(mOpalKelly, "OkDATAPORT_LEGACY", SWIG_From_int(static_cast< int >(okDATAPORT_LEGACY)));
29394
+ rb_define_const(mOpalKelly, "OkDATAPORT_AXI", SWIG_From_int(static_cast< int >(okDATAPORT_AXI)));
28749
29395
  rb_define_const(mOpalKelly, "OK_PRODUCT_UNKNOWN", SWIG_From_int(static_cast< int >((0))));
28750
29396
  rb_define_const(mOpalKelly, "OK_PRODUCT_XEM3001V1", SWIG_From_int(static_cast< int >((1))));
28751
29397
  rb_define_const(mOpalKelly, "OK_PRODUCT_XEM3001V2", SWIG_From_int(static_cast< int >((2))));
@@ -28809,6 +29455,8 @@ SWIGEXPORT void Init_OpalKelly(void) {
28809
29455
  rb_define_const(mOpalKelly, "OK_PRODUCT_XEM8305AU15P", SWIG_From_int(static_cast< int >((60))));
28810
29456
  rb_define_const(mOpalKelly, "OK_PRODUCT_SZGHUB1450AU10P", SWIG_From_int(static_cast< int >((61))));
28811
29457
  rb_define_const(mOpalKelly, "OK_PRODUCT_SZGHUB1450AU25P", SWIG_From_int(static_cast< int >((62))));
29458
+ rb_define_const(mOpalKelly, "OK_PRODUCT_XEM7460K160T", SWIG_From_int(static_cast< int >((63))));
29459
+ rb_define_const(mOpalKelly, "OK_PRODUCT_XEM7460K410T", SWIG_From_int(static_cast< int >((64))));
28812
29460
  rb_define_const(mOpalKelly, "OK_PRODUCT_OEM_START", SWIG_From_int(static_cast< int >(11000)));
28813
29461
  rb_define_const(mOpalKelly, "OkPRODUCT_UNKNOWN", SWIG_From_int(static_cast< int >(okPRODUCT_UNKNOWN)));
28814
29462
  rb_define_const(mOpalKelly, "OkPRODUCT_XEM3001V1", SWIG_From_int(static_cast< int >(okPRODUCT_XEM3001V1)));
@@ -28873,6 +29521,8 @@ SWIGEXPORT void Init_OpalKelly(void) {
28873
29521
  rb_define_const(mOpalKelly, "OkPRODUCT_XEM8305AU15P", SWIG_From_int(static_cast< int >(okPRODUCT_XEM8305AU15P)));
28874
29522
  rb_define_const(mOpalKelly, "OkPRODUCT_SZGHUB1450AU10P", SWIG_From_int(static_cast< int >(okPRODUCT_SZGHUB1450AU10P)));
28875
29523
  rb_define_const(mOpalKelly, "OkPRODUCT_SZGHUB1450AU25P", SWIG_From_int(static_cast< int >(okPRODUCT_SZGHUB1450AU25P)));
29524
+ rb_define_const(mOpalKelly, "OkPRODUCT_XEM7460K160T", SWIG_From_int(static_cast< int >(okPRODUCT_XEM7460K160T)));
29525
+ rb_define_const(mOpalKelly, "OkPRODUCT_XEM7460K410T", SWIG_From_int(static_cast< int >(okPRODUCT_XEM7460K410T)));
28876
29526
  rb_define_const(mOpalKelly, "OkPRODUCT_OEM_START", SWIG_From_int(static_cast< int >(okPRODUCT_OEM_START)));
28877
29527
  rb_define_const(mOpalKelly, "OK_FPGACONFIGURATIONMETHOD_NVRAM", SWIG_From_int(static_cast< int >((0))));
28878
29528
  rb_define_const(mOpalKelly, "OK_FPGACONFIGURATIONMETHOD_JTAG", SWIG_From_int(static_cast< int >((1))));
@@ -29015,6 +29665,12 @@ SWIGEXPORT void Init_OpalKelly(void) {
29015
29665
  rb_define_method(SwigClassOkTDeviceInfo.klass, "configuresFromSystemFlash", VALUEFUNC(_wrap_okTDeviceInfo_configuresFromSystemFlash_get), -1);
29016
29666
  rb_define_method(SwigClassOkTDeviceInfo.klass, "hasQuadConfigFlash=", VALUEFUNC(_wrap_okTDeviceInfo_hasQuadConfigFlash_set), -1);
29017
29667
  rb_define_method(SwigClassOkTDeviceInfo.klass, "hasQuadConfigFlash", VALUEFUNC(_wrap_okTDeviceInfo_hasQuadConfigFlash_get), -1);
29668
+ rb_define_method(SwigClassOkTDeviceInfo.klass, "supportedBandwidthModesMask=", VALUEFUNC(_wrap_okTDeviceInfo_supportedBandwidthModesMask_set), -1);
29669
+ rb_define_method(SwigClassOkTDeviceInfo.klass, "supportedBandwidthModesMask", VALUEFUNC(_wrap_okTDeviceInfo_supportedBandwidthModesMask_get), -1);
29670
+ rb_define_method(SwigClassOkTDeviceInfo.klass, "family=", VALUEFUNC(_wrap_okTDeviceInfo_family_set), -1);
29671
+ rb_define_method(SwigClassOkTDeviceInfo.klass, "family", VALUEFUNC(_wrap_okTDeviceInfo_family_get), -1);
29672
+ rb_define_method(SwigClassOkTDeviceInfo.klass, "dataport=", VALUEFUNC(_wrap_okTDeviceInfo_dataport_set), -1);
29673
+ rb_define_method(SwigClassOkTDeviceInfo.klass, "dataport", VALUEFUNC(_wrap_okTDeviceInfo_dataport_get), -1);
29018
29674
  SwigClassOkTDeviceInfo.mark = 0;
29019
29675
  SwigClassOkTDeviceInfo.destroy = (void (*)(void *)) free_okTDeviceInfo;
29020
29676
  SwigClassOkTDeviceInfo.trackObjects = 0;
@@ -29073,6 +29729,14 @@ SWIGEXPORT void Init_OpalKelly(void) {
29073
29729
  SwigClassOkTDeviceSensor.mark = 0;
29074
29730
  SwigClassOkTDeviceSensor.destroy = (void (*)(void *)) free_okTDeviceSensor;
29075
29731
  SwigClassOkTDeviceSensor.trackObjects = 0;
29732
+ rb_define_const(mOpalKelly, "OkBANDWIDTHMODE_UNCONFIGURED", SWIG_From_int(static_cast< int >(okBANDWIDTHMODE_UNCONFIGURED)));
29733
+ rb_define_const(mOpalKelly, "OkBANDWIDTHMODE_1", SWIG_From_int(static_cast< int >(okBANDWIDTHMODE_1)));
29734
+ rb_define_const(mOpalKelly, "OkBANDWIDTHMODE_2", SWIG_From_int(static_cast< int >(okBANDWIDTHMODE_2)));
29735
+ rb_define_const(mOpalKelly, "OkBANDWIDTHMODE_3", SWIG_From_int(static_cast< int >(okBANDWIDTHMODE_3)));
29736
+ rb_define_const(mOpalKelly, "OkBANDWIDTHMODE_4", SWIG_From_int(static_cast< int >(okBANDWIDTHMODE_4)));
29737
+ rb_define_const(mOpalKelly, "OkBANDWIDTHMODE_5", SWIG_From_int(static_cast< int >(okBANDWIDTHMODE_5)));
29738
+ rb_define_const(mOpalKelly, "OkBANDWIDTHMODE_6", SWIG_From_int(static_cast< int >(okBANDWIDTHMODE_6)));
29739
+ rb_define_const(mOpalKelly, "OkBANDWIDTHMODE_7", SWIG_From_int(static_cast< int >(okBANDWIDTHMODE_7)));
29076
29740
 
29077
29741
  SwigClassOkTOperationStatistics.klass = rb_define_class_under(mOpalKelly, "OkTOperationStatistics", rb_cObject);
29078
29742
  SWIG_TypeClientData(SWIGTYPE_p_okTOperationStatistics, (void *) &SwigClassOkTOperationStatistics);
@@ -29181,11 +29845,11 @@ SWIGEXPORT void Init_OpalKelly(void) {
29181
29845
  SwigClassOkCFrontPanelAXILite.klass = rb_define_class_under(mOpalKelly, "OkCFrontPanelAXILite", rb_cObject);
29182
29846
  SWIG_TypeClientData(SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXILite, (void *) &SwigClassOkCFrontPanelAXILite);
29183
29847
  rb_undef_alloc_func(SwigClassOkCFrontPanelAXILite.klass);
29848
+ rb_define_method(SwigClassOkCFrontPanelAXILite.klass, "Reset", VALUEFUNC(_wrap_okCFrontPanelAXILite_Reset), -1);
29184
29849
  rb_define_method(SwigClassOkCFrontPanelAXILite.klass, "Read", VALUEFUNC(_wrap_okCFrontPanelAXILite_Read), -1);
29185
29850
  rb_define_method(SwigClassOkCFrontPanelAXILite.klass, "Write", VALUEFUNC(_wrap_okCFrontPanelAXILite_Write), -1);
29186
29851
  rb_define_method(SwigClassOkCFrontPanelAXILite.klass, "ReadBulk", VALUEFUNC(_wrap_okCFrontPanelAXILite_ReadBulk), -1);
29187
29852
  rb_define_method(SwigClassOkCFrontPanelAXILite.klass, "WriteBulk", VALUEFUNC(_wrap_okCFrontPanelAXILite_WriteBulk), -1);
29188
- rb_define_method(SwigClassOkCFrontPanelAXILite.klass, "Reset", VALUEFUNC(_wrap_okCFrontPanelAXILite_Reset), -1);
29189
29853
  SwigClassOkCFrontPanelAXILite.mark = 0;
29190
29854
  SwigClassOkCFrontPanelAXILite.destroy = (void (*)(void *)) free_OpalKellyLegacy_okCFrontPanelAXILite;
29191
29855
  SwigClassOkCFrontPanelAXILite.trackObjects = 0;
@@ -29194,9 +29858,9 @@ SWIGEXPORT void Init_OpalKelly(void) {
29194
29858
  SWIG_TypeClientData(SWIGTYPE_p_OpalKellyLegacy__okCFrontPanelAXIFull, (void *) &SwigClassOkCFrontPanelAXIFull);
29195
29859
  rb_undef_alloc_func(SwigClassOkCFrontPanelAXIFull.klass);
29196
29860
  rb_define_method(SwigClassOkCFrontPanelAXIFull.klass, "GetDatapathWidthByteCount", VALUEFUNC(_wrap_okCFrontPanelAXIFull_GetDatapathWidthByteCount), -1);
29861
+ rb_define_method(SwigClassOkCFrontPanelAXIFull.klass, "Reset", VALUEFUNC(_wrap_okCFrontPanelAXIFull_Reset), -1);
29197
29862
  rb_define_method(SwigClassOkCFrontPanelAXIFull.klass, "Read", VALUEFUNC(_wrap_okCFrontPanelAXIFull_Read), -1);
29198
29863
  rb_define_method(SwigClassOkCFrontPanelAXIFull.klass, "Write", VALUEFUNC(_wrap_okCFrontPanelAXIFull_Write), -1);
29199
- rb_define_method(SwigClassOkCFrontPanelAXIFull.klass, "Reset", VALUEFUNC(_wrap_okCFrontPanelAXIFull_Reset), -1);
29200
29864
  SwigClassOkCFrontPanelAXIFull.mark = 0;
29201
29865
  SwigClassOkCFrontPanelAXIFull.destroy = (void (*)(void *)) free_OpalKellyLegacy_okCFrontPanelAXIFull;
29202
29866
  SwigClassOkCFrontPanelAXIFull.trackObjects = 0;
@@ -29206,9 +29870,9 @@ SWIGEXPORT void Init_OpalKelly(void) {
29206
29870
  rb_undef_alloc_func(SwigClassOkCFrontPanelAXIStream.klass);
29207
29871
  rb_define_method(SwigClassOkCFrontPanelAXIStream.klass, "GetWriteDatapathWidthByteCount", VALUEFUNC(_wrap_okCFrontPanelAXIStream_GetWriteDatapathWidthByteCount), -1);
29208
29872
  rb_define_method(SwigClassOkCFrontPanelAXIStream.klass, "GetReadDatapathWidthByteCount", VALUEFUNC(_wrap_okCFrontPanelAXIStream_GetReadDatapathWidthByteCount), -1);
29873
+ rb_define_method(SwigClassOkCFrontPanelAXIStream.klass, "Reset", VALUEFUNC(_wrap_okCFrontPanelAXIStream_Reset), -1);
29209
29874
  rb_define_method(SwigClassOkCFrontPanelAXIStream.klass, "Read", VALUEFUNC(_wrap_okCFrontPanelAXIStream_Read), -1);
29210
29875
  rb_define_method(SwigClassOkCFrontPanelAXIStream.klass, "Write", VALUEFUNC(_wrap_okCFrontPanelAXIStream_Write), -1);
29211
- rb_define_method(SwigClassOkCFrontPanelAXIStream.klass, "Reset", VALUEFUNC(_wrap_okCFrontPanelAXIStream_Reset), -1);
29212
29876
  SwigClassOkCFrontPanelAXIStream.mark = 0;
29213
29877
  SwigClassOkCFrontPanelAXIStream.destroy = (void (*)(void *)) free_OpalKellyLegacy_okCFrontPanelAXIStream;
29214
29878
  SwigClassOkCFrontPanelAXIStream.trackObjects = 0;