OpalKelly 5.3.3 → 5.3.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0be9fd29a3decabfded51270064a5828e6be5ffc5c290f98c4ea09421ef5676b
4
- data.tar.gz: 4b5be178a7e6681b5bcdbe55052a54092f65746a86a5b7c0e0dd47a193b9960d
3
+ metadata.gz: 8af70542394f075dc70a60f79f60004f4ba104a6e97efce0307c52054e74fafb
4
+ data.tar.gz: 39cb1dca18813d8f128a64426891a3d55e3500a22fe07a85b02f4c0b77e6af06
5
5
  SHA512:
6
- metadata.gz: 7c222433808380fd5d271e3be1bc11f9ade4031120aa8647a97b5119ce8d28e023847cb3136ad71934306f6a39751056461c5e879a704a742a0beadddd6f07a1
7
- data.tar.gz: a9fb059d185078fec6e812c03b59bbae244c2068186efa8f09a57c99712f9259c47fb1130e2fb50df3b7072dbb2ac16fe17aada30734800d9689c902ce97babf
6
+ metadata.gz: 6077774931a65ae60e162ee147b5dc9b92c90d0af0b4dca720fd62c138d32f8e62f42cb9b52c4a5339f631cb59367601d57fed53bf2bbac7706992625dd39706
7
+ data.tar.gz: 380edac82f9c099cce6ec1aa0bc5557d596d6b1bf973f47e5dc83f7acb823b34f020b98008a0c6e48564ff2a330df78ee71adc10d8f7153c6839c1c2171fd3ab
@@ -6171,16 +6171,10 @@ SWIGINTERN void OpalKellyLegacy_okCDeviceSettings_SetInt(OpalKellyLegacy::okCDev
6171
6171
  ThrowOnError(self->SetInt(key, value));
6172
6172
  }
6173
6173
  SWIGINTERN std::vector< std::string,std::allocator< std::string > > OpalKellyLegacy_okCDeviceSettings_List(OpalKellyLegacy::okCDeviceSettings *self){
6174
- okCDeviceSettingNames names;
6174
+ std::vector<std::string> names;
6175
6175
  ThrowOnError(self->List(names));
6176
6176
 
6177
- std::vector<std::string> out;
6178
- const int count = names.GetCount();
6179
- out.reserve(count);
6180
- for (int n = 0; n < count; ++n)
6181
- out.push_back(names.Get(n));
6182
-
6183
- return out;
6177
+ return names;
6184
6178
  }
6185
6179
  SWIGINTERN void OpalKellyLegacy_okCDeviceSettings_Delete(OpalKellyLegacy::okCDeviceSettings *self,std::string const &key){
6186
6180
  ThrowOnError(self->Delete(key));
@@ -21114,6 +21108,54 @@ fail:
21114
21108
  }
21115
21109
 
21116
21110
 
