use core::ffi::*;
use core::ptr::NonNull;
#[cfg(feature = "objc2")]
use objc2::__framework_prelude::*;
use crate::*;
pub const kIOUSBTransportDextEntitlement: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.developer.driverkit.transport.usb\0")
};
pub const kIOUSBHostVMEntitlement: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.vm.device-access\0") };
pub const kIOUSBHostControllerInterfaceEntitlement: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"com.apple.developer.usb.host-controller-interface\0")
};
pub const kIOUSBBillboardEntitlement: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.developer.usb.billboard\0") };
pub const kUSBHostMatchingPropertySpeed: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"USBSpeed\0") };
pub const kUSBHostMatchingPropertyPortType: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"USBPortType\0") };
pub const kUSBHostMatchingPropertyVendorID: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"idVendor\0") };
pub const kUSBHostMatchingPropertyProductID: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"idProduct\0") };
pub const kUSBHostMatchingPropertyProductIDMask: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"idProductMask\0") };
pub const kUSBHostMatchingPropertyProductIDArray: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"idProductArray\0") };
pub const kUSBHostMatchingPropertyDeviceClass: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bDeviceClass\0") };
pub const kUSBHostMatchingPropertyDeviceSubClass: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bDeviceSubClass\0") };
pub const kUSBHostMatchingPropertyDeviceProtocol: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bDeviceProtocol\0") };
pub const kUSBHostMatchingPropertyDeviceReleaseNumber: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bcdDevice\0") };
pub const kUSBHostMatchingPropertyDeviceReleaseNumberRange: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bcdDeviceRange\0") };
pub const kUSBHostMatchingPropertyConfigurationValue: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bConfigurationValue\0") };
pub const kUSBHostMatchingPropertyInterfaceClass: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bInterfaceClass\0") };
pub const kUSBHostMatchingPropertyInterfaceSubClass: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bInterfaceSubClass\0") };
pub const kUSBHostMatchingPropertyInterfaceProtocol: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bInterfaceProtocol\0") };
pub const kUSBHostMatchingPropertyInterfaceNumber: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bInterfaceNumber\0") };
pub const kUSBHostPropertyLocationID: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"locationID\0") };
pub const kUSBHostPropertyDebugOptions: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBDebugOptions\0") };
pub const kUSBHostPropertyWakePowerSupply: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBWakePowerSupply\0") };
pub const kUSBHostPropertySleepPowerSupply: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBSleepPowerSupply\0") };
pub const kUSBHostPropertyWakePortCurrentLimit: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBWakePortCurrentLimit\0") };
pub const kUSBHostPropertySleepPortCurrentLimit: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBSleepPortCurrentLimit\0") };
pub const kUSBHostPropertyFailedRemoteWake: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBFailedRemoteWake\0") };
pub const kUSBHostPropertyBusCurrentPoolID: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbBusCurrentPoolID\0") };
pub const kUSBHostPropertySmcBusCurrentPoolID: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbSmcBusCurrentPoolID\0") };
pub const kUSBHostPropertyForcePower: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbForcePower\0") };
pub const kUSBHostPropertyForceLinkSpeed: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbLinkSpeed\0") };
pub const kUSBHostPropertyForceHardwareException: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHardwareException\0") };
pub const kUSBHostPropertyAllowSoftRetry: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbAllowSoftRetry\0") };
pub const kUSBHostPropertyExclusiveOwner: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbExclusiveOwner\0") };
pub const kUSBHostUserClientPropertyEntitlementRequired: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbUserClientEntitlementRequired\0") };
pub const kUSBHostUserClientPropertyEntitlement: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbUserClientEntitlement\0") };
pub const kUSBHostUserClientPropertyEntitlementExceptionAllowUnlocked: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"UsbUserClientEntitlementExceptionAllowUnlocked\0")
};
pub const kUSBHostUserClientPropertyEnableReset: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbUserClientEnableReset\0") };
pub const kUSBHostUserClientPropertyEnableDataToggleReset: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbUserClientEnableDataToggleReset\0") };
pub const kUSBHostUserClientPropertyBufferStatistics: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbUserClientBufferStatistics\0") };
pub const kUSBHostUserClientPropertyBufferAllocations: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbUserClientBufferAllocations\0") };
pub const kUSBHostDevicePropertyVendorString: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBVendorString\0") };
pub const kUSBHostDevicePropertySerialNumberString: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBSerialNumberString\0") };
pub const kUSBHostDevicePropertyContainerID: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBContainerID\0") };
pub const kUSBHostDevicePropertyFailedRequestedPower: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBFailedRequestedPower\0") };
pub const kUSBHostDevicePropertyUSB3Preferred: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"Usb3LinkPreferred\0") };
pub const kUSBHostDevicePropertyUSB3Required: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"Usb3LinkRequired\0") };
pub const kUSBHostDevicePropertyResumeRecoveryTime: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBResumeRecoveryTime\0") };
pub const kUSBHostDevicePropertyPreferredConfiguration: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBPreferredConfiguration\0") };
pub const kUSBHostDevicePropertyPreferredRecoveryConfiguration: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBPreferredRecoveryConfiguration\0") };
pub const kUSBHostDevicePropertyCurrentConfiguration: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBCurrentConfiguration\0") };
pub const kUSBHostDevicePropertyRemoteWakeOverride: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBRemoteWakeOverride\0") };
pub const kUSBHostDevicePropertyConfigurationDescriptorOverride: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBConfigurationDescriptorOverride\0") };
pub const kUSBHostDevicePropertyDeviceDescriptorOverride: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBDeviceDescriptorOverride\0") };
pub const kUSBHostDevicePropertyConfigurationCurrentOverride: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBConfigurationCurrentOverride\0") };
pub const kUSBHostDevicePropertyResetDurationOverride: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBResetDurationOverride\0") };
pub const kUSBHostDevicePropertyDesiredChargingCurrent: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBDesiredChargingCurrent\0") };
pub const kUSBHostDevicePropertyDescriptorOverride: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBDescriptorOverride\0") };
pub const kUSBHostDescriptorOverrideVendorStringIndex: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbDescriptorOverrideVendorStringIndex\0") };
pub const kUSBHostDescriptorOverrideProductStringIndex: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbDescriptorOverrideProductStringIndex\0") };
pub const kUSBHostDescriptorOverrideSerialNumberStringIndex: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"UsbDescriptorOverrideSerialNumberStringIndex\0")
};
pub const kUSBHostDevicePropertyDeviceECID: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbAppleDeviceECID\0") };
pub const kUSBHostDevicePropertyDeviceUDID: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbAppleDeviceUDID\0") };
pub const kUSBHostDevicePropertyEnableLPM: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbLinkPowerManagement\0") };
pub const kUSBHostDevicePropertyDisablePortLPM: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHostDeviceDisablePortLPM\0") };
pub const kUSBHostDevicePropertyStreamsSupported: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbStreamsSupported\0") };
pub const kUSBHostDevicePropertyEnumerationState: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbEnumerationState\0") };
pub const kUSBHostDevicePropertySignature: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbDeviceSignature\0") };
pub const kUSBHostDevicePropertyTunnel: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbTunnel\0") };
pub const kUSBHostDevicePropertyPowerSinkCapability: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbPowerSinkCapability\0") };
pub const kUSBHostDevicePropertyPowerSinkAllocation: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbPowerSinkAllocation\0") };
pub const kUSBHostDevicePropertyIdlePolicy: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbIdlePolicy\0") };
pub const kUSBHostBillboardDevicePropertyVersion: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbBillboardVersion\0") };
pub const kUSBHostBillboardDevicePropertyPreferredMode: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbBillboardPreferredMode\0") };
pub const kUSBHostBillboardDevicePropertyCurrentMode: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbBillboardCurrentMode\0") };
pub const kUSBHostBillboardDevicePropertyModeValueUSB4: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"USB4\0") };
pub const kUSBHostBillboardDevicePropertyModeValueThunderbolt: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"Thunderbolt\0") };
pub const kUSBHostBillboardDevicePropertyModeValueDisplayPort: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"DisplayPort\0") };
pub const kUSBHostBillboardDevicePropertyAltModeFailed: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbBillboardAltModeFailed\0") };
pub const kUSBHostBillboardDevicePropertyAltModePowerFailed: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbBillboardAltModePowerFailed\0") };
pub const kUSBHostBillboardDevicePropertyNumberOfAlternateModes: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bNumberOfAlternateModes\0") };
pub const kUSBHostBillboardDevicePropertyPreferredAlternateMode: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bPreferredAlternateMode\0") };
pub const kUSBHostBillboardDevicePropertyVCONNPower: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"VCONNPower\0") };
pub const kUSBHostBillboardDevicePropertyConfigured: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bmConfigured\0") };
pub const kUSBHostBillboardDevicePropertyAdditionalFailureInfo: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bAdditonalFailureInfo\0") };
pub const kUSBHostBillboardDevicePropertyBcdVersion: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"BcdVersion\0") };
pub const kUSBHostBillboardDevicePropertySVID: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"wSVID\0") };
pub const kUSBHostBillboardDevicePropertyAlternateMode: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bAlternateMode\0") };
pub const kUSBHostBillboardDevicePropertyAlternateModeStringIndex: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"iAlternateModeString\0") };
pub const kUSBHostBillboardDevicePropertyAlternateModeString: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"AlternateModeString\0") };
pub const kUSBHostBillboardDevicePropertyAddtionalInfoURLIndex: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"iAddtionalInfoURL\0") };
pub const kUSBHostBillboardDevicePropertyAddtionalInfoURL: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"AddtionalInfoURL\0") };
pub const kUSBHostBillboardDevicePropertydwAlternateModeVdo: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"dwAlternateModeVdo\0") };
pub const kUSBHostInterfacePropertyAlternateSetting: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bAlternateSetting\0") };
pub const kUSBHostPortPropertyStatus: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"port-status\0") };
pub const kUSBHostPortPropertyOvercurrent: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostPortOvercurrent\0") };
pub const kUSBHostPortPropertyPortNumber: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"usb-port-number\0") };
pub const kUSBHostPortPropertyRemovable: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"removable\0") };
pub const kUSBHostPortPropertyTestMode: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBTestMode\0") };
pub const kUSBHostPortPropertyUsb3ComplianceMode: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHostPortPropertyUsb3ComplianceMode\0") };
pub const kUSBHostPortPropertySimulateInterrupt: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBSimulateInterrupt\0") };
pub const kUSBHostPortPropertyBusCurrentAllocation: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBBusCurrentAllocation\0") };
pub const kUSBHostPortPropertyBusCurrentSleepAllocation: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBBusCurrentSleepAllocation\0") };
pub const kUSBHostPortPropertyConnectable: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbConnectable\0") };
pub const kUSBHostPortPropertyConnectorType: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbConnector\0") };
pub const kUSBHostPortPropertyCompanionIndex: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBCompanionIndex\0") };
pub const kUSBHostPortPropertyDisconnectInterval: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBDisconnectInterval\0") };
pub const kUSBHostPortPropertyUsbCPortNumber: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbCPortNumber\0") };
pub const kUSBHostPortPropertyCompanionPortNumber: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbCompanionPortNumber\0") };
pub const kUSBHostPortPropertyPowerSource: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbPowerSource\0") };
pub const kUSBHostPortPropertyUSB3Mode: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"Usb3Mode\0") };
pub const kUSBHostPortPropertyExternalDeviceResetController: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHostPortExternalDeviceResetController\0") };
pub const kUSBHostPortPropertyExternalDevicePowerController: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHostPortExternalDevicePowerController\0") };
pub const kUSBHostPortPropertyCardReader: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHostPortPropertyCardReader\0") };
pub const kUSBHostPortPropertyCardReaderValidateDescriptors: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"kUSBHostPortPropertyCardReaderValidateDescriptors\0")
};
pub const kUSBHostPortPropertyLinkSpeedLimit: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostPortLinkSpeedLimit\0") };
pub const kUSBHostPortPropertyIOPortServicePath: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbIOPort\0") };
pub const kUSBHostPortPropertyProtocolCompanionRevision1: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbProtocolCompanion (1.x)\0") };
pub const kUSBHostPortPropertyProtocolCompanionRevision2: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbProtocolCompanion (2.0)\0") };
pub const kUSBHostPortPropertyProtocolCompanionRevision3: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbProtocolCompanion (3.x)\0") };
pub const kUSBHostPortPropertyProtocolRevision1: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbProtocol (1.x)\0") };
pub const kUSBHostPortPropertyProtocolRevision2: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbProtocol (2.0)\0") };
pub const kUSBHostPortPropertyProtocolRevision3: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbProtocol (3.x)\0") };
pub const kUSBHostHubPropertyPowerSupply: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHubPowerSupply\0") };
pub const kUSBHostHubPropertyIdlePolicy: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHubIdlePolicy\0") };
pub const kUSBHostHubPropertyStartupDelay: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHubStartupDelay\0") };
pub const kUSBHostHubPropertyPortSequenceDelay: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHubPortSequenceDelay\0") };
pub const kUSBHostHubPropertyHubPowerSupplyType: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHubPowerSupplyType\0") };
pub const kUSBHostControllerPropertyIsochronousRequiresContiguous: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBIsochronousRequiresContiguous\0") };
pub const kUSBHostControllerPropertySleepSupported: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBSleepSupported\0") };
pub const kUSBHostControllerPropertyRTD3Supported: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbRTD3Supported\0") };
pub const kUSBHostControllerPropertyCompanion: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBCompanion\0") };
pub const kUSBHostControllerPropertyLowSpeedCompanion: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBLowSpeedCompanion\0") };
pub const kUSBHostControllerPropertyFullSpeedCompanion: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBFullSpeedCompanion\0") };
pub const kUSBHostControllerPropertyHighSpeedCompanion: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBHighSpeedCompanion\0") };
pub const kUSBHostControllerPropertySuperSpeedCompanion: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBSuperSpeedCompanion\0") };
pub const kUSBHostControllerPropertyProtocolRevision: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerProtocolRevision\0") };
pub const kUSBHostControllerPropertyCompanionControllerName: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbCompanionControllerName\0") };
pub const kUSBHostControllerPropertyPersistFullSpeedIsochronous: &CStr = unsafe {
CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerPersistFullSpeedIsochronous\0")
};
pub const kUSBHostControllerPropertyDeferRegisterService: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerDeferRegisterService\0") };
pub const kUSBHostControllerPropertyControlRequestPolicy: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerControlRequestPolicy\0") };
pub const kUSBHostControllerPropertyPortWakeSourcesPolicy: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerPortWakeSourcesPolicy\0") };
pub const kUSBHostControllerPropertySoftRetryPolicy: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerSoftRetryPolicy\0") };
pub const kUSBHostControllerPropertyStreamPolicy: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerStreamPolicy\0") };
pub const kUSBHostControllerPropertyUSB2LPMPolicy: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerUSB2LPMPolicy\0") };
pub const kUSBHostControllerPropertyUSB3LPMPolicy: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerUSB3LPMPolicy\0") };
pub const kUSBHostControllerPropertyUSB4LPMPolicy: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerUSB4LPMPolicy\0") };
pub const kUSBHostControllerPropertyTierLimit: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerTierLimit\0") };
pub const kUSBHostControllerPropertyInterruptRMBS: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerInterruptRMBS\0") };
pub const kUSBHostControllerPropertyIsochronousRMBS: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"UsbHostControllerIsochronousRMBS\0") };
pub const kIOUSBHostDeviceClassName: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"IOUSBHostDevice\0") };
pub const kIOUSBHostInterfaceClassName: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"IOUSBHostInterface\0") };
pub const kUSBHostDevicePropertyAddress: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBAddress\0") };
pub const kUSBHostDevicePropertyManufacturerStringIndex: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"iManufacturer\0") };
pub const kUSBHostDevicePropertySerialNumberStringIndex: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"iSerialNumber\0") };
pub const kUSBHostDevicePropertyProductStringIndex: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"iProduct\0") };
pub const kUSBHostDevicePropertyProductString: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBProductString\0") };
pub const kUSBHostDevicePropertyNumConfigs: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bNumConfigurations\0") };
pub const kUSBHostDevicePropertyMaxPacketSize: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bMaxPacketSize0\0") };
pub const kUSBHostDevicePropertyStandardVersion: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bcdUSB\0") };
pub const kUSBHostInterfacePropertyStringIndex: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"iInterface\0") };
pub const kUSBHostInterfacePropertyString: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"kUSBString\0") };
pub const kUSBHostInterfacePropertyNumEndpoints: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"bNumEndpoints\0") };
pub const kAppleMaxPortCurrent: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"AAPL,current-available\0") };
pub const kAppleCurrentExtra: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"AAPL,current-extra\0") };
pub const kAppleMaxPortCurrentInSleep: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"AAPL,max-port-current-in-sleep\0") };
pub const kAppleCurrentExtraInSleep: &CStr =
unsafe { CStr::from_bytes_with_nul_unchecked(b"AAPL,current-extra-in-sleep\0") };
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct tIOUSBHostConnectionSpeed(pub c_uint);
impl tIOUSBHostConnectionSpeed {
#[doc(alias = "kIOUSBHostConnectionSpeedNone")]
pub const IOUSBHostConnectionSpeedNone: Self = Self(0);
#[doc(alias = "kIOUSBHostConnectionSpeedFull")]
pub const IOUSBHostConnectionSpeedFull: Self = Self(1);
#[doc(alias = "kIOUSBHostConnectionSpeedLow")]
pub const IOUSBHostConnectionSpeedLow: Self = Self(2);
#[doc(alias = "kIOUSBHostConnectionSpeedHigh")]
pub const IOUSBHostConnectionSpeedHigh: Self = Self(3);
#[doc(alias = "kIOUSBHostConnectionSpeedSuper")]
pub const IOUSBHostConnectionSpeedSuper: Self = Self(4);
#[doc(alias = "kIOUSBHostConnectionSpeedSuperPlus")]
pub const IOUSBHostConnectionSpeedSuperPlus: Self = Self(5);
#[doc(alias = "kIOUSBHostConnectionSpeedSuperPlusBy2")]
pub const IOUSBHostConnectionSpeedSuperPlusBy2: Self = Self(6);
#[doc(alias = "kIOUSBHostConnectionSpeedCount")]
pub const IOUSBHostConnectionSpeedCount: Self = Self(7);
}
#[cfg(feature = "objc2")]
unsafe impl Encode for tIOUSBHostConnectionSpeed {
const ENCODING: Encoding = c_uint::ENCODING;
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for tIOUSBHostConnectionSpeed {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct tIOUSBHostPortType(pub c_uint);
impl tIOUSBHostPortType {
#[doc(alias = "kIOUSBHostPortTypeStandard")]
pub const IOUSBHostPortTypeStandard: Self = Self(0);
#[doc(alias = "kIOUSBHostPortTypeCaptive")]
pub const IOUSBHostPortTypeCaptive: Self = Self(1);
#[doc(alias = "kIOUSBHostPortTypeInternal")]
pub const IOUSBHostPortTypeInternal: Self = Self(2);
#[doc(alias = "kIOUSBHostPortTypeAccessory")]
pub const IOUSBHostPortTypeAccessory: Self = Self(3);
#[doc(alias = "kIOUSBHostPortTypeExpressCard")]
pub const IOUSBHostPortTypeExpressCard: Self = Self(4);
#[doc(alias = "kIOUSBHostPortTypeC")]
pub const IOUSBHostPortTypeC: Self = Self(5);
#[doc(alias = "kIOUSBHostPortTypeUnknown")]
pub const IOUSBHostPortTypeUnknown: Self = Self(6);
}
#[cfg(feature = "objc2")]
unsafe impl Encode for tIOUSBHostPortType {
const ENCODING: Encoding = c_uint::ENCODING;
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for tIOUSBHostPortType {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct tIOUSBHostPortStatus(pub c_uint);
impl tIOUSBHostPortStatus {
#[doc(alias = "kIOUSBHostPortStatusPortTypeMask")]
pub const IOUSBHostPortStatusPortTypeMask: Self = Self(IOUSBHostFamilyBitRange!(0, 3));
#[doc(alias = "kIOUSBHostPortStatusPortTypePhase")]
pub const IOUSBHostPortStatusPortTypePhase: Self = Self(IOUSBHostFamilyBitRangePhase!(0, 3));
#[doc(alias = "kIOUSBHostPortStatusPortTypeStandard")]
pub const IOUSBHostPortStatusPortTypeStandard: Self = Self(
tIOUSBHostPortType::IOUSBHostPortTypeStandard.0 << IOUSBHostFamilyBitRangePhase!(0, 3),
);
#[doc(alias = "kIOUSBHostPortStatusPortTypeCaptive")]
pub const IOUSBHostPortStatusPortTypeCaptive: Self =
Self(tIOUSBHostPortType::IOUSBHostPortTypeCaptive.0 << IOUSBHostFamilyBitRangePhase!(0, 3));
#[doc(alias = "kIOUSBHostPortStatusPortTypeInternal")]
pub const IOUSBHostPortStatusPortTypeInternal: Self = Self(
tIOUSBHostPortType::IOUSBHostPortTypeInternal.0 << IOUSBHostFamilyBitRangePhase!(0, 3),
);
#[doc(alias = "kIOUSBHostPortStatusPortTypeAccessory")]
pub const IOUSBHostPortStatusPortTypeAccessory: Self = Self(
tIOUSBHostPortType::IOUSBHostPortTypeAccessory.0 << IOUSBHostFamilyBitRangePhase!(0, 3),
);
#[doc(alias = "kIOUSBHostPortStatusPortTypeReserved")]
pub const IOUSBHostPortStatusPortTypeReserved: Self = Self(IOUSBHostFamilyBitRange!(4, 7));
#[doc(alias = "kIOUSBHostPortStatusConnectedSpeedMask")]
pub const IOUSBHostPortStatusConnectedSpeedMask: Self = Self(IOUSBHostFamilyBitRange!(8, 10));
#[doc(alias = "kIOUSBHostPortStatusConnectedSpeedPhase")]
pub const IOUSBHostPortStatusConnectedSpeedPhase: Self =
Self(IOUSBHostFamilyBitRangePhase!(8, 10));
#[doc(alias = "kIOUSBHostPortStatusConnectedSpeedNone")]
pub const IOUSBHostPortStatusConnectedSpeedNone: Self = Self(
tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedNone.0
<< IOUSBHostFamilyBitRangePhase!(8, 10),
);
#[doc(alias = "kIOUSBHostPortStatusConnectedSpeedFull")]
pub const IOUSBHostPortStatusConnectedSpeedFull: Self = Self(
tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedFull.0
<< IOUSBHostFamilyBitRangePhase!(8, 10),
);
#[doc(alias = "kIOUSBHostPortStatusConnectedSpeedLow")]
pub const IOUSBHostPortStatusConnectedSpeedLow: Self = Self(
tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedLow.0
<< IOUSBHostFamilyBitRangePhase!(8, 10),
);
#[doc(alias = "kIOUSBHostPortStatusConnectedSpeedHigh")]
pub const IOUSBHostPortStatusConnectedSpeedHigh: Self = Self(
tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedHigh.0
<< IOUSBHostFamilyBitRangePhase!(8, 10),
);
#[doc(alias = "kIOUSBHostPortStatusConnectedSpeedSuper")]
pub const IOUSBHostPortStatusConnectedSpeedSuper: Self = Self(
tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedSuper.0
<< IOUSBHostFamilyBitRangePhase!(8, 10),
);
#[doc(alias = "kIOUSBHostPortStatusConnectedSpeedSuperPlus")]
pub const IOUSBHostPortStatusConnectedSpeedSuperPlus: Self = Self(
tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedSuperPlus.0
<< IOUSBHostFamilyBitRangePhase!(8, 10),
);
#[doc(alias = "kIOUSBHostPortStatusConnectedSpeedSuperPlusBy2")]
pub const IOUSBHostPortStatusConnectedSpeedSuperPlusBy2: Self = Self(
tIOUSBHostConnectionSpeed::IOUSBHostConnectionSpeedSuperPlusBy2.0
<< IOUSBHostFamilyBitRangePhase!(8, 10),
);
#[doc(alias = "kIOUSBHostPortStatusResetting")]
pub const IOUSBHostPortStatusResetting: Self = Self(IOUSBHostFamilyBit!(11));
#[doc(alias = "kIOUSBHostPortStatusEnabled")]
pub const IOUSBHostPortStatusEnabled: Self = Self(IOUSBHostFamilyBit!(12));
#[doc(alias = "kIOUSBHostPortStatusSuspended")]
pub const IOUSBHostPortStatusSuspended: Self = Self(IOUSBHostFamilyBit!(13));
#[doc(alias = "kIOUSBHostPortStatusOvercurrent")]
pub const IOUSBHostPortStatusOvercurrent: Self = Self(IOUSBHostFamilyBit!(14));
#[doc(alias = "kIOUSBHostPortStatusTestMode")]
pub const IOUSBHostPortStatusTestMode: Self = Self(IOUSBHostFamilyBit!(15));
}
#[cfg(feature = "objc2")]
unsafe impl Encode for tIOUSBHostPortStatus {
const ENCODING: Encoding = c_uint::ENCODING;
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for tIOUSBHostPortStatus {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}