objc2_io_kit/generated/usb/
IOUSBHostFamilyDefinitions.rs1use core::ffi::*;
4use core::ptr::NonNull;
5#[cfg(feature = "objc2")]
6use objc2::__framework_prelude::*;
7
8use crate::*;
9
10pub const kIOUSBTransportDextEntitlement: &CStr = unsafe {
12 CStr::from_bytes_with_nul_unchecked(b"com.apple.developer.driverkit.transport.usb\0")
13};
14pub const kIOUSBHostVMEntitlement: &CStr =
16 unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.vm.device-access\0") };
17pub const kIOUSBHostControllerInterfaceEntitlement: &CStr = unsafe {
19 CStr::from_bytes_with_nul_unchecked(b"com.apple.developer.usb.host-controller-interface\0")
20};
21pub const kIOUSBBillboardEntitlement: &CStr =
23 unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.developer.usb.billboard\0") };
24pub const kUSBHostMatchingPropertySpeed: &CStr =
26 unsafe { CStr::from_bytes_with_nul_unchecked(b"USBSpeed\0") };
27pub const kUSBHostMatchingPropertyPortType: &CStr =
29 unsafe { CStr::from_bytes_with_nul_unchecked(b"USBPortType\0") };
30pub const kUSBHostMatchingPropertyVendorID: &CStr =
32 unsafe { CStr::from_bytes_with_nul_unchecked(b"idVendor\0") };
33pub const kUSBHostMatchingPropertyProductID: &CStr =
35 unsafe { CStr::from_bytes_with_nul_unchecked(b"idProduct\0") };
36pub const kUSBHostMatchingPropertyProductIDMask: &CStr =
38 unsafe { CStr::from_bytes_with_nul_unchecked(b"idProductMask\0") };
39pub const kUSBHostMatchingPropertyProductIDArray: &CStr =
41 unsafe { CStr::from_bytes_with_nul_unchecked(b"idProductArray\0") };
42pub const kUSBHostMatchingPropertyDeviceClass: &CStr =
44 unsafe { CStr::from_bytes_with_nul_unchecked(b"bDeviceClass\0") };
45pub const kUSBHostMatchingPropertyDeviceSubClass: &CStr =
47 unsafe { CStr::from_bytes_with_nul_unchecked(b"bDeviceSubClass\0") };
48pub const kUSBHostMatchingPropertyDeviceProtocol: &CStr =
50 unsafe { CStr::from_bytes_with_nul_unchecked(b"bDeviceProtocol\0") };
51pub const kUSBHostMatchingPropertyDeviceReleaseNumber: &CStr =
53 unsafe { CStr::from_bytes_with_nul_unchecked(b"bcdDevice\0") };
54pub const kUSBHostMatchingPropertyDeviceReleaseNumberRange: &CStr =
56 unsafe { CStr::from_bytes_with_nul_unchecked(b"bcdDeviceRange\0") };
57pub const kUSBHostMatchingPropertyConfigurationValue: &CStr =
59 unsafe { CStr::from_bytes_with_nul_unchecked(b"bConfigurationValue\0") };
60pub const kUSBHostMatchingPropertyInterfaceClass: &CStr =
62 unsafe { CStr::from_bytes_with_nul_unchecked(b"bInterfaceClass\0") };
63pub const kUSBHostMatchingPropertyInterfaceSubClass: &CStr =
65 unsafe { CStr::from_bytes_with_nul_unchecked(b"bInterfaceSubClass\0") };
66pub const kUSBHostMatchingPropertyInterfaceProtocol: &CStr =
68 unsafe { CStr::from_bytes_with_nul_unchecked(b"bInterfaceProtocol\0") };
69pub const kUSBHostMatchingPropertyInterfaceNumber: &CStr =
71 unsafe { CStr::from_bytes_with_nul_unchecked(b"bInterfaceNumber\0") };
72pub const kUSBHostPropertyLocationID: &CStr =
74 unsafe { CStr::from_bytes_with_nul_unchecked(b"locationID\0") };
75pub const kUSBHostPropertyDebugOptions: &CStr =
77 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBDebugOptions\0") };
78pub const kUSBHostPropertyWakePowerSupply: &CStr =
80 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBWakePowerSupply\0") };
81pub const kUSBHostPropertySleepPowerSupply: &CStr =
83 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBSleepPowerSupply\0") };
84pub const kUSBHostPropertyWakePortCurrentLimit: &CStr =
86 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBWakePortCurrentLimit\0") };
87pub const kUSBHostPropertySleepPortCurrentLimit: &CStr =
89 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBSleepPortCurrentLimit\0") };
90pub const kUSBHostPropertyFailedRemoteWake: &CStr =
92 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBFailedRemoteWake\0") };
93pub const kUSBHostPropertyBusCurrentPoolID: &CStr =
95 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbBusCurrentPoolID\0") };
96pub const kUSBHostPropertySmcBusCurrentPoolID: &CStr =
98 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbSmcBusCurrentPoolID\0") };
99pub const kUSBHostPropertyForcePower: &CStr =
101 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbForcePower\0") };
102pub const kUSBHostPropertyForceLinkSpeed: &CStr =
104 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbLinkSpeed\0") };
105pub const kUSBHostPropertyForceHardwareException: &CStr =
107 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHardwareException\0") };
108pub const kUSBHostPropertyAllowSoftRetry: &CStr =
110 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbAllowSoftRetry\0") };
111pub const kUSBHostPropertyExclusiveOwner: &CStr =
113 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbExclusiveOwner\0") };
114pub const kUSBHostUserClientPropertyEntitlementRequired: &CStr =
116 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbUserClientEntitlementRequired\0") };
117pub const kUSBHostUserClientPropertyEntitlement: &CStr =
119 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbUserClientEntitlement\0") };
120pub const kUSBHostUserClientPropertyEntitlementExceptionAllowUnlocked: &CStr = unsafe {
122 CStr::from_bytes_with_nul_unchecked(b"UsbUserClientEntitlementExceptionAllowUnlocked\0")
123};
124pub const kUSBHostUserClientPropertyEnableReset: &CStr =
126 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbUserClientEnableReset\0") };
127pub const kUSBHostUserClientPropertyEnableDataToggleReset: &CStr =
129 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbUserClientEnableDataToggleReset\0") };
130pub const kUSBHostUserClientPropertyBufferStatistics: &CStr =
132 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbUserClientBufferStatistics\0") };
133pub const kUSBHostUserClientPropertyBufferAllocations: &CStr =
135 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbUserClientBufferAllocations\0") };
136pub const kUSBHostDevicePropertyVendorString: &CStr =
138 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBVendorString\0") };
139pub const kUSBHostDevicePropertySerialNumberString: &CStr =
141 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBSerialNumberString\0") };
142pub const kUSBHostDevicePropertyContainerID: &CStr =
144 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBContainerID\0") };
145pub const kUSBHostDevicePropertyFailedRequestedPower: &CStr =
147 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBFailedRequestedPower\0") };
148pub const kUSBHostDevicePropertyUSB3Preferred: &CStr =
150 unsafe { CStr::from_bytes_with_nul_unchecked(b"Usb3LinkPreferred\0") };
151pub const kUSBHostDevicePropertyUSB3Required: &CStr =
153 unsafe { CStr::from_bytes_with_nul_unchecked(b"Usb3LinkRequired\0") };
154pub const kUSBHostDevicePropertyResumeRecoveryTime: &CStr =
156 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBResumeRecoveryTime\0") };
157pub const kUSBHostDevicePropertyPreferredConfiguration: &CStr =
159 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBPreferredConfiguration\0") };
160pub const kUSBHostDevicePropertyPreferredRecoveryConfiguration: &CStr =
162 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBPreferredRecoveryConfiguration\0") };
163pub const kUSBHostDevicePropertyCurrentConfiguration: &CStr =
165 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBCurrentConfiguration\0") };
166pub const kUSBHostDevicePropertyRemoteWakeOverride: &CStr =
168 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBRemoteWakeOverride\0") };
169pub const kUSBHostDevicePropertyConfigurationDescriptorOverride: &CStr =
171 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBConfigurationDescriptorOverride\0") };
172pub const kUSBHostDevicePropertyDeviceDescriptorOverride: &CStr =
174 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBDeviceDescriptorOverride\0") };
175pub const kUSBHostDevicePropertyConfigurationCurrentOverride: &CStr =
177 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBConfigurationCurrentOverride\0") };
178pub const kUSBHostDevicePropertyResetDurationOverride: &CStr =
180 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBResetDurationOverride\0") };
181pub const kUSBHostDevicePropertyDesiredChargingCurrent: &CStr =
183 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBDesiredChargingCurrent\0") };
184pub const kUSBHostDevicePropertyDescriptorOverride: &CStr =
186 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBDescriptorOverride\0") };
187pub const kUSBHostDescriptorOverrideVendorStringIndex: &CStr =
189 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbDescriptorOverrideVendorStringIndex\0") };
190pub const kUSBHostDescriptorOverrideProductStringIndex: &CStr =
192 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbDescriptorOverrideProductStringIndex\0") };
193pub const kUSBHostDescriptorOverrideSerialNumberStringIndex: &CStr = unsafe {
195 CStr::from_bytes_with_nul_unchecked(b"UsbDescriptorOverrideSerialNumberStringIndex\0")
196};
197pub const kUSBHostDevicePropertyDeviceECID: &CStr =
199 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbAppleDeviceECID\0") };
200pub const kUSBHostDevicePropertyDeviceUDID: &CStr =
202 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbAppleDeviceUDID\0") };
203pub const kUSBHostDevicePropertyEnableLPM: &CStr =
205 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbLinkPowerManagement\0") };
206pub const kUSBHostDevicePropertyDisablePortLPM: &CStr =
208 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHostDeviceDisablePortLPM\0") };
209pub const kUSBHostDevicePropertyStreamsSupported: &CStr =
211 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbStreamsSupported\0") };
212pub const kUSBHostDevicePropertyEnumerationState: &CStr =
214 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbEnumerationState\0") };
215pub const kUSBHostDevicePropertySignature: &CStr =
217 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbDeviceSignature\0") };
218pub const kUSBHostDevicePropertyTunnel: &CStr =
220 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbTunnel\0") };
221pub const kUSBHostDevicePropertyPowerSinkCapability: &CStr =
223 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbPowerSinkCapability\0") };
224pub const kUSBHostDevicePropertyPowerSinkAllocation: &CStr =
226 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbPowerSinkAllocation\0") };
227pub const kUSBHostDevicePropertyIdlePolicy: &CStr =
229 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbIdlePolicy\0") };
230pub const kUSBHostBillboardDevicePropertyVersion: &CStr =
232 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbBillboardVersion\0") };
233pub const kUSBHostBillboardDevicePropertyPreferredMode: &CStr =
235 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbBillboardPreferredMode\0") };
236pub const kUSBHostBillboardDevicePropertyCurrentMode: &CStr =
238 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbBillboardCurrentMode\0") };
239pub const kUSBHostBillboardDevicePropertyModeValueUSB4: &CStr =
241 unsafe { CStr::from_bytes_with_nul_unchecked(b"USB4\0") };
242pub const kUSBHostBillboardDevicePropertyModeValueThunderbolt: &CStr =
244 unsafe { CStr::from_bytes_with_nul_unchecked(b"Thunderbolt\0") };
245pub const kUSBHostBillboardDevicePropertyModeValueDisplayPort: &CStr =
247 unsafe { CStr::from_bytes_with_nul_unchecked(b"DisplayPort\0") };
248pub const kUSBHostBillboardDevicePropertyAltModeFailed: &CStr =
250 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbBillboardAltModeFailed\0") };
251pub const kUSBHostBillboardDevicePropertyAltModePowerFailed: &CStr =
253 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbBillboardAltModePowerFailed\0") };
254pub const kUSBHostBillboardDevicePropertyNumberOfAlternateModes: &CStr =
256 unsafe { CStr::from_bytes_with_nul_unchecked(b"bNumberOfAlternateModes\0") };
257pub const kUSBHostBillboardDevicePropertyPreferredAlternateMode: &CStr =
259 unsafe { CStr::from_bytes_with_nul_unchecked(b"bPreferredAlternateMode\0") };
260pub const kUSBHostBillboardDevicePropertyVCONNPower: &CStr =
262 unsafe { CStr::from_bytes_with_nul_unchecked(b"VCONNPower\0") };
263pub const kUSBHostBillboardDevicePropertyConfigured: &CStr =
265 unsafe { CStr::from_bytes_with_nul_unchecked(b"bmConfigured\0") };
266pub const kUSBHostBillboardDevicePropertyAdditionalFailureInfo: &CStr =
268 unsafe { CStr::from_bytes_with_nul_unchecked(b"bAdditonalFailureInfo\0") };
269pub const kUSBHostBillboardDevicePropertyBcdVersion: &CStr =
271 unsafe { CStr::from_bytes_with_nul_unchecked(b"BcdVersion\0") };
272pub const kUSBHostBillboardDevicePropertySVID: &CStr =
274 unsafe { CStr::from_bytes_with_nul_unchecked(b"wSVID\0") };
275pub const kUSBHostBillboardDevicePropertyAlternateMode: &CStr =
277 unsafe { CStr::from_bytes_with_nul_unchecked(b"bAlternateMode\0") };
278pub const kUSBHostBillboardDevicePropertyAlternateModeStringIndex: &CStr =
280 unsafe { CStr::from_bytes_with_nul_unchecked(b"iAlternateModeString\0") };
281pub const kUSBHostBillboardDevicePropertyAlternateModeString: &CStr =
283 unsafe { CStr::from_bytes_with_nul_unchecked(b"AlternateModeString\0") };
284pub const kUSBHostBillboardDevicePropertyAddtionalInfoURLIndex: &CStr =
286 unsafe { CStr::from_bytes_with_nul_unchecked(b"iAddtionalInfoURL\0") };
287pub const kUSBHostBillboardDevicePropertyAddtionalInfoURL: &CStr =
289 unsafe { CStr::from_bytes_with_nul_unchecked(b"AddtionalInfoURL\0") };
290pub const kUSBHostBillboardDevicePropertydwAlternateModeVdo: &CStr =
292 unsafe { CStr::from_bytes_with_nul_unchecked(b"dwAlternateModeVdo\0") };
293pub const kUSBHostInterfacePropertyAlternateSetting: &CStr =
295 unsafe { CStr::from_bytes_with_nul_unchecked(b"bAlternateSetting\0") };
296pub const kUSBHostPortPropertyStatus: &CStr =
298 unsafe { CStr::from_bytes_with_nul_unchecked(b"port-status\0") };
299pub const kUSBHostPortPropertyOvercurrent: &CStr =
301 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostPortOvercurrent\0") };
302pub const kUSBHostPortPropertyPortNumber: &CStr =
304 unsafe { CStr::from_bytes_with_nul_unchecked(b"usb-port-number\0") };
305pub const kUSBHostPortPropertyRemovable: &CStr =
307 unsafe { CStr::from_bytes_with_nul_unchecked(b"removable\0") };
308pub const kUSBHostPortPropertyTestMode: &CStr =
310 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBTestMode\0") };
311pub const kUSBHostPortPropertyUsb3ComplianceMode: &CStr =
313 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHostPortPropertyUsb3ComplianceMode\0") };
314pub const kUSBHostPortPropertySimulateInterrupt: &CStr =
316 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBSimulateInterrupt\0") };
317pub const kUSBHostPortPropertyBusCurrentAllocation: &CStr =
319 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBBusCurrentAllocation\0") };
320pub const kUSBHostPortPropertyBusCurrentSleepAllocation: &CStr =
322 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBBusCurrentSleepAllocation\0") };
323pub const kUSBHostPortPropertyConnectable: &CStr =
325 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbConnectable\0") };
326pub const kUSBHostPortPropertyConnectorType: &CStr =
328 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbConnector\0") };
329pub const kUSBHostPortPropertyCompanionIndex: &CStr =
331 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBCompanionIndex\0") };
332pub const kUSBHostPortPropertyDisconnectInterval: &CStr =
334 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBDisconnectInterval\0") };
335pub const kUSBHostPortPropertyUsbCPortNumber: &CStr =
337 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbCPortNumber\0") };
338pub const kUSBHostPortPropertyCompanionPortNumber: &CStr =
340 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbCompanionPortNumber\0") };
341pub const kUSBHostPortPropertyPowerSource: &CStr =
343 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbPowerSource\0") };
344pub const kUSBHostPortPropertyUSB3Mode: &CStr =
346 unsafe { CStr::from_bytes_with_nul_unchecked(b"Usb3Mode\0") };
347pub const kUSBHostPortPropertyExternalDeviceResetController: &CStr =
349 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHostPortExternalDeviceResetController\0") };
350pub const kUSBHostPortPropertyExternalDevicePowerController: &CStr =
352 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHostPortExternalDevicePowerController\0") };
353pub const kUSBHostPortPropertyCardReader: &CStr =
355 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHostPortPropertyCardReader\0") };
356pub const kUSBHostPortPropertyCardReaderValidateDescriptors: &CStr = unsafe {
358 CStr::from_bytes_with_nul_unchecked(b"kUSBHostPortPropertyCardReaderValidateDescriptors\0")
359};
360pub const kUSBHostPortPropertyLinkSpeedLimit: &CStr =
362 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostPortLinkSpeedLimit\0") };
363pub const kUSBHostPortPropertyIOPortServicePath: &CStr =
365 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbIOPort\0") };
366pub const kUSBHostPortPropertyProtocolCompanionRevision1: &CStr =
368 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbProtocolCompanion (1.x)\0") };
369pub const kUSBHostPortPropertyProtocolCompanionRevision2: &CStr =
371 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbProtocolCompanion (2.0)\0") };
372pub const kUSBHostPortPropertyProtocolCompanionRevision3: &CStr =
374 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbProtocolCompanion (3.x)\0") };
375pub const kUSBHostPortPropertyProtocolRevision1: &CStr =
377 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbProtocol (1.x)\0") };
378pub const kUSBHostPortPropertyProtocolRevision2: &CStr =
380 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbProtocol (2.0)\0") };
381pub const kUSBHostPortPropertyProtocolRevision3: &CStr =
383 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbProtocol (3.x)\0") };
384pub const kUSBHostHubPropertyPowerSupply: &CStr =
386 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHubPowerSupply\0") };
387pub const kUSBHostHubPropertyIdlePolicy: &CStr =
389 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHubIdlePolicy\0") };
390pub const kUSBHostHubPropertyStartupDelay: &CStr =
392 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHubStartupDelay\0") };
393pub const kUSBHostHubPropertyPortSequenceDelay: &CStr =
395 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHubPortSequenceDelay\0") };
396pub const kUSBHostHubPropertyHubPowerSupplyType: &CStr =
398 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHubPowerSupplyType\0") };
399pub const kUSBHostControllerPropertyIsochronousRequiresContiguous: &CStr =
401 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBIsochronousRequiresContiguous\0") };
402pub const kUSBHostControllerPropertySleepSupported: &CStr =
404 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBSleepSupported\0") };
405pub const kUSBHostControllerPropertyRTD3Supported: &CStr =
407 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbRTD3Supported\0") };
408pub const kUSBHostControllerPropertyCompanion: &CStr =
410 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBCompanion\0") };
411pub const kUSBHostControllerPropertyLowSpeedCompanion: &CStr =
413 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBLowSpeedCompanion\0") };
414pub const kUSBHostControllerPropertyFullSpeedCompanion: &CStr =
416 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBFullSpeedCompanion\0") };
417pub const kUSBHostControllerPropertyHighSpeedCompanion: &CStr =
419 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHighSpeedCompanion\0") };
420pub const kUSBHostControllerPropertySuperSpeedCompanion: &CStr =
422 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBSuperSpeedCompanion\0") };
423pub const kUSBHostControllerPropertyProtocolRevision: &CStr =
425 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerProtocolRevision\0") };
426pub const kUSBHostControllerPropertyCompanionControllerName: &CStr =
428 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbCompanionControllerName\0") };
429pub const kUSBHostControllerPropertyPersistFullSpeedIsochronous: &CStr = unsafe {
431 CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerPersistFullSpeedIsochronous\0")
432};
433pub const kUSBHostControllerPropertyDeferRegisterService: &CStr =
435 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerDeferRegisterService\0") };
436pub const kUSBHostControllerPropertyControlRequestPolicy: &CStr =
438 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerControlRequestPolicy\0") };
439pub const kUSBHostControllerPropertyPortWakeSourcesPolicy: &CStr =
441 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerPortWakeSourcesPolicy\0") };
442pub const kUSBHostControllerPropertySoftRetryPolicy: &CStr =
444 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerSoftRetryPolicy\0") };
445pub const kUSBHostControllerPropertyStreamPolicy: &CStr =
447 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerStreamPolicy\0") };
448pub const kUSBHostControllerPropertyUSB2LPMPolicy: &CStr =
450 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerUSB2LPMPolicy\0") };
451pub const kUSBHostControllerPropertyUSB3LPMPolicy: &CStr =
453 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerUSB3LPMPolicy\0") };
454pub const kUSBHostControllerPropertyUSB4LPMPolicy: &CStr =
456 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerUSB4LPMPolicy\0") };
457pub const kUSBHostControllerPropertyTierLimit: &CStr =
459 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerTierLimit\0") };
460pub const kUSBHostControllerPropertyInterruptRMBS: &CStr =
462 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerInterruptRMBS\0") };
463pub const kUSBHostControllerPropertyIsochronousRMBS: &CStr =
465 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerIsochronousRMBS\0") };
466pub const kIOUSBHostDeviceClassName: &CStr =
468 unsafe { CStr::from_bytes_with_nul_unchecked(b"IOUSBHostDevice\0") };
469pub const kIOUSBHostInterfaceClassName: &CStr =
471 unsafe { CStr::from_bytes_with_nul_unchecked(b"IOUSBHostInterface\0") };
472pub const kUSBHostDevicePropertyAddress: &CStr =
474 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBAddress\0") };
475pub const kUSBHostDevicePropertyManufacturerStringIndex: &CStr =
477 unsafe { CStr::from_bytes_with_nul_unchecked(b"iManufacturer\0") };
478pub const kUSBHostDevicePropertySerialNumberStringIndex: &CStr =
480 unsafe { CStr::from_bytes_with_nul_unchecked(b"iSerialNumber\0") };
481pub const kUSBHostDevicePropertyProductStringIndex: &CStr =
483 unsafe { CStr::from_bytes_with_nul_unchecked(b"iProduct\0") };
484pub const kUSBHostDevicePropertyProductString: &CStr =
486 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBProductString\0") };
487pub const kUSBHostDevicePropertyNumConfigs: &CStr =
489 unsafe { CStr::from_bytes_with_nul_unchecked(b"bNumConfigurations\0") };
490pub const kUSBHostDevicePropertyMaxPacketSize: &CStr =
492 unsafe { CStr::from_bytes_with_nul_unchecked(b"bMaxPacketSize0\0") };
493pub const kUSBHostDevicePropertyStandardVersion: &CStr =
495 unsafe { CStr::from_bytes_with_nul_unchecked(b"bcdUSB\0") };
496pub const kUSBHostInterfacePropertyStringIndex: &CStr =
498 unsafe { CStr::from_bytes_with_nul_unchecked(b"iInterface\0") };
499pub const kUSBHostInterfacePropertyString: &CStr =
501 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBString\0") };
502pub const kUSBHostInterfacePropertyNumEndpoints: &CStr =
504 unsafe { CStr::from_bytes_with_nul_unchecked(b"bNumEndpoints\0") };
505pub const kAppleMaxPortCurrent: &CStr =
507 unsafe { CStr::from_bytes_with_nul_unchecked(b"AAPL,current-available\0") };
508pub const kAppleCurrentExtra: &CStr =
510 unsafe { CStr::from_bytes_with_nul_unchecked(b"AAPL,current-extra\0") };
511pub const kAppleMaxPortCurrentInSleep: &CStr =
513 unsafe { CStr::from_bytes_with_nul_unchecked(b"AAPL,max-port-current-in-sleep\0") };
514pub const kAppleCurrentExtraInSleep: &CStr =
516 unsafe { CStr::from_bytes_with_nul_unchecked(b"AAPL,current-extra-in-sleep\0") };
517#[repr(transparent)]
523#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
524pub struct tIOUSBHostConnectionSpeed(pub c_uint);
525impl tIOUSBHostConnectionSpeed {
526 #[doc(alias = "kIOUSBHostConnectionSpeedNone")]
527 pub const IOUSBHostConnectionSpeedNone: Self = Self(0);
528 #[doc(alias = "kIOUSBHostConnectionSpeedFull")]
529 pub const IOUSBHostConnectionSpeedFull: Self = Self(1);
530 #[doc(alias = "kIOUSBHostConnectionSpeedLow")]
531 pub const IOUSBHostConnectionSpeedLow: Self = Self(2);
532 #[doc(alias = "kIOUSBHostConnectionSpeedHigh")]
533 pub const IOUSBHostConnectionSpeedHigh: Self = Self(3);
534 #[doc(alias = "kIOUSBHostConnectionSpeedSuper")]
535 pub const IOUSBHostConnectionSpeedSuper: Self = Self(4);
536 #[doc(alias = "kIOUSBHostConnectionSpeedSuperPlus")]
537 pub const IOUSBHostConnectionSpeedSuperPlus: Self = Self(5);
538 #[doc(alias = "kIOUSBHostConnectionSpeedSuperPlusBy2")]
539 pub const IOUSBHostConnectionSpeedSuperPlusBy2: Self = Self(6);
540 #[doc(alias = "kIOUSBHostConnectionSpeedCount")]
541 pub const IOUSBHostConnectionSpeedCount: Self = Self(7);
542}
543
544#[cfg(feature = "objc2")]
545unsafe impl Encode for tIOUSBHostConnectionSpeed {
546 const ENCODING: Encoding = c_uint::ENCODING;
547}
548
549#[cfg(feature = "objc2")]
550unsafe impl RefEncode for tIOUSBHostConnectionSpeed {
551 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
552}
553
554#[repr(transparent)]
558#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
559pub struct tIOUSBHostPortType(pub c_uint);
560impl tIOUSBHostPortType {
561 #[doc(alias = "kIOUSBHostPortTypeStandard")]
562 pub const IOUSBHostPortTypeStandard: Self = Self(0);
563 #[doc(alias = "kIOUSBHostPortTypeCaptive")]
564 pub const IOUSBHostPortTypeCaptive: Self = Self(1);
565 #[doc(alias = "kIOUSBHostPortTypeInternal")]
566 pub const IOUSBHostPortTypeInternal: Self = Self(2);
567 #[doc(alias = "kIOUSBHostPortTypeAccessory")]
568 pub const IOUSBHostPortTypeAccessory: Self = Self(3);
569 #[doc(alias = "kIOUSBHostPortTypeExpressCard")]
570 pub const IOUSBHostPortTypeExpressCard: Self = Self(4);
571 #[doc(alias = "kIOUSBHostPortTypeC")]
572 pub const IOUSBHostPortTypeC: Self = Self(5);
573 #[doc(alias = "kIOUSBHostPortTypeUnknown")]
574 pub const IOUSBHostPortTypeUnknown: Self = Self(6);
575}
576
577#[cfg(feature = "objc2")]
578unsafe impl Encode for tIOUSBHostPortType {
579 const ENCODING: Encoding = c_uint::ENCODING;
580}
581
582#[cfg(feature = "objc2")]
583unsafe impl RefEncode for tIOUSBHostPortType {
584 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
585}
586
587#[repr(transparent)]
591#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
592pub struct tIOUSBHostPortStatus(pub c_uint);
593impl tIOUSBHostPortStatus {
594 #[doc(alias = "kIOUSBHostPortStatusPortTypeMask")]
595 pub const IOUSBHostPortStatusPortTypeMask: Self = Self(IOUSBHostFamilyBitRange!(0, 3));
596 #[doc(alias = "kIOUSBHostPortStatusPortTypePhase")]
597 pub const IOUSBHostPortStatusPortTypePhase: Self = Self(IOUSBHostFamilyBitRangePhase!(0, 3));
598 #[doc(alias = "kIOUSBHostPortStatusPortTypeStandard")]
599 pub const IOUSBHostPortStatusPortTypeStandard: Self = Self(
600 tIOUSBHostPortType::IOUSBHostPortTypeStandard.0 << IOUSBHostFamilyBitRangePhase!(0, 3),
601 );
602 #[doc(alias = "kIOUSBHostPortStatusPortTypeCaptive")]
603 pub const IOUSBHostPortStatusPortTypeCaptive: Self =
604 Self(tIOUSBHostPortType::IOUSBHostPortTypeCaptive.0 << IOUSBHostFamilyBitRangePhase!(0, 3));
605 #[doc(alias = "kIOUSBHostPortStatusPortTypeInternal")]
606 pub const IOUSBHostPortStatusPortTypeInternal: Self = Self(
607 tIOUSBHostPortType::IOUSBHostPortTypeInternal.0 << IOUSBHostFamilyBitRangePhase!(0, 3),
608 );
609 #[doc(alias = "kIOUSBHostPortStatusPortTypeAccessory")]
610 pub const IOUSBHostPortStatusPortTypeAccessory: Self = Self(
611 tIOUSBHostPortType::IOUSBHostPortTypeAccessory.0 << IOUSBHostFamilyBitRangePhase!(0, 3),
612 );
613 #[doc(alias = "kIOUSBHostPortStatusPortTypeReserved")]
614 pub const IOUSBHostPortStatusPortTypeReserved: Self = Self(IOUSBHostFamilyBitRange!(4, 7));
615 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedMask")]
616 pub const IOUSBHostPortStatusConnectedSpeedMask: Self = Self(IOUSBHostFamilyBitRange!(8, 10));
617 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedPhase")]
618 pub const IOUSBHostPortStatusConnectedSpeedPhase: Self =
619 Self(IOUSBHostFamilyBitRangePhase!(8, 10));
620 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedNone")]
621 pub const IOUSBHostPortStatusConnectedSpeedNone: Self = Self(
622 tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedNone.0
623 << IOUSBHostFamilyBitRangePhase!(8, 10),
624 );
625 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedFull")]
626 pub const IOUSBHostPortStatusConnectedSpeedFull: Self = Self(
627 tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedFull.0
628 << IOUSBHostFamilyBitRangePhase!(8, 10),
629 );
630 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedLow")]
631 pub const IOUSBHostPortStatusConnectedSpeedLow: Self = Self(
632 tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedLow.0
633 << IOUSBHostFamilyBitRangePhase!(8, 10),
634 );
635 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedHigh")]
636 pub const IOUSBHostPortStatusConnectedSpeedHigh: Self = Self(
637 tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedHigh.0
638 << IOUSBHostFamilyBitRangePhase!(8, 10),
639 );
640 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedSuper")]
641 pub const IOUSBHostPortStatusConnectedSpeedSuper: Self = Self(
642 tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedSuper.0
643 << IOUSBHostFamilyBitRangePhase!(8, 10),
644 );
645 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedSuperPlus")]
646 pub const IOUSBHostPortStatusConnectedSpeedSuperPlus: Self = Self(
647 tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedSuperPlus.0
648 << IOUSBHostFamilyBitRangePhase!(8, 10),
649 );
650 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedSuperPlusBy2")]
651 pub const IOUSBHostPortStatusConnectedSpeedSuperPlusBy2: Self = Self(
652 tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedSuperPlusBy2.0
653 << IOUSBHostFamilyBitRangePhase!(8, 10),
654 );
655 #[doc(alias = "kIOUSBHostPortStatusResetting")]
656 pub const IOUSBHostPortStatusResetting: Self = Self(IOUSBHostFamilyBit!(11));
657 #[doc(alias = "kIOUSBHostPortStatusEnabled")]
658 pub const IOUSBHostPortStatusEnabled: Self = Self(IOUSBHostFamilyBit!(12));
659 #[doc(alias = "kIOUSBHostPortStatusSuspended")]
660 pub const IOUSBHostPortStatusSuspended: Self = Self(IOUSBHostFamilyBit!(13));
661 #[doc(alias = "kIOUSBHostPortStatusOvercurrent")]
662 pub const IOUSBHostPortStatusOvercurrent: Self = Self(IOUSBHostFamilyBit!(14));
663 #[doc(alias = "kIOUSBHostPortStatusTestMode")]
664 pub const IOUSBHostPortStatusTestMode: Self = Self(IOUSBHostFamilyBit!(15));
665}
666
667#[cfg(feature = "objc2")]
668unsafe impl Encode for tIOUSBHostPortStatus {
669 const ENCODING: Encoding = c_uint::ENCODING;
670}
671
672#[cfg(feature = "objc2")]
673unsafe impl RefEncode for tIOUSBHostPortStatus {
674 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
675}