21111
+ SWIGINTERN VALUE
21112
+ _wrap_okCFrontPanel_GetErrorMessage(int argc, VALUE *argv, VALUE self) {
21113
+ OpalKellyLegacy::okCFrontPanel::ErrorCode arg1 ;
21114
+ int val1 ;
21115
+ int ecode1 = 0 ;
21116
+ char *result = 0 ;
21117
+ VALUE vresult = Qnil;
21118
+
21119
+ if ((argc < 1) || (argc > 1)) {
21120
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
21121
+ }
21122
+ ecode1 = SWIG_AsVal_int(argv[0], &val1);
21123
+ if (!SWIG_IsOK(ecode1)) {
21124
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanel::ErrorCode","OpalKellyLegacy::okCFrontPanel::GetErrorMessage", 1, argv[0] ));
21125
+ }
21126
+ arg1 = static_cast< OpalKellyLegacy::okCFrontPanel::ErrorCode >(val1);
21127
+ result = (char *)OpalKellyLegacy::okCFrontPanel::GetErrorMessage(arg1);
21128
+ vresult = SWIG_FromCharPtr((const char *)result);
21129
+ return vresult;
21130
+ fail:
21131
+ return Qnil;
21132
+ }
21133
+
21134
+
21135
+ SWIGINTERN VALUE
21136
+ _wrap_okCFrontPanel_GetLastError(int argc, VALUE *argv, VALUE self) {
21137
+ OpalKellyLegacy::okCFrontPanel *arg1 = (OpalKellyLegacy::okCFrontPanel *) 0 ;
21138
+ void *argp1 = 0 ;
21139
+ int res1 = 0 ;
21140
+ OpalKellyLegacy::okCFrontPanel::ErrorCode result;
21141
+ VALUE vresult = Qnil;
21142
+
21143
+ if ((argc < 0) || (argc > 0)) {
21144
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
21145
+ }
21146
+ res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OpalKellyLegacy__okCFrontPanel, 0 | 0 );
21147
+ if (!SWIG_IsOK(res1)) {
21148
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OpalKellyLegacy::okCFrontPanel const *","GetLastError", 1, self ));
21149
+ }
21150
+ arg1 = reinterpret_cast< OpalKellyLegacy::okCFrontPanel * >(argp1);
21151
+ result = (OpalKellyLegacy::okCFrontPanel::ErrorCode)((OpalKellyLegacy::okCFrontPanel const *)arg1)->GetLastError();
21152
+ vresult = SWIG_From_int(static_cast< int >(result));
21153
+ return vresult;
21154
+ fail:
21155
+ return Qnil;
21156
+ }
21157
+
21158
+
21117
21159
  SWIGINTERN VALUE
21118
21160
  _wrap_okCFrontPanel_GetLastErrorMessage(int argc, VALUE *argv, VALUE self) {
21119
21161
  OpalKellyLegacy::okCFrontPanel *arg1 = (OpalKellyLegacy::okCFrontPanel *) 0 ;
@@ -27359,6 +27401,8 @@ SWIGEXPORT void Init_OpalKelly(void) {
27359
27401
  rb_define_const(SwigClassOkCFrontPanel.klass, "InvalidResetProfile", SWIG_From_int(static_cast< int >(OpalKellyLegacy::okCFrontPanel::InvalidResetProfile)));
27360
27402
  rb_define_const(SwigClassOkCFrontPanel.klass, "InvalidParameter", SWIG_From_int(static_cast< int >(OpalKellyLegacy::okCFrontPanel::InvalidParameter)));
27361
27403
  rb_define_singleton_method(SwigClassOkCFrontPanel.klass, "GetErrorString", VALUEFUNC(_wrap_okCFrontPanel_GetErrorString), -1);
27404
+ rb_define_singleton_method(SwigClassOkCFrontPanel.klass, "GetErrorMessage", VALUEFUNC(_wrap_okCFrontPanel_GetErrorMessage), -1);
27405
+ rb_define_method(SwigClassOkCFrontPanel.klass, "GetLastError", VALUEFUNC(_wrap_okCFrontPanel_GetLastError), -1);
27362
27406
  rb_define_method(SwigClassOkCFrontPanel.klass, "GetLastErrorMessage", VALUEFUNC(_wrap_okCFrontPanel_GetLastErrorMessage), -1);
27363
27407
  rb_define_singleton_method(SwigClassOkCFrontPanel.klass, "AddCustomDevice", VALUEFUNC(_wrap_okCFrontPanel_AddCustomDevice), -1);
27364
27408
  rb_define_singleton_method(SwigClassOkCFrontPanel.klass, "RemoveCustomDevice", VALUEFUNC(_wrap_okCFrontPanel_RemoveCustomDevice), -1);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: OpalKelly
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.3
4
+ version: 5.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Opal Kelly Incorporated
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-25 00:00:00.000000000 Z
11
+ date: 2024-11-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Provides access to FrontPanel devices.
14
14
  email: tech+rubygems@opalkelly.com