Keapigetbootcounter, Keapisystemuptime, 2 keapigetbootcounter – Kontron KEAPI User Manual
Page 8: 3 keapisystemuptime

Software specification for Kontron EAPI
8
Description:
Provides information about Kontron motherboard.
Parameters:
in/out
Parameter name
Description
in
boardHandle
Handle of the selected board
out
pBoardInfo
Returned board info structure
BOARD_INFO
Structure used:
typedef struct
Board_Info
{
KEAPI_CHAR
boardManufacturer[MAX_STR]; // Board manufacturer
KEAPI_CHAR
boardName[MAX_STR];
// Board name
KEAPI_CHAR
boardVersion[MAX_STR];
// Board version
KEAPI_CHAR
boardSerialNumber[MAX_STR]; // Board serial number
KEAPI_CHAR
biosVersion[MAX_STR];
// Bios version
KEAPI_CHAR
biosDate[MAX_STR];
// BIOS date in format
dd/mm/yyyy
}
BOARD_INFO
, *
PBOARD_INFO
;
2.3.2 KEApiGetBootCounter
KEAPI_CALLTYPE
KEAPI_UINT32
KEApiGetBootCounter (
KEAPI_UINT32
boardHandle,
KEAPI_PINT32
pBootCount
);
Description:
Provides information about number of boot cycles within the board's lifetime.
Parameters:
in/out
Parameter name
Description
In
boardHandle
Handle of selected board
Out
pBootCount
Number of boot cycles
2.3.3 KEApiSystemUpTime
KEAPI_CALLTYPE
KEAPI_UINT32
KEApiSystemUpTime (
KEAPI_UINT32
boardHandle,
KEAPI_PINT32
pSystemUpTime
);
Description:
Provides time left since last boot in seconds.
Parameters:
in/out
Parameter name
Description
in
boardHandle
Handle of the selected board
out
pSystemUpTime
Pointer to a variable that receives system running time in
seconds