winrt-Windows.Devices.Adc 2.3.0__tar.gz → 3.0.0__tar.gz

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.
Files changed (21) hide show
  1. {winrt_windows_devices_adc-2.3.0 → winrt_windows_devices_adc-3.0.0}/PKG-INFO +6 -6
  2. winrt_windows_devices_adc-3.0.0/all-requirements.txt +5 -0
  3. {winrt_windows_devices_adc-2.3.0 → winrt_windows_devices_adc-3.0.0}/py.Windows.Devices.Adc.cpp +108 -46
  4. {winrt_windows_devices_adc-2.3.0 → winrt_windows_devices_adc-3.0.0}/pyproject.toml +2 -2
  5. winrt_windows_devices_adc-3.0.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_devices_adc-2.3.0 → winrt_windows_devices_adc-3.0.0}/requirements.txt +2 -2
  7. {winrt_windows_devices_adc-2.3.0 → winrt_windows_devices_adc-3.0.0}/setup.py +1 -1
  8. winrt_windows_devices_adc-3.0.0/winrt/_winrt_windows_devices_adc.pyi +65 -0
  9. {winrt_windows_devices_adc-2.3.0 → winrt_windows_devices_adc-3.0.0}/winrt/windows/devices/adc/__init__.py +5 -4
  10. {winrt_windows_devices_adc-2.3.0 → winrt_windows_devices_adc-3.0.0}/winrt_Windows.Devices.Adc.egg-info/PKG-INFO +6 -6
  11. winrt_windows_devices_adc-3.0.0/winrt_Windows.Devices.Adc.egg-info/requires.txt +6 -0
  12. winrt_windows_devices_adc-2.3.0/all-requirements.txt +0 -5
  13. winrt_windows_devices_adc-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_devices_adc-2.3.0/winrt/_winrt_windows_devices_adc.pyi +0 -55
  15. winrt_windows_devices_adc-2.3.0/winrt_Windows.Devices.Adc.egg-info/requires.txt +0 -6
  16. {winrt_windows_devices_adc-2.3.0 → winrt_windows_devices_adc-3.0.0}/README.md +0 -0
  17. {winrt_windows_devices_adc-2.3.0 → winrt_windows_devices_adc-3.0.0}/setup.cfg +0 -0
  18. {winrt_windows_devices_adc-2.3.0 → winrt_windows_devices_adc-3.0.0}/winrt/windows/devices/adc/py.typed +0 -0
  19. {winrt_windows_devices_adc-2.3.0 → winrt_windows_devices_adc-3.0.0}/winrt_Windows.Devices.Adc.egg-info/SOURCES.txt +0 -0
  20. {winrt_windows_devices_adc-2.3.0 → winrt_windows_devices_adc-3.0.0}/winrt_Windows.Devices.Adc.egg-info/dependency_links.txt +0 -0
  21. {winrt_windows_devices_adc-2.3.0 → winrt_windows_devices_adc-3.0.0}/winrt_Windows.Devices.Adc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Devices.Adc
