Kontron KEAPI Manual de usuario Pagina 17

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 37
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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.
Vista de pagina 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 36 37

Comentarios a estos manuales

Sin comentarios