winrt-Windows.Devices.Adc.Provider 2.0.0b1__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.
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Devices.Adc.Provider
3
+ Version: 2.0.0b1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Repository, https://github.com/pywrint/pywrinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: Implementation :: CPython
11
+ Classifier: Intended Audience :: Developers
12
+ Requires-Python: <3.13,>=3.9
13
+ Description-Content-Type: text/markdown
14
+ Provides-Extra: all
15
+
16
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
17
+
18
+ # winrt-Windows.Devices.Adc.Provider
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.Devices.Adc.Provider` namespace.
21
+
22
+ This package provides the `winrt.windows.devices.adc.provider` module.
@@ -0,0 +1,7 @@
1
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
2
+
3
+ # winrt-Windows.Devices.Adc.Provider
4
+
5
+ Windows Runtime (WinRT) APIs for for the `Windows.Devices.Adc.Provider` namespace.
6
+
7
+ This package provides the `winrt.windows.devices.adc.provider` module.
@@ -0,0 +1,3 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ winrt-Windows.Foundation.Collections[all]==2.0.0-beta.1
@@ -0,0 +1,492 @@
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ #include "py.Windows.Devices.Adc.Provider.h"
4
+
5
+
6
+ namespace py::cpp::Windows::Devices::Adc::Provider
7
+ {
8
+ // ----- IAdcControllerProvider interface --------------------
9
+
10
+ static PyObject* _new_IAdcControllerProvider(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
11
+ {
12
+ static_assert(py::py_type<winrt::Windows::Devices::Adc::Provider::IAdcControllerProvider>::type_name);
13
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::Devices::Adc::Provider::IAdcControllerProvider>::type_name);
14
+ return nullptr;
15
+ }
16
+
17
+ static void _dealloc_IAdcControllerProvider(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self) noexcept
18
+ {
19
+ auto tp = Py_TYPE(self);
20
+ std::destroy_at(&self->obj);
21
+ tp->tp_free(self);
22
+ Py_DECREF(tp);
23
+ }
24
+
25
+ static PyObject* IAdcControllerProvider_AcquireChannel(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, PyObject* args) noexcept
26
+ {
27
+ auto arg_count = PyTuple_Size(args);
28
+
29
+ if (arg_count == 1)
30
+ {
31
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"AcquireChannel", 1))
32
+ {
33
+ py::set_arg_count_version_error(1);
34
+ return nullptr;
35
+ }
36
+
37
+ try
38
+ {
39
+ auto param0 = py::convert_to<int32_t>(args, 0);
40
+
41
+ self->obj.AcquireChannel(param0);
42
+ Py_RETURN_NONE;
43
+ }
44
+ catch (...)
45
+ {
46
+ py::to_PyErr();
47
+ return nullptr;
48
+ }
49
+ }
50
+ else
51
+ {
52
+ py::set_invalid_arg_count_error(arg_count);
53
+ return nullptr;
54
+ }
55
+ }
56
+
57
+ static PyObject* IAdcControllerProvider_IsChannelModeSupported(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, PyObject* args) noexcept
58
+ {
59
+ auto arg_count = PyTuple_Size(args);
60
+
61
+ if (arg_count == 1)
62
+ {
63
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"IsChannelModeSupported", 1))
64
+ {
65
+ py::set_arg_count_version_error(1);
66
+ return nullptr;
67
+ }
68
+
69
+ try
70
+ {
71
+ auto param0 = py::convert_to<winrt::Windows::Devices::Adc::Provider::ProviderAdcChannelMode>(args, 0);
72
+
73
+ return py::convert(self->obj.IsChannelModeSupported(param0));
74
+ }
75
+ catch (...)
76
+ {
77
+ py::to_PyErr();
78
+ return nullptr;
79
+ }
80
+ }
81
+ else
82
+ {
83
+ py::set_invalid_arg_count_error(arg_count);
84
+ return nullptr;
85
+ }
86
+ }
87
+
88
+ static PyObject* IAdcControllerProvider_ReadValue(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, PyObject* args) noexcept
89
+ {
90
+ auto arg_count = PyTuple_Size(args);
91
+
92
+ if (arg_count == 1)
93
+ {
94
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ReadValue", 1))
95
+ {
96
+ py::set_arg_count_version_error(1);
97
+ return nullptr;
98
+ }
99
+
100
+ try
101
+ {
102
+ auto param0 = py::convert_to<int32_t>(args, 0);
103
+
104
+ return py::convert(self->obj.ReadValue(param0));
105
+ }
106
+ catch (...)
107
+ {
108
+ py::to_PyErr();
109
+ return nullptr;
110
+ }
111
+ }
112
+ else
113
+ {
114
+ py::set_invalid_arg_count_error(arg_count);
115
+ return nullptr;
116
+ }
117
+ }
118
+
119
+ static PyObject* IAdcControllerProvider_ReleaseChannel(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, PyObject* args) noexcept
120
+ {
121
+ auto arg_count = PyTuple_Size(args);
122
+
123
+ if (arg_count == 1)
124
+ {
125
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ReleaseChannel", 1))
126
+ {
127
+ py::set_arg_count_version_error(1);
128
+ return nullptr;
129
+ }
130
+
131
+ try
132
+ {
133
+ auto param0 = py::convert_to<int32_t>(args, 0);
134
+
135
+ self->obj.ReleaseChannel(param0);
136
+ Py_RETURN_NONE;
137
+ }
138
+ catch (...)
139
+ {
140
+ py::to_PyErr();
141
+ return nullptr;
142
+ }
143
+ }
144
+ else
145
+ {
146
+ py::set_invalid_arg_count_error(arg_count);
147
+ return nullptr;
148
+ }
149
+ }
150
+
151
+ static PyObject* IAdcControllerProvider_get_ChannelCount(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, void* /*unused*/) noexcept
152
+ {
153
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ChannelCount"))
154
+ {
155
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
156
+ return nullptr;
157
+ }
158
+
159
+ try
160
+ {
161
+ return py::convert(self->obj.ChannelCount());
162
+ }
163
+ catch (...)
164
+ {
165
+ py::to_PyErr();
166
+ return nullptr;
167
+ }
168
+ }
169
+
170
+ static PyObject* IAdcControllerProvider_get_ChannelMode(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, void* /*unused*/) noexcept
171
+ {
172
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ChannelMode"))
173
+ {
174
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
175
+ return nullptr;
176
+ }
177
+
178
+ try
179
+ {
180
+ return py::convert(self->obj.ChannelMode());
181
+ }
182
+ catch (...)
183
+ {
184
+ py::to_PyErr();
185
+ return nullptr;
186
+ }
187
+ }
188
+
189
+ static int IAdcControllerProvider_put_ChannelMode(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, PyObject* arg, void* /*unused*/) noexcept
190
+ {
191
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ChannelMode"))
192
+ {
193
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
194
+ return -1;
195
+ }
196
+
197
+ if (arg == nullptr)
198
+ {
199
+ PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
200
+ return -1;
201
+ }
202
+
203
+ try
204
+ {
205
+ auto param0 = py::convert_to<winrt::Windows::Devices::Adc::Provider::ProviderAdcChannelMode>(arg);
206
+
207
+ self->obj.ChannelMode(param0);
208
+ return 0;
209
+ }
210
+ catch (...)
211
+ {
212
+ py::to_PyErr();
213
+ return -1;
214
+ }
215
+ }
216
+
217
+ static PyObject* IAdcControllerProvider_get_MaxValue(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, void* /*unused*/) noexcept
218
+ {
219
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"MaxValue"))
220
+ {
221
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
222
+ return nullptr;
223
+ }
224
+
225
+ try
226
+ {
227
+ return py::convert(self->obj.MaxValue());
228
+ }
229
+ catch (...)
230
+ {
231
+ py::to_PyErr();
232
+ return nullptr;
233
+ }
234
+ }
235
+
236
+ static PyObject* IAdcControllerProvider_get_MinValue(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, void* /*unused*/) noexcept
237
+ {
238
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"MinValue"))
239
+ {
240
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
241
+ return nullptr;
242
+ }
243
+
244
+ try
245
+ {
246
+ return py::convert(self->obj.MinValue());
247
+ }
248
+ catch (...)
249
+ {
250
+ py::to_PyErr();
251
+ return nullptr;
252
+ }
253
+ }
254
+
255
+ static PyObject* IAdcControllerProvider_get_ResolutionInBits(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider* self, void* /*unused*/) noexcept
256
+ {
257
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.Provider.IAdcControllerProvider", L"ResolutionInBits"))
258
+ {
259
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
260
+ return nullptr;
261
+ }
262
+
263
+ try
264
+ {
265
+ return py::convert(self->obj.ResolutionInBits());
266
+ }
267
+ catch (...)
268
+ {
269
+ py::to_PyErr();
270
+ return nullptr;
271
+ }
272
+ }
273
+
274
+ static PyObject* _assign_array_IAdcControllerProvider(PyObject* /*unused*/, PyObject* arg) noexcept
275
+ {
276
+ auto array = std::make_unique<py::ComArray<winrt::Windows::Devices::Adc::Provider::IAdcControllerProvider>>();
277
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
278
+ {
279
+ return nullptr;
280
+ }
281
+ Py_RETURN_NONE;
282
+ }
283
+
284
+ static PyObject* _from_IAdcControllerProvider(PyObject* /*unused*/, PyObject* arg) noexcept
285
+ {
286
+ try
287
+ {
288
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
289
+ return py::convert(return_value.as<winrt::Windows::Devices::Adc::Provider::IAdcControllerProvider>());
290
+ }
291
+ catch (...)
292
+ {
293
+ py::to_PyErr();
294
+ return nullptr;
295
+ }
296
+ }
297
+
298
+ static PyMethodDef _methods_IAdcControllerProvider[] = {
299
+ { "acquire_channel", reinterpret_cast<PyCFunction>(IAdcControllerProvider_AcquireChannel), METH_VARARGS, nullptr },
300
+ { "is_channel_mode_supported", reinterpret_cast<PyCFunction>(IAdcControllerProvider_IsChannelModeSupported), METH_VARARGS, nullptr },
301
+ { "read_value", reinterpret_cast<PyCFunction>(IAdcControllerProvider_ReadValue), METH_VARARGS, nullptr },
302
+ { "release_channel", reinterpret_cast<PyCFunction>(IAdcControllerProvider_ReleaseChannel), METH_VARARGS, nullptr },
303
+ { "_assign_array_", _assign_array_IAdcControllerProvider, METH_O | METH_STATIC, nullptr },
304
+ { "_from", reinterpret_cast<PyCFunction>(_from_IAdcControllerProvider), METH_O | METH_STATIC, nullptr },
305
+ { }
306
+ };
307
+
308
+ static PyGetSetDef _getset_IAdcControllerProvider[] = {
309
+ { "channel_count", reinterpret_cast<getter>(IAdcControllerProvider_get_ChannelCount), nullptr, nullptr, nullptr },
310
+ { "channel_mode", reinterpret_cast<getter>(IAdcControllerProvider_get_ChannelMode), reinterpret_cast<setter>(IAdcControllerProvider_put_ChannelMode), nullptr, nullptr },
311
+ { "max_value", reinterpret_cast<getter>(IAdcControllerProvider_get_MaxValue), nullptr, nullptr, nullptr },
312
+ { "min_value", reinterpret_cast<getter>(IAdcControllerProvider_get_MinValue), nullptr, nullptr, nullptr },
313
+ { "resolution_in_bits", reinterpret_cast<getter>(IAdcControllerProvider_get_ResolutionInBits), nullptr, nullptr, nullptr },
314
+ { }
315
+ };
316
+
317
+ static PyType_Slot _type_slots_IAdcControllerProvider[] =
318
+ {
319
+ { Py_tp_new, reinterpret_cast<void*>(_new_IAdcControllerProvider) },
320
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IAdcControllerProvider) },
321
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_IAdcControllerProvider) },
322
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_IAdcControllerProvider) },
323
+ { },
324
+ };
325
+
326
+ static PyType_Spec type_spec_IAdcControllerProvider =
327
+ {
328
+ "winrt._winrt_windows_devices_adc_provider.IAdcControllerProvider",
329
+ sizeof(py::wrapper::Windows::Devices::Adc::Provider::IAdcControllerProvider),
330
+ 0,
331
+ Py_TPFLAGS_DEFAULT,
332
+ _type_slots_IAdcControllerProvider
333
+ };
334
+
335
+ // ----- IAdcProvider interface --------------------
336
+
337
+ static PyObject* _new_IAdcProvider(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
338
+ {
339
+ static_assert(py::py_type<winrt::Windows::Devices::Adc::Provider::IAdcProvider>::type_name);
340
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::Devices::Adc::Provider::IAdcProvider>::type_name);
341
+ return nullptr;
342
+ }
343
+
344
+ static void _dealloc_IAdcProvider(py::wrapper::Windows::Devices::Adc::Provider::IAdcProvider* self) noexcept
345
+ {
346
+ auto tp = Py_TYPE(self);
347
+ std::destroy_at(&self->obj);
348
+ tp->tp_free(self);
349
+ Py_DECREF(tp);
350
+ }
351
+
352
+ static PyObject* IAdcProvider_GetControllers(py::wrapper::Windows::Devices::Adc::Provider::IAdcProvider* self, PyObject* args) noexcept
353
+ {
354
+ auto arg_count = PyTuple_Size(args);
355
+
356
+ if (arg_count == 0)
357
+ {
358
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.Provider.IAdcProvider", L"GetControllers", 0))
359
+ {
360
+ py::set_arg_count_version_error(0);
361
+ return nullptr;
362
+ }
363
+
364
+ try
365
+ {
366
+ return py::convert(self->obj.GetControllers());
367
+ }
368
+ catch (...)
369
+ {
370
+ py::to_PyErr();
371
+ return nullptr;
372
+ }
373
+ }
374
+ else
375
+ {
376
+ py::set_invalid_arg_count_error(arg_count);
377
+ return nullptr;
378
+ }
379
+ }
380
+
381
+ static PyObject* _assign_array_IAdcProvider(PyObject* /*unused*/, PyObject* arg) noexcept
382
+ {
383
+ auto array = std::make_unique<py::ComArray<winrt::Windows::Devices::Adc::Provider::IAdcProvider>>();
384
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
385
+ {
386
+ return nullptr;
387
+ }
388
+ Py_RETURN_NONE;
389
+ }
390
+
391
+ static PyObject* _from_IAdcProvider(PyObject* /*unused*/, PyObject* arg) noexcept
392
+ {
393
+ try
394
+ {
395
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
396
+ return py::convert(return_value.as<winrt::Windows::Devices::Adc::Provider::IAdcProvider>());
397
+ }
398
+ catch (...)
399
+ {
400
+ py::to_PyErr();
401
+ return nullptr;
402
+ }
403
+ }
404
+
405
+ static PyMethodDef _methods_IAdcProvider[] = {
406
+ { "get_controllers", reinterpret_cast<PyCFunction>(IAdcProvider_GetControllers), METH_VARARGS, nullptr },
407
+ { "_assign_array_", _assign_array_IAdcProvider, METH_O | METH_STATIC, nullptr },
408
+ { "_from", reinterpret_cast<PyCFunction>(_from_IAdcProvider), METH_O | METH_STATIC, nullptr },
409
+ { }
410
+ };
411
+
412
+ static PyGetSetDef _getset_IAdcProvider[] = {
413
+ { }
414
+ };
415
+
416
+ static PyType_Slot _type_slots_IAdcProvider[] =
417
+ {
418
+ { Py_tp_new, reinterpret_cast<void*>(_new_IAdcProvider) },
419
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IAdcProvider) },
420
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_IAdcProvider) },
421
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_IAdcProvider) },
422
+ { },
423
+ };
424
+
425
+ static PyType_Spec type_spec_IAdcProvider =
426
+ {
427
+ "winrt._winrt_windows_devices_adc_provider.IAdcProvider",
428
+ sizeof(py::wrapper::Windows::Devices::Adc::Provider::IAdcProvider),
429
+ 0,
430
+ Py_TPFLAGS_DEFAULT,
431
+ _type_slots_IAdcProvider
432
+ };
433
+
434
+ // ----- Windows.Devices.Adc.Provider Initialization --------------------
435
+ PyDoc_STRVAR(module_doc, "Windows::Devices::Adc::Provider");
436
+
437
+
438
+ static PyModuleDef module_def
439
+ = {PyModuleDef_HEAD_INIT,
440
+ "_winrt_windows_devices_adc_provider",
441
+ module_doc,
442
+ 0,
443
+ nullptr,
444
+ nullptr,
445
+ nullptr,
446
+ nullptr,
447
+ nullptr};
448
+
449
+ } // py::cpp::Windows::Devices::Adc::Provider
450
+
451
+ PyMODINIT_FUNC PyInit__winrt_windows_devices_adc_provider(void) noexcept
452
+ {
453
+ using namespace py::cpp::Windows::Devices::Adc::Provider;
454
+
455
+ if (py::import_winrt_runtime() == -1)
456
+ {
457
+ return nullptr;
458
+ }
459
+
460
+ py::pyobj_handle module{PyModule_Create(&module_def)};
461
+
462
+ if (!module)
463
+ {
464
+ return nullptr;
465
+ }
466
+
467
+ auto object_type = py::get_object_type();
468
+ if (!object_type)
469
+ {
470
+ return nullptr;
471
+ }
472
+
473
+ py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
474
+
475
+ if (!object_bases)
476
+ {
477
+ return nullptr;
478
+ }
479
+
480
+ if (py::register_python_type(module.get(), &type_spec_IAdcControllerProvider, object_bases.get(), nullptr) == -1)
481
+ {
482
+ return nullptr;
483
+ }
484
+
485
+ if (py::register_python_type(module.get(), &type_spec_IAdcProvider, object_bases.get(), nullptr) == -1)
486
+ {
487
+ return nullptr;
488
+ }
489
+
490
+
491
+ return module.detach();
492
+ }
@@ -0,0 +1,43 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ [build-system]
4
+ requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
5
+ build-backend = "setuptools.build_meta"
6
+
7
+ [project]
8
+ name = "winrt-Windows.Devices.Adc.Provider"
9
+ description = "Python projection of Windows Runtime (WinRT) APIs"
10
+ readme = "README.md"
11
+ license = { text = "MIT" }
12
+ classifiers = [
13
+ "Operating System :: Microsoft :: Windows",
14
+ "Programming Language :: Python :: 3",
15
+ "Programming Language :: Python :: Implementation :: CPython",
16
+ "Intended Audience :: Developers",
17
+ ]
18
+ dynamic = ["version", "dependencies", "optional-dependencies"]
19
+ requires-python = ">=3.9,<3.13"
20
+
21
+ [project.urls]
22
+ # Homepage = "https://github.com/pywrint/pywrinrt"
23
+ # Documentation = "https://readthedocs.org"
24
+ Repository = "https://github.com/pywrint/pywrinrt"
25
+ Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
26
+
27
+ [tool.setuptools.dynamic]
28
+ version = { file = "pywinrt-version.txt" }
29
+ dependencies = { file = "requirements.txt" }
30
+ optional-dependencies.all = { file = "all-requirements.txt" }
31
+
32
+ [tool.cibuildwheel]
33
+ # use local winrt-sdk build dependency
34
+ environment = { PYTHONPATH="../winrt-sdk/src" }
35
+ # don't install winrt-sdk from PyPI
36
+ build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
37
+ # don't build for PyPy
38
+ skip = "pp*"
39
+ # suppress warnings about ARM64 testing
40
+ test-skip = "*-win_arm64"
41
+
42
+ [tool.cibuildwheel.windows]
43
+ archs = ["x86", "AMD64", "ARM64"]
@@ -0,0 +1,3 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ winrt-runtime==2.0.0-beta.1
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,17 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ from setuptools import Extension, setup
4
+ from winrt_sdk import get_include_dirs
5
+
6
+ setup(
7
+ ext_modules=[
8
+ Extension(
9
+ "winrt._winrt_windows_devices_adc_provider",
10
+ sources=["py.Windows.Devices.Adc.Provider.cpp"],
11
+ include_dirs=get_include_dirs(),
12
+ extra_compile_args=["/std:c++20", "/permissive-"],
13
+ libraries=["windowsapp"],
14
+ )
15
+ ],
16
+ package_data={"winrt": ["*.pyi"]},
17
+ )
@@ -0,0 +1,42 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
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.foundation.collections
13
+
14
+ from winrt.windows.devices.adc.provider import ProviderAdcChannelMode
15
+
16
+ Self = typing.TypeVar('Self')
17
+
18
+ class IAdcControllerProvider(winrt.system.Object):
19
+ @staticmethod
20
+ def _from(obj: winrt.system.Object, /) -> IAdcControllerProvider: ...
21
+ def acquire_channel(self, channel: winrt.system.Int32, /) -> None: ...
22
+ def is_channel_mode_supported(self, channel_mode: ProviderAdcChannelMode, /) -> bool: ...
23
+ def read_value(self, channel_number: winrt.system.Int32, /) -> winrt.system.Int32: ...
24
+ def release_channel(self, channel: winrt.system.Int32, /) -> None: ...
25
+ @_property
26
+ def channel_count(self) -> winrt.system.Int32: ...
27
+ @_property
28
+ def channel_mode(self) -> ProviderAdcChannelMode: ...
29
+ @channel_mode.setter
30
+ def channel_mode(self, value: ProviderAdcChannelMode) -> None: ...
31
+ @_property
32
+ def max_value(self) -> winrt.system.Int32: ...
33
+ @_property
34
+ def min_value(self) -> winrt.system.Int32: ...
35
+ @_property
36
+ def resolution_in_bits(self) -> winrt.system.Int32: ...
37
+
38
+ class IAdcProvider(winrt.system.Object):
39
+ @staticmethod
40
+ def _from(obj: winrt.system.Object, /) -> IAdcProvider: ...
41
+ def get_controllers(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[IAdcControllerProvider]]: ...
42
+
@@ -0,0 +1,19 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt import _winrt_windows_devices_adc_provider
7
+
8
+ __all__ = [
9
+ "ProviderAdcChannelMode",
10
+ "IAdcControllerProvider",
11
+ "IAdcProvider",
12
+ ]
13
+
14
+ class ProviderAdcChannelMode(enum.IntEnum):
15
+ SINGLE_ENDED = 0
16
+ DIFFERENTIAL = 1
17
+
18
+ IAdcControllerProvider = _winrt_windows_devices_adc_provider.IAdcControllerProvider
19
+ IAdcProvider = _winrt_windows_devices_adc_provider.IAdcProvider
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Devices.Adc.Provider
3
+ Version: 2.0.0b1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Repository, https://github.com/pywrint/pywrinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: Implementation :: CPython
11
+ Classifier: Intended Audience :: Developers
12
+ Requires-Python: <3.13,>=3.9
13
+ Description-Content-Type: text/markdown
14
+ Provides-Extra: all
15
+
16
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
17
+
18
+ # winrt-Windows.Devices.Adc.Provider
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.Devices.Adc.Provider` namespace.
21
+
22
+ This package provides the `winrt.windows.devices.adc.provider` module.
@@ -0,0 +1,14 @@
1
+ README.md
2
+ all-requirements.txt
3
+ py.Windows.Devices.Adc.Provider.cpp
4
+ pyproject.toml
5
+ pywinrt-version.txt
6
+ requirements.txt
7
+ setup.py
8
+ winrt/_winrt_windows_devices_adc_provider.pyi
9
+ winrt/windows/devices/adc/provider/__init__.py
10
+ winrt_Windows.Devices.Adc.Provider.egg-info/PKG-INFO
11
+ winrt_Windows.Devices.Adc.Provider.egg-info/SOURCES.txt
12
+ winrt_Windows.Devices.Adc.Provider.egg-info/dependency_links.txt
13
+ winrt_Windows.Devices.Adc.Provider.egg-info/requires.txt
14
+ winrt_Windows.Devices.Adc.Provider.egg-info/top_level.txt
@@ -0,0 +1,4 @@
1
+ winrt-runtime==2.0.0-beta.1
2
+
3
+ [all]
4
+ winrt-Windows.Foundation.Collections[all]==2.0.0-beta.1