3
- Version: 2.3.0
3
+ Version: 3.0.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Adc.Provider[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Adc.Provider[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,5 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ winrt-Windows.Devices.Adc.Provider[all]==3.0.0
4
+ winrt-Windows.Foundation[all]==3.0.0
5
+ winrt-Windows.Foundation.Collections[all]==3.0.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  #include "py.Windows.Devices.Adc.h"
4
4
 
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::Devices::Adc
23
23
 
24
24
  static PyObject* AdcChannel_Close(py::wrapper::Windows::Devices::Adc::AdcChannel* self, PyObject* args) noexcept
25
25
  {
26
- auto arg_count = PyTuple_Size(args);
26
+ auto arg_count = PyTuple_GET_SIZE(args);
27
27
 
28
28
  if (arg_count == 0)
29
29
  {
@@ -42,7 +42,11 @@ namespace py::cpp::Windows::Devices::Adc
42
42
  return nullptr;
43
43
  }
44
44
 
45
- self->obj.Close();
45
+ {
46
+ auto _gil = release_gil();
47
+ self->obj.Close();
48
+ }
49
+
46
50
  Py_RETURN_NONE;
47
51
  }
48
52
  catch (...)
@@ -60,7 +64,7 @@ namespace py::cpp::Windows::Devices::Adc
60
64
 
61
65
  static PyObject* AdcChannel_ReadRatio(py::wrapper::Windows::Devices::Adc::AdcChannel* self, PyObject* args) noexcept
62
66
  {
63
- auto arg_count = PyTuple_Size(args);
67
+ auto arg_count = PyTuple_GET_SIZE(args);
64
68
 
65
69
  if (arg_count == 0)
66
70
  {
@@ -79,7 +83,11 @@ namespace py::cpp::Windows::Devices::Adc
79
83
  return nullptr;
80
84
  }
81
85
 
82
- return py::convert(self->obj.ReadRatio());
86
+ return py::convert([&]()
87
+ {
88
+ auto _gil = release_gil();
89
+ return self->obj.ReadRatio();
90
+ }());
83
91
  }
84
92
  catch (...)
85
93
  {
@@ -96,7 +104,7 @@ namespace py::cpp::Windows::Devices::Adc
96
104
 
97
105
  static PyObject* AdcChannel_ReadValue(py::wrapper::Windows::Devices::Adc::AdcChannel* self, PyObject* args) noexcept
98
106
  {
99
- auto arg_count = PyTuple_Size(args);
107
+ auto arg_count = PyTuple_GET_SIZE(args);
100
108
 
101
109
  if (arg_count == 0)
102
110
  {
@@ -115,7 +123,11 @@ namespace py::cpp::Windows::Devices::Adc
115
123
  return nullptr;
116
124
  }
117
125
 
118
- return py::convert(self->obj.ReadValue());
126
+ return py::convert([&]()
127
+ {
128
+ auto _gil = release_gil();
129
+ return self->obj.ReadValue();
130
+ }());
119
131
  }
120
132
  catch (...)
121
133
  {
@@ -147,7 +159,11 @@ namespace py::cpp::Windows::Devices::Adc
147
159
  return nullptr;
148
160
  }
149
161
 
150
- return py::convert(self->obj.Controller());
162
+ return py::convert([&]()
163
+ {
164
+ auto _gil = release_gil();
165
+ return self->obj.Controller();
166
+ }());
151
167
  }
152
168
  catch (...)
153
169
  {
@@ -189,7 +205,11 @@ namespace py::cpp::Windows::Devices::Adc
189
205
  {
190
206
  try
191
207
  {
192
- self->obj.Close();
208
+ {
209
+ auto _gil = py::release_gil();
210
+ self->obj.Close();
211
+ }
212
+
193
213
  Py_RETURN_FALSE;
194
214
  }
195
215
  catch (...)
@@ -207,21 +227,18 @@ namespace py::cpp::Windows::Devices::Adc
207
227
  { "_from", reinterpret_cast<PyCFunction>(_from_AdcChannel), METH_O | METH_STATIC, nullptr },
208
228
  { "__enter__", reinterpret_cast<PyCFunction>(_enter_AdcChannel), METH_NOARGS, nullptr },
209
229
  { "__exit__", reinterpret_cast<PyCFunction>(_exit_AdcChannel), METH_VARARGS, nullptr },
210
- { }
211
- };
230
+ { }};
212
231
 
213
232
  static PyGetSetDef _getset_AdcChannel[] = {
214
233
  { "controller", reinterpret_cast<getter>(AdcChannel_get_Controller), nullptr, nullptr, nullptr },
215
- { }
216
- };
234
+ { }};
217
235
 
218
236
  static PyType_Slot _type_slots_AdcChannel[] = {
219
237
  { Py_tp_new, reinterpret_cast<void*>(_new_AdcChannel) },
220
238
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_AdcChannel) },
221
239
  { Py_tp_methods, reinterpret_cast<void*>(_methods_AdcChannel) },
222
240
  { Py_tp_getset, reinterpret_cast<void*>(_getset_AdcChannel) },
