SwiftstructProDisplayLibrary

struct ProDisplayLibrary.AppleDisplayHIDDevice

Members 22

  1. fieldlet container: String+0x10
  2. fieldlet device: IOHIDDeviceRef+0x8
  3. fieldlet hid_product_id: UInt64?+0x20
  4. fieldlet interfaceSupport: Set<ProDisplayLibrary.AppleDisplayHIDDevice.InterfaceSupport>+0x208
  5. fieldlet ioReportInterface: ProDisplayLibrary.AppleDisplayHIDDevice.IOReportInterface?+0x1c8
  6. fieldlet presetInterface: ProDisplayLibrary.AppleDisplayHIDDevice.PresetInterface?+0x30
  7. fieldlet service: UInt32+0x0
  8. fieldvar targetPresetVersion: Int?+0x1f8
  9. fieldlet userAdjustmentInterface: ProDisplayLibrary.AppleDisplayHIDDevice.UserAdjustmentInterface?+0x128
  10. funcgetActivePreset() throws -> (defaultIdx: UInt32, activeIdx: UInt32)
  11. funcgetPreset(at: UInt32) throws -> (writable: Bool, ProDisplayLibrary.Preset?)
  12. funcgetPresetList() throws -> [ProDisplayLibrary.Preset.Info?]
  13. funcgetUARange(for: UInt32) throws -> ProDisplayLibrary.UserAdjustment.Ranges
  14. funcgetUserAdjustment(at: UInt32) throws -> ProDisplayLibrary.UserAdjustment?
  15. funcgetUserAdjustment() throws -> ProDisplayLibrary.UserAdjustment?
  16. funcsetActivePreset(index: UInt32) throws -> ()
  17. funcsetPreset(_: ProDisplayLibrary.Preset?, at: UInt32) throws -> ()
  18. funcsetUARangeInput(_: ProDisplayLibrary.UserAdjustment.Inputs, for: UInt32) throws -> ()
  19. funcsetUserAdjustment(_: ProDisplayLibrary.UserAdjustment?, at: UInt32, live: Bool) throws -> ()
  20. funcsetUserAdjustment(ProDisplayLibrary.UserAdjustment?) throws -> ()
  21. funcslotCount() throws -> Int
  22. initinit(container: String) -> ProDisplayLibrary.AppleDisplayHIDDevice?
