├── .gitignore ├── HWMonitorSMC.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcshareddata │ └── xcschemes │ └── HWMonitorSMC2.xcscheme ├── HWMonitorSMC ├── AppDelegate.swift ├── C │ ├── HWMonitorSMC-Bridging-Header.h │ ├── IOBatteryStatus.m │ ├── SSMemoryInfo.h │ └── SSMemoryInfo.m ├── Extensions.swift ├── ExternalFrameworks │ └── CorePlot.framework │ │ ├── CorePlot │ │ ├── Headers │ │ ├── Modules │ │ ├── PrivateHeaders │ │ ├── Resources │ │ └── Versions │ │ ├── A │ │ ├── CorePlot │ │ ├── Headers │ │ │ ├── CPTAnimation.h │ │ │ ├── CPTAnimationOperation.h │ │ │ ├── CPTAnimationPeriod.h │ │ │ ├── CPTAnnotation.h │ │ │ ├── CPTAnnotationHostLayer.h │ │ │ ├── CPTAxis.h │ │ │ ├── CPTAxisLabel.h │ │ │ ├── CPTAxisSet.h │ │ │ ├── CPTAxisTitle.h │ │ │ ├── CPTBarPlot.h │ │ │ ├── CPTBorderedLayer.h │ │ │ ├── CPTCalendarFormatter.h │ │ │ ├── CPTColor.h │ │ │ ├── CPTColorSpace.h │ │ │ ├── CPTConstraints.h │ │ │ ├── CPTDecimalNumberValueTransformer.h │ │ │ ├── CPTDefinitions.h │ │ │ ├── CPTExceptions.h │ │ │ ├── CPTFill.h │ │ │ ├── CPTFunctionDataSource.h │ │ │ ├── CPTGradient.h │ │ │ ├── CPTGraph.h │ │ │ ├── CPTGraphHostingView.h │ │ │ ├── CPTImage.h │ │ │ ├── CPTLayer.h │ │ │ ├── CPTLayerAnnotation.h │ │ │ ├── CPTLegend.h │ │ │ ├── CPTLegendEntry.h │ │ │ ├── CPTLimitBand.h │ │ │ ├── CPTLineCap.h │ │ │ ├── CPTLineStyle.h │ │ │ ├── CPTMutableLineStyle.h │ │ │ ├── CPTMutableNumericData+TypeConversion.h │ │ │ ├── CPTMutableNumericData.h │ │ │ ├── CPTMutablePlotRange.h │ │ │ ├── CPTMutableShadow.h │ │ │ ├── CPTMutableTextStyle.h │ │ │ ├── CPTNumericData+TypeConversion.h │ │ │ ├── CPTNumericData.h │ │ │ ├── CPTNumericDataType.h │ │ │ ├── CPTPathExtensions.h │ │ │ ├── CPTPieChart.h │ │ │ ├── CPTPlatformSpecificCategories.h │ │ │ ├── CPTPlatformSpecificDefines.h │ │ │ ├── CPTPlatformSpecificFunctions.h │ │ │ ├── CPTPlot.h │ │ │ ├── CPTPlotArea.h │ │ │ ├── CPTPlotAreaFrame.h │ │ │ ├── CPTPlotRange.h │ │ │ ├── CPTPlotSpace.h │ │ │ ├── CPTPlotSpaceAnnotation.h │ │ │ ├── CPTPlotSymbol.h │ │ │ ├── CPTRangePlot.h │ │ │ ├── CPTResponder.h │ │ │ ├── CPTScatterPlot.h │ │ │ ├── CPTShadow.h │ │ │ ├── CPTTextLayer.h │ │ │ ├── CPTTextStyle.h │ │ │ ├── CPTTextStylePlatformSpecific.h │ │ │ ├── CPTTheme.h │ │ │ ├── CPTTimeFormatter.h │ │ │ ├── CPTTradingRangePlot.h │ │ │ ├── CPTUtilities.h │ │ │ ├── CPTXYAxis.h │ │ │ ├── CPTXYAxisSet.h │ │ │ ├── CPTXYGraph.h │ │ │ ├── CPTXYPlotSpace.h │ │ │ └── CorePlot.h │ │ ├── Modules │ │ │ └── module.modulemap │ │ ├── PrivateHeaders │ │ │ ├── CPTAxisLabelGroup.h │ │ │ ├── CPTGridLineGroup.h │ │ │ ├── CPTGridLines.h │ │ │ ├── CPTPlotGroup.h │ │ │ ├── NSCoderExtensions.h │ │ │ ├── NSDecimalNumberExtensions.h │ │ │ ├── NSNumberExtensions.h │ │ │ ├── _CPTConstraintsFixed.h │ │ │ ├── _CPTConstraintsRelative.h │ │ │ ├── _CPTDarkGradientTheme.h │ │ │ ├── _CPTFillColor.h │ │ │ ├── _CPTFillGradient.h │ │ │ ├── _CPTFillImage.h │ │ │ ├── _CPTPlainBlackTheme.h │ │ │ ├── _CPTPlainWhiteTheme.h │ │ │ ├── _CPTSlateTheme.h │ │ │ ├── _CPTStocksTheme.h │ │ │ └── _CPTXYTheme.h │ │ ├── Resources │ │ │ ├── Info.plist │ │ │ ├── License.txt │ │ │ └── en.lproj │ │ │ │ └── InfoPlist.strings │ │ └── _CodeSignature │ │ │ └── CodeResources │ │ └── Current ├── HWMonitorSMC.entitlements ├── HWMonitorSensors │ ├── HWMonitorSensor.swift │ ├── HWSensorScanner.swift │ ├── HWSensorsUpdate.swift │ ├── HWTreeNode.swift │ ├── IntelPowerGadget.swift │ ├── SMART │ │ ├── HWSMART.swift │ │ ├── IOBatteryStatus.h │ │ └── NVMe.h │ ├── SMC.swift │ ├── SMC_DataTypes.swift │ ├── SMC_Keys.swift │ └── SystemKit │ │ ├── Battery.swift │ │ ├── Display.swift │ │ ├── Graphics.swift │ │ ├── IOReturn.swift │ │ ├── LPCB.swift │ │ ├── NET.swift │ │ ├── NVMEController.swift │ │ ├── PCI.swift │ │ ├── Process.swift │ │ ├── SATAController.swift │ │ ├── System.swift │ │ └── USB.swift ├── IO.swift ├── Info.plist ├── Interface │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── 1024.png │ │ │ ├── 128.png │ │ │ ├── 16.png │ │ │ ├── 256-1.png │ │ │ ├── 256.png │ │ │ ├── 32-1.png │ │ │ ├── 32.png │ │ │ ├── 512-1.png │ │ │ ├── 512.png │ │ │ ├── 64.png │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Base.lproj │ │ ├── Info.storyboard │ │ ├── Main.storyboard │ │ └── Popover.storyboard │ ├── FanControl │ │ ├── FanControl.storyboard │ │ └── FanControlVC.swift │ ├── Gadget │ │ ├── DetachableSensor.swift │ │ ├── Gadget.storyboard │ │ ├── GadgetVC.swift │ │ └── GadgetWC.swift │ ├── HWOulineView.swift │ ├── HWScrollView.swift │ ├── HWTableRowView.swift │ ├── HWViewController.swift │ ├── HWWindow.swift │ ├── HWWindowController.swift │ ├── Images │ │ ├── CPU.png │ │ ├── DarkAppearance.png │ │ ├── GPU.png │ │ ├── GPU_fan.png │ │ ├── GPU_freq.png │ │ ├── GPU_temp.png │ │ ├── Light.png │ │ ├── LightAppearance.png │ │ ├── Motherboard.png │ │ ├── USB.png │ │ ├── checkbox.png │ │ ├── cpu_freq_small.png │ │ ├── cpu_temp_small.png │ │ ├── downArrow.png │ │ ├── fan_small.png │ │ ├── freq_small.png │ │ ├── freq_small_on.png │ │ ├── gadget.png │ │ ├── hd_small.png │ │ ├── modern-battery-icon.png │ │ ├── multiply_small.png │ │ ├── pin.png │ │ ├── ram_small.png │ │ ├── rightArrow.png │ │ ├── ssd_small.png │ │ ├── temp_alt_small.png │ │ ├── temperature_small.png │ │ └── voltage_small.png │ ├── License │ │ ├── Base.lproj │ │ │ └── License.storyboard │ │ ├── License.swift │ │ ├── de.lproj │ │ │ └── License.strings │ │ ├── en.lproj │ │ │ └── License.strings │ │ ├── fi.lproj │ │ │ └── License.strings │ │ ├── it.lproj │ │ │ └── License.strings │ │ ├── ko.lproj │ │ │ └── License.strings │ │ ├── pt-BR.lproj │ │ │ └── License.strings │ │ ├── pt-PT.lproj │ │ │ └── License.strings │ │ ├── ru.lproj │ │ │ └── License.strings │ │ ├── tr.lproj │ │ │ └── License.strings │ │ └── zh-Hans.lproj │ │ │ └── License.strings │ ├── Plot.swift │ ├── PopoverViewController.swift │ ├── PopoverWindowController.swift │ ├── Preferences │ │ ├── Base.lproj │ │ │ └── Preferences.storyboard │ │ ├── PreferencesVC.swift │ │ ├── PreferencesWC.swift │ │ ├── de.lproj │ │ │ └── Preferences.strings │ │ ├── en.lproj │ │ │ └── Preferences.strings │ │ ├── fi.lproj │ │ │ └── Preferences.strings │ │ ├── it.lproj │ │ │ └── Preferences.strings │ │ ├── ko.lproj │ │ │ └── Preferences.strings │ │ ├── pt-BR.lproj │ │ │ └── Preferences.strings │ │ ├── pt-PT.lproj │ │ │ └── Preferences.strings │ │ ├── ru.lproj │ │ │ └── Preferences.strings │ │ ├── tr.lproj │ │ │ └── Preferences.strings │ │ └── zh-Hans.lproj │ │ │ └── Preferences.strings │ ├── Themes.swift │ ├── ViewController.swift │ ├── de.lproj │ │ ├── Info.strings │ │ ├── Localizable.strings │ │ ├── Main.strings │ │ └── Popover.strings │ ├── en.lproj │ │ ├── Info.strings │ │ ├── Localizable.strings │ │ ├── Main.strings │ │ └── Popover.strings │ ├── fi.lproj │ │ ├── Info.strings │ │ ├── Localizable.strings │ │ ├── Main.strings │ │ └── Popover.strings │ ├── it.lproj │ │ ├── Info.strings │ │ ├── Localizable.strings │ │ ├── Main.strings │ │ └── Popover.strings │ ├── ko.lproj │ │ ├── Info.strings │ │ ├── Localizable.strings │ │ ├── Main.strings │ │ └── Popover.strings │ ├── pt-BR.lproj │ │ ├── Info.strings │ │ ├── Localizable.strings │ │ ├── Main.strings │ │ └── Popover.strings │ ├── pt-PT.lproj │ │ ├── Info.strings │ │ ├── Localizable.strings │ │ ├── Main.strings │ │ └── Popover.strings │ ├── ru.lproj │ │ ├── Info.strings │ │ ├── Localizable.strings │ │ ├── Main.strings │ │ └── Popover.strings │ ├── tr.lproj │ │ ├── Info.strings │ │ ├── Localizable.strings │ │ ├── Main.strings │ │ └── Popover.strings │ └── zh-Hans.lproj │ │ ├── Info.strings │ │ ├── Localizable.strings │ │ ├── Main.strings │ │ └── Popover.strings ├── NVRAM.swift ├── RunAtLogin.swift └── globals.swift ├── HWMonitorSMC2 Helper ├── HWMonitorSMC2 Helper.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata └── HWMonitorSMC2 Helper │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json │ ├── Base.lproj │ └── Main.storyboard │ ├── HWMonitorSMC2_Helper.entitlements │ ├── Info.plist │ ├── ViewController.h │ ├── ViewController.m │ ├── main.m │ ├── pt-BR.lproj │ └── Main.strings │ └── pt-PT.lproj │ └── Main.strings ├── LPC ├── ASRock │ └── Nuvoton NCT6793D │ │ ├── A320M-HDV R4.0.plist │ │ └── README.txt ├── ASUS │ ├── Nuvoton NCT6779D │ │ ├── P8Z77-V LX.plist │ │ └── default.plist │ ├── Nuvoton NCT6791D │ │ ├── H81M-E.plist │ │ └── default.plist │ ├── Nuvoton NCT6793D │ │ ├── PRIME Z270-P.plist │ │ ├── ROG STRIX Z370-F GAMING.plist │ │ ├── ROG STRIX Z370-I GAMING.plist │ │ └── default.plist │ └── Nuvoton NCT6799D │ │ ├── ROG STRIX B650E-I GAMING WIFI.plist │ │ └── default.plist ├── Gigabyte │ ├── ITE IT8620E │ │ ├── Z97MX-Gaming 5.plist │ │ ├── Z97X-UD7 TH-CF.plist │ │ └── default.plist │ ├── ITE IT8628E │ │ ├── Z170M-D3H-CF.plist │ │ ├── Z170X-Gaming 7.plist │ │ └── default.plist │ ├── ITE IT8686E │ │ ├── B360M DS3H.plist │ │ ├── Z370M DS3H-CF.plist │ │ ├── Z370N WIFI-CF.plist │ │ └── default.plist │ ├── ITE IT8688E │ │ ├── A520M DS3H.plist │ │ ├── README.txt │ │ ├── Z390 AORUS PRO-CF.plist │ │ ├── Z490 VISION D.plist │ │ └── default.plist │ └── ITE IT8728F │ │ ├── B75M-D3H.plist │ │ ├── Z77X-UP5 TH-CF.plist │ │ ├── Z87P-D3.plist │ │ ├── Z87X-HD3.plist │ │ ├── Z87X-UD3H.plist │ │ ├── Z87X-UD4H-CF.plist │ │ └── default.plist ├── MSI │ ├── Nuvoton NCT6795D │ │ ├── Z370I GAMING PRO CARBON AC (MS-7B43).plist │ │ └── default.plist │ └── Nuvoton NCT6797D │ │ ├── MEG X570 UNIFY (MS-7C35).plist │ │ └── default.plist └── QUO Computer │ └── ITE IT8728F │ └── Z77MX-QUO-AOS.plist ├── README.md ├── hwmlpcconfig ├── hwmlpcconfig.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ ├── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ │ └── xcuserdata │ │ │ └── vectorsigma.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcuserdata │ │ └── vectorsigma.xcuserdatad │ │ └── xcschemes │ │ └── xcschememanagement.plist └── hwmlpcconfig │ ├── IO.swift │ ├── NVRAM.swift │ ├── README.swift │ └── main.swift ├── makefile └── smcwrite ├── smcwrite.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── xcshareddata │ └── xcschemes │ └── smcwrite.xcscheme └── smcwrite ├── main.c ├── smc.c └── smc.h /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .DS_Store 3 | build 4 | .DS_Store 5 | */build/* 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata 15 | profile 16 | *.moved-aside 17 | DerivedData 18 | .idea/ 19 | *.hmap 20 | *.xccheckout 21 | *.xcworkspace 22 | !default.xcworkspace 23 | -------------------------------------------------------------------------------- /HWMonitorSMC.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /HWMonitorSMC.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /HWMonitorSMC/C/HWMonitorSMC-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | #import "SSMemoryInfo.h" 10 | #import "NVMe.h" 11 | #include 12 | 13 | #import "IOBatteryStatus.h" 14 | #import "SSMemoryInfo.h" 15 | 16 | #import 17 | #import 18 | #import 19 | #import 20 | 21 | #include // optional link 22 | #include // optional link 23 | -------------------------------------------------------------------------------- /HWMonitorSMC/C/SSMemoryInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // SSMemoryInfo.h 3 | // SystemServicesDemo 4 | // 5 | // Created by Shmoopi LLC on 9/19/12. 6 | // Copyright (c) 2012 Shmoopi LLC. All rights reserved. 7 | // https://github.com/Shmoopi/iOS-System-Services/blob/master/System%20Services/Utilities/SSMemoryInfo.h 8 | // 9 | 10 | #import 11 | 12 | @interface SSMemoryInfo : NSObject 13 | 14 | // Memory Information 15 | 16 | // Total Memory 17 | + (double)totalMemory; 18 | 19 | // Free Memory 20 | + (double)freeMemory:(BOOL)inPercent; 21 | 22 | // Used Memory 23 | + (double)usedMemory:(BOOL)inPercent; 24 | 25 | // Active Memory 26 | + (double)activeMemory:(BOOL)inPercent; 27 | 28 | // Inactive Memory 29 | + (double)inactiveMemory:(BOOL)inPercent; 30 | 31 | // Wired Memory 32 | + (double)wiredMemory:(BOOL)inPercent; 33 | 34 | // Purgable Memory 35 | + (double)purgableMemory:(BOOL)inPercent; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/CorePlot: -------------------------------------------------------------------------------- 1 | Versions/Current/CorePlot -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Modules: -------------------------------------------------------------------------------- 1 | Versions/Current/Modules -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/PrivateHeaders: -------------------------------------------------------------------------------- 1 | Versions/Current/PrivateHeaders -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/CorePlot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/CorePlot -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTAnimationOperation.h: -------------------------------------------------------------------------------- 1 | #import "CPTAnimation.h" 2 | #import "CPTDefinitions.h" 3 | 4 | @class CPTAnimationPeriod; 5 | 6 | @interface CPTAnimationOperation : NSObject 7 | 8 | /// @name Animation Timing 9 | /// @{ 10 | @property (nonatomic, strong, nonnull) CPTAnimationPeriod *period; 11 | @property (nonatomic, assign) CPTAnimationCurve animationCurve; 12 | /// @} 13 | 14 | /// @name Animated Property 15 | /// @{ 16 | @property (nonatomic, strong, nonnull) id boundObject; 17 | @property (nonatomic, nonnull) SEL boundGetter; 18 | @property (nonatomic, nonnull) SEL boundSetter; 19 | /// @} 20 | 21 | /// @name Delegate 22 | /// @{ 23 | @property (nonatomic, cpt_weak_property, nullable) id delegate; 24 | /// @} 25 | 26 | /// @name Status 27 | /// @{ 28 | @property (atomic, getter = isCanceled) BOOL canceled; 29 | /// @} 30 | 31 | /// @name Identification 32 | /// @{ 33 | @property (nonatomic, readwrite, copy, nullable) id identifier; 34 | @property (nonatomic, readwrite, copy, nullable) NSDictionary *userInfo; 35 | /// @} 36 | 37 | /// @name Initialization 38 | /// @{ 39 | -(nonnull instancetype)initWithAnimationPeriod:(nonnull CPTAnimationPeriod *)animationPeriod animationCurve:(CPTAnimationCurve)curve object:(nonnull id)object getter:(nonnull SEL)getter setter:(nonnull SEL)setter NS_DESIGNATED_INITIALIZER; 40 | /// @} 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTAnnotation.h: -------------------------------------------------------------------------------- 1 | #import "CPTDefinitions.h" 2 | 3 | /// @file 4 | 5 | @class CPTAnnotation; 6 | @class CPTAnnotationHostLayer; 7 | @class CPTLayer; 8 | 9 | /** 10 | * @brief An array of annotations. 11 | **/ 12 | typedef NSArray<__kindof CPTAnnotation *> CPTAnnotationArray; 13 | 14 | /** 15 | * @brief A mutable array of annotations. 16 | **/ 17 | typedef NSMutableArray<__kindof CPTAnnotation *> CPTMutableAnnotationArray; 18 | 19 | @interface CPTAnnotation : NSObject 20 | 21 | @property (nonatomic, readwrite, strong, nullable) CPTLayer *contentLayer; 22 | @property (nonatomic, readwrite, cpt_weak_property, nullable) CPTAnnotationHostLayer *annotationHostLayer; 23 | @property (nonatomic, readwrite, assign) CGPoint contentAnchorPoint; 24 | @property (nonatomic, readwrite, assign) CGPoint displacement; 25 | @property (nonatomic, readwrite, assign) CGFloat rotation; 26 | 27 | /// @name Initialization 28 | /// @{ 29 | -(nonnull instancetype)init NS_DESIGNATED_INITIALIZER; 30 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)coder NS_DESIGNATED_INITIALIZER; 31 | /// @} 32 | 33 | @end 34 | 35 | #pragma mark - 36 | 37 | /** @category CPTAnnotation(AbstractMethods) 38 | * @brief CPTAnnotation abstract methods—must be overridden by subclasses. 39 | **/ 40 | @interface CPTAnnotation(AbstractMethods) 41 | 42 | /// @name Layout 43 | /// @{ 44 | -(void)positionContentLayer; 45 | /// @} 46 | 47 | @end 48 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTAnnotationHostLayer.h: -------------------------------------------------------------------------------- 1 | #import "CPTAnnotation.h" 2 | #import "CPTLayer.h" 3 | 4 | @interface CPTAnnotationHostLayer : CPTLayer 5 | 6 | @property (nonatomic, readonly, nonnull) CPTAnnotationArray *annotations; 7 | 8 | /// @name Annotations 9 | /// @{ 10 | -(void)addAnnotation:(nullable CPTAnnotation *)annotation; 11 | -(void)removeAnnotation:(nullable CPTAnnotation *)annotation; 12 | -(void)removeAllAnnotations; 13 | /// @} 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTAxisLabel.h: -------------------------------------------------------------------------------- 1 | #import "CPTDefinitions.h" 2 | 3 | /// @file 4 | 5 | @class CPTAxisLabel; 6 | @class CPTLayer; 7 | @class CPTTextStyle; 8 | 9 | /** 10 | * @brief A set of CPTAxisLabel objects. 11 | **/ 12 | typedef NSSet CPTAxisLabelSet; 13 | 14 | /** 15 | * @brief A mutable set of CPTAxisLabel objects. 16 | **/ 17 | typedef NSMutableSet CPTMutableAxisLabelSet; 18 | 19 | @interface CPTAxisLabel : NSObject 20 | 21 | @property (nonatomic, readwrite, strong, nullable) CPTLayer *contentLayer; 22 | @property (nonatomic, readwrite, assign) CGFloat offset; 23 | @property (nonatomic, readwrite, assign) CGFloat rotation; 24 | @property (nonatomic, readwrite, assign) CPTAlignment alignment; 25 | @property (nonatomic, readwrite, strong, nonnull) NSNumber *tickLocation; 26 | 27 | /// @name Initialization 28 | /// @{ 29 | -(nonnull instancetype)initWithText:(nullable NSString *)newText textStyle:(nullable CPTTextStyle *)style; 30 | -(nonnull instancetype)initWithContentLayer:(nonnull CPTLayer *)layer NS_DESIGNATED_INITIALIZER; 31 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)decoder NS_DESIGNATED_INITIALIZER; 32 | /// @} 33 | 34 | /// @name Layout 35 | /// @{ 36 | -(void)positionRelativeToViewPoint:(CGPoint)point forCoordinate:(CPTCoordinate)coordinate inDirection:(CPTSign)direction; 37 | -(void)positionBetweenViewPoint:(CGPoint)firstPoint andViewPoint:(CGPoint)secondPoint forCoordinate:(CPTCoordinate)coordinate inDirection:(CPTSign)direction; 38 | /// @} 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTAxisSet.h: -------------------------------------------------------------------------------- 1 | #import "CPTAxis.h" 2 | #import "CPTLayer.h" 3 | 4 | @class CPTLineStyle; 5 | 6 | @interface CPTAxisSet : CPTLayer 7 | 8 | /// @name Axes 9 | /// @{ 10 | @property (nonatomic, readwrite, strong, nullable) CPTAxisArray *axes; 11 | /// @} 12 | 13 | /// @name Drawing 14 | /// @{ 15 | @property (nonatomic, readwrite, copy, nullable) CPTLineStyle *borderLineStyle; 16 | /// @} 17 | 18 | /// @name Labels 19 | /// @{ 20 | -(void)relabelAxes; 21 | /// @} 22 | 23 | /// @name Axes 24 | /// @{ 25 | -(nullable CPTAxis *)axisForCoordinate:(CPTCoordinate)coordinate atIndex:(NSUInteger)idx; 26 | /// @} 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTAxisTitle.h: -------------------------------------------------------------------------------- 1 | #import "CPTAxisLabel.h" 2 | 3 | @interface CPTAxisTitle : CPTAxisLabel 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTBorderedLayer.h: -------------------------------------------------------------------------------- 1 | #import "CPTAnnotationHostLayer.h" 2 | 3 | @class CPTLineStyle; 4 | @class CPTFill; 5 | 6 | @interface CPTBorderedLayer : CPTAnnotationHostLayer 7 | 8 | /// @name Drawing 9 | /// @{ 10 | @property (nonatomic, readwrite, copy, nullable) CPTLineStyle *borderLineStyle; 11 | @property (nonatomic, readwrite, copy, nullable) CPTFill *fill; 12 | /// @} 13 | 14 | /// @name Layout 15 | /// @{ 16 | @property (nonatomic, readwrite) BOOL inLayout; 17 | /// @} 18 | 19 | /// @name Drawing 20 | /// @{ 21 | -(void)renderBorderedLayerAsVectorInContext:(nonnull CGContextRef)context; 22 | /// @} 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTCalendarFormatter.h: -------------------------------------------------------------------------------- 1 | @interface CPTCalendarFormatter : NSNumberFormatter 2 | 3 | @property (nonatomic, readwrite, strong, nullable) NSDateFormatter *dateFormatter; 4 | @property (nonatomic, readwrite, copy, nullable) NSDate *referenceDate; 5 | @property (nonatomic, readwrite, copy, nullable) NSCalendar *referenceCalendar; 6 | @property (nonatomic, readwrite, assign) NSCalendarUnit referenceCalendarUnit; 7 | 8 | /// @name Initialization 9 | /// @{ 10 | -(nonnull instancetype)initWithDateFormatter:(nullable NSDateFormatter *)aDateFormatter NS_DESIGNATED_INITIALIZER; 11 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)decoder NS_DESIGNATED_INITIALIZER; 12 | /// @} 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTColor.h: -------------------------------------------------------------------------------- 1 | #import "CPTPlatformSpecificDefines.h" 2 | 3 | @interface CPTColor : NSObject 4 | 5 | @property (nonatomic, readonly, nonnull) CGColorRef cgColor; 6 | @property (nonatomic, readonly, getter = isOpaque) BOOL opaque; 7 | 8 | #if TARGET_OS_OSX 9 | @property (nonatomic, readonly, nonnull) NSColor *nsColor; 10 | #elif TARGET_OS_SIMULATOR || TARGET_OS_IPHONE 11 | @property (nonatomic, readonly, nonnull) UIColor *uiColor; 12 | #endif 13 | @property (nonatomic, readonly, nonnull) CPTNativeColor *nativeColor; 14 | 15 | /// @name Standard Colors 16 | /// @{ 17 | +(nonnull instancetype)clearColor; 18 | +(nonnull instancetype)whiteColor; 19 | +(nonnull instancetype)lightGrayColor; 20 | +(nonnull instancetype)grayColor; 21 | +(nonnull instancetype)darkGrayColor; 22 | +(nonnull instancetype)blackColor; 23 | +(nonnull instancetype)redColor; 24 | +(nonnull instancetype)greenColor; 25 | +(nonnull instancetype)blueColor; 26 | +(nonnull instancetype)cyanColor; 27 | +(nonnull instancetype)yellowColor; 28 | +(nonnull instancetype)magentaColor; 29 | +(nonnull instancetype)orangeColor; 30 | +(nonnull instancetype)purpleColor; 31 | +(nonnull instancetype)brownColor; 32 | /// @} 33 | 34 | /// @name Factory Methods 35 | /// @{ 36 | +(nonnull instancetype)colorWithCGColor:(nonnull CGColorRef)newCGColor; 37 | +(nonnull instancetype)colorWithComponentRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha; 38 | +(nonnull instancetype)colorWithGenericGray:(CGFloat)gray; 39 | 40 | #if TARGET_OS_OSX 41 | +(nonnull instancetype)colorWithNSColor:(nonnull NSColor *)newNSColor; 42 | #elif TARGET_OS_SIMULATOR || TARGET_OS_IPHONE 43 | +(nonnull instancetype)colorWithUIColor:(nonnull UIColor *)newUIColor; 44 | #endif 45 | +(nonnull instancetype)colorWithNativeColor:(nonnull CPTNativeColor *)newColor; 46 | 47 | /// @} 48 | 49 | /// @name Initialization 50 | /// @{ 51 | -(nonnull instancetype)initWithCGColor:(nonnull CGColorRef)cgColor NS_DESIGNATED_INITIALIZER; 52 | -(nonnull instancetype)initWithComponentRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha; 53 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)decoder NS_DESIGNATED_INITIALIZER; 54 | 55 | #if TARGET_OS_OSX 56 | -(nonnull instancetype)initWithNSColor:(nonnull NSColor *)newNSColor NS_DESIGNATED_INITIALIZER; 57 | #elif TARGET_OS_SIMULATOR || TARGET_OS_IPHONE 58 | -(nonnull instancetype)initWithUIColor:(nonnull UIColor *)newUIColor NS_DESIGNATED_INITIALIZER; 59 | #endif 60 | -(nonnull instancetype)initWithNativeColor:(nonnull CPTNativeColor *)newColor; 61 | 62 | -(nonnull instancetype)colorWithAlphaComponent:(CGFloat)alpha; 63 | /// @} 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTColorSpace.h: -------------------------------------------------------------------------------- 1 | @interface CPTColorSpace : NSObject 2 | 3 | @property (nonatomic, readonly, nonnull) CGColorSpaceRef cgColorSpace; 4 | 5 | /// @name Factory Methods 6 | /// @{ 7 | +(nonnull instancetype)genericRGBSpace; 8 | /// @} 9 | 10 | /// @name Initialization 11 | /// @{ 12 | -(nonnull instancetype)initWithCGColorSpace:(nonnull CGColorSpaceRef)colorSpace NS_DESIGNATED_INITIALIZER; 13 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)decoder NS_DESIGNATED_INITIALIZER; 14 | /// @} 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTConstraints.h: -------------------------------------------------------------------------------- 1 | @interface CPTConstraints : NSObject 2 | 3 | /// @name Factory Methods 4 | /// @{ 5 | +(nonnull instancetype)constraintWithLowerOffset:(CGFloat)newOffset; 6 | +(nonnull instancetype)constraintWithUpperOffset:(CGFloat)newOffset; 7 | +(nonnull instancetype)constraintWithRelativeOffset:(CGFloat)newOffset; 8 | /// @} 9 | 10 | /// @name Initialization 11 | /// @{ 12 | -(nonnull instancetype)initWithLowerOffset:(CGFloat)newOffset; 13 | -(nonnull instancetype)initWithUpperOffset:(CGFloat)newOffset; 14 | -(nonnull instancetype)initWithRelativeOffset:(CGFloat)newOffset; 15 | /// @} 16 | 17 | @end 18 | 19 | /** @category CPTConstraints(AbstractMethods) 20 | * @brief CPTConstraints abstract methods—must be overridden by subclasses 21 | **/ 22 | @interface CPTConstraints(AbstractMethods) 23 | 24 | /// @name Comparison 25 | /// @{ 26 | -(BOOL)isEqualToConstraint:(nullable CPTConstraints *)otherConstraint; 27 | /// @} 28 | 29 | /// @name Position 30 | /// @{ 31 | -(CGFloat)positionForLowerBound:(CGFloat)lowerBound upperBound:(CGFloat)upperBound; 32 | /// @} 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTDecimalNumberValueTransformer.h: -------------------------------------------------------------------------------- 1 | @interface CPTDecimalNumberValueTransformer : NSValueTransformer 2 | 3 | @end 4 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTExceptions.h: -------------------------------------------------------------------------------- 1 | /// @file 2 | 3 | #import "CPTDefinitions.h" 4 | 5 | /** 6 | * @brief Custom exception type. 7 | **/ 8 | typedef NSString *CPTExceptionType cpt_swift_struct; 9 | 10 | /// @name Custom Exception Identifiers 11 | /// @{ 12 | extern CPTExceptionType __nonnull const CPTException; 13 | extern CPTExceptionType __nonnull const CPTDataException; 14 | extern CPTExceptionType __nonnull const CPTNumericDataException; 15 | /// @} 16 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTFill.h: -------------------------------------------------------------------------------- 1 | /// @file 2 | 3 | @class CPTGradient; 4 | @class CPTImage; 5 | @class CPTColor; 6 | @class CPTFill; 7 | 8 | /** 9 | * @brief An array of fills. 10 | **/ 11 | typedef NSArray CPTFillArray; 12 | 13 | /** 14 | * @brief A mutable array of fills. 15 | **/ 16 | typedef NSMutableArray CPTMutableFillArray; 17 | 18 | @interface CPTFill : NSObject 19 | 20 | /// @name Factory Methods 21 | /// @{ 22 | +(nonnull instancetype)fillWithColor:(nonnull CPTColor *)aColor; 23 | +(nonnull instancetype)fillWithGradient:(nonnull CPTGradient *)aGradient; 24 | +(nonnull instancetype)fillWithImage:(nonnull CPTImage *)anImage; 25 | /// @} 26 | 27 | /// @name Initialization 28 | /// @{ 29 | -(nonnull instancetype)initWithColor:(nonnull CPTColor *)aColor; 30 | -(nonnull instancetype)initWithGradient:(nonnull CPTGradient *)aGradient; 31 | -(nonnull instancetype)initWithImage:(nonnull CPTImage *)anImage; 32 | /// @} 33 | 34 | @end 35 | 36 | /** @category CPTFill(AbstractMethods) 37 | * @brief CPTFill abstract methods—must be overridden by subclasses 38 | **/ 39 | @interface CPTFill(AbstractMethods) 40 | 41 | @property (nonatomic, readonly, getter = isOpaque) BOOL opaque; 42 | @property (nonatomic, readonly, nullable) CGColorRef cgColor; 43 | 44 | /// @name Drawing 45 | /// @{ 46 | -(void)fillRect:(CGRect)rect inContext:(nonnull CGContextRef)context; 47 | -(void)fillPathInContext:(nonnull CGContextRef)context; 48 | /// @} 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTFunctionDataSource.h: -------------------------------------------------------------------------------- 1 | #import "CPTPlot.h" 2 | 3 | @class CPTPlotRange; 4 | 5 | /// @file 6 | 7 | /** 8 | * @brief A function called to generate plot data in a CPTFunctionDataSource datasource. 9 | **/ 10 | typedef double (*CPTDataSourceFunction)(double); 11 | 12 | /** 13 | * @brief An Objective-C block called to generate plot data in a CPTFunctionDataSource datasource. 14 | **/ 15 | typedef double (^CPTDataSourceBlock)(double); 16 | 17 | @interface CPTFunctionDataSource : NSObject 18 | 19 | @property (nonatomic, readonly, nullable) CPTDataSourceFunction dataSourceFunction; 20 | @property (nonatomic, readonly, nullable) CPTDataSourceBlock dataSourceBlock; 21 | @property (nonatomic, readonly, nonnull) CPTPlot *dataPlot; 22 | 23 | @property (nonatomic, readwrite) CGFloat resolution; 24 | @property (nonatomic, readwrite, strong, nullable) CPTPlotRange *dataRange; 25 | 26 | /// @name Factory Methods 27 | /// @{ 28 | +(nonnull instancetype)dataSourceForPlot:(nonnull CPTPlot *)plot withFunction:(nonnull CPTDataSourceFunction) function NS_SWIFT_NAME(init(for:withFunction:)); 29 | 30 | +(nonnull instancetype)dataSourceForPlot:(nonnull CPTPlot *)plot withBlock:(nonnull CPTDataSourceBlock) block NS_SWIFT_NAME(init(for:withBlock:)); 31 | 32 | /// @} 33 | 34 | /// @name Initialization 35 | /// @{ 36 | -(nonnull instancetype)initForPlot:(nonnull CPTPlot *)plot withFunction:(nonnull CPTDataSourceFunction) function NS_SWIFT_NAME(init(forPlot:withFunction:)); 37 | 38 | -(nonnull instancetype)initForPlot:(nonnull CPTPlot *)plot withBlock:(nonnull CPTDataSourceBlock) block NS_SWIFT_NAME(init(forPlot:withBlock:)); 39 | 40 | /// @} 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTGraphHostingView.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @class CPTGraph; 4 | 5 | @interface CPTGraphHostingView : NSView 6 | 7 | /// @name Hosted graph 8 | /// @{ 9 | @property (nonatomic, readwrite, strong, nullable) CPTGraph *hostedGraph; 10 | /// @} 11 | 12 | /// @name Printing 13 | /// @{ 14 | @property (nonatomic, readwrite, assign) NSRect printRect; 15 | /// @} 16 | 17 | /// @name Cursors 18 | /// @{ 19 | @property (nonatomic, readwrite, strong, nullable) NSCursor *closedHandCursor; 20 | @property (nonatomic, readwrite, strong, nullable) NSCursor *openHandCursor; 21 | /// @} 22 | 23 | /// @name User Interaction 24 | /// @{ 25 | @property (nonatomic, readwrite, assign) BOOL allowPinchScaling; 26 | /// @} 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTImage.h: -------------------------------------------------------------------------------- 1 | #import "CPTDefinitions.h" 2 | #import "CPTPlatformSpecificDefines.h" 3 | 4 | @interface CPTImage : NSObject 5 | 6 | @property (nonatomic, readwrite, copy, nullable) CPTNativeImage *nativeImage; 7 | @property (nonatomic, readwrite, assign, nullable) CGImageRef image; 8 | @property (nonatomic, readwrite, assign) CGFloat scale; 9 | @property (nonatomic, readwrite, assign, getter = isTiled) BOOL tiled; 10 | @property (nonatomic, readwrite, assign) CPTEdgeInsets edgeInsets; 11 | @property (nonatomic, readwrite, assign) BOOL tileAnchoredToContext; 12 | @property (nonatomic, readonly, getter = isOpaque) BOOL opaque; 13 | 14 | /// @name Factory Methods 15 | /// @{ 16 | +(nonnull instancetype)imageNamed:(nonnull NSString *)name; 17 | 18 | +(nonnull instancetype)imageWithNativeImage:(nullable CPTNativeImage *)anImage; 19 | +(nonnull instancetype)imageWithContentsOfFile:(nonnull NSString *)path; 20 | +(nonnull instancetype)imageWithCGImage:(nullable CGImageRef)anImage scale:(CGFloat)newScale; 21 | +(nonnull instancetype)imageWithCGImage:(nullable CGImageRef)anImage; 22 | +(nonnull instancetype)imageForPNGFile:(nonnull NSString *)path; 23 | /// @} 24 | 25 | /// @name Initialization 26 | /// @{ 27 | -(nonnull instancetype)initWithContentsOfFile:(nonnull NSString *)path; 28 | -(nonnull instancetype)initWithCGImage:(nullable CGImageRef)anImage scale:(CGFloat)newScale NS_DESIGNATED_INITIALIZER; 29 | -(nonnull instancetype)initWithCGImage:(nullable CGImageRef)anImage; 30 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)decoder NS_DESIGNATED_INITIALIZER; 31 | /// @} 32 | 33 | /// @name Drawing 34 | /// @{ 35 | -(void)drawInRect:(CGRect)rect inContext:(nonnull CGContextRef)context; 36 | /// @} 37 | 38 | @end 39 | 40 | #pragma mark - 41 | 42 | /** @category CPTImage(CPTPlatformSpecificImageExtensions) 43 | * @brief Platform-specific extensions to CPTImage. 44 | **/ 45 | @interface CPTImage(CPTPlatformSpecificImageExtensions) 46 | 47 | /// @name Initialization 48 | /// @{ 49 | -(nonnull instancetype)initWithNativeImage:(nullable CPTNativeImage *)anImage; 50 | -(nonnull instancetype)initForPNGFile:(nonnull NSString *)path; 51 | /// @} 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTLayerAnnotation.h: -------------------------------------------------------------------------------- 1 | #import "CPTAnnotation.h" 2 | #import "CPTDefinitions.h" 3 | 4 | @class CPTConstraints; 5 | 6 | @interface CPTLayerAnnotation : CPTAnnotation 7 | 8 | @property (nonatomic, readonly, cpt_weak_property, nullable) CPTLayer *anchorLayer; 9 | @property (nonatomic, readwrite, assign) CPTRectAnchor rectAnchor; 10 | @property (nonatomic, readwrite, strong, nullable) CPTConstraints *xConstraints; 11 | @property (nonatomic, readwrite, strong, nullable) CPTConstraints *yConstraints; 12 | 13 | /// @name Initialization 14 | /// @{ 15 | -(nonnull instancetype)initWithAnchorLayer:(nonnull CPTLayer *)anchorLayer NS_DESIGNATED_INITIALIZER; 16 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)coder NS_DESIGNATED_INITIALIZER; 17 | /// @} 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTLegendEntry.h: -------------------------------------------------------------------------------- 1 | #import "CPTDefinitions.h" 2 | 3 | /// @file 4 | 5 | @class CPTLegendEntry; 6 | @class CPTPlot; 7 | @class CPTTextStyle; 8 | 9 | /** 10 | * @brief An array of CPTLegendEntry objects. 11 | **/ 12 | typedef NSArray CPTLegendEntryArray; 13 | 14 | /** 15 | * @brief A mutable array of CPTLegendEntry objects. 16 | **/ 17 | typedef NSMutableArray CPTMutableLegendEntryArray; 18 | 19 | @interface CPTLegendEntry : NSObject 20 | 21 | /// @name Plot Info 22 | /// @{ 23 | @property (nonatomic, readwrite, cpt_weak_property, nullable) CPTPlot *plot; 24 | @property (nonatomic, readwrite, assign) NSUInteger index; 25 | /// @} 26 | 27 | /// @name Formatting 28 | /// @{ 29 | @property (nonatomic, readwrite, strong, nullable) CPTTextStyle *textStyle; 30 | /// @} 31 | 32 | /// @name Layout 33 | /// @{ 34 | @property (nonatomic, readwrite, assign) NSUInteger row; 35 | @property (nonatomic, readwrite, assign) NSUInteger column; 36 | @property (nonatomic, readonly) CGSize titleSize; 37 | /// @} 38 | 39 | /// @name Drawing 40 | /// @{ 41 | -(void)drawTitleInRect:(CGRect)rect inContext:(nonnull CGContextRef)context scale:(CGFloat)scale; 42 | /// @} 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTLimitBand.h: -------------------------------------------------------------------------------- 1 | /// @file 2 | 3 | @class CPTFill; 4 | @class CPTLimitBand; 5 | @class CPTPlotRange; 6 | 7 | /** 8 | * @brief An array of limit bands. 9 | **/ 10 | typedef NSArray CPTLimitBandArray; 11 | 12 | /** 13 | * @brief A mutable array of limit bands. 14 | **/ 15 | typedef NSMutableArray CPTMutableLimitBandArray; 16 | 17 | @interface CPTLimitBand : NSObject 18 | 19 | @property (nonatomic, readwrite, strong, nullable) CPTPlotRange *range; 20 | @property (nonatomic, readwrite, strong, nullable) CPTFill *fill; 21 | 22 | /// @name Factory Methods 23 | /// @{ 24 | +(nonnull instancetype)limitBandWithRange:(nullable CPTPlotRange *)newRange fill:(nullable CPTFill *)newFill; 25 | /// @} 26 | 27 | /// @name Initialization 28 | /// @{ 29 | -(nonnull instancetype)initWithRange:(nullable CPTPlotRange *)newRange fill:(nullable CPTFill *)newFill NS_DESIGNATED_INITIALIZER; 30 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)decoder NS_DESIGNATED_INITIALIZER; 31 | /// @} 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTLineCap.h: -------------------------------------------------------------------------------- 1 | /// @file 2 | 3 | @class CPTLineStyle; 4 | @class CPTFill; 5 | 6 | /** 7 | * @brief Line cap types. 8 | **/ 9 | typedef NS_ENUM (NSInteger, CPTLineCapType) { 10 | CPTLineCapTypeNone, ///< No line cap. 11 | CPTLineCapTypeOpenArrow, ///< Open arrow line cap. 12 | CPTLineCapTypeSolidArrow, ///< Solid arrow line cap. 13 | CPTLineCapTypeSweptArrow, ///< Swept arrow line cap. 14 | CPTLineCapTypeRectangle, ///< Rectangle line cap. 15 | CPTLineCapTypeEllipse, ///< Elliptical line cap. 16 | CPTLineCapTypeDiamond, ///< Diamond line cap. 17 | CPTLineCapTypePentagon, ///< Pentagon line cap. 18 | CPTLineCapTypeHexagon, ///< Hexagon line cap. 19 | CPTLineCapTypeBar, ///< Bar line cap. 20 | CPTLineCapTypeCross, ///< X line cap. 21 | CPTLineCapTypeSnow, ///< Snowflake line cap. 22 | CPTLineCapTypeCustom ///< Custom line cap. 23 | }; 24 | 25 | @interface CPTLineCap : NSObject 26 | 27 | @property (nonatomic, readwrite, assign) CGSize size; 28 | @property (nonatomic, readwrite, assign) CPTLineCapType lineCapType; 29 | @property (nonatomic, readwrite, strong, nullable) CPTLineStyle *lineStyle; 30 | @property (nonatomic, readwrite, strong, nullable) CPTFill *fill; 31 | @property (nonatomic, readwrite, assign, nullable) CGPathRef customLineCapPath; 32 | @property (nonatomic, readwrite, assign) BOOL usesEvenOddClipRule; 33 | 34 | /// @name Factory Methods 35 | /// @{ 36 | +(nonnull instancetype)lineCap; 37 | +(nonnull instancetype)openArrowPlotLineCap; 38 | +(nonnull instancetype)solidArrowPlotLineCap; 39 | +(nonnull instancetype)sweptArrowPlotLineCap; 40 | +(nonnull instancetype)rectanglePlotLineCap; 41 | +(nonnull instancetype)ellipsePlotLineCap; 42 | +(nonnull instancetype)diamondPlotLineCap; 43 | +(nonnull instancetype)pentagonPlotLineCap; 44 | +(nonnull instancetype)hexagonPlotLineCap; 45 | +(nonnull instancetype)barPlotLineCap; 46 | +(nonnull instancetype)crossPlotLineCap; 47 | +(nonnull instancetype)snowPlotLineCap; 48 | +(nonnull instancetype)customLineCapWithPath:(nullable CGPathRef)aPath; 49 | /// @} 50 | 51 | /// @name Drawing 52 | /// @{ 53 | -(void)renderAsVectorInContext:(nonnull CGContextRef)context atPoint:(CGPoint)center inDirection:(CGPoint)direction; 54 | /// @} 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTLineStyle.h: -------------------------------------------------------------------------------- 1 | #import "CPTDefinitions.h" 2 | 3 | /// @file 4 | 5 | @class CPTColor; 6 | @class CPTFill; 7 | @class CPTGradient; 8 | @class CPTLineStyle; 9 | 10 | /** 11 | * @brief An array of line styles. 12 | **/ 13 | typedef NSArray CPTLineStyleArray; 14 | 15 | /** 16 | * @brief A mutable array of line styles. 17 | **/ 18 | typedef NSMutableArray CPTMutableLineStyleArray; 19 | 20 | @interface CPTLineStyle : NSObject 21 | 22 | @property (nonatomic, readonly) CGLineCap lineCap; 23 | @property (nonatomic, readonly) CGLineJoin lineJoin; 24 | @property (nonatomic, readonly) CGFloat miterLimit; 25 | @property (nonatomic, readonly) CGFloat lineWidth; 26 | @property (nonatomic, readonly, nullable) CPTNumberArray *dashPattern; 27 | @property (nonatomic, readonly) CGFloat patternPhase; 28 | @property (nonatomic, readonly, nullable) CPTColor *lineColor; 29 | @property (nonatomic, readonly, nullable) CPTFill *lineFill; 30 | @property (nonatomic, readonly, nullable) CPTGradient *lineGradient; 31 | @property (nonatomic, readonly, getter = isOpaque) BOOL opaque; 32 | 33 | /// @name Factory Methods 34 | /// @{ 35 | +(nonnull instancetype)lineStyle; 36 | +(nonnull instancetype)lineStyleWithStyle:(nullable CPTLineStyle *)lineStyle; 37 | /// @} 38 | 39 | /// @name Drawing 40 | /// @{ 41 | -(void)setLineStyleInContext:(nonnull CGContextRef)context; 42 | -(void)strokePathInContext:(nonnull CGContextRef)context; 43 | -(void)strokeRect:(CGRect)rect inContext:(nonnull CGContextRef)context; 44 | /// @} 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTMutableLineStyle.h: -------------------------------------------------------------------------------- 1 | #import "CPTLineStyle.h" 2 | 3 | @class CPTColor; 4 | 5 | @interface CPTMutableLineStyle : CPTLineStyle 6 | 7 | @property (nonatomic, readwrite, assign) CGLineCap lineCap; 8 | @property (nonatomic, readwrite, assign) CGLineJoin lineJoin; 9 | @property (nonatomic, readwrite, assign) CGFloat miterLimit; 10 | @property (nonatomic, readwrite, assign) CGFloat lineWidth; 11 | @property (nonatomic, readwrite, strong, nullable) CPTNumberArray *dashPattern; 12 | @property (nonatomic, readwrite, assign) CGFloat patternPhase; 13 | @property (nonatomic, readwrite, strong, nullable) CPTColor *lineColor; 14 | @property (nonatomic, readwrite, strong, nullable) CPTFill *lineFill; 15 | @property (nonatomic, readwrite, strong, nullable) CPTGradient *lineGradient; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTMutableNumericData+TypeConversion.h: -------------------------------------------------------------------------------- 1 | #import "CPTMutableNumericData.h" 2 | #import "CPTNumericDataType.h" 3 | 4 | /** @category CPTMutableNumericData(TypeConversion) 5 | * @brief Type conversion methods for CPTMutableNumericData. 6 | **/ 7 | @interface CPTMutableNumericData(TypeConversion) 8 | 9 | /// @name Data Format 10 | /// @{ 11 | @property (nonatomic, readwrite, assign) CPTNumericDataType dataType; 12 | @property (nonatomic, readwrite, assign) CPTDataTypeFormat dataTypeFormat; 13 | @property (nonatomic, readwrite, assign) size_t sampleBytes; 14 | @property (nonatomic, readwrite, assign) CFByteOrder byteOrder; 15 | /// @} 16 | 17 | /// @name Type Conversion 18 | /// @{ 19 | -(void)convertToType:(CPTDataTypeFormat)newDataType sampleBytes:(size_t)newSampleBytes byteOrder:(CFByteOrder)newByteOrder; 20 | /// @} 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTMutableNumericData.h: -------------------------------------------------------------------------------- 1 | #import "CPTNumericData.h" 2 | #import "CPTNumericDataType.h" 3 | 4 | @interface CPTMutableNumericData : CPTNumericData 5 | 6 | /// @name Data Buffer 7 | /// @{ 8 | @property (nonatomic, readonly, nonnull) void *mutableBytes; 9 | /// @} 10 | 11 | /// @name Dimensions 12 | /// @{ 13 | @property (nonatomic, readwrite, copy, nonnull) CPTNumberArray *shape; 14 | /// @} 15 | 16 | /// @name Samples 17 | /// @{ 18 | -(nullable void *)mutableSamplePointer:(NSUInteger)sample NS_RETURNS_INNER_POINTER; 19 | -(nullable void *)mutableSamplePointerAtIndex:(NSUInteger)idx, ... NS_RETURNS_INNER_POINTER; 20 | /// @} 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTMutablePlotRange.h: -------------------------------------------------------------------------------- 1 | #import "CPTPlotRange.h" 2 | 3 | @interface CPTMutablePlotRange : CPTPlotRange 4 | 5 | /// @name Range Limits 6 | /// @{ 7 | @property (nonatomic, readwrite, strong, nonnull) NSNumber *location; 8 | @property (nonatomic, readwrite, strong, nonnull) NSNumber *length; 9 | @property (nonatomic, readwrite) NSDecimal locationDecimal; 10 | @property (nonatomic, readwrite) NSDecimal lengthDecimal; 11 | @property (nonatomic, readwrite) double locationDouble; 12 | @property (nonatomic, readwrite) double lengthDouble; 13 | /// @} 14 | 15 | /// @name Combining Ranges 16 | /// @{ 17 | -(void)unionPlotRange:(nullable CPTPlotRange *)otherRange; 18 | -(void)intersectionPlotRange:(nullable CPTPlotRange *)otherRange; 19 | /// @} 20 | 21 | /// @name Shifting Ranges 22 | /// @{ 23 | -(void)shiftLocationToFitInRange:(nonnull CPTPlotRange *)otherRange; 24 | -(void)shiftEndToFitInRange:(nonnull CPTPlotRange *)otherRange; 25 | /// @} 26 | 27 | /// @name Expanding/Contracting Ranges 28 | /// @{ 29 | -(void)expandRangeByFactor:(nonnull NSNumber *)factor; 30 | /// @} 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTMutableShadow.h: -------------------------------------------------------------------------------- 1 | #import "CPTShadow.h" 2 | 3 | @class CPTColor; 4 | 5 | @interface CPTMutableShadow : CPTShadow 6 | 7 | @property (nonatomic, readwrite, assign) CGSize shadowOffset; 8 | @property (nonatomic, readwrite, assign) CGFloat shadowBlurRadius; 9 | @property (nonatomic, readwrite, strong, nullable) CPTColor *shadowColor; 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTMutableTextStyle.h: -------------------------------------------------------------------------------- 1 | #import "CPTTextStyle.h" 2 | 3 | @class CPTColor; 4 | 5 | @interface CPTMutableTextStyle : CPTTextStyle 6 | 7 | @property (readwrite, strong, nonatomic, nullable) CPTNativeFont *font; 8 | @property (readwrite, copy, nonatomic, nullable) NSString *fontName; 9 | @property (readwrite, assign, nonatomic) CGFloat fontSize; 10 | @property (readwrite, copy, nonatomic, nullable) CPTColor *color; 11 | @property (readwrite, assign, nonatomic) CPTTextAlignment textAlignment; 12 | @property (readwrite, assign, nonatomic) NSLineBreakMode lineBreakMode; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTNumericData+TypeConversion.h: -------------------------------------------------------------------------------- 1 | #import "CPTNumericData.h" 2 | #import "CPTNumericDataType.h" 3 | 4 | /** @category CPTNumericData(TypeConversion) 5 | * @brief Type conversion methods for CPTNumericData. 6 | **/ 7 | @interface CPTNumericData(TypeConversion) 8 | 9 | /// @name Type Conversion 10 | /// @{ 11 | -(nonnull CPTNumericData *)dataByConvertingToDataType:(CPTNumericDataType)newDataType; 12 | 13 | -(nonnull CPTNumericData *)dataByConvertingToType:(CPTDataTypeFormat)newDataType sampleBytes:(size_t)newSampleBytes byteOrder:(CFByteOrder)newByteOrder; 14 | /// @} 15 | 16 | /// @name Data Conversion Utilities 17 | /// @{ 18 | -(void)convertData:(nonnull NSData *)sourceData dataType:(nonnull CPTNumericDataType *)sourceDataType toData:(nonnull NSMutableData *)destData dataType:(nonnull CPTNumericDataType *)destDataType; 19 | -(void)swapByteOrderForData:(nonnull NSMutableData *)sourceData sampleSize:(size_t)sampleSize; 20 | /// @} 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTNumericDataType.h: -------------------------------------------------------------------------------- 1 | /// @file 2 | 3 | /** 4 | * @brief Enumeration of data formats for numeric data. 5 | **/ 6 | typedef NS_ENUM (NSInteger, CPTDataTypeFormat) { 7 | CPTUndefinedDataType = 0, ///< Undefined 8 | CPTIntegerDataType, ///< Integer 9 | CPTUnsignedIntegerDataType, ///< Unsigned integer 10 | CPTFloatingPointDataType, ///< Floating point 11 | CPTComplexFloatingPointDataType, ///< Complex floating point 12 | CPTDecimalDataType ///< NSDecimal 13 | }; 14 | 15 | /** 16 | * @brief Enumeration of memory arrangements for multi-dimensional data arrays. 17 | * @see See Wikipedia for more information. 18 | **/ 19 | typedef NS_CLOSED_ENUM(NSInteger, CPTDataOrder) { 20 | CPTDataOrderRowsFirst, ///< Numeric data is arranged in row-major order. 21 | CPTDataOrderColumnsFirst ///< Numeric data is arranged in column-major order. 22 | }; 23 | 24 | /** 25 | * @brief Structure that describes the encoding of numeric data samples. 26 | **/ 27 | typedef struct _CPTNumericDataType { 28 | CPTDataTypeFormat dataTypeFormat; ///< Data type format 29 | size_t sampleBytes; ///< Number of bytes in each sample 30 | CFByteOrder byteOrder; ///< Byte order 31 | } 32 | CPTNumericDataType; 33 | 34 | #if __cplusplus 35 | extern "C" { 36 | #endif 37 | 38 | /// @name Data Type Utilities 39 | /// @{ 40 | CPTNumericDataType CPTDataType(CPTDataTypeFormat format, size_t sampleBytes, CFByteOrder byteOrder); 41 | CPTNumericDataType CPTDataTypeWithDataTypeString(NSString *__nonnull dataTypeString); 42 | NSString *__nonnull CPTDataTypeStringFromDataType(CPTNumericDataType dataType); 43 | BOOL CPTDataTypeIsSupported(CPTNumericDataType format); 44 | BOOL CPTDataTypeEqualToDataType(CPTNumericDataType dataType1, CPTNumericDataType dataType2); 45 | 46 | /// @} 47 | 48 | #if __cplusplus 49 | } 50 | #endif 51 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTPathExtensions.h: -------------------------------------------------------------------------------- 1 | /// @file 2 | 3 | #if __cplusplus 4 | extern "C" { 5 | #endif 6 | 7 | CF_IMPLICIT_BRIDGING_ENABLED 8 | 9 | __nonnull CGPathRef CPTCreateRoundedRectPath(CGRect rect, CGFloat cornerRadius); 10 | 11 | CF_IMPLICIT_BRIDGING_DISABLED 12 | 13 | void CPTAddRoundedRectPath(__nonnull CGContextRef context, CGRect rect, CGFloat cornerRadius); 14 | 15 | #if __cplusplus 16 | } 17 | #endif 18 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTPlatformSpecificCategories.h: -------------------------------------------------------------------------------- 1 | #import "CPTColor.h" 2 | #import "CPTLayer.h" 3 | #import "CPTPlatformSpecificDefines.h" 4 | 5 | #pragma mark CPTLayer 6 | 7 | /** @category CPTLayer(CPTPlatformSpecificLayerExtensions) 8 | * @brief Platform-specific extensions to CPTLayer. 9 | **/ 10 | @interface CPTLayer(CPTPlatformSpecificLayerExtensions) 11 | 12 | /// @name Images 13 | /// @{ 14 | -(nonnull CPTNativeImage *)imageOfLayer; 15 | /// @} 16 | 17 | @end 18 | 19 | #pragma mark - NSAttributedString 20 | 21 | /** @category NSAttributedString(CPTPlatformSpecificAttributedStringExtensions) 22 | * @brief NSAttributedString extensions for drawing styled text. 23 | **/ 24 | @interface NSAttributedString(CPTPlatformSpecificAttributedStringExtensions) 25 | 26 | /// @name Drawing 27 | /// @{ 28 | -(void)drawInRect:(CGRect)rect inContext:(nonnull CGContextRef)context; 29 | /// @} 30 | 31 | /// @name Measurement 32 | /// @{ 33 | -(CGSize)sizeAsDrawn; 34 | /// @} 35 | 36 | @end 37 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTPlatformSpecificDefines.h: -------------------------------------------------------------------------------- 1 | /// @file 2 | 3 | typedef NSColor CPTNativeColor; ///< Platform-native color. 4 | typedef NSImage CPTNativeImage; ///< Platform-native image format. 5 | typedef NSEvent CPTNativeEvent; ///< Platform-native OS event. 6 | typedef NSFont CPTNativeFont; ///< Platform-native font. 7 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTPlatformSpecificFunctions.h: -------------------------------------------------------------------------------- 1 | #import "CPTDefinitions.h" 2 | #import "CPTPlatformSpecificDefines.h" 3 | 4 | /// @file 5 | 6 | #if __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | /// @name Graphics Context Save Stack 11 | /// @{ 12 | void CPTPushCGContext(__nonnull CGContextRef context); 13 | void CPTPopCGContext(void); 14 | 15 | /// @} 16 | 17 | /// @name Color Conversion 18 | /// @{ 19 | __nonnull CGColorRef CPTCreateCGColorFromNSColor(NSColor *__nonnull nsColor) CF_RETURNS_RETAINED; 20 | CPTRGBAColor CPTRGBAColorFromNSColor(NSColor *__nonnull nsColor); 21 | 22 | /// @} 23 | 24 | /// @name Debugging 25 | /// @{ 26 | CPTNativeImage *__nonnull CPTQuickLookImage(CGRect rect, __nonnull CPTQuickLookImageBlock renderBlock); 27 | 28 | /// @} 29 | 30 | #if __cplusplus 31 | } 32 | #endif 33 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTPlotAreaFrame.h: -------------------------------------------------------------------------------- 1 | #import "CPTBorderedLayer.h" 2 | 3 | @class CPTAxisSet; 4 | @class CPTPlotGroup; 5 | @class CPTPlotArea; 6 | 7 | @interface CPTPlotAreaFrame : CPTBorderedLayer 8 | 9 | @property (nonatomic, readonly, nullable) CPTPlotArea *plotArea; 10 | @property (nonatomic, readwrite, strong, nullable) CPTAxisSet *axisSet; 11 | @property (nonatomic, readwrite, strong, nullable) CPTPlotGroup *plotGroup; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTPlotSpaceAnnotation.h: -------------------------------------------------------------------------------- 1 | #import "CPTAnnotation.h" 2 | 3 | @class CPTPlotSpace; 4 | 5 | @interface CPTPlotSpaceAnnotation : CPTAnnotation 6 | 7 | @property (nonatomic, readwrite, copy, nullable) CPTNumberArray *anchorPlotPoint; 8 | @property (nonatomic, readonly, nonnull) CPTPlotSpace *plotSpace; 9 | 10 | /// @name Initialization 11 | /// @{ 12 | -(nonnull instancetype)initWithPlotSpace:(nonnull CPTPlotSpace *)space anchorPlotPoint:(nullable CPTNumberArray *)plotPoint NS_DESIGNATED_INITIALIZER; 13 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)coder NS_DESIGNATED_INITIALIZER; 14 | /// @} 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTPlotSymbol.h: -------------------------------------------------------------------------------- 1 | /// @file 2 | 3 | @class CPTLineStyle; 4 | @class CPTFill; 5 | @class CPTPlotSymbol; 6 | @class CPTShadow; 7 | 8 | /** 9 | * @brief Plot symbol types. 10 | **/ 11 | typedef NS_ENUM (NSInteger, CPTPlotSymbolType) { 12 | CPTPlotSymbolTypeNone, ///< No symbol. 13 | CPTPlotSymbolTypeRectangle, ///< Rectangle symbol. 14 | CPTPlotSymbolTypeEllipse, ///< Elliptical symbol. 15 | CPTPlotSymbolTypeDiamond, ///< Diamond symbol. 16 | CPTPlotSymbolTypeTriangle, ///< Triangle symbol. 17 | CPTPlotSymbolTypeStar, ///< 5-point star symbol. 18 | CPTPlotSymbolTypePentagon, ///< Pentagon symbol. 19 | CPTPlotSymbolTypeHexagon, ///< Hexagon symbol. 20 | CPTPlotSymbolTypeCross, ///< X symbol. 21 | CPTPlotSymbolTypePlus, ///< Plus symbol. 22 | CPTPlotSymbolTypeDash, ///< Dash symbol. 23 | CPTPlotSymbolTypeSnow, ///< Snowflake symbol. 24 | CPTPlotSymbolTypeCustom ///< Custom symbol. 25 | }; 26 | 27 | /** 28 | * @brief An array of plot symbols. 29 | **/ 30 | typedef NSArray CPTPlotSymbolArray; 31 | 32 | /** 33 | * @brief A mutable array of plot symbols. 34 | **/ 35 | typedef NSMutableArray CPTMutablePlotSymbolArray; 36 | 37 | @interface CPTPlotSymbol : NSObject 38 | 39 | @property (nonatomic, readwrite, assign) CGPoint anchorPoint; 40 | @property (nonatomic, readwrite, assign) CGSize size; 41 | @property (nonatomic, readwrite, assign) CPTPlotSymbolType symbolType; 42 | @property (nonatomic, readwrite, strong, nullable) CPTLineStyle *lineStyle; 43 | @property (nonatomic, readwrite, strong, nullable) CPTFill *fill; 44 | @property (nonatomic, readwrite, copy, nullable) CPTShadow *shadow; 45 | @property (nonatomic, readwrite, assign, nullable) CGPathRef customSymbolPath; 46 | @property (nonatomic, readwrite, assign) BOOL usesEvenOddClipRule; 47 | 48 | /// @name Factory Methods 49 | /// @{ 50 | +(nonnull instancetype)plotSymbol; 51 | +(nonnull instancetype)crossPlotSymbol; 52 | +(nonnull instancetype)ellipsePlotSymbol; 53 | +(nonnull instancetype)rectanglePlotSymbol; 54 | +(nonnull instancetype)plusPlotSymbol; 55 | +(nonnull instancetype)starPlotSymbol; 56 | +(nonnull instancetype)diamondPlotSymbol; 57 | +(nonnull instancetype)trianglePlotSymbol; 58 | +(nonnull instancetype)pentagonPlotSymbol; 59 | +(nonnull instancetype)hexagonPlotSymbol; 60 | +(nonnull instancetype)dashPlotSymbol; 61 | +(nonnull instancetype)snowPlotSymbol; 62 | +(nonnull instancetype)customPlotSymbolWithPath:(nullable CGPathRef)aPath; 63 | /// @} 64 | 65 | /// @name Drawing 66 | /// @{ 67 | -(void)renderInContext:(nonnull CGContextRef)context atPoint:(CGPoint)center scale:(CGFloat)scale alignToPixels:(BOOL)alignToPixels; 68 | -(void)renderAsVectorInContext:(nonnull CGContextRef)context atPoint:(CGPoint)center scale:(CGFloat)scale; 69 | /// @} 70 | 71 | @end 72 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTResponder.h: -------------------------------------------------------------------------------- 1 | #import "CPTPlatformSpecificDefines.h" 2 | 3 | /** 4 | * @brief The basis of all event processing in Core Plot. 5 | **/ 6 | @protocol CPTResponder 7 | 8 | /// @name User Interaction 9 | /// @{ 10 | 11 | /** 12 | * @brief @required Informs the receiver that the user has 13 | * @if MacOnly pressed the mouse button. @endif 14 | * @if iOSOnly touched the screen. @endif 15 | * @param event The OS event. 16 | * @param interactionPoint The coordinates of the interaction. 17 | * @return Whether the event was handled or not. 18 | **/ 19 | -(BOOL)pointingDeviceDownEvent:(nonnull CPTNativeEvent *)event atPoint:(CGPoint)interactionPoint; 20 | 21 | /** 22 | * @brief @required Informs the receiver that the user has 23 | * @if MacOnly released the mouse button. @endif 24 | * @if iOSOnly lifted their finger off the screen. @endif 25 | * @param event The OS event. 26 | * @param interactionPoint The coordinates of the interaction. 27 | * @return Whether the event was handled or not. 28 | **/ 29 | -(BOOL)pointingDeviceUpEvent:(nonnull CPTNativeEvent *)event atPoint:(CGPoint)interactionPoint; 30 | 31 | /** 32 | * @brief @required Informs the receiver that the user has moved 33 | * @if MacOnly the mouse with the button pressed. @endif 34 | * @if iOSOnly their finger while touching the screen. @endif 35 | * @param event The OS event. 36 | * @param interactionPoint The coordinates of the interaction. 37 | * @return Whether the event was handled or not. 38 | **/ 39 | -(BOOL)pointingDeviceDraggedEvent:(nonnull CPTNativeEvent *)event atPoint:(CGPoint)interactionPoint; 40 | 41 | /** 42 | * @brief @required Informs the receiver that tracking of 43 | * @if MacOnly mouse moves @endif 44 | * @if iOSOnly touches @endif 45 | * has been cancelled for any reason. 46 | * @param event The OS event. 47 | * @return Whether the event was handled or not. 48 | **/ 49 | -(BOOL)pointingDeviceCancelledEvent:(nonnull CPTNativeEvent *)event; 50 | 51 | #if TARGET_OS_SIMULATOR || TARGET_OS_IPHONE 52 | #else 53 | 54 | /** 55 | * @brief @required Informs the receiver that the user has moved the scroll wheel. 56 | * @param event The OS event. 57 | * @param fromPoint The starting coordinates of the interaction. 58 | * @param toPoint The ending coordinates of the interaction. 59 | * @return Whether the event was handled or not. 60 | **/ 61 | -(BOOL)scrollWheelEvent:(nonnull CPTNativeEvent *)event fromPoint:(CGPoint)fromPoint toPoint:(CGPoint)toPoint; 62 | #endif 63 | 64 | /// @} 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTShadow.h: -------------------------------------------------------------------------------- 1 | @class CPTColor; 2 | 3 | @interface CPTShadow : NSObject 4 | 5 | @property (nonatomic, readonly) CGSize shadowOffset; 6 | @property (nonatomic, readonly) CGFloat shadowBlurRadius; 7 | @property (nonatomic, readonly, nullable) CPTColor *shadowColor; 8 | 9 | /// @name Factory Methods 10 | /// @{ 11 | +(nonnull instancetype)shadow; 12 | /// @} 13 | 14 | /// @name Drawing 15 | /// @{ 16 | -(void)setShadowInContext:(nonnull CGContextRef)context; 17 | /// @} 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTTextLayer.h: -------------------------------------------------------------------------------- 1 | #import "CPTBorderedLayer.h" 2 | #import "CPTTextStyle.h" 3 | 4 | /// @file 5 | 6 | extern const CGFloat kCPTTextLayerMarginWidth; ///< Margin width around the text. 7 | 8 | @interface CPTTextLayer : CPTBorderedLayer 9 | 10 | @property (readwrite, copy, nonatomic, nullable) NSString *text; 11 | @property (readwrite, strong, nonatomic, nullable) CPTTextStyle *textStyle; 12 | @property (readwrite, copy, nonatomic, nullable) NSAttributedString *attributedText; 13 | @property (readwrite, nonatomic) CGSize maximumSize; 14 | 15 | /// @name Initialization 16 | /// @{ 17 | -(nonnull instancetype)initWithText:(nullable NSString *)newText; 18 | -(nonnull instancetype)initWithText:(nullable NSString *)newText style:(nullable CPTTextStyle *)newStyle NS_DESIGNATED_INITIALIZER; 19 | -(nonnull instancetype)initWithAttributedText:(nullable NSAttributedString *)newText; 20 | 21 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)coder NS_DESIGNATED_INITIALIZER; 22 | -(nonnull instancetype)initWithLayer:(nonnull id)layer NS_DESIGNATED_INITIALIZER; 23 | /// @} 24 | 25 | /// @name Layout 26 | /// @{ 27 | -(CGSize)sizeThatFits; 28 | -(void)sizeToFit; 29 | /// @} 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTTextStyle.h: -------------------------------------------------------------------------------- 1 | #import "CPTDefinitions.h" 2 | #import "CPTPlatformSpecificDefines.h" 3 | #import "CPTTextStylePlatformSpecific.h" 4 | 5 | @class CPTColor; 6 | @class CPTTextStyle; 7 | 8 | /** 9 | * @brief An array of text styles. 10 | **/ 11 | typedef NSArray CPTTextStyleArray; 12 | 13 | /** 14 | * @brief A mutable array of text styles. 15 | **/ 16 | typedef NSMutableArray CPTMutableTextStyleArray; 17 | 18 | @interface CPTTextStyle : NSObject 19 | 20 | // font would override fontName/fontSize if not nil 21 | @property (readonly, strong, nonatomic, nullable) CPTNativeFont *font; 22 | @property (readonly, copy, nonatomic, nullable) NSString *fontName; 23 | @property (readonly, nonatomic) CGFloat fontSize; 24 | @property (readonly, copy, nonatomic, nullable) CPTColor *color; 25 | @property (readonly, nonatomic) CPTTextAlignment textAlignment; 26 | @property (readonly, assign, nonatomic) NSLineBreakMode lineBreakMode; 27 | 28 | /// @name Factory Methods 29 | /// @{ 30 | +(nonnull instancetype)textStyle; 31 | +(nonnull instancetype)textStyleWithStyle:(nullable CPTTextStyle *)textStyle; 32 | /// @} 33 | 34 | @end 35 | 36 | #pragma mark - 37 | 38 | /** @category CPTTextStyle(CPTPlatformSpecificTextStyleExtensions) 39 | * @brief Platform-specific extensions to CPTTextStyle. 40 | **/ 41 | @interface CPTTextStyle(CPTPlatformSpecificTextStyleExtensions) 42 | 43 | @property (readonly, nonatomic, nonnull) CPTDictionary *attributes; 44 | 45 | /// @name Factory Methods 46 | /// @{ 47 | +(nonnull instancetype)textStyleWithAttributes:(nullable CPTDictionary *)attributes; 48 | /// @} 49 | 50 | @end 51 | 52 | #pragma mark - 53 | 54 | /** @category NSString(CPTTextStyleExtensions) 55 | * @brief NSString extensions for drawing styled text. 56 | **/ 57 | @interface NSString(CPTTextStyleExtensions) 58 | 59 | /// @name Measurement 60 | /// @{ 61 | -(CGSize)sizeWithTextStyle:(nullable CPTTextStyle *)style; 62 | /// @} 63 | 64 | /// @name Drawing 65 | /// @{ 66 | -(void)drawInRect:(CGRect)rect withTextStyle:(nullable CPTTextStyle *)style inContext:(nonnull CGContextRef)context; 67 | /// @} 68 | 69 | @end 70 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTTextStylePlatformSpecific.h: -------------------------------------------------------------------------------- 1 | /// @file 2 | 3 | /** 4 | * @brief Enumeration of paragraph alignments. 5 | **/ 6 | #if (MAC_OS_X_VERSION_MAX_ALLOWED >= 101200) 7 | typedef NS_ENUM (NSInteger, CPTTextAlignment) { 8 | CPTTextAlignmentLeft = NSTextAlignmentLeft, ///< Left alignment. 9 | CPTTextAlignmentCenter = NSTextAlignmentCenter, ///< Center alignment. 10 | CPTTextAlignmentRight = NSTextAlignmentRight, ///< Right alignment. 11 | CPTTextAlignmentJustified = NSTextAlignmentJustified, ///< Justified alignment. 12 | CPTTextAlignmentNatural = NSTextAlignmentNatural ///< Natural alignment of the text's script. 13 | }; 14 | #else 15 | typedef NS_ENUM (NSInteger, CPTTextAlignment) { 16 | CPTTextAlignmentLeft = NSLeftTextAlignment, ///< Left alignment. 17 | CPTTextAlignmentCenter = NSCenterTextAlignment, ///< Center alignment. 18 | CPTTextAlignmentRight = NSRightTextAlignment, ///< Right alignment. 19 | CPTTextAlignmentJustified = NSJustifiedTextAlignment, ///< Justified alignment. 20 | CPTTextAlignmentNatural = NSNaturalTextAlignment ///< Natural alignment of the text's script. 21 | }; 22 | #endif 23 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTTheme.h: -------------------------------------------------------------------------------- 1 | #import "CPTDefinitions.h" 2 | 3 | /** 4 | * @brief Theme name type. 5 | **/ 6 | typedef NSString *CPTThemeName cpt_swift_struct; 7 | 8 | /// @ingroup themeNames 9 | /// @{ 10 | extern CPTThemeName __nonnull const kCPTDarkGradientTheme; ///< A graph theme with dark gray gradient backgrounds and light gray lines. 11 | extern CPTThemeName __nonnull const kCPTPlainBlackTheme; ///< A graph theme with black backgrounds and white lines. 12 | extern CPTThemeName __nonnull const kCPTPlainWhiteTheme; ///< A graph theme with white backgrounds and black lines. 13 | extern CPTThemeName __nonnull const kCPTSlateTheme; ///< A graph theme with colors that match the default iPhone navigation bar, toolbar buttons, and table views. 14 | extern CPTThemeName __nonnull const kCPTStocksTheme; ///< A graph theme with a gradient background and white lines. 15 | /// @} 16 | 17 | @class CPTGraph; 18 | @class CPTPlotAreaFrame; 19 | @class CPTAxisSet; 20 | @class CPTMutableTextStyle; 21 | 22 | @interface CPTTheme : NSObject 23 | 24 | @property (nonatomic, readwrite, strong, nullable) Class graphClass; 25 | 26 | /// @name Theme Management 27 | /// @{ 28 | +(void)registerTheme:(nonnull Class)themeClass; 29 | +(nullable NSArray *)themeClasses; 30 | +(nullable instancetype)themeNamed:(nullable CPTThemeName)themeName; 31 | +(nonnull CPTThemeName)name; 32 | /// @} 33 | 34 | /// @name Theme Usage 35 | /// @{ 36 | -(void)applyThemeToGraph:(nonnull CPTGraph *)graph; 37 | /// @} 38 | 39 | @end 40 | 41 | /** @category CPTTheme(AbstractMethods) 42 | * @brief CPTTheme abstract methods—must be overridden by subclasses 43 | **/ 44 | @interface CPTTheme(AbstractMethods) 45 | 46 | /// @name Theme Usage 47 | /// @{ 48 | -(nullable id)newGraph; 49 | 50 | -(void)applyThemeToBackground:(nonnull CPTGraph *)graph; 51 | -(void)applyThemeToPlotArea:(nonnull CPTPlotAreaFrame *)plotAreaFrame; 52 | -(void)applyThemeToAxisSet:(nonnull CPTAxisSet *)axisSet; 53 | /// @} 54 | 55 | @end 56 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTTimeFormatter.h: -------------------------------------------------------------------------------- 1 | @interface CPTTimeFormatter : NSNumberFormatter 2 | 3 | @property (nonatomic, readwrite, strong, nullable) NSDateFormatter *dateFormatter; 4 | @property (nonatomic, readwrite, copy, nullable) NSDate *referenceDate; 5 | 6 | /// @name Initialization 7 | /// @{ 8 | -(nonnull instancetype)initWithDateFormatter:(nullable NSDateFormatter *)aDateFormatter NS_DESIGNATED_INITIALIZER; 9 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)decoder NS_DESIGNATED_INITIALIZER; 10 | /// @} 11 | 12 | @end 13 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTXYAxis.h: -------------------------------------------------------------------------------- 1 | #import "CPTAxis.h" 2 | 3 | @class CPTConstraints; 4 | 5 | @interface CPTXYAxis : CPTAxis 6 | 7 | /// @name Positioning 8 | /// @{ 9 | @property (nonatomic, readwrite, strong, nullable) NSNumber *orthogonalPosition; 10 | @property (nonatomic, readwrite, strong, nullable) CPTConstraints *axisConstraints; 11 | /// @} 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTXYAxisSet.h: -------------------------------------------------------------------------------- 1 | #import "CPTAxisSet.h" 2 | 3 | @class CPTXYAxis; 4 | 5 | @interface CPTXYAxisSet : CPTAxisSet 6 | 7 | @property (nonatomic, readonly, nullable) CPTXYAxis *xAxis; 8 | @property (nonatomic, readonly, nullable) CPTXYAxis *yAxis; 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTXYGraph.h: -------------------------------------------------------------------------------- 1 | #import "CPTDefinitions.h" 2 | #import "CPTGraph.h" 3 | 4 | @interface CPTXYGraph : CPTGraph 5 | 6 | /// @name Initialization 7 | /// @{ 8 | -(nonnull instancetype)initWithFrame:(CGRect)newFrame xScaleType:(CPTScaleType)newXScaleType yScaleType:(CPTScaleType)newYScaleType NS_DESIGNATED_INITIALIZER; 9 | 10 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)coder NS_DESIGNATED_INITIALIZER; 11 | -(nonnull instancetype)initWithLayer:(nonnull id)layer NS_DESIGNATED_INITIALIZER; 12 | /// @} 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CPTXYPlotSpace.h: -------------------------------------------------------------------------------- 1 | #import "CPTAnimation.h" 2 | #import "CPTDefinitions.h" 3 | #import "CPTPlotSpace.h" 4 | 5 | @class CPTPlotRange; 6 | 7 | @interface CPTXYPlotSpace : CPTPlotSpace 8 | 9 | @property (nonatomic, readwrite, copy, nonnull) CPTPlotRange *xRange; 10 | @property (nonatomic, readwrite, copy, nonnull) CPTPlotRange *yRange; 11 | @property (nonatomic, readwrite, copy, nullable) CPTPlotRange *globalXRange; 12 | @property (nonatomic, readwrite, copy, nullable) CPTPlotRange *globalYRange; 13 | @property (nonatomic, readwrite, assign) CPTScaleType xScaleType; 14 | @property (nonatomic, readwrite, assign) CPTScaleType yScaleType; 15 | 16 | @property (nonatomic, readwrite) BOOL allowsMomentum; 17 | @property (nonatomic, readwrite) BOOL allowsMomentumX; 18 | @property (nonatomic, readwrite) BOOL allowsMomentumY; 19 | @property (nonatomic, readwrite) CPTAnimationCurve momentumAnimationCurve; 20 | @property (nonatomic, readwrite) CPTAnimationCurve bounceAnimationCurve; 21 | @property (nonatomic, readwrite) CGFloat momentumAcceleration; 22 | @property (nonatomic, readwrite) CGFloat bounceAcceleration; 23 | @property (nonatomic, readwrite) CGFloat minimumDisplacementToDrag; 24 | 25 | -(void)cancelAnimations; 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Headers/CorePlot.h: -------------------------------------------------------------------------------- 1 | #import "TargetConditionals.h" 2 | 3 | #if TARGET_OS_SIMULATOR || TARGET_OS_IPHONE 4 | 5 | #import 6 | #import 7 | 8 | #else 9 | 10 | #import 11 | 12 | #import 13 | #endif 14 | 15 | #import 16 | #import 17 | #import 18 | #import 19 | #import 20 | #import 21 | #import 22 | #import 23 | #import 24 | #import 25 | #import 26 | #import 27 | #import 28 | #import 29 | #import 30 | #import 31 | #import 32 | #import 33 | #import 34 | #import 35 | #import 36 | #import 37 | #import 38 | #import 39 | #import 40 | #import 41 | #import 42 | #import 43 | #import 44 | #import 45 | #import 46 | #import 47 | #import 48 | #import 49 | #import 50 | #import 51 | #import 52 | #import 53 | #import 54 | #import 55 | #import 56 | #import 57 | #import 58 | #import 59 | #import 60 | #import 61 | #import 62 | #import 63 | #import 64 | #import 65 | #import 66 | #import 67 | #import 68 | #import 69 | #import 70 | #import 71 | #import 72 | #import 73 | #import 74 | #import 75 | #import 76 | #import 77 | #import 78 | #import 79 | #import 80 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module CorePlot { 2 | umbrella header "CorePlot.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/CPTAxisLabelGroup.h: -------------------------------------------------------------------------------- 1 | #import "CPTLayer.h" 2 | 3 | @interface CPTAxisLabelGroup : CPTLayer 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/CPTGridLineGroup.h: -------------------------------------------------------------------------------- 1 | #import "CPTLayer.h" 2 | 3 | @class CPTPlotArea; 4 | 5 | @interface CPTGridLineGroup : CPTLayer 6 | 7 | @property (nonatomic, readwrite, cpt_weak_property, nullable) CPTPlotArea *plotArea; 8 | @property (nonatomic, readwrite) BOOL major; 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/CPTGridLines.h: -------------------------------------------------------------------------------- 1 | #import "CPTLayer.h" 2 | 3 | @class CPTAxis; 4 | 5 | @interface CPTGridLines : CPTLayer 6 | 7 | @property (nonatomic, readwrite, cpt_weak_property, nullable) CPTAxis *axis; 8 | @property (nonatomic, readwrite) BOOL major; 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/CPTPlotGroup.h: -------------------------------------------------------------------------------- 1 | #import "CPTLayer.h" 2 | 3 | @class CPTPlot; 4 | 5 | @interface CPTPlotGroup : CPTLayer 6 | 7 | /// @name Adding and Removing Plots 8 | /// @{ 9 | -(void)addPlot:(nonnull CPTPlot *)plot; 10 | -(void)removePlot:(nullable CPTPlot *)plot; 11 | -(void)insertPlot:(nonnull CPTPlot *)plot atIndex:(NSUInteger)idx; 12 | /// @} 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/NSCoderExtensions.h: -------------------------------------------------------------------------------- 1 | /** @category NSCoder(CPTExtensions) 2 | * @brief Core Plot extensions to NSCoder. 3 | **/ 4 | @interface NSCoder(CPTExtensions) 5 | 6 | /// @name Encoding Data 7 | /// @{ 8 | -(void)encodeCGFloat:(CGFloat)number forKey:(nonnull NSString *)key; 9 | -(void)encodeCPTPoint:(CGPoint)point forKey:(nonnull NSString *)key; 10 | -(void)encodeCPTSize:(CGSize)size forKey:(nonnull NSString *)key; 11 | -(void)encodeCPTRect:(CGRect)rect forKey:(nonnull NSString *)key; 12 | 13 | -(void)encodeCGColorSpace:(nullable CGColorSpaceRef)colorSpace forKey:(nonnull NSString *)key; 14 | -(void)encodeCGPath:(nullable CGPathRef)path forKey:(nonnull NSString *)key; 15 | -(void)encodeCGImage:(nullable CGImageRef)image forKey:(nonnull NSString *)key; 16 | 17 | -(void)encodeDecimal:(NSDecimal)number forKey:(nonnull NSString *)key; 18 | /// @} 19 | 20 | /// @name Decoding Data 21 | /// @{ 22 | -(CGFloat)decodeCGFloatForKey:(nonnull NSString *)key; 23 | -(CGPoint)decodeCPTPointForKey:(nonnull NSString *)key; 24 | -(CGSize)decodeCPTSizeForKey:(nonnull NSString *)key; 25 | -(CGRect)decodeCPTRectForKey:(nonnull NSString *)key; 26 | 27 | -(nullable CGColorSpaceRef)newCGColorSpaceDecodeForKey:(nonnull NSString *)key; 28 | -(nullable CGPathRef)newCGPathDecodeForKey:(nonnull NSString *)key; 29 | -(nullable CGImageRef)newCGImageDecodeForKey:(nonnull NSString *)key; 30 | 31 | -(NSDecimal)decodeDecimalForKey:(nonnull NSString *)key; 32 | /// @} 33 | 34 | @end 35 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/NSDecimalNumberExtensions.h: -------------------------------------------------------------------------------- 1 | /** @category NSDecimalNumber(CPTExtensions) 2 | * @brief Core Plot extensions to NSDecimalNumber. 3 | **/ 4 | @interface NSDecimalNumber(CPTExtensions) 5 | 6 | -(nonnull NSDecimalNumber *)decimalNumber; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/NSNumberExtensions.h: -------------------------------------------------------------------------------- 1 | /** @category NSNumber(CPTExtensions) 2 | * @brief Core Plot extensions to NSNumber. 3 | **/ 4 | @interface NSNumber(CPTExtensions) 5 | 6 | +(nonnull instancetype)numberWithCGFloat:(CGFloat)number; 7 | 8 | -(CGFloat)cgFloatValue; 9 | -(nonnull instancetype)initWithCGFloat:(CGFloat)number; 10 | 11 | -(nonnull NSDecimalNumber *)decimalNumber; 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/_CPTConstraintsFixed.h: -------------------------------------------------------------------------------- 1 | #import "CPTConstraints.h" 2 | 3 | @interface _CPTConstraintsFixed : CPTConstraints 4 | 5 | /// @name Initialization 6 | /// @{ 7 | -(nonnull instancetype)initWithLowerOffset:(CGFloat)newOffset NS_DESIGNATED_INITIALIZER; 8 | -(nonnull instancetype)initWithUpperOffset:(CGFloat)newOffset NS_DESIGNATED_INITIALIZER; 9 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)decoder NS_DESIGNATED_INITIALIZER; 10 | /// @} 11 | 12 | /// @name Comparison 13 | /// @{ 14 | -(BOOL)isEqualToConstraint:(nullable CPTConstraints *)otherConstraint; 15 | /// @} 16 | 17 | /// @name Position 18 | /// @{ 19 | -(CGFloat)positionForLowerBound:(CGFloat)lowerBound upperBound:(CGFloat)upperBound; 20 | /// @} 21 | 22 | @end 23 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/_CPTConstraintsRelative.h: -------------------------------------------------------------------------------- 1 | #import "CPTConstraints.h" 2 | 3 | @interface _CPTConstraintsRelative : CPTConstraints 4 | 5 | /// @name Initialization 6 | /// @{ 7 | -(nonnull instancetype)initWithRelativeOffset:(CGFloat)newOffset NS_DESIGNATED_INITIALIZER; 8 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)decoder NS_DESIGNATED_INITIALIZER; 9 | /// @} 10 | 11 | /// @name Comparison 12 | /// @{ 13 | -(BOOL)isEqualToConstraint:(nullable CPTConstraints *)otherConstraint; 14 | /// @} 15 | 16 | /// @name Position 17 | /// @{ 18 | -(CGFloat)positionForLowerBound:(CGFloat)lowerBound upperBound:(CGFloat)upperBound; 19 | /// @} 20 | 21 | @end 22 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/_CPTDarkGradientTheme.h: -------------------------------------------------------------------------------- 1 | #import "_CPTXYTheme.h" 2 | 3 | @interface _CPTDarkGradientTheme : _CPTXYTheme 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/_CPTFillColor.h: -------------------------------------------------------------------------------- 1 | #import "CPTFill.h" 2 | 3 | @interface _CPTFillColor : CPTFill 4 | 5 | /// @name Initialization 6 | /// @{ 7 | -(nonnull instancetype)initWithColor:(nonnull CPTColor *)aColor NS_DESIGNATED_INITIALIZER; 8 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)coder NS_DESIGNATED_INITIALIZER; 9 | /// @} 10 | 11 | /// @name Drawing 12 | /// @{ 13 | -(void)fillRect:(CGRect)rect inContext:(nonnull CGContextRef)context; 14 | -(void)fillPathInContext:(nonnull CGContextRef)context; 15 | /// @} 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/_CPTFillGradient.h: -------------------------------------------------------------------------------- 1 | #import "CPTFill.h" 2 | 3 | @class CPTGradient; 4 | 5 | @interface _CPTFillGradient : CPTFill 6 | 7 | /// @name Initialization 8 | /// @{ 9 | -(nonnull instancetype)initWithGradient:(nonnull CPTGradient *)aGradient NS_DESIGNATED_INITIALIZER; 10 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)coder NS_DESIGNATED_INITIALIZER; 11 | /// @} 12 | 13 | /// @name Drawing 14 | /// @{ 15 | -(void)fillRect:(CGRect)rect inContext:(nonnull CGContextRef)context; 16 | -(void)fillPathInContext:(nonnull CGContextRef)context; 17 | /// @} 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/_CPTFillImage.h: -------------------------------------------------------------------------------- 1 | #import "CPTFill.h" 2 | 3 | @class CPTImage; 4 | 5 | @interface _CPTFillImage : CPTFill 6 | 7 | /// @name Initialization 8 | /// @{ 9 | -(nonnull instancetype)initWithImage:(nonnull CPTImage *)anImage NS_DESIGNATED_INITIALIZER; 10 | -(nullable instancetype)initWithCoder:(nonnull NSCoder *)coder NS_DESIGNATED_INITIALIZER; 11 | /// @} 12 | 13 | /// @name Drawing 14 | /// @{ 15 | -(void)fillRect:(CGRect)rect inContext:(nonnull CGContextRef)context; 16 | -(void)fillPathInContext:(nonnull CGContextRef)context; 17 | /// @} 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/_CPTPlainBlackTheme.h: -------------------------------------------------------------------------------- 1 | #import "_CPTXYTheme.h" 2 | 3 | @interface _CPTPlainBlackTheme : _CPTXYTheme 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/_CPTPlainWhiteTheme.h: -------------------------------------------------------------------------------- 1 | #import "_CPTXYTheme.h" 2 | 3 | @interface _CPTPlainWhiteTheme : _CPTXYTheme 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/_CPTSlateTheme.h: -------------------------------------------------------------------------------- 1 | #import "_CPTXYTheme.h" 2 | 3 | @interface _CPTSlateTheme : _CPTXYTheme 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/_CPTStocksTheme.h: -------------------------------------------------------------------------------- 1 | #import "_CPTXYTheme.h" 2 | 3 | @interface _CPTStocksTheme : _CPTXYTheme 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/PrivateHeaders/_CPTXYTheme.h: -------------------------------------------------------------------------------- 1 | #import "CPTTheme.h" 2 | 3 | @interface _CPTXYTheme : CPTTheme 4 | 5 | @end 6 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 18G2022 7 | CFBundleDevelopmentRegion 8 | English 9 | CFBundleExecutable 10 | CorePlot 11 | CFBundleIdentifier 12 | com.CorePlot.CorePlot 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | CorePlot 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleSignature 20 | ???? 21 | CFBundleSupportedPlatforms 22 | 23 | MacOSX 24 | 25 | CFBundleVersion 26 | 2.3 27 | DTCompiler 28 | com.apple.compilers.llvm.clang.1_0 29 | DTPlatformBuild 30 | 11C29 31 | DTPlatformVersion 32 | GM 33 | DTSDKBuild 34 | 19B90 35 | DTSDKName 36 | macosx10.15 37 | DTXcode 38 | 1130 39 | DTXcodeBuild 40 | 11C29 41 | LSMinimumSystemVersion 42 | 10.8 43 | 44 | 45 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Resources/License.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020, Drew McCormack, Brad Larson, Eric Skroch, Barry Wark, Dirkjan Krijnders, Rick Maddy, Vijay Kalusani, Caleb Cannon, Jeff Buck, Thomas Elstner, Jeroen Leenarts, Craig Hockenberry, Hartwig Wiesmann, Koen van der Drift, Nino Ag, Mike Lischke, Trevor Harmon, Travis Fischer, Graham Mueller, Rafał Wójcik, Mike Rossetti, Michael Merickel, Lane Roathe, Ingmar Stein, Sean Holbert, Victor Martin Garcia, Jérôme Morissard, Demitri Muna, Tim Monzures, Kirill Yakimovich, Tom Izaks, Pascal Freiburghaus, Fred Potter, and Aurélien Hugelé. 2 | 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 6 | 7 | Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 8 | 9 | Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 10 | 11 | Neither the name of the Core Plot Project nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 12 | 13 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 14 | -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Resources/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/A/Resources/en.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /HWMonitorSMC/ExternalFrameworks/CorePlot.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /HWMonitorSMC/HWMonitorSMC.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /HWMonitorSMC/HWMonitorSensors/HWTreeNode.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HWTreeNode.swift 3 | // HWMonitorSMC 4 | // 5 | // Created by vector sigma on 25/02/18. 6 | // Copyright © 2018 HWSensor. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | public class HWSensorData: NSObject { 12 | var group : String 13 | var sensor : HWMonitorSensor? 14 | var isLeaf : Bool = false 15 | required init(group: String, sensor: HWMonitorSensor?, isLeaf: Bool) { 16 | self.group = group 17 | self.sensor = sensor 18 | self.isLeaf = isLeaf 19 | super.init() 20 | } 21 | } 22 | 23 | public class HWTreeNode: NSTreeNode { 24 | internal var ro: Any? 25 | 26 | override public var representedObject: Any? { 27 | get { 28 | return self.ro 29 | } set { 30 | self.ro = newValue 31 | } 32 | } 33 | 34 | var sensorData: HWSensorData? { 35 | get { 36 | return (self.representedObject as! HWSensorData) 37 | } set { 38 | self.representedObject = newValue 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /HWMonitorSMC/HWMonitorSensors/SMART/IOBatteryStatus.h: -------------------------------------------------------------------------------- 1 | // 2 | // IOBatteryStatus.h 3 | // HWSensors 4 | // 5 | // Created by Navi on 04.01.13. 6 | // 7 | // 8 | 9 | #import 10 | 11 | @interface IOBatteryStatus : NSObject 12 | 13 | + (BOOL)keyboardAvailable; 14 | + (BOOL)trackpadAvailable; 15 | + (BOOL)mouseAvailable; 16 | 17 | + (NSString *)getKeyboardName; 18 | + (NSString *)getTrackpadName; 19 | + (NSString *)getMouseName; 20 | 21 | + (NSInteger )getKeyboardBatteryLevel; 22 | + (NSInteger )getTrackpadBatteryLevel; 23 | + (NSInteger )getMouseBatteryLevel; 24 | 25 | + (NSDictionary *)getIOPMPowerSource; 26 | + (int)getBatteryVoltageFrom:(NSDictionary *)IOPMPowerSource; 27 | + (int)getBatteryAmperageFrom:(NSDictionary *)IOPMPowerSource; 28 | 29 | + (NSDictionary *)getAllBatteriesLevel; 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /HWMonitorSMC/HWMonitorSensors/SMC_Keys.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SMC_Keys.swift 3 | // HWMonitorSMC2 4 | // 5 | // Created by Vector Sigma on 09/11/2018. 6 | // Copyright © 2018 vector sigma. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /* Simple rule to follow 12 | 13 | SMC_Aaa_Bbb, where: 14 | 15 | SMC stand for SMC key 16 | Aaa stand for the hardware involved (e.g. DIMM for memory DIMM on the Main Logic Board) 17 | BBB(...) stand for the type (linke TEMP for temperature, FREQ for frequency, VOLT for voltage and so on) 18 | 19 | An additional suffix like _F (i.e. SMC_Aaa_Bbb_F) to let understand this is a fake key 20 | that doesn't exist in the Apple World... maybe added by a third party driver. 21 | */ 22 | 23 | // CPU 24 | let SMC_DIMM_TEMP = "Tm%@P" 25 | let SMC_CPU_PROXIMITY_TEMP = "TC0P" 26 | let SMC_CPU_PACKAGE_CORE_WATT = "PCPC" 27 | let SMC_CPU_PACKAGE_TOTAL_WATT = "PCPT" 28 | let SMC_CPU_HEATSINK_TEMP = "Th0H" 29 | let SMC_CPU_VOLT = "VC0C" 30 | let SMC_CPU_VRM_VOLT = "VS0C" 31 | let SMC_CPU_PACKAGE_MULTI_F = "MPkC" 32 | let SMC_CPU_CORE_MULTI_F = "MC%@C" 33 | let SMC_CPU_CORE_TEMP = "TC%@C" 34 | let SMC_CPU_CORE_TEMP_NEW = "TC%@c" 35 | let SMC_CPU_CORE_DIODE_TEMP = "TC%@D" 36 | let SMC_CPU_CORE_FREQ_F = "FRC%@" 37 | 38 | // GPU 39 | let SMC_GPU_FREQ_F = "CG%@C" 40 | let SMC_GPU_SHADER_FREQ_F = "CG%@S" 41 | let SMC_GPU_MEMORY_FREQ_F = "CG%@M" 42 | let SMC_GPU_VOLT = "VC%@G" 43 | let SMC_GPU_BOARD_TEMP = "TG%@H" 44 | let SMC_GPU_PROXIMITY_TEMP = "TG%@P" 45 | let SMC_GPU_DIE_TEMP = "TG%@D" 46 | 47 | // IGPU 48 | let SMC_IGPU_PACKAGE_WATT = "PCPG" 49 | 50 | // MLB 51 | let SMC_NORTHBRIDGE_TEMP = "TN0P" 52 | let SMC_PRAM_BATTERY_VOLT = "VBAT" 53 | let SMC_BUS_12V_VOLT = "VP0R" 54 | let SMC_BUS_5V_VOLT = "Vp1C" 55 | let SMC_BUS_12VDIFF_VOLT = "Vp0C" 56 | let SMC_BUS_5VDIFF_VOLT = "Vp2C" 57 | let SMC_BUS_3_3VCC_VOLT = "Vp3C" 58 | let SMC_BUS_3_3VSB_VOLT = "Vp4C" 59 | let SMC_BUS_3_3AVCC_VOLT = "Vp5C" 60 | let SMC_AMBIENT_TEMP = "TA0P" 61 | 62 | // Fans 63 | let SMC_FAN_NUM_INT = "FNum" 64 | let SMC_FAN_MANUAL = "FS! " 65 | let SMC_FAN_MANUAL_NEW = "F%@Md" 66 | let SMC_FAN_ID_STR = "F%@ID" 67 | let SMC_FAN_CURR_RPM = "F%@Ac" 68 | let SMC_FAN_MIN_RPM = "F%@Mn" 69 | let SMC_FAN_MAX_RPM = "F%@Mx" 70 | let SMC_FAN_CTRL = "F%@Tg" 71 | 72 | // Laptop's battery 73 | let SMC_BATT0_VOLT = "B0AV" 74 | let SMC_BATT0_AMP = "B0AC" 75 | -------------------------------------------------------------------------------- /HWMonitorSMC/HWMonitorSensors/SystemKit/LPCB.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LPCB.swift 3 | // HWMonitorSMC2 4 | // 5 | // Created by vector sigma on 16/05/18. 6 | // Copyright © 2018 vector sigma. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import IOKit 11 | 12 | public struct LPCB { 13 | 14 | public func getLPCBInfo() -> String { 15 | var log : String = "" 16 | let LPCBcode = Data([0x00, 0x01, 0x06, 0x00]) 17 | 18 | if let info = PCIControllers.getPCIControllersInfo(with: LPCBcode) { 19 | if AppSd.superIOChipName != nil { 20 | log += "\tChip Name:\t\t\(AppSd.superIOChipName!)\n" 21 | } 22 | if let IOName = getStringFrom(info.object(forKey: "IOName")) { 23 | log += "\tIOName:\t\t\t\(IOName)\n" 24 | } 25 | if let name = getStringFrom(info.object(forKey: "name")) { 26 | /* 27 | user can have this injected has a string instead of raw data, 28 | so when is data.. it print bytes. Anyway is equal to the IOName above 29 | */ 30 | log += "\tname:\t\t\t\(name)\n" 31 | } 32 | if let did = getStringFrom(info.object(forKey: "device-id")) { 33 | log += "\tdevice-id:\t\t\t\(did)\n" 34 | } 35 | if let vid = getStringFrom(info.object(forKey: "vendor-id")) { 36 | log += "\tvendor-id:\t\t\t\(vid)\n" 37 | } 38 | if let rid = getStringFrom(info.object(forKey: "revision-id")) { 39 | log += "\trevision-id:\t\t\(rid)\n" 40 | } 41 | if let ssid = getStringFrom(info.object(forKey: "subsystem-id")) { 42 | log += "\tsubsystem-id:\t\t\(ssid)\n" 43 | } 44 | if let ssvid = getStringFrom(info.object(forKey: "subsystem-vendor-id")) { 45 | log += "\tsubsystem-vendor-id:\t\(ssvid)\n" 46 | } 47 | } 48 | return log 49 | } 50 | 51 | fileprivate func getStringFrom(_ raw: Any?) -> String? { 52 | var value : String? = nil 53 | if (raw != nil) { 54 | if raw is NSString { 55 | value = (raw as! String) 56 | } else if raw is NSData { 57 | let data : Data = (raw as! Data) 58 | value = "\(data.hexadecimal())" 59 | } else if raw is NSNumber { 60 | value = "\((raw as! NSNumber).intValue)" 61 | } 62 | } 63 | return value 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /HWMonitorSMC/HWMonitorSensors/SystemKit/PCI.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PCI.swift 3 | // HWMonitorSMC2 4 | // 5 | // Created by vector sigma on 20/05/18. 6 | // Copyright © 2018 vector sigma. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import IOKit 11 | 12 | public struct PCIControllers { 13 | 14 | public init() { } 15 | 16 | /// - Returns: The PCI info dictionary for the given class code. 17 | public static func getPCIControllersInfo(with classcode: Data) -> NSDictionary? { 18 | var serviceObject : io_object_t 19 | var iter : io_iterator_t = 0 20 | let matching = IOServiceMatching("IOPCIDevice") 21 | let err = IOServiceGetMatchingServices(kIOMasterPortDefault, 22 | matching, 23 | &iter) 24 | if err == KERN_SUCCESS && iter != 0 { 25 | if KERN_SUCCESS == err { 26 | repeat { 27 | serviceObject = IOIteratorNext(iter) 28 | let opt : IOOptionBits = IOOptionBits(kIORegistryIterateParents | kIORegistryIterateRecursively) 29 | var serviceDictionary : Unmanaged? 30 | if IORegistryEntryCreateCFProperties(serviceObject, &serviceDictionary, kCFAllocatorDefault, opt) != kIOReturnSuccess { 31 | IOObjectRelease(serviceObject) 32 | continue 33 | } 34 | if let info : NSDictionary = serviceDictionary?.takeRetainedValue() { 35 | if (info.object(forKey: "class-code") != nil) { 36 | if let cc : Data = info.object(forKey: "class-code") as? Data { 37 | if cc == classcode { 38 | IOObjectRelease(serviceObject) 39 | IOObjectRelease(iter) 40 | return info 41 | } 42 | } 43 | } 44 | } 45 | IOObjectRelease(serviceObject) 46 | } while serviceObject != 0 47 | } 48 | IOObjectRelease(iter) 49 | } 50 | return nil 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /HWMonitorSMC/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(MARKETING_VERSION) 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | LSApplicationCategoryType 24 | public.app-category.utilities 25 | LSMinimumSystemVersion 26 | $(MACOSX_DEPLOYMENT_TARGET) 27 | LSUIElement 28 | 29 | NSHumanReadableCopyright 30 | Copyright © 2011-2018 Slice, vector sigma, mozo and Navi. All rights reserved. 31 | NSMainStoryboardFile 32 | Main 33 | NSPrincipalClass 34 | NSApplication 35 | 36 | 37 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/1024.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/128.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/16.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/256-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/256-1.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/256.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/32-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/32-1.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/32.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/512-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/512-1.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/512.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/64.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "32.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "32-1.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "64.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "256.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "256-1.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "512.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "512-1.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "1024.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Gadget/GadgetVC.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GadgetVC.swift 3 | // HWMonitorSMC2 4 | // 5 | // Created by Vector Sigma on 30/10/2018. 6 | // Copyright © 2018 vector sigma. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | class GadgetView: NSView { 12 | override func menu(for event: NSEvent) -> NSMenu? { 13 | let menu = NSMenu(title: "GadgetView") 14 | menu.addItem(withTitle: "❌", action: #selector(self.exit), keyEquivalent: "") 15 | return menu 16 | } 17 | 18 | @objc func exit() { 19 | AppSd.statusItemLen = 0 20 | AppSd.gadgetWC?.window?.close() 21 | AppSd.gadgetWC = nil 22 | UDs.set(false, forKey: kShowGadget) 23 | } 24 | } 25 | 26 | class GadgetVC: NSViewController { 27 | @IBOutlet var statusField : GadgetField! 28 | 29 | override func viewDidLoad() { 30 | super.viewDidLoad() 31 | self.statusField.stringValue = "" 32 | 33 | 34 | } 35 | 36 | override func viewDidAppear() { 37 | super.viewDidAppear() 38 | if (UDs.object(forKey: kShowGadget) == nil) { 39 | /* 40 | this is the first time user use the gadget so 41 | make the window visible and centered 42 | */ 43 | if let win = self.view.window { 44 | let frame = win.frame 45 | win.setFrame(NSRect(x: frame.origin.x, 46 | y: frame.origin.y, 47 | width: 740, 48 | height: 200), 49 | display: true) 50 | win.center() 51 | } 52 | } 53 | 54 | UDs.set(true, forKey: kShowGadget) 55 | self.statusField.autoHeight() 56 | } 57 | } 58 | 59 | class GadgetField: NSTextField { 60 | func autoHeight() { 61 | let h : CGFloat = self.window?.frame.height ?? 17 62 | let fs : CGFloat = (13 * h) / 17 63 | self.font = NSFont.systemFont(ofSize: fs) 64 | } 65 | override func viewDidEndLiveResize() { 66 | self.autoHeight() 67 | } 68 | 69 | override var intrinsicContentSize:NSSize { 70 | let h : CGFloat = self.window?.frame.height ?? 17 71 | return NSMakeSize(-1, h) 72 | } 73 | } 74 | 75 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Gadget/GadgetWC.swift: -------------------------------------------------------------------------------- 1 | // 2 | // GadgetWC.swift 3 | // HWMonitorSMC2 4 | // 5 | // Created by Vector Sigma on 30/10/2018. 6 | // Copyright © 2018 vector sigma. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | class GadgetWC: NSWindowController, NSWindowDelegate { 12 | 13 | override func windowDidLoad() { 14 | super.windowDidLoad() 15 | self.window?.appearance = getAppearance() 16 | self.window?.isMovable = true 17 | self.window?.isMovableByWindowBackground = true 18 | self.window?.level = .statusBar 19 | self.window?.collectionBehavior = .canJoinAllSpaces 20 | self.window?.contentMaxSize = NSSize(width: 5000, height: 400) 21 | self.window?.backgroundColor = NSColor.clear 22 | } 23 | 24 | class func loadFromNib() -> GadgetWC { 25 | let wc = NSStoryboard(name: "Gadget", 26 | bundle: nil).instantiateController(withIdentifier: "Gadget") as! GadgetWC 27 | 28 | return wc 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/HWScrollView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HWScrollView.swift 3 | // HWMonitorSMC 4 | // 5 | // Created by vector sigma on 05/03/18. 6 | // Copyright © 2018 HWSensor. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | class HWScrollView: NSScrollView { 12 | private var trackingArea : NSTrackingArea? 13 | 14 | override func updateTrackingAreas() { 15 | super.updateTrackingAreas() 16 | if (self.trackingArea != nil) { 17 | self.removeTrackingArea(self.trackingArea!) 18 | } 19 | self.trackingArea = NSTrackingArea(rect: self.bounds, 20 | options: [.mouseEnteredAndExited, .activeAlways], 21 | owner: self, userInfo: nil) 22 | 23 | self.addTrackingArea(self.trackingArea!) 24 | } 25 | 26 | override func mouseExited(with event: NSEvent) { 27 | self.autohidesScrollers = false 28 | self.hasVerticalScroller = false 29 | } 30 | 31 | override func mouseEntered(with event: NSEvent) { 32 | if AppSd.hideVerticalScroller { 33 | self.autohidesScrollers = false 34 | self.hasVerticalScroller = false 35 | } else { 36 | self.autohidesScrollers = true 37 | self.hasVerticalScroller = true 38 | } 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/HWTableRowView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HWTableRowView.swift 3 | // HWMonitorSMC 4 | // 5 | // Created by vector sigma on 03/03/18. 6 | // Copyright © 2018 HWSensor. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | class HWTableRowView: NSTableRowView { 12 | override init(frame frameRect: NSRect) { 13 | super.init(frame: frameRect) 14 | self.wantsLayer = true 15 | self.isEmphasized = true 16 | } 17 | 18 | required init?(coder decoder: NSCoder) { 19 | fatalError("init(coder:) has not been implemented") 20 | } 21 | 22 | // cause column 0 to be invisible when the popover is detached in older OSes 23 | override var interiorBackgroundStyle: NSView.BackgroundStyle { 24 | if #available(OSX 10.14, *) { 25 | return super.interiorBackgroundStyle 26 | } else { 27 | if getAppearance().name == .vibrantDark { 28 | return isSelected ? .light : .dark 29 | } else { 30 | return self.isSelected ? .dark : .light 31 | } 32 | } 33 | } 34 | 35 | override func drawSelection(in dirtyRect: NSRect) { 36 | if self.selectionHighlightStyle != .none { 37 | let isDark : Bool = getAppearance().name == NSAppearance.Name.vibrantDark 38 | let roundedRect = NSInsetRect(self.bounds, 1, 1.7) 39 | if isDark { 40 | NSColor.green.setStroke() 41 | NSColor.darkGray.setFill() 42 | } else { 43 | NSColor.gray.setStroke() 44 | NSColor.gray.setFill() 45 | } 46 | 47 | let selectionPath = NSBezierPath.init(roundedRect: roundedRect, xRadius: 2, yRadius: 2) 48 | selectionPath.fill() 49 | selectionPath.stroke() 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/HWWindow.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HWWindow.swift 3 | // HWMonitorSMC 4 | // 5 | // Created by vector sigma on 25/02/18. 6 | // Copyright © 2018 HWSensor. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | class HWWindow: NSWindow { 12 | override var canBecomeKey: Bool { 13 | return true 14 | } 15 | 16 | override var canBecomeMain: Bool { 17 | return true 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/HWWindowController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PopoverWindowController.swift 3 | // HWMonitorSMC 4 | // 5 | // Created by vector sigma on 24/02/18. 6 | // Copyright © 2018 HWSensor. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | class HWWindowController: NSWindowController, NSWindowDelegate { 12 | override func windowDidLoad() { 13 | super.windowDidLoad() 14 | self.window?.appearance = getAppearance() 15 | self.window?.titlebarAppearsTransparent = false 16 | } 17 | 18 | class func loadFromNib() -> HWWindowController { 19 | let wc = (NSStoryboard(name: "Popover", 20 | bundle: nil).instantiateController(withIdentifier:"Popover") as! HWWindowController) 21 | return wc 22 | } 23 | 24 | func windowWillClose(_ notification: Notification) { 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/CPU.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/CPU.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/DarkAppearance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/DarkAppearance.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/GPU.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/GPU.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/GPU_fan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/GPU_fan.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/GPU_freq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/GPU_freq.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/GPU_temp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/GPU_temp.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/Light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/Light.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/LightAppearance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/LightAppearance.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/Motherboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/Motherboard.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/USB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/USB.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/checkbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/checkbox.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/cpu_freq_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/cpu_freq_small.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/cpu_temp_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/cpu_temp_small.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/downArrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/downArrow.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/fan_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/fan_small.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/freq_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/freq_small.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/freq_small_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/freq_small_on.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/gadget.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/gadget.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/hd_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/hd_small.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/modern-battery-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/modern-battery-icon.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/multiply_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/multiply_small.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/pin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/pin.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/ram_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/ram_small.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/rightArrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/rightArrow.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/ssd_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/ssd_small.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/temp_alt_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/temp_alt_small.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/temperature_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/temperature_small.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Images/voltage_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/Images/voltage_small.png -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/License/License.swift: -------------------------------------------------------------------------------- 1 | // 2 | // License.swift 3 | // HWMonitorSMC2 4 | // 5 | // Created by Vector Sigma on 15/11/2018. 6 | // Copyright © 2018 vector sigma. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | class LicenseWC: NSWindowController, NSWindowDelegate { 12 | override func windowDidLoad() { 13 | super.windowDidLoad() 14 | self.window?.appearance = getAppearance() 15 | } 16 | } 17 | 18 | class LicenseVC: NSViewController { 19 | @IBAction func acceptPressed(_ sender: NSButton) { 20 | UDs.set(true, forKey: kLinceseAccepted) 21 | AppSd.licensed = true 22 | self.view.window?.close() 23 | } 24 | 25 | @IBAction func refusePressed(_ sender: NSButton) { 26 | NSApp.terminate(sender) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/License/de.lproj/License.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "Accept"; ObjectID = "RY8-Uj-YBi"; */ 3 | "RY8-Uj-YBi.title" = "Akzeptieren"; 4 | 5 | /* Class = "NSButtonCell"; title = "Close"; ObjectID = "UXf-Rb-H50"; */ 6 | "UXf-Rb-H50.title" = "Schließe"; 7 | 8 | /* Class = "NSWindow"; title = "License"; ObjectID = "y8G-eD-Laz"; */ 9 | "y8G-eD-Laz.title" = "Lizenz"; 10 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/License/en.lproj/License.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "Accept"; ObjectID = "RY8-Uj-YBi"; */ 3 | "RY8-Uj-YBi.title" = "Accept"; 4 | 5 | /* Class = "NSButtonCell"; title = "Close"; ObjectID = "UXf-Rb-H50"; */ 6 | "UXf-Rb-H50.title" = "Close"; 7 | 8 | /* Class = "NSWindow"; title = "License"; ObjectID = "y8G-eD-Laz"; */ 9 | "y8G-eD-Laz.title" = "License"; 10 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/License/fi.lproj/License.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "Accept"; ObjectID = "RY8-Uj-YBi"; */ 3 | "RY8-Uj-YBi.title" = "Hyväksy"; 4 | 5 | /* Class = "NSButtonCell"; title = "Close"; ObjectID = "UXf-Rb-H50"; */ 6 | "UXf-Rb-H50.title" = "Sulje"; 7 | 8 | /* Class = "NSWindow"; title = "License"; ObjectID = "y8G-eD-Laz"; */ 9 | "y8G-eD-Laz.title" = "Lisenssi"; 10 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/License/it.lproj/License.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "Accept"; ObjectID = "RY8-Uj-YBi"; */ 3 | "RY8-Uj-YBi.title" = "Accetto"; 4 | 5 | /* Class = "NSButtonCell"; title = "Close"; ObjectID = "UXf-Rb-H50"; */ 6 | "UXf-Rb-H50.title" = "Chiudi"; 7 | 8 | /* Class = "NSWindow"; title = "License"; ObjectID = "y8G-eD-Laz"; */ 9 | "y8G-eD-Laz.title" = "Licenza"; 10 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/License/ko.lproj/License.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "Accept"; ObjectID = "RY8-Uj-YBi"; */ 3 | "RY8-Uj-YBi.title" = "동의"; 4 | 5 | /* Class = "NSButtonCell"; title = "Close"; ObjectID = "UXf-Rb-H50"; */ 6 | "UXf-Rb-H50.title" = "닫기"; 7 | 8 | /* Class = "NSWindow"; title = "License"; ObjectID = "y8G-eD-Laz"; */ 9 | "y8G-eD-Laz.title" = "특허"; 10 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/License/pt-BR.lproj/License.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "Accept"; ObjectID = "RY8-Uj-YBi"; */ 3 | "RY8-Uj-YBi.title" = "Accept"; 4 | 5 | /* Class = "NSButtonCell"; title = "Close"; ObjectID = "UXf-Rb-H50"; */ 6 | "UXf-Rb-H50.title" = "Close"; 7 | 8 | /* Class = "NSWindow"; title = "License"; ObjectID = "y8G-eD-Laz"; */ 9 | "y8G-eD-Laz.title" = "License"; 10 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/License/pt-PT.lproj/License.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "Accept"; ObjectID = "RY8-Uj-YBi"; */ 3 | "RY8-Uj-YBi.title" = "Aceitar"; 4 | 5 | /* Class = "NSButtonCell"; title = "Close"; ObjectID = "UXf-Rb-H50"; */ 6 | "UXf-Rb-H50.title" = "Fechar"; 7 | 8 | /* Class = "NSWindow"; title = "License"; ObjectID = "y8G-eD-Laz"; */ 9 | "y8G-eD-Laz.title" = "Licença"; 10 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/License/ru.lproj/License.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "Accept"; ObjectID = "RY8-Uj-YBi"; */ 3 | "RY8-Uj-YBi.title" = "Принять"; 4 | 5 | /* Class = "NSButtonCell"; title = "Close"; ObjectID = "UXf-Rb-H50"; */ 6 | "UXf-Rb-H50.title" = "Закрыть"; 7 | 8 | /* Class = "NSWindow"; title = "License"; ObjectID = "y8G-eD-Laz"; */ 9 | "y8G-eD-Laz.title" = "Лицензионное соглашение"; 10 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/License/tr.lproj/License.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "Accept"; ObjectID = "RY8-Uj-YBi"; */ 3 | "RY8-Uj-YBi.title" = "Kabul et"; 4 | 5 | /* Class = "NSButtonCell"; title = "Close"; ObjectID = "UXf-Rb-H50"; */ 6 | "UXf-Rb-H50.title" = "Kapat"; 7 | 8 | /* Class = "NSWindow"; title = "License"; ObjectID = "y8G-eD-Laz"; */ 9 | "y8G-eD-Laz.title" = "Lisans"; 10 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/License/zh-Hans.lproj/License.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "Accept"; ObjectID = "RY8-Uj-YBi"; */ 3 | "RY8-Uj-YBi.title" = "接受"; 4 | 5 | /* Class = "NSButtonCell"; title = "Close"; ObjectID = "UXf-Rb-H50"; */ 6 | "UXf-Rb-H50.title" = "关"; 7 | 8 | /* Class = "NSWindow"; title = "License"; ObjectID = "y8G-eD-Laz"; */ 9 | "y8G-eD-Laz.title" = "关"; 10 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/PopoverWindowController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PopoverWindowController.swift 3 | // HWMonitorSMC 4 | // 5 | // Created by Micky1979 on 26/07/17. 6 | // Copyright © 2017 Micky1979. All rights reserved. 7 | // 8 | // https://gist.github.com/Micky1979/4743842c4ec7cb95ea5cbbdd36beedf7 9 | // 10 | 11 | import Cocoa 12 | 13 | class PopoverWindowController: NSWindowController, NSWindowDelegate { 14 | 15 | override func windowDidLoad() { 16 | super.windowDidLoad() 17 | } 18 | 19 | func setUp() { 20 | self.window?.appearance = getAppearance() 21 | self.window?.hasShadow = true 22 | self.window?.isMovableByWindowBackground = true 23 | 24 | self.window?.collectionBehavior = [.fullScreenAuxiliary, .fullScreenPrimary] 25 | self.window?.styleMask.insert([.titled, 26 | .closable, 27 | .resizable, 28 | .fullSizeContentView /*, .miniaturizable */]) 29 | 30 | self.window?.titleVisibility = .hidden // the pin button works again with this 31 | self.window?.titlebarAppearsTransparent = false 32 | } 33 | 34 | func windowDidResize(_ notification: Notification) { 35 | if let win : HWWindow = notification.object as? HWWindow { 36 | let frame = win.contentView?.bounds 37 | var width : CGFloat = (frame?.width)! 38 | var height : CGFloat = (frame?.height)! 39 | 40 | if width < AppSd.WinMinWidth { 41 | width = AppSd.WinMinWidth 42 | } 43 | 44 | if height < AppSd.WinMinHeight { 45 | height = AppSd.WinMinHeight 46 | } 47 | 48 | UDs.set(frame?.width, forKey: kPopoverWidth) 49 | UDs.set(frame?.height, forKey: kPopoverHeight) 50 | UDs.synchronize() 51 | } 52 | } 53 | 54 | func windowDidExitFullScreen(_ notification: Notification) { 55 | 56 | } 57 | 58 | func windowWillEnterFullScreen(_ notification: Notification) { 59 | } 60 | 61 | func windowWillClose(_ notification: Notification) { 62 | 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Preferences/PreferencesWC.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PreferencesWC.swift 3 | // HWMonitorSMC 4 | // 5 | // Created by vector sigma on 25/02/18. 6 | // Copyright © 2018 HWSensor. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | class PreferencesWC: NSWindowController, NSWindowDelegate { 12 | 13 | override func windowDidLoad() { 14 | super.windowDidLoad() 15 | self.window?.backgroundColor = NSColor.clear 16 | self.window?.appearance = getAppearance() 17 | } 18 | 19 | class func loadFromNib() -> PreferencesWC { 20 | let wc = NSStoryboard(name: "Preferences", 21 | bundle: nil).instantiateController(withIdentifier: "Preferences") as! PreferencesWC 22 | return wc 23 | } 24 | 25 | func windowWillClose(_ notification: Notification) { 26 | 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/Themes.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Themes.swift 3 | // HWMonitorSMC2 4 | // 5 | // Created by Vector Sigma on 21/11/2018. 6 | // Copyright © 2018 vector sigma. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | public enum Theme : String { 12 | case Default = "Default" 13 | case Classic = "Classic" 14 | case DashedH = "Dashed Horizontally" 15 | case NoGrid = "No Grid" 16 | case GridClear = "With Grid, clear background" 17 | } 18 | 19 | public struct Themes { 20 | var theme : Theme 21 | 22 | init(theme: Theme, outline: HWOulineView) { 23 | self.theme = theme 24 | let dark : Bool = getAppearance().name == .vibrantDark 25 | outline.window?.backgroundColor = .clear 26 | outline.enclosingScrollView?.borderType = NSBorderType.lineBorder 27 | outline.enclosingScrollView?.drawsBackground = false 28 | outline.enclosingScrollView?.contentView.drawsBackground = false 29 | switch self.theme { 30 | case .Default: 31 | outline.gridStyleMask = [] 32 | outline.enclosingScrollView?.borderType = NSBorderType.noBorder 33 | outline.usesAlternatingRowBackgroundColors = false 34 | outline.enclosingScrollView?.contentView.drawsBackground = false 35 | case .Classic: 36 | outline.usesAlternatingRowBackgroundColors = true 37 | outline.gridColor = (dark ? UDs.darkGridColor() : UDs.lightGridColor()) 38 | outline.gridStyleMask = [.solidVerticalGridLineMask, .dashedHorizontalGridLineMask ] 39 | case .DashedH: 40 | outline.usesAlternatingRowBackgroundColors = true 41 | outline.gridColor = (dark ? UDs.darkGridColor() : UDs.lightGridColor()) 42 | outline.gridStyleMask = [.dashedHorizontalGridLineMask] 43 | case .NoGrid: 44 | outline.usesAlternatingRowBackgroundColors = true 45 | outline.gridStyleMask = [] 46 | case .GridClear: 47 | outline.usesAlternatingRowBackgroundColors = false 48 | outline.enclosingScrollView?.borderType = NSBorderType.noBorder 49 | outline.gridColor = (dark ? UDs.darkGridColor() : UDs.lightGridColor()) 50 | outline.gridStyleMask = [.dashedHorizontalGridLineMask, .solidVerticalGridLineMask] 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // HWTest 4 | // 5 | // Created by vector sigma on 24/02/18. 6 | // Copyright © 2018 vector sigma. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | class ViewController: NSViewController { 12 | override func viewDidLoad() { 13 | super.viewDidLoad() 14 | 15 | // Do any additional setup after loading the view. 16 | } 17 | 18 | override var representedObject: Any? { 19 | didSet { 20 | // Update the view, if already loaded. 21 | } 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/de.lproj/Info.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "copy to clip board"; ObjectID = "qRX-F6-ppe"; */ 3 | "qRX-F6-ppe.title" = "in die Zwischenablage"; 4 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/de.lproj/Popover.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSWindow"; title = "HWMonitorSMC"; ObjectID = "ZhW-fR-thW"; */ 3 | "ZhW-fR-thW.title" = "HWMonitorSMC"; 4 | 5 | /* Class = "NSTextFieldCell"; title = "HWMonitorSMC"; ObjectID = "vyO-yA-2EZ"; */ 6 | "vyO-yA-2EZ.title" = "HWMonitorSMC"; 7 | 8 | 9 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/en.lproj/Info.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "copy to clip board"; ObjectID = "qRX-F6-ppe"; */ 3 | "qRX-F6-ppe.title" = "copy to clip board"; 4 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/en.lproj/Popover.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSWindow"; title = "HWMonitorSMC"; ObjectID = "ZhW-fR-thW"; */ 3 | "ZhW-fR-thW.title" = "HWMonitorSMC"; 4 | 5 | /* Class = "NSTextFieldCell"; title = "HWMonitorSMC"; ObjectID = "vyO-yA-2EZ"; */ 6 | "vyO-yA-2EZ.title" = "HWMonitorSMC"; 7 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/fi.lproj/Info.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "copy to clip board"; ObjectID = "qRX-F6-ppe"; */ 3 | "qRX-F6-ppe.title" = "kopioi leikepöydälle"; 4 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/fi.lproj/Popover.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSWindow"; title = "HWMonitorSMC"; ObjectID = "ZhW-fR-thW"; */ 3 | "ZhW-fR-thW.title" = "HWMonitorSMC"; 4 | 5 | /* Class = "NSTextFieldCell"; title = "HWMonitorSMC"; ObjectID = "vyO-yA-2EZ"; */ 6 | "vyO-yA-2EZ.title" = "HWMonitorSMC"; 7 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/it.lproj/Info.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "copy to clip board"; ObjectID = "qRX-F6-ppe"; */ 3 | "qRX-F6-ppe.title" = "copia negli appunti"; 4 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/it.lproj/Popover.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSWindow"; title = "HWMonitorSMC"; ObjectID = "ZhW-fR-thW"; */ 3 | "ZhW-fR-thW.title" = "HWMonitorSMC"; 4 | 5 | /* Class = "NSTextFieldCell"; title = "HWMonitorSMC"; ObjectID = "vyO-yA-2EZ"; */ 6 | "vyO-yA-2EZ.title" = "HWMonitorSMC"; 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/ko.lproj/Info.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "copy to clip board"; ObjectID = "qRX-F6-ppe"; */ 3 | "qRX-F6-ppe.title" = "클립보드에 복사하기"; 4 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/ko.lproj/Popover.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSWindow"; title = "HWMonitorSMC"; ObjectID = "ZhW-fR-thW"; */ 3 | "ZhW-fR-thW.title" = "HWMonitorSMC"; 4 | 5 | /* Class = "NSTextFieldCell"; title = "HWMonitorSMC"; ObjectID = "vyO-yA-2EZ"; */ 6 | "vyO-yA-2EZ.title" = "HWMonitorSMC"; 7 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/pt-BR.lproj/Info.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "copy to clip board"; ObjectID = "qRX-F6-ppe"; */ 3 | "qRX-F6-ppe.title" = "Copiar para Área de Transferência"; 4 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/pt-BR.lproj/Popover.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSWindow"; title = "HWMonitorSMC"; ObjectID = "ZhW-fR-thW"; */ 3 | "ZhW-fR-thW.title" = "HWMonitorSMC"; 4 | 5 | /* Class = "NSTextFieldCell"; title = "HWMonitorSMC"; ObjectID = "vyO-yA-2EZ"; */ 6 | "vyO-yA-2EZ.title" = "HWMonitorSMC"; 7 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/pt-PT.lproj/Info.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "copy to clip board"; ObjectID = "qRX-F6-ppe"; */ 3 | "qRX-F6-ppe.title" = "copy to clip board"; 4 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/pt-PT.lproj/Popover.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSWindow"; title = "HWMonitorSMC"; ObjectID = "ZhW-fR-thW"; */ 3 | "ZhW-fR-thW.title" = "HWMonitorSMC"; 4 | 5 | /* Class = "NSTextFieldCell"; title = "HWMonitorSMC"; ObjectID = "vyO-yA-2EZ"; */ 6 | "vyO-yA-2EZ.title" = "HWMonitorSMC"; 7 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/ru.lproj/Info.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "copy to clip board"; ObjectID = "qRX-F6-ppe"; */ 3 | "qRX-F6-ppe.title" = "скопировать"; 4 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/ru.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/ru.lproj/Localizable.strings -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/ru.lproj/Popover.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSWindow"; title = "HWMonitorSMC"; ObjectID = "ZhW-fR-thW"; */ 3 | "ZhW-fR-thW.title" = "HWMonitorSMC"; 4 | 5 | /* Class = "NSTextFieldCell"; title = "HWMonitorSMC"; ObjectID = "vyO-yA-2EZ"; */ 6 | "vyO-yA-2EZ.title" = "HWMonitorSMC"; 7 | 8 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/tr.lproj/Info.strings: -------------------------------------------------------------------------------- 1 | // translated by nomadturk 2 | /* Class = "NSButtonCell"; title = "copy to clip board"; ObjectID = "qRX-F6-ppe"; */ 3 | "qRX-F6-ppe.title" = "Panoya Kopyala"; 4 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/tr.lproj/Popover.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSWindow"; title = "HWMonitorSMC"; ObjectID = "ZhW-fR-thW"; */ 3 | "ZhW-fR-thW.title" = "HWMonitorSMC"; 4 | 5 | /* Class = "NSTextFieldCell"; title = "HWMonitorSMC"; ObjectID = "vyO-yA-2EZ"; */ 6 | "vyO-yA-2EZ.title" = "HWMonitorSMC"; 7 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/zh-Hans.lproj/Info.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSButtonCell"; title = "copy to clip board"; ObjectID = "qRX-F6-ppe"; */ 3 | "qRX-F6-ppe.title" = "复制到剪贴板"; 4 | -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/zh-Hans.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/HWMonitorSMC/Interface/zh-Hans.lproj/Localizable.strings -------------------------------------------------------------------------------- /HWMonitorSMC/Interface/zh-Hans.lproj/Popover.strings: -------------------------------------------------------------------------------- 1 | 2 | /* Class = "NSWindow"; title = "HWMonitorSMC"; ObjectID = "ZhW-fR-thW"; */ 3 | "ZhW-fR-thW.title" = "HWMonitorSMC"; 4 | 5 | /* Class = "NSTextFieldCell"; title = "HWMonitorSMC"; ObjectID = "vyO-yA-2EZ"; */ 6 | "vyO-yA-2EZ.title" = "HWMonitorSMC"; 7 | 8 | -------------------------------------------------------------------------------- /HWMonitorSMC/RunAtLogin.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RunAtLogin.swift 3 | // HWMonitorSMC 4 | // 5 | // Created by vector sigma on 18/03/18. 6 | // Copyright © 2018 HWSensor. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | import ServiceManagement 11 | 12 | extension AppDelegate { 13 | func setLaunchAtStartup() { 14 | let success : Bool = SMLoginItemSetEnabled(gHelperID, true) 15 | UserDefaults.standard.set(success, forKey: kRunAtLogin) 16 | UserDefaults.standard.synchronize() 17 | } 18 | 19 | func removeLaunchAtStartup() { 20 | let success : Bool = SMLoginItemSetEnabled(gHelperID, false) 21 | UserDefaults.standard.set(success ? false : true, forKey: kRunAtLogin) 22 | UserDefaults.standard.synchronize() 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /HWMonitorSMC2 Helper/HWMonitorSMC2 Helper.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /HWMonitorSMC2 Helper/HWMonitorSMC2 Helper/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // HWMonitorSMC2 Helper 4 | // 5 | // Created by vector sigma on 16/05/18. 6 | // Copyright © 2018 HWSensor. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : NSObject 12 | 13 | @end 14 | 15 | -------------------------------------------------------------------------------- /HWMonitorSMC2 Helper/HWMonitorSMC2 Helper/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // HWMonitorSMC2 Helper 4 | // 5 | // Created by vector sigma on 16/05/18. 6 | // Copyright © 2018 HWSensor. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { 18 | NSString *appID = @"org.slice.HWMonitorSMC2"; 19 | BOOL running = NO; 20 | NSString *appPath = [self HWMonitorSMC2Path]; 21 | 22 | NSArray *runnings = [[NSWorkspace sharedWorkspace] runningApplications]; 23 | for (NSRunningApplication *app in runnings) { 24 | if ([app.bundleIdentifier isEqualToString:appID] && [app.bundleURL.path isEqualToString:appPath]) { 25 | running = YES; 26 | } 27 | } 28 | 29 | if (!running) { 30 | [[NSWorkspace sharedWorkspace] launchApplication:appPath]; 31 | } 32 | [self performSelector:@selector(terminate) withObject:nil afterDelay:3]; 33 | } 34 | 35 | - (NSString *)HWMonitorSMC2Path { 36 | NSURL *myUrl = [[NSBundle mainBundle] bundleURL]; 37 | int count = 4; 38 | while (count > 0) { 39 | myUrl = myUrl.URLByDeletingLastPathComponent; 40 | count--; 41 | } 42 | return myUrl.path; 43 | } 44 | 45 | - (void)terminate { 46 | [NSApp terminate:nil]; 47 | } 48 | 49 | @end 50 | 51 | /* for when Swift will be embedded in the OS (tested) 52 | // 53 | // AppDelegate.swift 54 | // HWMonitorSMC2 Helper 55 | // 56 | // Created by vector sigma on 14/05/18. 57 | // Copyright © 2018 HWSensor. All rights reserved. 58 | // 59 | 60 | import Cocoa 61 | 62 | @NSApplicationMain 63 | class AppDelegate: NSObject, NSApplicationDelegate { 64 | let appID : String = "org.slice.HWMonitorSMC2" 65 | 66 | func applicationDidFinishLaunching(_ aNotification: Notification) { 67 | var running : Bool = false 68 | let appPath = HWMonitorSMC2Path() 69 | 70 | for app in NSWorkspace.shared.runningApplications { 71 | if app.bundleIdentifier == appID 72 | && app.bundleURL?.path == appPath { 73 | running = true 74 | break 75 | } 76 | } 77 | 78 | if !running { 79 | NSWorkspace.shared.launchApplication(appPath) 80 | } 81 | NSApp.terminate(nil) 82 | } 83 | 84 | func HWMonitorSMC2Path() -> String { 85 | var myUrl = Bundle.main.bundleURL 86 | var count: Int = 4 87 | repeat { 88 | myUrl = myUrl.deletingLastPathComponent() 89 | count -= 1 90 | } while count > 0 91 | return myUrl.path 92 | } 93 | } 94 | */ 95 | -------------------------------------------------------------------------------- /HWMonitorSMC2 Helper/HWMonitorSMC2 Helper/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "size" : "16x16", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "size" : "16x16", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "size" : "32x32", 16 | "scale" : "1x" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "size" : "32x32", 21 | "scale" : "2x" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "size" : "128x128", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "size" : "128x128", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "size" : "256x256", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "size" : "256x256", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "mac", 45 | "size" : "512x512", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "mac", 50 | "size" : "512x512", 51 | "scale" : "2x" 52 | } 53 | ], 54 | "info" : { 55 | "version" : 1, 56 | "author" : "xcode" 57 | } 58 | } -------------------------------------------------------------------------------- /HWMonitorSMC2 Helper/HWMonitorSMC2 Helper/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /HWMonitorSMC2 Helper/HWMonitorSMC2 Helper/HWMonitorSMC2_Helper.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /HWMonitorSMC2 Helper/HWMonitorSMC2 Helper/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleVersion 22 | 1 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | Copyright © 2018 HWSensor. All rights reserved. 27 | LSBackgroundOnly 28 | 29 | NSMainStoryboardFile 30 | Main 31 | NSPrincipalClass 32 | NSApplication 33 | 34 | 35 | -------------------------------------------------------------------------------- /HWMonitorSMC2 Helper/HWMonitorSMC2 Helper/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // HWMonitorSMC2 Helper 4 | // 5 | // Created by vector sigma on 16/05/18. 6 | // Copyright © 2018 HWSensor. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : NSViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /HWMonitorSMC2 Helper/HWMonitorSMC2 Helper/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // HWMonitorSMC2 Helper 4 | // 5 | // Created by vector sigma on 16/05/18. 6 | // Copyright © 2018 HWSensor. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @implementation ViewController 12 | 13 | - (void)viewDidLoad { 14 | [super viewDidLoad]; 15 | 16 | // Do any additional setup after loading the view. 17 | } 18 | 19 | 20 | - (void)setRepresentedObject:(id)representedObject { 21 | [super setRepresentedObject:representedObject]; 22 | 23 | // Update the view, if already loaded. 24 | } 25 | 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /HWMonitorSMC2 Helper/HWMonitorSMC2 Helper/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // HWMonitorSMC2 Helper 4 | // 5 | // Created by vector sigma on 16/05/18. 6 | // Copyright © 2018 HWSensor. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, const char * argv[]) { 12 | return NSApplicationMain(argc, argv); 13 | } 14 | -------------------------------------------------------------------------------- /LPC/ASRock/Nuvoton NCT6793D/README.txt: -------------------------------------------------------------------------------- 1 | The generate configuration is a mere example and must be adjusted. 2 | 3 | ABOUT FANS 4 | 5 | The LPC chip may manage more fans than connectors your motherboards may have, so for this reason, is important that your configuration will skip all unused connectors. 6 | For example, if the AUXFAN3 connector is not physically present (and the value reported is 0 rpm), then under the AUXFAN3 dictionary you must add the following Boolean key/value: 7 | 8 | skip = YES 9 | 10 | ... and the AUXFAN3 will not show up in HWMonitorSMC.app! 11 | Note: if your motherboard have some unused fan connectors, it is right instead, to create a configuration that doesn't skip them, so other users will see their fans up and running. 12 | 13 | ABOUT VOLTAGES 14 | 15 | As for the fans not all the voltages reported may be connected to a real sensor: 16 | skip = YES is your friend. 17 | 18 | The lpc chip return standard values that must be adjusted, why? 19 | Because resistors number and kinds for each motherboards vendors/model may differ. 20 | To udjust the value you have to use the multi key (as number) to multiply the value returned by default: 21 | 22 | example, VBAT returns 1.670 Volts which is just the half of what should be. So multi must be set to 2: 23 | 24 | multi = 2 25 | 26 | (2 * 1.670) = 3,340 Volts! 27 | 28 | multi is 1 by default and you should not set this key if 1 is the right value... to keep the file small. 29 | Note: multi can be a floating point number (64 bit Double). Negative numbers allowed as well. 30 | Zero is treated as 1. 31 | 32 | 33 | RENAMING SENSORS 34 | 35 | To rename a key, e.g. VIN0 to Vcore (or FAN1 to CPU Fan) you have to modify the name value: 36 | 37 | name = Vcore 38 | or 39 | name = FAN1 40 | ... an so on. 41 | 42 | If the sensor name is already a name that suite you well, then the name key must be removed to keep 43 | the file smaller as possible. 44 | 45 | 46 | HELP 47 | Programs like Aida64 (https://www.aida64.com/downloads) and HWInfo64 (https://www.hwinfo.com/download/) 48 | in Windows can be a big help in comparing values. 49 | 50 | IMPORTANT 51 | The generated plist is to let you understand how to edit the file, but before making a request please ensure to: 52 | 53 | - do not include sensors with "multi = 1" because multi is 1 per default. 54 | - do not include sensors with "skip = NO" because skip is taken into account only if "skip = YES". 55 | - do not include sensors with "name = SensorName".. if "SensorName" is already SensorName, like the following: 56 | 57 | SensorName 58 | 59 | name 60 | SensorName 61 | 62 | 63 | - do not include sensors if empty. If, for example, VBAT is ok as is, i.e with out multi or name: 64 | SensorName 65 | 66 | 67 | 68 | ... just remove the Dictionary entirely and the sensor will show up normally. 69 | 70 | Doing that will assure a clean and light database, thanks! 71 | 72 | SHARE! 73 | Once your configuration is complete and fixed, please share it at: 74 | 75 | https://github.com/CloverHackyColor/HWMonitorSMC2 76 | 77 | so that you and all the users with same motherboard as you, will have a working and truthful sesors across updates! 78 | -------------------------------------------------------------------------------- /LPC/ASUS/Nuvoton NCT6779D/P8Z77-V LX.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 3VCC 6 | 7 | multi 8 | 2 9 | name 10 | AVCC 11 | 12 | 3VSB 13 | 14 | multi 15 | 2 16 | 17 | AUXFAN0 18 | 19 | name 20 | Chassis1 21 | 22 | AUXFAN1 23 | 24 | name 25 | Chassis3 26 | 27 | AUXFAN2 28 | 29 | name 30 | Chassis4 31 | skip 32 | 33 | 34 | AVSB 35 | 36 | multi 37 | 2 38 | name 39 | +3.3 40 | 41 | CPUFAN 42 | 43 | name 44 | CPU 45 | 46 | CPUVCORE 47 | 48 | name 49 | Vcore 50 | 51 | SYSFAN 52 | 53 | name 54 | Chassis2 55 | 56 | VBAT 57 | 58 | multi 59 | 2 60 | 61 | VIN0 62 | 63 | multi 64 | 12 65 | name 66 | +12 67 | 68 | VIN1 69 | 70 | multi 71 | 5 72 | name 73 | +5 74 | 75 | VIN2 76 | 77 | skip 78 | 79 | 80 | VIN3 81 | 82 | skip 83 | 84 | 85 | VIN7 86 | 87 | skip 88 | 89 | 90 | VIN8 91 | 92 | skip 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /LPC/ASUS/Nuvoton NCT6779D/default.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 3VCC 6 | 7 | multi 8 | 2 9 | name 10 | AVCC 11 | 12 | 3VSB 13 | 14 | multi 15 | 2 16 | 17 | AUXFAN0 18 | 19 | name 20 | Chassis1 21 | 22 | AUXFAN1 23 | 24 | name 25 | Chassis3 26 | 27 | AUXFAN2 28 | 29 | name 30 | Chassis4 31 | skip 32 | 33 | 34 | AVSB 35 | 36 | multi 37 | 2 38 | name 39 | +3.3 40 | 41 | CPUFAN 42 | 43 | name 44 | CPU 45 | 46 | CPUVCORE 47 | 48 | name 49 | Vcore 50 | 51 | SYSFAN 52 | 53 | name 54 | Chassis2 55 | 56 | VBAT 57 | 58 | multi 59 | 2 60 | 61 | VIN0 62 | 63 | multi 64 | 12 65 | name 66 | +12 67 | 68 | VIN1 69 | 70 | multi 71 | 5 72 | name 73 | +5 74 | 75 | VIN2 76 | 77 | skip 78 | 79 | 80 | VIN3 81 | 82 | skip 83 | 84 | 85 | VIN7 86 | 87 | skip 88 | 89 | 90 | VIN8 91 | 92 | skip 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /LPC/ASUS/Nuvoton NCT6791D/H81M-E.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CPUFAN 6 | 7 | name 8 | CPU Fan 9 | 10 | SYSFAN 11 | 12 | name 13 | Chassis Fan 14 | 15 | AUXFAN0 16 | 17 | skip 18 | 19 | 20 | AUXFAN1 21 | 22 | skip 23 | 24 | 25 | AUXFAN2 26 | 27 | skip 28 | 29 | 30 | AUXFAN3 31 | 32 | skip 33 | 34 | 35 | 3VCC 36 | 37 | multi 38 | 2 39 | name 40 | +3V 41 | 42 | 3VSB 43 | 44 | multi 45 | 2 46 | 47 | CPUVCORE 48 | 49 | multi 50 | 2 51 | name 52 | CPU VRM 53 | 54 | VBAT 55 | 56 | multi 57 | 2 58 | 59 | VIN0 60 | 61 | multi 62 | 12 63 | name 64 | +12V 65 | 66 | VIN1 67 | 68 | multi 69 | 5 70 | name 71 | +5V 72 | 73 | VIN4 74 | 75 | name 76 | CPU VID 77 | 78 | VIN7 79 | 80 | name 81 | VCCSA 82 | 83 | VIN8 84 | 85 | name 86 | VCOREREFIN 87 | 88 | VIN2 89 | 90 | skip 91 | 92 | 93 | VIN3 94 | 95 | skip 96 | 97 | 98 | VIN5 99 | 100 | skip 101 | 102 | 103 | VIN6 104 | 105 | skip 106 | 107 | 108 | 109 | 110 | -------------------------------------------------------------------------------- /LPC/ASUS/Nuvoton NCT6791D/default.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 3VCC 6 | 7 | multi 8 | 2 9 | name 10 | +3V 11 | 12 | 3VSB 13 | 14 | multi 15 | 2 16 | 17 | CPUVCORE 18 | 19 | multi 20 | 2 21 | name 22 | CPU VRM 23 | 24 | VBAT 25 | 26 | multi 27 | 2 28 | 29 | VIN0 30 | 31 | multi 32 | 12 33 | name 34 | +12V 35 | 36 | VIN1 37 | 38 | multi 39 | 5 40 | name 41 | +5V 42 | 43 | VIN4 44 | 45 | name 46 | CPU VID 47 | 48 | VIN7 49 | 50 | name 51 | VCCSA 52 | 53 | VIN8 54 | 55 | name 56 | VCOREREFIN 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /LPC/ASUS/Nuvoton NCT6793D/PRIME Z270-P.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 3VCC 6 | 7 | multi 8 | 2 9 | name 10 | + 3.3 Volts 11 | 12 | 3VSB 13 | 14 | multi 15 | 2 16 | name 17 | + 3.3 Volts Standby 18 | 19 | AVSB 20 | 21 | multi 22 | 2 23 | 24 | CPUVCORE 25 | 26 | multi 27 | 2 28 | 29 | VBAT 30 | 31 | multi 32 | 2 33 | 34 | VIN0 35 | 36 | multi 37 | 12 38 | name 39 | + 12 Volts 40 | 41 | VIN1 42 | 43 | multi 44 | 5 45 | name 46 | + 5 Volts 47 | 48 | VIN2 49 | 50 | name 51 | DRAM Voltage 52 | 53 | VIN4 54 | 55 | name 56 | IGPU 57 | 58 | VIN7 59 | 60 | name 61 | DRAM Voltage 62 | 63 | VTT 64 | 65 | name 66 | CPU VTT 67 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /LPC/ASUS/Nuvoton NCT6793D/ROG STRIX Z370-F GAMING.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 3VCC 6 | 7 | multi 8 | 2 9 | 10 | 3VSB 11 | 12 | multi 13 | 2 14 | 15 | AUXFAN0 16 | 17 | name 18 | M.2_FAN 19 | 20 | AUXFAN3 21 | 22 | name 23 | CHA_FAN2 24 | 25 | AVSB 26 | 27 | multi 28 | 2 29 | 30 | CPUFAN 31 | 32 | name 33 | CPU_FAN 34 | 35 | CPUVCORE 36 | 37 | multi 38 | 2 39 | 40 | SYSFAN 41 | 42 | name 43 | CHA_FAN1 44 | 45 | VBAT 46 | 47 | multi 48 | 2 49 | 50 | VIN0 51 | 52 | multi 53 | 12 54 | name 55 | +12 56 | 57 | VIN1 58 | 59 | multi 60 | 5 61 | name 62 | +5 63 | 64 | VIN2 65 | 66 | name 67 | PCH Core 68 | 69 | VIN4 70 | 71 | name 72 | CPU Gfx 73 | 74 | VIN5 75 | 76 | multi 77 | 2 78 | name 79 | DRAM 80 | 81 | VIN6 82 | 83 | name 84 | VCCSA 85 | 86 | VIN7 87 | 88 | name 89 | CPU_VCCIO 90 | 91 | VIN8 92 | 93 | multi 94 | 6.5855399999999999 95 | name 96 | CPU Standby 97 | skip 98 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /LPC/ASUS/Nuvoton NCT6793D/ROG STRIX Z370-I GAMING.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 3VCC 6 | 7 | multi 8 | 2 9 | 10 | 3VSB 11 | 12 | multi 13 | 2 14 | 15 | AUXFAN3 16 | 17 | name 18 | CHA_FAN2 19 | 20 | AVSB 21 | 22 | multi 23 | 2 24 | 25 | CPUFAN 26 | 27 | name 28 | CPU_FAN 29 | 30 | CPUVCORE 31 | 32 | multi 33 | 2 34 | 35 | SYSFAN 36 | 37 | name 38 | CHA_FAN1 39 | 40 | VBAT 41 | 42 | multi 43 | 2 44 | 45 | VIN0 46 | 47 | multi 48 | 12 49 | name 50 | +12 51 | 52 | VIN1 53 | 54 | multi 55 | 5 56 | name 57 | +5 58 | 59 | VIN2 60 | 61 | name 62 | PCH Core 63 | 64 | VIN4 65 | 66 | name 67 | CPU Gfx 68 | 69 | VIN5 70 | 71 | multi 72 | 2 73 | name 74 | DRAM 75 | 76 | VIN6 77 | 78 | name 79 | VCCSA 80 | 81 | VIN7 82 | 83 | name 84 | CPU_VCCIO 85 | 86 | VIN8 87 | 88 | multi 89 | 6.5855399999999999 90 | name 91 | CPU Standby 92 | skip 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /LPC/ASUS/Nuvoton NCT6793D/default.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 3VCC 6 | 7 | multi 8 | 2 9 | 10 | 3VSB 11 | 12 | multi 13 | 2 14 | 15 | AUXFAN0 16 | 17 | name 18 | M.2_FAN 19 | 20 | AUXFAN3 21 | 22 | name 23 | CHA_FAN2 24 | 25 | AVSB 26 | 27 | multi 28 | 2 29 | 30 | CPUFAN 31 | 32 | name 33 | CPU_FAN 34 | 35 | CPUVCORE 36 | 37 | multi 38 | 2 39 | 40 | SYSFAN 41 | 42 | name 43 | CHA_FAN1 44 | 45 | VBAT 46 | 47 | multi 48 | 2 49 | 50 | VIN0 51 | 52 | multi 53 | 12 54 | name 55 | +12 56 | 57 | VIN1 58 | 59 | multi 60 | 5 61 | name 62 | +5 63 | 64 | VIN2 65 | 66 | name 67 | PCH Core 68 | 69 | VIN4 70 | 71 | name 72 | CPU Gfx 73 | 74 | VIN5 75 | 76 | multi 77 | 2 78 | name 79 | DRAM 80 | 81 | VIN6 82 | 83 | name 84 | VCCSA 85 | 86 | VIN7 87 | 88 | name 89 | CPU_VCCIO 90 | 91 | VIN8 92 | 93 | multi 94 | 6.5855399999999999 95 | name 96 | CPU Standby 97 | skip 98 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8620E/Z97MX-Gaming 5.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_FAN 9 | 10 | FAN2 11 | 12 | name 13 | CPU_OPT 14 | 15 | FAN3 16 | 17 | name 18 | SYS_FAN1 19 | 20 | FAN4 21 | 22 | name 23 | SYS_FAN2 24 | 25 | FAN5 26 | 27 | name 28 | SYS_FAN3 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | skip 38 | 39 | 40 | VIN1 41 | 42 | multi 43 | 1.648780487804878 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | VRIN 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8620E/Z97X-UD7 TH-CF.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU Fan 9 | 10 | FAN2 11 | 12 | name 13 | CPU OPT 14 | 15 | FAN3 16 | 17 | name 18 | SYS FAN1 19 | 20 | FAN4 21 | 22 | name 23 | SYS FAN2 24 | 25 | FAN5 26 | 27 | name 28 | SYS FAN3 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | name 38 | Vcore 39 | 40 | VIN1 41 | 42 | multi 43 | 1.648780487804878 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | skip 64 | 65 | 66 | VIN5 67 | 68 | name 69 | CPU VRIN 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8620E/default.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_FAN 9 | 10 | FAN2 11 | 12 | name 13 | CPU_OPT 14 | 15 | FAN3 16 | 17 | name 18 | SYS_FAN1 19 | 20 | FAN4 21 | 22 | name 23 | SYS_FAN2 24 | 25 | FAN5 26 | 27 | name 28 | SYS_FAN3 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | skip 38 | 39 | 40 | VIN1 41 | 42 | multi 43 | 1.648780487804878 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | VRIN 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8628E/Z170M-D3H-CF.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | SYS FAN 1 9 | 10 | FAN2 11 | 12 | name 13 | CPU FAN 14 | 15 | FAN3 16 | 17 | name 18 | SYS FAN2 19 | 20 | FAN4 21 | 22 | name 23 | CPU OPT 24 | 25 | FAN5 26 | 27 | name 28 | SYS FAN3 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | name 38 | VCORE 39 | 40 | VIN1 41 | 42 | multi 43 | 1.648780487804878 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | CPU VRIN 70 | 71 | VIN6 72 | 73 | name 74 | DRAM CHANNEL A/B 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8628E/Z170X-Gaming 7.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_FAN 9 | 10 | FAN2 11 | 12 | name 13 | CPU_OPT 14 | 15 | FAN3 16 | 17 | name 18 | SYS_FAN1 19 | 20 | FAN4 21 | 22 | name 23 | SYS_FAN2 24 | 25 | FAN5 26 | 27 | name 28 | SYS_FAN3 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | name 38 | Vcore 39 | 40 | VIN1 41 | 42 | multi 43 | 1.648780487804878 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | VCCSA 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8628E/default.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_FAN 9 | 10 | FAN2 11 | 12 | name 13 | CPU_OPT 14 | 15 | FAN3 16 | 17 | name 18 | SYS_FAN1 19 | 20 | FAN4 21 | 22 | name 23 | SYS_FAN2 24 | 25 | FAN5 26 | 27 | name 28 | SYS_FAN3 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | name 38 | Vcore 39 | 40 | VIN1 41 | 42 | multi 43 | 1.648780487804878 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | VCCSA 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8686E/B360M DS3H.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU FAN 9 | 10 | FAN2 11 | 12 | name 13 | SYS FAN 1 14 | 15 | FAN3 16 | 17 | name 18 | SYS FAN 2 19 | 20 | FAN4 21 | 22 | skip 23 | 24 | 25 | FAN5 26 | 27 | skip 28 | 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | name 35 | Battery 36 | 37 | VIN0 38 | 39 | name 40 | Vcore 41 | 42 | VIN1 43 | 44 | multi 45 | 1.64878048780488 46 | name 47 | +3,3V 48 | 49 | VIN2 50 | 51 | multi 52 | 6 53 | name 54 | +12V 55 | 56 | VIN3 57 | 58 | multi 59 | 2.5 60 | name 61 | +5V 62 | 63 | VIN4 64 | 65 | name 66 | IGPU 67 | 68 | VIN5 69 | 70 | name 71 | VCCSA 72 | 73 | VIN6 74 | 75 | name 76 | DDR Channel A/B 77 | 78 | VIN7 79 | 80 | multi 81 | 2 82 | name 83 | 3VSB 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8686E/Z370M DS3H-CF.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_Fan 9 | 10 | FAN2 11 | 12 | name 13 | SYS_Fan 14 | 15 | FAN3 16 | 17 | skip 18 | 19 | 20 | FAN4 21 | 22 | skip 23 | 24 | 25 | FAN5 26 | 27 | skip 28 | 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | name 38 | Vcore 39 | 40 | VIN1 41 | 42 | multi 43 | 1.64878048780488 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | VCCSA 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8686E/Z370N WIFI-CF.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_Fan 9 | 10 | FAN2 11 | 12 | name 13 | SYS_Fan1 14 | 15 | FAN3 16 | 17 | name 18 | SYS_Fan2 19 | 20 | FAN4 21 | 22 | skip 23 | 24 | 25 | FAN5 26 | 27 | skip 28 | 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | name 38 | Vcore 39 | 40 | VIN1 41 | 42 | multi 43 | 1.64878048780488 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | VCCSA 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8686E/default.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_Fan 9 | 10 | FAN2 11 | 12 | name 13 | SYS_Fan1 14 | 15 | FAN3 16 | 17 | name 18 | SYS_Fan2 19 | 20 | FAN4 21 | 22 | skip 23 | 24 | 25 | FAN5 26 | 27 | skip 28 | 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | name 38 | Vcore 39 | 40 | VIN1 41 | 42 | multi 43 | 1.64878048780488 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | VCCSA 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8688E/A520M DS3H.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | System Fan 9 | skip 10 | 11 | 12 | FAN2 13 | 14 | name 15 | CPU Fan 16 | skip 17 | 18 | 19 | FAN3 20 | 21 | name 22 | FAN3 23 | skip 24 | 25 | 26 | FAN4 27 | 28 | name 29 | FAN4 30 | skip 31 | 32 | 33 | FAN5 34 | 35 | name 36 | FAN5 37 | skip 38 | 39 | 40 | VBAT 41 | 42 | multi 43 | 2 44 | name 45 | VBAT 46 | skip 47 | 48 | 49 | VIN0 50 | 51 | multi 52 | 1 53 | name 54 | Vcore 55 | skip 56 | 57 | 58 | VIN1 59 | 60 | multi 61 | 1.64878048780488 62 | name 63 | +3.3 V 64 | skip 65 | 66 | 67 | VIN2 68 | 69 | multi 70 | 6 71 | name 72 | +12 V 73 | skip 74 | 75 | 76 | VIN3 77 | 78 | multi 79 | 2.5 80 | name 81 | +5 V 82 | skip 83 | 84 | 85 | VIN4 86 | 87 | multi 88 | 1 89 | name 90 | VIN4 91 | skip 92 | 93 | 94 | VIN5 95 | 96 | multi 97 | 1 98 | name 99 | VCCSA 100 | skip 101 | 102 | 103 | VIN6 104 | 105 | multi 106 | 1 107 | name 108 | DDR 109 | skip 110 | 111 | 112 | VIN7 113 | 114 | multi 115 | 2 116 | name 117 | 3 VSB 118 | skip 119 | 120 | 121 | 122 | 123 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8688E/README.txt: -------------------------------------------------------------------------------- 1 | The generate configuration is a mere example and must be adjusted. 2 | 3 | ABOUT FANS 4 | 5 | The LPC chip may manage more fans than connectors your motherboards may have, so for this reason, is important that your configuration will skip all unused connectors. 6 | For example, if the AUXFAN3 connector is not physically present (and the value reported is 0 rpm), then under the AUXFAN3 dictionary you must add the following Boolean key/value: 7 | 8 | skip = YES 9 | 10 | ... and the AUXFAN3 will not show up in HWMonitorSMC.app! 11 | Note: if your motherboard have some unused fan connectors, it is right instead, to create a configuration that doesn't skip them, so other users will see their fans up and running. 12 | 13 | ABOUT VOLTAGES 14 | 15 | As for the fans not all the voltages reported may be connected to a real sensor: 16 | skip = YES is your friend. 17 | 18 | The lpc chip return standard values that must be adjusted, why? 19 | Because resistors number and kinds for each motherboards vendors/model may differ. 20 | To udjust the value you have to use the multi key (as number) to multiply the value returned by default: 21 | 22 | example, VBAT returns 1.670 Volts which is just the half of what should be. So multi must be set to 2: 23 | 24 | multi = 2 25 | 26 | (2 * 1.670) = 3,340 Volts! 27 | 28 | multi is 1 by default and you should not set this key if 1 is the right value... to keep the file small. 29 | Note: multi can be a floating point number (64 bit Double). Negative numbers allowed as well. 30 | Zero is treated as 1. 31 | 32 | 33 | RENAMING SENSORS 34 | 35 | To rename a key, e.g. VIN0 to Vcore (or FAN1 to CPU Fan) you have to modify the name value: 36 | 37 | name = Vcore 38 | or 39 | name = FAN1 40 | ... an so on. 41 | 42 | If the sensor name is already a name that suite you well, then the name key must be removed to keep 43 | the file smaller as possible. 44 | 45 | 46 | HELP 47 | Programs like Aida64 (https://www.aida64.com/downloads) and HWInfo64 (https://www.hwinfo.com/download/) 48 | in Windows can be a big help in comparing values. 49 | 50 | IMPORTANT 51 | The generated plist is to let you understand how to edit the file, but before making a request please ensure to: 52 | 53 | - do not include sensors with "multi = 1" because multi is 1 per default. 54 | - do not include sensors with "skip = NO" because skip is taken into account only if "skip = YES". 55 | - do not include sensors with "name = SensorName".. if "SensorName" is already SensorName, like the following: 56 | 57 | SensorName 58 | 59 | name 60 | SensorName 61 | 62 | 63 | - do not include sensors if empty. If, for example, VBAT is ok as is, i.e with out multi or name: 64 | SensorName 65 | 66 | 67 | 68 | ... just remove the Dictionary entirely and the sensor will show up normally. 69 | 70 | Doing that will assure a clean and light database, thanks! 71 | 72 | SHARE! 73 | Once your configuration is complete and fixed, please share it at: 74 | 75 | https://github.com/CloverHackyColor/HWMonitorSMC2 76 | 77 | so that you and all the users with same motherboard as you, will have a working and truthful sesors across updates! 78 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8688E/Z390 AORUS PRO-CF.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_Fan 9 | 10 | FAN2 11 | 12 | name 13 | SYS_Fan1 14 | 15 | FAN3 16 | 17 | name 18 | SYS_Fan2 19 | 20 | FAN4 21 | 22 | name 23 | SYS_Fan3 24 | 25 | FAN5 26 | 27 | name 28 | SYS_Fan4 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | name 38 | Vcore 39 | 40 | VIN1 41 | 42 | multi 43 | 1.64878048780488 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | VCCSA 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8688E/Z490 VISION D.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_FAN 9 | 10 | FAN2 11 | 12 | name 13 | SYS_FAN1 14 | 15 | FAN3 16 | 17 | name 18 | SYS_FAN2 19 | 20 | FAN4 21 | 22 | name 23 | SYS_FAN3 24 | 25 | FAN5 26 | 27 | name 28 | SYS_FAN4 29 | 30 | VBAT 31 | 32 | name 33 | VBAT 34 | 35 | VIN0 36 | 37 | name 38 | Vcore 39 | 40 | VIN1 41 | 42 | multi 43 | 1.6487804878 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | VCCSA 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8688E/default.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_Fan 9 | 10 | FAN2 11 | 12 | name 13 | SYS_Fan1 14 | 15 | FAN3 16 | 17 | name 18 | SYS_Fan2 19 | 20 | FAN4 21 | 22 | name 23 | SYS_Fan3 24 | 25 | FAN5 26 | 27 | name 28 | SYS_Fan4 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | name 38 | Vcore 39 | 40 | VIN1 41 | 42 | multi 43 | 1.64878048780488 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | VCCSA 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8728F/B75M-D3H.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_FAN 9 | skip 10 | 11 | 12 | FAN2 13 | 14 | name 15 | SYS_FAN 16 | skip 17 | 18 | 19 | FAN3 20 | 21 | name 22 | FAN3 23 | skip 24 | 25 | 26 | FAN4 27 | 28 | name 29 | FAN4 30 | skip 31 | 32 | 33 | FAN5 34 | 35 | name 36 | FAN5 37 | skip 38 | 39 | 40 | VBAT 41 | 42 | multi 43 | 2 44 | name 45 | VBAT 46 | skip 47 | 48 | 49 | VIN0 50 | 51 | name 52 | VTT 53 | skip 54 | 55 | 56 | VIN1 57 | 58 | multi 59 | 1.649 60 | name 61 | +3.3V 62 | skip 63 | 64 | 65 | VIN2 66 | 67 | multi 68 | 6 69 | name 70 | +12V 71 | skip 72 | 73 | 74 | VIN3 75 | 76 | multi 77 | 2.5 78 | name 79 | +5V 80 | skip 81 | 82 | 83 | VIN4 84 | 85 | name 86 | iGPU VAXG 87 | skip 88 | 89 | 90 | VIN5 91 | 92 | name 93 | Vcore 94 | skip 95 | 96 | 97 | VIN6 98 | 99 | name 100 | DDR 101 | skip 102 | 103 | 104 | VIN7 105 | 106 | multi 107 | 2 108 | name 109 | 3VSB 110 | skip 111 | 112 | 113 | 114 | 115 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8728F/Z77X-UP5 TH-CF.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_FAN 9 | 10 | FAN2 11 | 12 | name 13 | SYS_FAN1 14 | 15 | FAN3 16 | 17 | name 18 | SYS_FAN2 19 | 20 | FAN4 21 | 22 | name 23 | SYS_FAN3 24 | 25 | FAN5 26 | 27 | name 28 | SYS_FAN4 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | name 38 | Vcore 39 | 40 | VIN1 41 | 42 | multi 43 | 1.648780487804878 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | CPU VRIN 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8728F/Z87P-D3.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_FAN 9 | 10 | FAN2 11 | 12 | name 13 | SYS_FAN1 14 | 15 | FAN3 16 | 17 | name 18 | SYS_FAN2 19 | 20 | FAN4 21 | 22 | name 23 | SYS_FAN3 24 | 25 | FAN5 26 | 27 | name 28 | CPU_OPT 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | name 38 | Vcore 39 | 40 | VIN1 41 | 42 | multi 43 | 1.6588 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | CPU VRIN 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8728F/Z87X-HD3.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_FAN 9 | 10 | FAN2 11 | 12 | name 13 | SYS_FAN1 14 | 15 | FAN3 16 | 17 | name 18 | SYS_FAN2 19 | 20 | FAN4 21 | 22 | name 23 | SYS_FAN3 24 | 25 | FAN5 26 | 27 | name 28 | CPU_OPT 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | name 38 | Vcore 39 | 40 | VIN1 41 | 42 | multi 43 | 1.6588 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | CPU VRIN 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8728F/Z87X-UD3H.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_FAN 9 | 10 | FAN2 11 | 12 | name 13 | SYS_FAN1 14 | 15 | FAN3 16 | 17 | name 18 | SYS_FAN2 19 | 20 | FAN4 21 | 22 | name 23 | SYS_FAN3 24 | 25 | FAN5 26 | 27 | name 28 | CPU_OPT 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | name 38 | Vcore 39 | 40 | VIN1 41 | 42 | multi 43 | 1.6588 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | CPU VRIN 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8728F/Z87X-UD4H-CF.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_FAN 9 | 10 | FAN2 11 | 12 | name 13 | SYS_FAN1 14 | 15 | FAN3 16 | 17 | name 18 | SYS_FAN2 19 | 20 | FAN4 21 | 22 | name 23 | SYS_FAN3 24 | 25 | FAN5 26 | 27 | name 28 | CPU_OPT 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | name 38 | Vcore 39 | 40 | VIN1 41 | 42 | multi 43 | 1.648780487804878 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | CPU VRIN 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/Gigabyte/ITE IT8728F/default.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_FAN 9 | 10 | FAN2 11 | 12 | name 13 | SYS_FAN1 14 | 15 | FAN3 16 | 17 | name 18 | SYS_FAN2 19 | 20 | FAN4 21 | 22 | name 23 | SYS_FAN3 24 | 25 | FAN5 26 | 27 | name 28 | CPU_OPT 29 | 30 | VBAT 31 | 32 | multi 33 | 2 34 | 35 | VIN0 36 | 37 | name 38 | Vcore 39 | 40 | VIN1 41 | 42 | multi 43 | 1.648780487804878 44 | name 45 | +3.3V 46 | 47 | VIN2 48 | 49 | multi 50 | 6 51 | name 52 | +12V 53 | 54 | VIN3 55 | 56 | multi 57 | 2.5 58 | name 59 | +5V 60 | 61 | VIN4 62 | 63 | name 64 | iGPU VAXG 65 | 66 | VIN5 67 | 68 | name 69 | CPU VRIN 70 | 71 | VIN6 72 | 73 | name 74 | DDR 75 | 76 | VIN7 77 | 78 | multi 79 | 2 80 | name 81 | 3VSB 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/MSI/Nuvoton NCT6795D/Z370I GAMING PRO CARBON AC (MS-7B43).plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 3VCC 6 | 7 | multi 8 | 2 9 | 10 | 3VSB 11 | 12 | multi 13 | 2 14 | 15 | AUXFAN0 16 | 17 | skip 18 | 19 | 20 | AUXFAN1 21 | 22 | skip 23 | 24 | 25 | AUXFAN2 26 | 27 | skip 28 | 29 | 30 | AUXFAN3 31 | 32 | skip 33 | 34 | 35 | AVSB 36 | 37 | multi 38 | 2 39 | name 40 | AVCC 41 | 42 | VBAT 43 | 44 | skip 45 | 46 | 47 | VIN0 48 | 49 | multi 50 | 12 51 | name 52 | +12V 53 | 54 | VIN1 55 | 56 | multi 57 | 5 58 | name 59 | +5V 60 | 61 | VIN2 62 | 63 | name 64 | PHC 65 | 66 | VIN3 67 | 68 | multi 69 | 2 70 | name 71 | DIMM 72 | 73 | VIN4 74 | 75 | name 76 | CPU I/O 77 | 78 | VIN6 79 | 80 | name 81 | IGPU 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /LPC/MSI/Nuvoton NCT6795D/default.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 3VCC 6 | 7 | multi 8 | 2 9 | 10 | 3VSB 11 | 12 | multi 13 | 2 14 | 15 | AVSB 16 | 17 | multi 18 | 2 19 | name 20 | AVCC 21 | 22 | VBAT 23 | 24 | skip 25 | 26 | 27 | VIN0 28 | 29 | multi 30 | 12 31 | name 32 | +12V 33 | 34 | VIN1 35 | 36 | multi 37 | 5 38 | name 39 | +5V 40 | 41 | VIN2 42 | 43 | name 44 | PHC 45 | 46 | VIN3 47 | 48 | multi 49 | 2 50 | name 51 | DIMM 52 | 53 | VIN4 54 | 55 | name 56 | CPU I/O 57 | 58 | VIN6 59 | 60 | name 61 | IGPU 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /LPC/MSI/Nuvoton NCT6797D/MEG X570 UNIFY (MS-7C35).plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 3VCC 6 | 7 | multi 8 | 2 9 | 10 | 3VSB 11 | 12 | multi 13 | 2 14 | 15 | AUXFAN0 16 | 17 | name 18 | SYSFAN1 19 | 20 | AUXFAN1 21 | 22 | name 23 | SYSFAN2 24 | 25 | AUXFAN2 26 | 27 | name 28 | SYSFAN3 29 | 30 | AUXFAN3 31 | 32 | name 33 | SYSFAN4 34 | 35 | AUXFAN4 36 | 37 | skip 38 | 39 | 40 | AVSB 41 | 42 | multi 43 | 2 44 | 45 | SYSFAN 46 | 47 | name 48 | PUMP 49 | 50 | VBAT 51 | 52 | skip 53 | 54 | 55 | VIN0 56 | 57 | multi 58 | 12 59 | name 60 | +12V 61 | 62 | VIN1 63 | 64 | multi 65 | 5 66 | name 67 | +5V 68 | 69 | VIN2 70 | 71 | name 72 | SOC 73 | 74 | VIN3 75 | 76 | multi 77 | 2 78 | name 79 | DIMM 80 | 81 | VIN5 82 | 83 | skip 84 | 85 | 86 | VIN9 87 | 88 | skip 89 | 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /LPC/MSI/Nuvoton NCT6797D/default.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 3VCC 6 | 7 | multi 8 | 2 9 | 10 | 3VSB 11 | 12 | multi 13 | 2 14 | 15 | AVSB 16 | 17 | multi 18 | 2 19 | 20 | VBAT 21 | 22 | skip 23 | 24 | 25 | VIN0 26 | 27 | multi 28 | 12 29 | name 30 | +12V 31 | 32 | VIN1 33 | 34 | multi 35 | 5 36 | name 37 | +5V 38 | 39 | VIN2 40 | 41 | name 42 | SOC 43 | 44 | VIN3 45 | 46 | multi 47 | 2 48 | name 49 | DIMM 50 | 51 | VIN5 52 | 53 | skip 54 | 55 | 56 | VIN9 57 | 58 | skip 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /LPC/QUO Computer/ITE IT8728F/Z77MX-QUO-AOS.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FAN1 6 | 7 | name 8 | CPU_FAN 9 | 10 | FAN2 11 | 12 | name 13 | SYS_FAN1 14 | 15 | FAN3 16 | 17 | name 18 | SYS_FAN2 19 | 20 | FAN4 21 | 22 | name 23 | FAN4 24 | skip 25 | 26 | 27 | FAN5 28 | 29 | name 30 | FAN5 31 | skip 32 | 33 | 34 | VBAT 35 | 36 | multi 37 | 2 38 | name 39 | CMOS Battery 40 | skip 41 | 42 | 43 | VIN0 44 | 45 | name 46 | CPU Core 47 | skip 48 | 49 | 50 | VIN1 51 | 52 | multi 53 | 1.648780487804878 54 | name 55 | Main +3.3V 56 | skip 57 | 58 | 59 | VIN2 60 | 61 | multi 62 | 6 63 | name 64 | Main +12V 65 | skip 66 | 67 | 68 | VIN3 69 | 70 | multi 71 | 2.5 72 | name 73 | Main +5V 74 | skip 75 | 76 | 77 | VIN4 78 | 79 | name 80 | CPU GFX 81 | skip 82 | 83 | 84 | VIN5 85 | 86 | name 87 | CPU VTT 88 | skip 89 | 90 | 91 | VIN6 92 | 93 | name 94 | Memory 95 | skip 96 | 97 | 98 | VIN7 99 | 100 | multi 101 | 2 102 | name 103 | Auxiliary 3V 104 | skip 105 | 106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /hwmlpcconfig/hwmlpcconfig.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /hwmlpcconfig/hwmlpcconfig.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /hwmlpcconfig/hwmlpcconfig.xcodeproj/project.xcworkspace/xcuserdata/vectorsigma.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CloverHackyColor/HWMonitorSMC2/80168fb38322e1af1d08d0ae51fe00f784c0d0f8/hwmlpcconfig/hwmlpcconfig.xcodeproj/project.xcworkspace/xcuserdata/vectorsigma.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /hwmlpcconfig/hwmlpcconfig.xcodeproj/xcuserdata/vectorsigma.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | hwmlcpconfig.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | hwmlpcconfig.xcscheme_^#shared#^_ 13 | 14 | orderHint 15 | 3 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /hwmlpcconfig/hwmlpcconfig/NVRAM.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NVRAM.swift 3 | // Clover 4 | // 5 | // Created by vector sigma on 30/10/2019. 6 | // Copyright © 2019 CloverHackyColor. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | // MARK: Get NVRAM 12 | func getNVRAM() -> NSMutableDictionary? { 13 | var ref: io_registry_entry_t 14 | var masterPort = mach_port_t() 15 | var oResult: kern_return_t 16 | var result: kern_return_t 17 | oResult = IOMasterPort(bootstrap_port, &masterPort) 18 | 19 | if oResult != KERN_SUCCESS { 20 | return nil 21 | } 22 | 23 | ref = IORegistryEntryFromPath(masterPort, "IODeviceTree:/options") 24 | if ref == 0 { 25 | return nil 26 | } 27 | 28 | var dict : Unmanaged? 29 | result = IORegistryEntryCreateCFProperties(ref, &dict, kCFAllocatorDefault, 0) 30 | 31 | if result != KERN_SUCCESS { 32 | IOObjectRelease(ref) 33 | return nil 34 | } 35 | IOObjectRelease(ref) 36 | return dict?.takeRetainedValue() 37 | } 38 | 39 | /// Get a single nvram variable 40 | func getNVRAM(variable name: String) -> String? { 41 | var value : String? = nil 42 | var ref: io_registry_entry_t 43 | var masterPort = mach_port_t() 44 | var oResult: kern_return_t 45 | oResult = IOMasterPort(bootstrap_port, &masterPort) 46 | 47 | if oResult != KERN_SUCCESS { 48 | return nil 49 | } 50 | 51 | ref = IORegistryEntryFromPath(masterPort, "IODeviceTree:/options") 52 | if ref == 0 { 53 | return nil 54 | } 55 | 56 | let vref = IORegistryEntryCreateCFProperty(ref, 57 | name as CFString, 58 | kCFAllocatorDefault, 0) 59 | if (vref != nil) { 60 | let data = vref?.takeRetainedValue() as! Data 61 | var cleanedData = Data() 62 | for i in 0.. 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /smcwrite/smcwrite.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /smcwrite/smcwrite/main.c: -------------------------------------------------------------------------------- 1 | // 2 | // main.c 3 | // smcwrite 4 | // 5 | // Created by vector sigma on 11/05/2019. 6 | // Copyright © 2019 vectorsigma. All rights reserved. 7 | // 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include "smc.h" 17 | 18 | int main(int argc, const char * argv[]) { 19 | if (argc != 3 || strlen(argv[1]) > 4) { 20 | printf("Usage example: ../%s F1Tg 03e8\n", "smcwrite"); 21 | exit(1); 22 | } 23 | 24 | SMCVal_t val; 25 | memcpy(val.key, argv[1], sizeof(UInt32Char_t)); 26 | char * value = (char *)argv[2]; // "%02x", "%02x%02x, "%02x%02x%02x%02x" etc. 27 | 28 | int i; 29 | char c[3]; 30 | for (i = 0; i < strlen(value); i++) 31 | { 32 | sprintf(c, "%c%c", value[i * 2], value[(i * 2) + 1]); 33 | val.bytes[i] = (int) strtol(c, NULL, 16); 34 | } 35 | 36 | val.dataSize = i / 2; 37 | 38 | if (!val.dataSize || 39 | val.dataSize % 2 != 0 || 40 | val.dataSize > 32 || 41 | (val.dataSize * 2) != strlen(value)) { 42 | printf("Error: size of \"%s\" is not valid\n", value); 43 | exit(1); 44 | } 45 | 46 | SMCOpen(&conn); 47 | 48 | if (SMCWriteKey(val) != kIOReturnSuccess) { 49 | printf("Error: unable to write \"%s\" key\n", val.key); 50 | SMCClose(conn); 51 | exit(1); 52 | } 53 | SMCClose(conn); 54 | 55 | return 0; 56 | } 57 | --------------------------------------------------------------------------------