223
- { }
224
- };
241
+ { }};
225
242
 
226
243
  static PyType_Spec type_spec_AdcChannel = {
227
244
  "winrt._winrt_windows_devices_adc.AdcChannel",
@@ -249,7 +266,7 @@ namespace py::cpp::Windows::Devices::Adc
249
266
 
250
267
  static PyObject* AdcController_GetControllersAsync(PyObject* /*unused*/, PyObject* args) noexcept
251
268
  {
252
- auto arg_count = PyTuple_Size(args);
269
+ auto arg_count = PyTuple_GET_SIZE(args);
253
270
 
254
271
  if (arg_count == 1)
255
272
  {
@@ -270,7 +287,11 @@ namespace py::cpp::Windows::Devices::Adc
270
287
 
271
288
  auto param0 = py::convert_to<winrt::Windows::Devices::Adc::Provider::IAdcProvider>(args, 0);
272
289
 
273
- return py::convert(winrt::Windows::Devices::Adc::AdcController::GetControllersAsync(param0));
290
+ return py::convert([&]()
291
+ {
292
+ auto _gil = release_gil();
293
+ return winrt::Windows::Devices::Adc::AdcController::GetControllersAsync(param0);
294
+ }());
274
295
  }
275
296
  catch (...)
276
297
  {
@@ -287,7 +308,7 @@ namespace py::cpp::Windows::Devices::Adc
287
308
 
288
309
  static PyObject* AdcController_GetDefaultAsync(PyObject* /*unused*/, PyObject* args) noexcept
289
310
  {
290
- auto arg_count = PyTuple_Size(args);
311
+ auto arg_count = PyTuple_GET_SIZE(args);
291
312
 
292
313
  if (arg_count == 0)
293
314
  {
@@ -306,7 +327,11 @@ namespace py::cpp::Windows::Devices::Adc
306
327
  return nullptr;
307
328
  }
308
329
 
309
- return py::convert(winrt::Windows::Devices::Adc::AdcController::GetDefaultAsync());
330
+ return py::convert([&]()
331
+ {
332
+ auto _gil = release_gil();
333
+ return winrt::Windows::Devices::Adc::AdcController::GetDefaultAsync();
334
+ }());
310
335
  }
311
336
  catch (...)
312
337
  {
@@ -323,7 +348,7 @@ namespace py::cpp::Windows::Devices::Adc
323
348
 
324
349
  static PyObject* AdcController_IsChannelModeSupported(py::wrapper::Windows::Devices::Adc::AdcController* self, PyObject* args) noexcept
325
350
  {
326
- auto arg_count = PyTuple_Size(args);
351
+ auto arg_count = PyTuple_GET_SIZE(args);
327
352
 
328
353
  if (arg_count == 1)
329
354
  {
@@ -344,7 +369,11 @@ namespace py::cpp::Windows::Devices::Adc
344
369
 
345
370
  auto param0 = py::convert_to<winrt::Windows::Devices::Adc::AdcChannelMode>(args, 0);
346
371
 
347
- return py::convert(self->obj.IsChannelModeSupported(param0));
372
+ return py::convert([&]()
373
+ {
374
+ auto _gil = release_gil();
375
+ return self->obj.IsChannelModeSupported(param0);
376
+ }());
348
377
  }
349
378
  catch (...)
350
379
  {
@@ -361,7 +390,7 @@ namespace py::cpp::Windows::Devices::Adc
361
390
 
362
391
  static PyObject* AdcController_OpenChannel(py::wrapper::Windows::Devices::Adc::AdcController* self, PyObject* args) noexcept
363
392
  {
364
- auto arg_count = PyTuple_Size(args);
393
+ auto arg_count = PyTuple_GET_SIZE(args);
365
394
 
366
395
  if (arg_count == 1)
367
396
  {
@@ -382,7 +411,11 @@ namespace py::cpp::Windows::Devices::Adc
382
411
 
383
412
  auto param0 = py::convert_to<int32_t>(args, 0);
384
413
 
385
- return py::convert(self->obj.OpenChannel(param0));
414
+ return py::convert([&]()
415
+ {
416
+ auto _gil = release_gil();
417
+ return self->obj.OpenChannel(param0);
418
+ }());
386
419
  }
387
420
  catch (...)
388
421
  {
@@ -414,7 +447,11 @@ namespace py::cpp::Windows::Devices::Adc
414
447
  return nullptr;
415
448
  }
416
449
 
417
- return py::convert(self->obj.ChannelMode());
450
+ return py::convert([&]()
451
+ {
452
+ auto _gil = release_gil();
453
+ return self->obj.ChannelMode();
454
+ }());
418
455
  }
419
456
  catch (...)
420
457
  {
@@ -425,7 +462,7 @@ namespace py::cpp::Windows::Devices::Adc
425
462
 
426
463
  static int AdcController_put_ChannelMode(py::wrapper::Windows::Devices::Adc::AdcController* self, PyObject* arg, void* /*unused*/) noexcept
427
464
  {
428
- if (arg == nullptr)
465
+ if (!arg)
429
466
  {
430
467
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
431
468
  return -1;
@@ -448,7 +485,11 @@ namespace py::cpp::Windows::Devices::Adc
448
485
 
449
486
  auto param0 = py::convert_to<winrt::Windows::Devices::Adc::AdcChannelMode>(arg);
450
487
 
451
- self->obj.ChannelMode(param0);
488
+ {
489
+ auto _gil = release_gil();
490
+ self->obj.ChannelMode(param0);
491
+ }
492
+
452
493
  return 0;
453
494
  }
454
495
  catch (...)
@@ -475,7 +516,11 @@ namespace py::cpp::Windows::Devices::Adc
475
516
  return nullptr;
476
517
  }
477
518
 
478
- return py::convert(self->obj.ChannelCount());
519
+ return py::convert([&]()
520
+ {
521
+ auto _gil = release_gil();
522
+ return self->obj.ChannelCount();
523
+ }());
479
524
  }
480
525
  catch (...)
481
526
  {
@@ -501,7 +546,11 @@ namespace py::cpp::Windows::Devices::Adc
501
546
  return nullptr;
502
547
  }
503
548
 
504
- return py::convert(self->obj.MaxValue());
549
+ return py::convert([&]()
550
+ {
551
+ auto _gil = release_gil();
552
+ return self->obj.MaxValue();
553
+ }());
505
554
  }
506
555
  catch (...)
507
556
  {
@@ -527,7 +576,11 @@ namespace py::cpp::Windows::Devices::Adc
527
576
  return nullptr;
528
577
  }
529
578
 
530
- return py::convert(self->obj.MinValue());
579
+ return py::convert([&]()
580
+ {
581
+ auto _gil = release_gil();
582
+ return self->obj.MinValue();
583
+ }());
531
584
  }
532
585
  catch (...)
533
586
  {
@@ -553,7 +606,11 @@ namespace py::cpp::Windows::Devices::Adc
553
606
  return nullptr;
554
607
  }
555
608
 
556
- return py::convert(self->obj.ResolutionInBits());
609
+ return py::convert([&]()
610
+ {
611
+ auto _gil = release_gil();
612
+ return self->obj.ResolutionInBits();
613
+ }());
557
614
  }
558
615
  catch (...)
559
616
  {
@@ -591,8 +648,7 @@ namespace py::cpp::Windows::Devices::Adc
591
648
  { "open_channel", reinterpret_cast<PyCFunction>(AdcController_OpenChannel), METH_VARARGS, nullptr },
592
649
  { "_assign_array_", _assign_array_AdcController, METH_O | METH_STATIC, nullptr },
593
650
  { "_from", reinterpret_cast<PyCFunction>(_from_AdcController), METH_O | METH_STATIC, nullptr },
594
- { }
595
- };
651
+ { }};
596
652
 
597
653
  static PyGetSetDef _getset_AdcController[] = {
598
654
  { "channel_mode", reinterpret_cast<getter>(AdcController_get_ChannelMode), reinterpret_cast<setter>(AdcController_put_ChannelMode), nullptr, nullptr },
@@ -600,16 +656,14 @@ namespace py::cpp::Windows::Devices::Adc
600
656
  { "max_value", reinterpret_cast<getter>(AdcController_get_MaxValue), nullptr, nullptr, nullptr },
601
657
  { "min_value", reinterpret_cast<getter>(AdcController_get_MinValue), nullptr, nullptr, nullptr },
602
658
  { "resolution_in_bits", reinterpret_cast<getter>(AdcController_get_ResolutionInBits), nullptr, nullptr, nullptr },
603
- { }
604
- };
659
+ { }};
605
660
 
606
661
  static PyType_Slot _type_slots_AdcController[] = {
607
662
  { Py_tp_new, reinterpret_cast<void*>(_new_AdcController) },
608
663
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_AdcController) },
609
664
  { Py_tp_methods, reinterpret_cast<void*>(_methods_AdcController) },
