I32 GetCurrentCPUTemp (int *temp)
Parameters
temp
—Integer pointer for getting the CPU temperature.
Return codes
0 if temperature is read successfully.
Negative errno if failed to get the data from hardware monitor.
Error codes
For the various functions previously listed, the following is the Errno values in case of failure.
enum SIO_ERRORS_LIST{
ERROR_SIO_INVALID_DEVICE_HANDLE = -100,
ERROR_SIO_IOCTL,
ERROR_SIO_INVALID_RW_SEL,
ERROR_SIO_INVALID_MODE_SEL,
ERROR_SIO_WDT_NOT_ENABLED
};
Build the SIO sample application
Prerequisites
Visual Studio 2019 is required for this task. Do download and install, perform the following steps:
1. Select
Workloads
.
2. Open
Visual Studio Installer
and click
Modify
to customize your installation.
3. Select
Desktop development with C++
workload.
4. Select
UWP
.
5. Select
Individual components
, and under
Complier, build tools, and runtimes
, make sure that the following boxes are
checked:
a. MSVC v142 -VS 2019 C++ x64/x86 buildtools (latest) is checked.
b. MSVC v142 -VS 2019 C++ x64/x86 Spectre-mitigated libs (latest) is checked.
6. Make sure the SDK is installed. Download and install the corresponding WDK version.
7. Install the latest supported English (en-us) Microsoft Visual C++ redistributable packages for Visual Studio 2015, 2017, 2019,
and 2022 from the following URL:
https://aka.ms/vs/17/release/vc_redist.x64.exe
About this task
NOTE:
The sample executable binaries are built with SDK-10.0.19041.685 and WDK-10.0.19041.685 versions. The procedure
may vary slightly if using other versions.
To build the sample application, perform the following steps.
Steps
1. Open Sample_App_Source/SuperIO/superior_nct.sln in Visual Studio.
2. Change
Solution configuration
to
Release
and
Solution platform
to
x64
.
3. Under the
Build
menu, select
Build Solution
.
Execute the SIO sample application
About this task
The EGW-3200 Windows image includes pre-installed sample application binaries.
Steps
1. Open the command prompt in administrator mode.
28
Setting Up the Windows 10 Operating System