Eapilibinitialize; Int Eapilibinitialize (); Eapiboardgetvalue; Int Eapiboardgetvalue (Int Parameter) - Dell EGW-3200 User Manual

Hide thumbs Also See for EGW-3200:
Table of Contents

Advertisement

EApiLibInitialize

Initialize function. Call this function before accessing any of the API.

int EApiLibInitialize ()

Parameters
None
Return codes
0 if the initialization is a success.
Negative errno if failed.

EApiBoardGetValue

Gets the hardware monitor (current/voltage/temperature) values.

int EApiBoardGetValue (int parameter)

Parameters
The parameters could be one of the following, and the macro is self-explanatory.
● EAPI_ID_HWMON_SYSTEM_TEMP
● EAPI_ID_HWMON_VOLTAGE_VBAT
● EAPI_ID_HWMON_VOLTAGE_5VSB
● EAPI_SEMA_ID_BOARD_MAIN_CURRENT
● EAPI_SEMA_ID_HWMON_VOLTAGE_VIN
Return codes
0 if the initialization is a success.
Negative errno if failed.

EApiUnInitialize

Un-initialize function. Call this function before exiting the application.

Humidity and temperature sensor setup

Prerequisites
Windows standard APIs: FromIdAsync(String), GetCurrentReading(), and GetDeviceSelector(Guid interfaceId) are used
for accessing the sensor. For details, go to
view=winrt-22000.
About this task
The HDC1010 humidity and temperature sensor is connected to I2C bus 2 of the EGW-3200. This sensor is detected as a
custom sensor and follows Windows sensor framework.

Build the sample application

Prerequisites
Visual Studio 2019 is required for this task. To download and install, perform the following steps:
1. Select Workloads.
2. Open Visual Studio Installer and click Modify to customize your installation.
https://docs.microsoft.com/en-us/uwp/api/windows.devices.sensors.custom?
Setting Up the Windows 10 Operating System
33

Advertisement

Table of Contents
loading

Table of Contents