610
665
  { Py_tp_getset, reinterpret_cast<void*>(_getset_AdcController) },
611
- { }
612
- };
666
+ { }};
613
667
 
614
668
  static PyType_Spec type_spec_AdcController = {
615
669
  "winrt._winrt_windows_devices_adc.AdcController",
@@ -619,14 +673,12 @@ namespace py::cpp::Windows::Devices::Adc
619
673
  _type_slots_AdcController};
620
674
 
621
675
  static PyGetSetDef getset_AdcController_Static[] = {
622
- { }
623
- };
676
+ { }};
624
677
 
625
678
  static PyMethodDef methods_AdcController_Static[] = {
626
679
  { "get_controllers_async", reinterpret_cast<PyCFunction>(AdcController_GetControllersAsync), METH_VARARGS, nullptr },
627
680
  { "get_default_async", reinterpret_cast<PyCFunction>(AdcController_GetDefaultAsync), METH_VARARGS, nullptr },
628
- { }
629
- };
681
+ { }};
630
682
 
631
683
  static PyType_Slot type_slots_AdcController_Static[] =
632
684
  {
@@ -636,14 +688,12 @@ namespace py::cpp::Windows::Devices::Adc
636
688
  { }
637
689
  };
638
690
 
639
- static PyType_Spec type_spec_AdcController_Static =
640
- {
691
+ static PyType_Spec type_spec_AdcController_Static = {
641
692
  "winrt._winrt_windows_devices_adc.AdcController_Static",
642
693
  static_cast<int>(PyType_Type.tp_basicsize),
643
694
  static_cast<int>(PyType_Type.tp_itemsize),
644
695
  Py_TPFLAGS_DEFAULT,
645
- type_slots_AdcController_Static
646
- };
696
+ type_slots_AdcController_Static};
647
697
 