struct AppleDisplayHIDDevice {
    struct IOCmdPresetVersion {
        enum CodingKeys {
            case minimumVersion
            case currentVersion
        }
        let minimumVersion: Swift.Int
        let currentVersion: Swift.Int
    }
    enum InterfaceSupport {
        case Preset
        case PresetList
        case GlobalUserAdjustment
        case PerPresetUserAdjustment
        case UserAdjustmentRange
    }
    enum Error {
        case IOKitError(Swift.Int32)
        case UnexpectedSize(expected: Swift.Int, actual: Swift.Int)
        case UnexpectedId(expected: Swift.UInt8, actual: Swift.UInt8)
        case IndexOutOfRange(supplied: Swift.UInt32, max: Swift.Int)
        case BadReport(Swift.String)
        case Timeout(Swift.String)
        case VersionUnsupported(Swift.String)
        case UnsupportedInterface
    }
    struct IOReportInterface {
        class InputHandler {
            class CallbackContext {
                weak var handler: ProDisplayLibrary.AppleDisplayHIDDevice.IOReportInterface.InputHandler?
            }
            let semaphore: __C.OS_dispatch_semaphore
            var data: [Swift.UInt8]
            var status: ProDisplayLibrary.AppleDisplayHIDDevice.IOReportInterface.STATUS
            let device: __C.IOHIDDeviceRef
            var inputBuffer: [Swift.UInt8]
            let inputQueue: __C.OS_dispatch_queue_serial
        }
        enum STATUS {
            case SUCCESS
            case FAILED
            case MORE_DATA
        }
        enum CMD {
            case OSVersion
            case SerialNumber
            case DeviceInfo
            case TconFwVersion
            case TconRegisters
            case TconRegDump
            case TconBootLogs
            case BrightnessInfo
            case TconControlPrefs
            case PresetVersion
            case UserAdjustmentVersion
            case Invalid
        }
        struct OutputReport {
            let byteCount: Swift.Int
            let type: ProDisplayLibrary.HIDReportType
            let id: ProDisplayLibrary.HIDReportID
            let supportsCmdData: Swift.Bool
            let cmdDataBufferSize: Swift.Int
        }
        struct InputReport {
            let byteCount: Swift.Int
            let type: ProDisplayLibrary.HIDReportType
            let id: ProDisplayLibrary.HIDReportID
        }
        let inputReport: ProDisplayLibrary.AppleDisplayHIDDevice.IOReportInterface.InputReport
        let outputReport: ProDisplayLibrary.AppleDisplayHIDDevice.IOReportInterface.OutputReport
        let inputHandler: ProDisplayLibrary.AppleDisplayHIDDevice.IOReportInterface.InputHandler
    }
    struct UserAdjustmentInterface {
        struct PerPresetUserAdjustmentReport {
            let byteCount: Swift.Int
            let type: ProDisplayLibrary.HIDReportType
            let id: ProDisplayLibrary.HIDReportID
            var fields: (flags: ProDisplayLibrary.ByteField, length: ProDisplayLibrary.ByteField, data: ProDisplayLibrary.ByteField)
        }
        struct GlobalUserAdjustmentReport {
            let byteCount: Swift.Int
            let type: ProDisplayLibrary.HIDReportType
            let id: ProDisplayLibrary.HIDReportID
            let descBytes: Swift.Int
            let infoBytes: Swift.Int
        }
        struct UserAdjustmentRangeReport {
            let byteCount: Swift.Int
            let type: ProDisplayLibrary.HIDReportType
            let id: ProDisplayLibrary.HIDReportID
            var fields: (length: ProDisplayLibrary.ByteField, data: ProDisplayLibrary.ByteField)
        }
        struct UserAdjustmentCurrentPresetReport {
            let byteCount: Swift.Int
            let type: ProDisplayLibrary.HIDReportType
            let id: ProDisplayLibrary.HIDReportID
        }
        let globaUAReport: ProDisplayLibrary.AppleDisplayHIDDevice.UserAdjustmentInterface.GlobalUserAdjustmentReport?
        let perPresetUAReport: ProDisplayLibrary.AppleDisplayHIDDevice.UserAdjustmentInterface.PerPresetUserAdjustmentReport?
        let uaCurrentPresetReport: ProDisplayLibrary.AppleDisplayHIDDevice.UserAdjustmentInterface.UserAdjustmentCurrentPresetReport?
        let uaRangeReport: ProDisplayLibrary.AppleDisplayHIDDevice.UserAdjustmentInterface.UserAdjustmentRangeReport?
    }
    struct PresetInterface {
        struct PresetListReport {
            let byteCount: Swift.Int
            let type: ProDisplayLibrary.HIDReportType
            let id: ProDisplayLibrary.HIDReportID
        }
        struct ActivePresetReport {
            let byteCount: Swift.Int
            let type: ProDisplayLibrary.HIDReportType
            let id: ProDisplayLibrary.HIDReportID
        }
        struct PresetDetailsReport {
            enum Blocks {
                case OneTwo
                case Three
            }
            let byteCount: Swift.Int
            let type: ProDisplayLibrary.HIDReportType
            let id: ProDisplayLibrary.HIDReportID
            let blocks: ProDisplayLibrary.AppleDisplayHIDDevice.PresetInterface.PresetDetailsReport.Blocks
            var fields: (writable: ProDisplayLibrary.ByteField, valid: ProDisplayLibrary.ByteField, name: ProDisplayLibrary.ByteField, description: ProDisplayLibrary.ByteField, block1Length: ProDisplayLibrary.ByteField, block1: ProDisplayLibrary.ByteField, block2Length: ProDisplayLibrary.ByteField, block2: ProDisplayLibrary.ByteField, block3Length: ProDisplayLibrary.ByteField, block3: ProDisplayLibrary.ByteField, uuid: ProDisplayLibrary.ByteField)
        }
        struct CurrentPresetReport {
            let byteCount: Swift.Int
            let type: ProDisplayLibrary.HIDReportType
            let id: ProDisplayLibrary.HIDReportID
            let maxPresetIndex: Swift.Int
        }
        let activeReport: ProDisplayLibrary.AppleDisplayHIDDevice.PresetInterface.ActivePresetReport
        let currentReport: ProDisplayLibrary.AppleDisplayHIDDevice.PresetInterface.CurrentPresetReport
        let detailsReport: ProDisplayLibrary.AppleDisplayHIDDevice.PresetInterface.PresetDetailsReport
        let presetListReport: ProDisplayLibrary.AppleDisplayHIDDevice.PresetInterface.PresetListReport?
    }
    struct IOCmdData<A> where A: Swift.Decodable {
        enum CodingKeys {
            case cmd
            case status
            case timestamp
            case payload
        }
        let cmd: Swift.UInt32
        let status: Swift.Int
        let timestamp: Swift.String
        let payload: A
    }
    let service: Swift.UInt32
    let device: __C.IOHIDDeviceRef
    let container: Swift.String
    let hid_product_id: Swift.UInt64?
    let presetInterface: ProDisplayLibrary.AppleDisplayHIDDevice.PresetInterface?
    let userAdjustmentInterface: ProDisplayLibrary.AppleDisplayHIDDevice.UserAdjustmentInterface?
    let ioReportInterface: ProDisplayLibrary.AppleDisplayHIDDevice.IOReportInterface?
    var targetPresetVersion: Swift.Int?
    let interfaceSupport: Swift.Set<ProDisplayLibrary.AppleDisplayHIDDevice.InterfaceSupport>

    init?(container: Swift.String)

    func getUARange(for: Swift.UInt32) throws -> ProDisplayLibrary.UserAdjustment.Ranges
    func getPresetList() throws -> [ProDisplayLibrary.Preset.Info?]
    func getActivePreset() throws -> (defaultIdx: Swift.UInt32, activeIdx: Swift.UInt32)
    func setActivePreset(index: Swift.UInt32) throws
    func setUARangeInput(_: ProDisplayLibrary.UserAdjustment.Inputs, for: Swift.UInt32) throws
    func getUserAdjustment(at: Swift.UInt32) throws -> ProDisplayLibrary.UserAdjustment?
    func getUserAdjustment() throws -> ProDisplayLibrary.UserAdjustment?
    func setUserAdjustment(_: ProDisplayLibrary.UserAdjustment?, at: Swift.UInt32, live: Swift.Bool) throws
    func setUserAdjustment(_: ProDisplayLibrary.UserAdjustment?) throws
    func getPreset(at: Swift.UInt32) throws -> (writable: Swift.Bool, ProDisplayLibrary.Preset?)
    func setPreset(_: ProDisplayLibrary.Preset?, at: Swift.UInt32) throws
    func slotCount() throws -> Swift.Int
}