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 kUSBHostDevicePropertyResumeRecoveryTime: &CStr =
150 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBResumeRecoveryTime\0") };
151pub const kUSBHostDevicePropertyPreferredConfiguration: &CStr =
153 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBPreferredConfiguration\0") };
154pub const kUSBHostDevicePropertyPreferredRecoveryConfiguration: &CStr =
156 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBPreferredRecoveryConfiguration\0") };
157pub const kUSBHostDevicePropertyCurrentConfiguration: &CStr =
159 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBCurrentConfiguration\0") };
160pub const kUSBHostDevicePropertyRemoteWakeOverride: &CStr =
162 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBRemoteWakeOverride\0") };
163pub const kUSBHostDevicePropertyConfigurationDescriptorOverride: &CStr =
165 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBConfigurationDescriptorOverride\0") };
166pub const kUSBHostDevicePropertyDeviceDescriptorOverride: &CStr =
168 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBDeviceDescriptorOverride\0") };
169pub const kUSBHostDevicePropertyConfigurationCurrentOverride: &CStr =
171 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBConfigurationCurrentOverride\0") };
172pub const kUSBHostDevicePropertyResetDurationOverride: &CStr =
174 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBResetDurationOverride\0") };
175pub const kUSBHostDevicePropertyDesiredChargingCurrent: &CStr =
177 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBDesiredChargingCurrent\0") };
178pub const kUSBHostDevicePropertyDescriptorOverride: &CStr =
180 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBDescriptorOverride\0") };
181pub const kUSBHostDescriptorOverrideVendorStringIndex: &CStr =
183 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbDescriptorOverrideVendorStringIndex\0") };
184pub const kUSBHostDescriptorOverrideProductStringIndex: &CStr =
186 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbDescriptorOverrideProductStringIndex\0") };
187pub const kUSBHostDescriptorOverrideSerialNumberStringIndex: &CStr = unsafe {
189 CStr::from_bytes_with_nul_unchecked(b"UsbDescriptorOverrideSerialNumberStringIndex\0")
190};
191pub const kUSBHostDevicePropertyDeviceECID: &CStr =
193 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbAppleDeviceECID\0") };
194pub const kUSBHostDevicePropertyDeviceUDID: &CStr =
196 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbAppleDeviceUDID\0") };
197pub const kUSBHostDevicePropertyEnableLPM: &CStr =
199 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbLinkPowerManagement\0") };
200pub const kUSBHostDevicePropertyDisablePortLPM: &CStr =
202 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHostDeviceDisablePortLPM\0") };
203pub const kUSBHostDevicePropertyStreamsSupported: &CStr =
205 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbStreamsSupported\0") };
206pub const kUSBHostDevicePropertyEnumerationState: &CStr =
208 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbEnumerationState\0") };
209pub const kUSBHostDevicePropertySignature: &CStr =
211 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbDeviceSignature\0") };
212pub const kUSBHostDevicePropertyTunnel: &CStr =
214 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbTunnel\0") };
215pub const kUSBHostDevicePropertyPowerSinkCapability: &CStr =
217 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbPowerSinkCapability\0") };
218pub const kUSBHostBillboardDevicePropertyNumberOfAlternateModes: &CStr =
220 unsafe { CStr::from_bytes_with_nul_unchecked(b"bNumberOfAlternateModes\0") };
221pub const kUSBHostBillboardDevicePropertyPreferredAlternateMode: &CStr =
223 unsafe { CStr::from_bytes_with_nul_unchecked(b"bPreferredAlternateMode\0") };
224pub const kUSBHostBillboardDevicePropertyVCONNPower: &CStr =
226 unsafe { CStr::from_bytes_with_nul_unchecked(b"VCONNPower\0") };
227pub const kUSBHostBillboardDevicePropertyConfigured: &CStr =
229 unsafe { CStr::from_bytes_with_nul_unchecked(b"bmConfigured\0") };
230pub const kUSBHostBillboardDevicePropertyAdditionalFailureInfo: &CStr =
232 unsafe { CStr::from_bytes_with_nul_unchecked(b"bAdditonalFailureInfo\0") };
233pub const kUSBHostBillboardDevicePropertyBcdVersion: &CStr =
235 unsafe { CStr::from_bytes_with_nul_unchecked(b"BcdVersion\0") };
236pub const kUSBHostBillboardDevicePropertySVID: &CStr =
238 unsafe { CStr::from_bytes_with_nul_unchecked(b"wSVID\0") };
239pub const kUSBHostBillboardDevicePropertyAlternateMode: &CStr =
241 unsafe { CStr::from_bytes_with_nul_unchecked(b"bAlternateMode\0") };
242pub const kUSBHostBillboardDevicePropertyAlternateModeStringIndex: &CStr =
244 unsafe { CStr::from_bytes_with_nul_unchecked(b"iAlternateModeString\0") };
245pub const kUSBHostBillboardDevicePropertyAlternateModeString: &CStr =
247 unsafe { CStr::from_bytes_with_nul_unchecked(b"AlternateModeString\0") };
248pub const kUSBHostBillboardDevicePropertyAddtionalInfoURLIndex: &CStr =
250 unsafe { CStr::from_bytes_with_nul_unchecked(b"iAddtionalInfoURL\0") };
251pub const kUSBHostBillboardDevicePropertyAddtionalInfoURL: &CStr =
253 unsafe { CStr::from_bytes_with_nul_unchecked(b"AddtionalInfoURL\0") };
254pub const kUSBHostBillboardDevicePropertydwAlternateModeVdo: &CStr =
256 unsafe { CStr::from_bytes_with_nul_unchecked(b"dwAlternateModeVdo\0") };
257pub const kUSBHostInterfacePropertyAlternateSetting: &CStr =
259 unsafe { CStr::from_bytes_with_nul_unchecked(b"bAlternateSetting\0") };
260pub const kUSBHostPortPropertyStatus: &CStr =
262 unsafe { CStr::from_bytes_with_nul_unchecked(b"port-status\0") };
263pub const kUSBHostPortPropertyOvercurrent: &CStr =
265 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostPortOvercurrent\0") };
266pub const kUSBHostPortPropertyPortNumber: &CStr =
268 unsafe { CStr::from_bytes_with_nul_unchecked(b"port\0") };
269pub const kUSBHostPortPropertyRemovable: &CStr =
271 unsafe { CStr::from_bytes_with_nul_unchecked(b"removable\0") };
272pub const kUSBHostPortPropertyTestMode: &CStr =
274 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBTestMode\0") };
275pub const kUSBHostPortPropertyUsb3ComplianceMode: &CStr =
277 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHostPortPropertyUsb3ComplianceMode\0") };
278pub const kUSBHostPortPropertySimulateInterrupt: &CStr =
280 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBSimulateInterrupt\0") };
281pub const kUSBHostPortPropertyBusCurrentAllocation: &CStr =
283 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBBusCurrentAllocation\0") };
284pub const kUSBHostPortPropertyBusCurrentSleepAllocation: &CStr =
286 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBBusCurrentSleepAllocation\0") };
287pub const kUSBHostPortPropertyConnectable: &CStr =
289 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbConnectable\0") };
290pub const kUSBHostPortPropertyConnectorType: &CStr =
292 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbConnector\0") };
293pub const kUSBHostPortPropertyMux: &CStr =
295 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbMux\0") };
296pub const kUSBHostPortPropertyCompanionIndex: &CStr =
298 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBCompanionIndex\0") };
299pub const kUSBHostPortPropertyDisconnectInterval: &CStr =
301 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBDisconnectInterval\0") };
302pub const kUSBHostPortPropertyUsbCPortNumber: &CStr =
304 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbCPortNumber\0") };
305pub const kUSBHostPortPropertyCompanionPortNumber: &CStr =
307 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbCompanionPortNumber\0") };
308pub const kUSBHostPortPropertyPowerSource: &CStr =
310 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbPowerSource\0") };
311pub const kUSBHostPortPropertyUSB3Mode: &CStr =
313 unsafe { CStr::from_bytes_with_nul_unchecked(b"Usb3Mode\0") };
314pub const kUSBHostPortPropertyExternalDeviceResetController: &CStr =
316 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHostPortExternalDeviceResetController\0") };
317pub const kUSBHostPortPropertyExternalDevicePowerController: &CStr =
319 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHostPortExternalDevicePowerController\0") };
320pub const kUSBHostPortPropertyCardReader: &CStr =
322 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHostPortPropertyCardReader\0") };
323pub const kUSBHostPortPropertyCardReaderValidateDescriptors: &CStr = unsafe {
325 CStr::from_bytes_with_nul_unchecked(b"kUSBHostPortPropertyCardReaderValidateDescriptors\0")
326};
327pub const kUSBHostPortPropertyLinkSpeedLimit: &CStr =
329 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostPortLinkSpeedLimit\0") };
330pub const kUSBHostHubPropertyPowerSupply: &CStr =
332 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHubPowerSupply\0") };
333pub const kUSBHostHubPropertyIdlePolicy: &CStr =
335 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHubIdlePolicy\0") };
336pub const kUSBHostHubPropertyStartupDelay: &CStr =
338 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHubStartupDelay\0") };
339pub const kUSBHostHubPropertyPortSequenceDelay: &CStr =
341 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHubPortSequenceDelay\0") };
342pub const kUSBHostHubPropertyHubPowerSupplyType: &CStr =
344 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHubPowerSupplyType\0") };
345pub const kUSBHostControllerPropertyIsochronousRequiresContiguous: &CStr =
347 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBIsochronousRequiresContiguous\0") };
348pub const kUSBHostControllerPropertySleepSupported: &CStr =
350 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBSleepSupported\0") };
351pub const kUSBHostControllerPropertyRTD3Supported: &CStr =
353 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbRTD3Supported\0") };
354pub const kUSBHostControllerPropertyMuxEnabled: &CStr =
356 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBMuxEnabled\0") };
357pub const kUSBHostControllerPropertyCompanion: &CStr =
359 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBCompanion\0") };
360pub const kUSBHostControllerPropertyLowSpeedCompanion: &CStr =
362 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBLowSpeedCompanion\0") };
363pub const kUSBHostControllerPropertyFullSpeedCompanion: &CStr =
365 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBFullSpeedCompanion\0") };
366pub const kUSBHostControllerPropertyHighSpeedCompanion: &CStr =
368 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHighSpeedCompanion\0") };
369pub const kUSBHostControllerPropertySuperSpeedCompanion: &CStr =
371 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBSuperSpeedCompanion\0") };
372pub const kUSBHostControllerPropertyRevision: &CStr =
374 unsafe { CStr::from_bytes_with_nul_unchecked(b"Revision\0") };
375pub const kUSBHostControllerPropertyCompanionControllerName: &CStr =
377 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbCompanionControllerName\0") };
378pub const kUSBHostControllerPropertyPersistFullSpeedIsochronous: &CStr = unsafe {
380 CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerPersistFullSpeedIsochronous\0")
381};
382pub const kUSBHostControllerPropertyDeferRegisterService: &CStr =
384 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerDeferRegisterService\0") };
385pub const kUSBHostControllerPropertyControlRequestPolicy: &CStr =
387 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerControlRequestPolicy\0") };
388pub const kUSBHostControllerPropertyPortWakeSourcesPolicy: &CStr =
390 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerPortWakeSourcesPolicy\0") };
391pub const kUSBHostControllerPropertySoftRetryPolicy: &CStr =
393 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerSoftRetryPolicy\0") };
394pub const kUSBHostControllerPropertyStreamPolicy: &CStr =
396 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerStreamPolicy\0") };
397pub const kUSBHostControllerPropertyUSB2LPMPolicy: &CStr =
399 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerUSB2LPMPolicy\0") };
400pub const kUSBHostControllerPropertyUSB3LPMPolicy: &CStr =
402 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerUSB3LPMPolicy\0") };
403pub const kUSBHostControllerPropertyUSB4LPMPolicy: &CStr =
405 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerUSB4LPMPolicy\0") };
406pub const kUSBHostControllerPropertyTierLimit: &CStr =
408 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerTierLimit\0") };
409pub const kUSBHostControllerPropertyInterruptRMBS: &CStr =
411 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerInterruptRMBS\0") };
412pub const kUSBHostControllerPropertyIsochronousRMBS: &CStr =
414 unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerIsochronousRMBS\0") };
415pub const kIOUSBHostDeviceClassName: &CStr =
417 unsafe { CStr::from_bytes_with_nul_unchecked(b"IOUSBHostDevice\0") };
418pub const kIOUSBHostInterfaceClassName: &CStr =
420 unsafe { CStr::from_bytes_with_nul_unchecked(b"IOUSBHostInterface\0") };
421pub const kUSBHostDevicePropertyAddress: &CStr =
423 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBAddress\0") };
424pub const kUSBHostDevicePropertyManufacturerStringIndex: &CStr =
426 unsafe { CStr::from_bytes_with_nul_unchecked(b"iManufacturer\0") };
427pub const kUSBHostDevicePropertySerialNumberStringIndex: &CStr =
429 unsafe { CStr::from_bytes_with_nul_unchecked(b"iSerialNumber\0") };
430pub const kUSBHostDevicePropertyProductStringIndex: &CStr =
432 unsafe { CStr::from_bytes_with_nul_unchecked(b"iProduct\0") };
433pub const kUSBHostDevicePropertyProductString: &CStr =
435 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBProductString\0") };
436pub const kUSBHostDevicePropertyNumConfigs: &CStr =
438 unsafe { CStr::from_bytes_with_nul_unchecked(b"bNumConfigurations\0") };
439pub const kUSBHostDevicePropertyMaxPacketSize: &CStr =
441 unsafe { CStr::from_bytes_with_nul_unchecked(b"bMaxPacketSize0\0") };
442pub const kUSBHostDevicePropertyStandardVersion: &CStr =
444 unsafe { CStr::from_bytes_with_nul_unchecked(b"bcdUSB\0") };
445pub const kUSBHostInterfacePropertyStringIndex: &CStr =
447 unsafe { CStr::from_bytes_with_nul_unchecked(b"iInterface\0") };
448pub const kUSBHostInterfacePropertyString: &CStr =
450 unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBString\0") };
451pub const kUSBHostInterfacePropertyNumEndpoints: &CStr =
453 unsafe { CStr::from_bytes_with_nul_unchecked(b"bNumEndpoints\0") };
454pub const kAppleMaxPortCurrent: &CStr =
456 unsafe { CStr::from_bytes_with_nul_unchecked(b"AAPL,current-available\0") };
457pub const kAppleCurrentExtra: &CStr =
459 unsafe { CStr::from_bytes_with_nul_unchecked(b"AAPL,current-extra\0") };
460pub const kAppleMaxPortCurrentInSleep: &CStr =
462 unsafe { CStr::from_bytes_with_nul_unchecked(b"AAPL,max-port-current-in-sleep\0") };
463pub const kAppleCurrentExtraInSleep: &CStr =
465 unsafe { CStr::from_bytes_with_nul_unchecked(b"AAPL,current-extra-in-sleep\0") };
466#[repr(transparent)]
472#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
473pub struct tIOUSBHostConnectionSpeed(pub c_uint);
474impl tIOUSBHostConnectionSpeed {
475 #[doc(alias = "kIOUSBHostConnectionSpeedNone")]
476 pub const IOUSBHostConnectionSpeedNone: Self = Self(0);
477 #[doc(alias = "kIOUSBHostConnectionSpeedFull")]
478 pub const IOUSBHostConnectionSpeedFull: Self = Self(1);
479 #[doc(alias = "kIOUSBHostConnectionSpeedLow")]
480 pub const IOUSBHostConnectionSpeedLow: Self = Self(2);
481 #[doc(alias = "kIOUSBHostConnectionSpeedHigh")]
482 pub const IOUSBHostConnectionSpeedHigh: Self = Self(3);
483 #[doc(alias = "kIOUSBHostConnectionSpeedSuper")]
484 pub const IOUSBHostConnectionSpeedSuper: Self = Self(4);
485 #[doc(alias = "kIOUSBHostConnectionSpeedSuperPlus")]
486 pub const IOUSBHostConnectionSpeedSuperPlus: Self = Self(5);
487 #[doc(alias = "kIOUSBHostConnectionSpeedSuperPlusBy2")]
488 pub const IOUSBHostConnectionSpeedSuperPlusBy2: Self = Self(6);
489 #[doc(alias = "kIOUSBHostConnectionSpeedCount")]
490 pub const IOUSBHostConnectionSpeedCount: Self = Self(7);
491}
492
493#[cfg(feature = "objc2")]
494unsafe impl Encode for tIOUSBHostConnectionSpeed {
495 const ENCODING: Encoding = c_uint::ENCODING;
496}
497
498#[cfg(feature = "objc2")]
499unsafe impl RefEncode for tIOUSBHostConnectionSpeed {
500 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
501}
502
503#[repr(transparent)]
507#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
508pub struct tIOUSBHostPortType(pub c_uint);
509impl tIOUSBHostPortType {
510 #[doc(alias = "kIOUSBHostPortTypeStandard")]
511 pub const IOUSBHostPortTypeStandard: Self = Self(0);
512 #[doc(alias = "kIOUSBHostPortTypeCaptive")]
513 pub const IOUSBHostPortTypeCaptive: Self = Self(1);
514 #[doc(alias = "kIOUSBHostPortTypeInternal")]
515 pub const IOUSBHostPortTypeInternal: Self = Self(2);
516 #[doc(alias = "kIOUSBHostPortTypeAccessory")]
517 pub const IOUSBHostPortTypeAccessory: Self = Self(3);
518 #[doc(alias = "kIOUSBHostPortTypeExpressCard")]
519 pub const IOUSBHostPortTypeExpressCard: Self = Self(4);
520 #[doc(alias = "kIOUSBHostPortTypeCount")]
521 pub const IOUSBHostPortTypeCount: Self = Self(5);
522}
523
524#[cfg(feature = "objc2")]
525unsafe impl Encode for tIOUSBHostPortType {
526 const ENCODING: Encoding = c_uint::ENCODING;
527}
528
529#[cfg(feature = "objc2")]
530unsafe impl RefEncode for tIOUSBHostPortType {
531 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
532}
533
534#[repr(transparent)]
538#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
539pub struct tIOUSBHostPortStatus(pub c_uint);
540impl tIOUSBHostPortStatus {
541 #[doc(alias = "kIOUSBHostPortStatusPortTypeMask")]
542 pub const IOUSBHostPortStatusPortTypeMask: Self = Self(IOUSBHostFamilyBitRange!(0, 3));
543 #[doc(alias = "kIOUSBHostPortStatusPortTypePhase")]
544 pub const IOUSBHostPortStatusPortTypePhase: Self = Self(IOUSBHostFamilyBitRangePhase!(0, 3));
545 #[doc(alias = "kIOUSBHostPortStatusPortTypeStandard")]
546 pub const IOUSBHostPortStatusPortTypeStandard: Self = Self(
547 tIOUSBHostPortType::IOUSBHostPortTypeStandard.0 << IOUSBHostFamilyBitRangePhase!(0, 3),
548 );
549 #[doc(alias = "kIOUSBHostPortStatusPortTypeCaptive")]
550 pub const IOUSBHostPortStatusPortTypeCaptive: Self =
551 Self(tIOUSBHostPortType::IOUSBHostPortTypeCaptive.0 << IOUSBHostFamilyBitRangePhase!(0, 3));
552 #[doc(alias = "kIOUSBHostPortStatusPortTypeInternal")]
553 pub const IOUSBHostPortStatusPortTypeInternal: Self = Self(
554 tIOUSBHostPortType::IOUSBHostPortTypeInternal.0 << IOUSBHostFamilyBitRangePhase!(0, 3),
555 );
556 #[doc(alias = "kIOUSBHostPortStatusPortTypeAccessory")]
557 pub const IOUSBHostPortStatusPortTypeAccessory: Self = Self(
558 tIOUSBHostPortType::IOUSBHostPortTypeAccessory.0 << IOUSBHostFamilyBitRangePhase!(0, 3),
559 );
560 #[doc(alias = "kIOUSBHostPortStatusPortTypeReserved")]
561 pub const IOUSBHostPortStatusPortTypeReserved: Self = Self(IOUSBHostFamilyBitRange!(4, 7));
562 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedMask")]
563 pub const IOUSBHostPortStatusConnectedSpeedMask: Self = Self(IOUSBHostFamilyBitRange!(8, 10));
564 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedPhase")]
565 pub const IOUSBHostPortStatusConnectedSpeedPhase: Self =
566 Self(IOUSBHostFamilyBitRangePhase!(8, 10));
567 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedNone")]
568 pub const IOUSBHostPortStatusConnectedSpeedNone: Self = Self(
569 tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedNone.0
570 << IOUSBHostFamilyBitRangePhase!(8, 10),
571 );
572 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedFull")]
573 pub const IOUSBHostPortStatusConnectedSpeedFull: Self = Self(
574 tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedFull.0
575 << IOUSBHostFamilyBitRangePhase!(8, 10),
576 );
577 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedLow")]
578 pub const IOUSBHostPortStatusConnectedSpeedLow: Self = Self(
579 tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedLow.0
580 << IOUSBHostFamilyBitRangePhase!(8, 10),
581 );
582 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedHigh")]
583 pub const IOUSBHostPortStatusConnectedSpeedHigh: Self = Self(
584 tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedHigh.0
585 << IOUSBHostFamilyBitRangePhase!(8, 10),
586 );
587 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedSuper")]
588 pub const IOUSBHostPortStatusConnectedSpeedSuper: Self = Self(
589 tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedSuper.0
590 << IOUSBHostFamilyBitRangePhase!(8, 10),
591 );
592 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedSuperPlus")]
593 pub const IOUSBHostPortStatusConnectedSpeedSuperPlus: Self = Self(
594 tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedSuperPlus.0
595 << IOUSBHostFamilyBitRangePhase!(8, 10),
596 );
597 #[doc(alias = "kIOUSBHostPortStatusConnectedSpeedSuperPlusBy2")]
598 pub const IOUSBHostPortStatusConnectedSpeedSuperPlusBy2: Self = Self(
599 tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedSuperPlusBy2.0
600 << IOUSBHostFamilyBitRangePhase!(8, 10),
601 );
602 #[doc(alias = "kIOUSBHostPortStatusResetting")]
603 pub const IOUSBHostPortStatusResetting: Self = Self(IOUSBHostFamilyBit!(11));
604 #[doc(alias = "kIOUSBHostPortStatusEnabled")]
605 pub const IOUSBHostPortStatusEnabled: Self = Self(IOUSBHostFamilyBit!(12));
606 #[doc(alias = "kIOUSBHostPortStatusSuspended")]
607 pub const IOUSBHostPortStatusSuspended: Self = Self(IOUSBHostFamilyBit!(13));
608 #[doc(alias = "kIOUSBHostPortStatusOvercurrent")]
609 pub const IOUSBHostPortStatusOvercurrent: Self = Self(IOUSBHostFamilyBit!(14));
610 #[doc(alias = "kIOUSBHostPortStatusTestMode")]
611 pub const IOUSBHostPortStatusTestMode: Self = Self(IOUSBHostFamilyBit!(15));
612}
613
614#[cfg(feature = "objc2")]
615unsafe impl Encode for tIOUSBHostPortStatus {
616 const ENCODING: Encoding = c_uint::ENCODING;
617}
618
619#[cfg(feature = "objc2")]
620unsafe impl RefEncode for tIOUSBHostPortStatus {
621 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
622}