648
698
  // ----- Windows.Devices.Adc Initialization --------------------
649
699
 
@@ -677,6 +727,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_adc(void) noexcept
677
727
  return nullptr;
678
728
  }
679
729
 
730
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
731
+ if (!inspectable_meta_type)
732
+ {
733
+ return nullptr;
734
+ }
735
+
680
736
  auto object_type = py::get_object_type();
681
737
  if (!object_type)
682
738
  {
@@ -690,13 +746,19 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_adc(void) noexcept
690
746
  return nullptr;
691
747
  }
692
748
 
693
- py::pytype_handle AdcChannel_type{py::register_python_type(module.get(), &type_spec_AdcChannel, object_bases.get(), nullptr)};
749
+ py::pytype_handle AdcChannel_type{py::register_python_type(module.get(), &type_spec_AdcChannel, object_bases.get(), inspectable_meta_type)};
694
750
  if (!AdcChannel_type)
695
751
  {
696
752
  return nullptr;
697
753
  }
698
754
 
699
- py::pyobj_handle type_AdcController_Static{PyType_FromSpec(&type_spec_AdcController_Static)};
755
+ py::pyobj_handle AdcController_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
756
+ if (!AdcController_Static_bases)
757
+ {
758
+ return nullptr;
759
+ }
760
+
761
+ py::pyobj_handle type_AdcController_Static{PyType_FromSpecWithBases(&type_spec_AdcController_Static, AdcController_Static_bases.get())};
700
762
  if (!type_AdcController_Static)
