Kontron KEAPI Instrukcja Użytkownika Strona 17

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 37
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 16
Software specification for Kontron EAPI
17
KEAPI_INT32 chargeState; // Battery charge state in percentage
} BATTERY_STATE, *PBATTERY_STATE;
2.8 Temperature sensors
2.8.1 KEApiGetTempSensorCount
KEAPI_CALLTYPE KEAPI_UINT32 KEApiGetTempSensorCount (
KEAPI_UINT32 boardHandle,
KEAPI_PINT32 pTempSensorCount
);
Description:
Provides number of temperature sensors.
Parameters:
in/out
Parameter name
Description
in
boardHandle
Handle of the selected board
out
pTempSensorCount
Pointer to number of installed temperature sensors
2.8.2 KEApiGetTempSensorList
KEAPI_CALLTYPE KEAPI_UINT32 KEApiGetTempSensorList (
KEAPI_UINT32 boardHandle,
PTEMP_SENSOR pTempSensors,
KEAPI_INT32 tempSensorCount
);
Description:
Provides information about temperature sensors (name and current value in millidegrees), stored in
the TEMP_SENSOR structure.
Parameters:
in/out
Parameter name
Description
in
boardHandle
Handle of the selected board
in
tempSensorCount
Number of temperature sensors
out
pTempSensors
Pointer to the temperature sensors structure
Structure used:
typedef struct Temp_Sensor
{
KEAPI_CHAR name[MAX_STR]; // Sensor’s name
KEAPI_INT32 value; // Value obtained from sensor in millidegrees
} TEMP_SENSOR, *PTEMP_SENSOR;
2.8.3 KEApiGetTempSensorValue
KEAPI_CALLTYPE KEAPI_UINT32 KEApiGetTempSensorValue (
KEAPI_UINT32 boardHandle,
KEAPI_INT32 tempSensorNr,
KEAPI_PINT32 pTempSensorValue
);
Description:
Derives information about current value of a temperature sensor with a given ID.
Przeglądanie stron 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 36 37

Komentarze do niniejszej Instrukcji

Brak uwag