
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:
Handle of the selected board
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:
Handle of the selected board
Number of temperature sensors
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.
Comentarios a estos manuales