701
763
  {
702
764
  return nullptr;
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -0,0 +1 @@
1
+ 3.0.0
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.0.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_devices_adc",
@@ -0,0 +1,65 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.devices.adc.provider as windows_devices_adc_provider
13
+ import winrt.windows.foundation as windows_foundation
14
+ import winrt.windows.foundation.collections as windows_foundation_collections
15
+
16
+ from winrt.windows.devices.adc import AdcChannelMode
17
+
18
+ Self = typing.TypeVar('Self')
19
+
20
+ @typing.final
21
+ class AdcChannel(winrt.system.Object, windows_foundation.IClosable):
22
+ def __enter__(self: Self) -> Self: ...
23
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
24
+ # System.Void Windows.Devices.Adc.AdcChannel::Close()
25
+ def close(self) -> None: ...
26
+ # System.Double Windows.Devices.Adc.AdcChannel::ReadRatio()
27
+ def read_ratio(self) -> winrt.system.Double: ...
28
+ # System.Int32 Windows.Devices.Adc.AdcChannel::ReadValue()
29
+ def read_value(self) -> winrt.system.Int32: ...
30
+ # Windows.Devices.Adc.AdcController Windows.Devices.Adc.AdcChannel::get_Controller()
31
+ @_property
32
+ def controller(self) -> AdcController: ...
33
+
34
+ @typing.final
35
+ class AdcController_Static(winrt._winrt.IInspectable_Static):
36
+ # Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Devices.Adc.AdcController>> Windows.Devices.Adc.AdcController::GetControllersAsync(Windows.Devices.Adc.Provider.IAdcProvider)
37
+ def get_controllers_async(cls, provider: windows_devices_adc_provider.IAdcProvider, /) -> windows_foundation.IAsyncOperation[typing.Sequence[AdcController]]: ...
38
+ # Windows.Foundation.IAsyncOperation`1<Windows.Devices.Adc.AdcController> Windows.Devices.Adc.AdcController::GetDefaultAsync()
39
+ def get_default_async(cls) -> windows_foundation.IAsyncOperation[AdcController]: ...
40
+
41
+ @typing.final
42
+ class AdcController(winrt.system.Object, metaclass=AdcController_Static):
43
+ # System.Boolean Windows.Devices.Adc.AdcController::IsChannelModeSupported(Windows.Devices.Adc.AdcChannelMode)
44
+ def is_channel_mode_supported(self, channel_mode: AdcChannelMode, /) -> bool: ...
45
+ # Windows.Devices.Adc.AdcChannel Windows.Devices.Adc.AdcController::OpenChannel(System.Int32)
46
+ def open_channel(self, channel_number: winrt.system.Int32, /) -> AdcChannel: ...
47
+ # Windows.Devices.Adc.AdcChannelMode Windows.Devices.Adc.AdcController::get_ChannelMode()
48
+ @_property
49
+ def channel_mode(self) -> AdcChannelMode: ...
50
+ # System.Void Windows.Devices.Adc.AdcController::put_ChannelMode(Windows.Devices.Adc.AdcChannelMode)
51
+ @channel_mode.setter
52
+ def channel_mode(self, value: AdcChannelMode) -> None: ...
53
+ # System.Int32 Windows.Devices.Adc.AdcController::get_ChannelCount()
54
+ @_property
55
+ def channel_count(self) -> winrt.system.Int32: ...
56
+ # System.Int32 Windows.Devices.Adc.AdcController::get_MaxValue()
57
+ @_property
58
+ def max_value(self) -> winrt.system.Int32: ...
59
+ # System.Int32 Windows.Devices.Adc.AdcController::get_MinValue()
60
+ @_property
61
+ def min_value(self) -> winrt.system.Int32: ...
62
+ # System.Int32 Windows.Devices.Adc.AdcController::get_ResolutionInBits()
63
+ @_property
64
+ def resolution_in_bits(self) -> winrt.system.Int32: ...
65
+
@@ -1,9 +1,12 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  import enum
4
4
 
5
5
  import winrt.system
6
- from winrt import _winrt_windows_devices_adc
6
+ from winrt._winrt_windows_devices_adc import (
7
+ AdcChannel,
8
+ AdcController,
9
+ )
7
10
 
8
11
  __all__ = [
9
12
  "AdcChannelMode",
@@ -15,5 +18,3 @@ class AdcChannelMode(enum.IntEnum):
15
18
  SINGLE_ENDED = 0
16
19
  DIFFERENTIAL = 1
17
20
 
18
- AdcChannel = _winrt_windows_devices_adc.AdcChannel
19
- AdcController = _winrt_windows_devices_adc.AdcController
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Devices.Adc
3
- Version: 2.3.0
3
+ Version: 3.0.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Adc.Provider[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Adc.Provider[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,6 @@
1
+ winrt-runtime==3.0.0
2
+
3
+ [all]
4
+ winrt-Windows.Devices.Adc.Provider[all]==3.0.0
5
+ winrt-Windows.Foundation[all]==3.0.0
6
+ winrt-Windows.Foundation.Collections[all]==3.0.0
@@ -1,5 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- winrt-Windows.Devices.Adc.Provider[all]==2.3.0
4
- winrt-Windows.Foundation[all]==2.3.0
5
- winrt-Windows.Foundation.Collections[all]==2.3.0
@@ -1 +0,0 @@
1
- 2.3.0
@@ -1,55 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import datetime
4
- import sys
5
- import types
6
- import typing
7
- import uuid as _uuid
8
- from builtins import property as _property
9
-
10
- import winrt._winrt
11
- import winrt.system
12
- import winrt.windows.devices.adc.provider as windows_devices_adc_provider
13
- import winrt.windows.foundation as windows_foundation
14
- import winrt.windows.foundation.collections as windows_foundation_collections
15
-
16
- from winrt.windows.devices.adc import AdcChannelMode
17
-
18
- Self = typing.TypeVar('Self')
19
-
20
- @typing.final
21
- class AdcChannel(winrt.system.Object):
22
- def __enter__(self: Self) -> Self: ...
23
- def __exit__(self, *args) -> None: ...
24
- @staticmethod
25
- def _from(obj: winrt.system.Object, /) -> AdcChannel: ...
26
- def close(self) -> None: ...
27
- def read_ratio(self) -> winrt.system.Double: ...
28
- def read_value(self) -> winrt.system.Int32: ...
29
- @_property
30
- def controller(self) -> typing.Optional[AdcController]: ...
31
-
32
- @typing.final
33
- class AdcController_Static(type):
34
- def get_controllers_async(cls, provider: typing.Optional[windows_devices_adc_provider.IAdcProvider], /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[AdcController]]: ...
35
- def get_default_async(cls) -> windows_foundation.IAsyncOperation[AdcController]: ...
36
-
37
- @typing.final
38
- class AdcController(winrt.system.Object, metaclass=AdcController_Static):
39
- @staticmethod
40
- def _from(obj: winrt.system.Object, /) -> AdcController: ...
41
- def is_channel_mode_supported(self, channel_mode: AdcChannelMode, /) -> bool: ...
42
- def open_channel(self, channel_number: winrt.system.Int32, /) -> typing.Optional[AdcChannel]: ...
43
- @_property
44
- def channel_mode(self) -> AdcChannelMode: ...
45
- @channel_mode.setter
46
- def channel_mode(self, value: AdcChannelMode) -> None: ...
47
- @_property
48
- def channel_count(self) -> winrt.system.Int32: ...
49
- @_property
50
- def max_value(self) -> winrt.system.Int32: ...
51
- @_property
52
- def min_value(self) -> winrt.system.Int32: ...
53
- @_property
54
- def resolution_in_bits(self) -> winrt.system.Int32: ...
55
-
@@ -1,6 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Devices.Adc.Provider[all]==2.3.0
5
- winrt-Windows.Foundation[all]==2.3.0
6
- winrt-Windows.Foundation.Collections[all]==2.3.0