Storage area, Keapigetstoragecount, Keapigetstoragesize – Kontron KEAPI User Manual
Page 26: 13 storage area, 1 keapigetstoragecount, 2 keapigetstoragesize

Software specification for Kontron EAPI
26
Parameters:
in/out
Parameter name
Description
in
boardHandle
Handle of the selected board
in
pciDeviceCount
Number of installed PCI devices
out
pPciDevices
Returned array of
PCI_DEVICE
structures
Structure used:
typedef struct
Pci_Device
{
KEAPI_INT32
domain;
// Domain number
KEAPI_INT32
bus;
// Bus number
KEAPI_INT32
slot;
// Slot number
KEAPI_INT32
funct;
// Function number
KEAPI_INT32
deviceId;
// Device ID
KEAPI_INT32
vendorId;
// Vendor ID
KEAPI_INT32
classId;
// Class ID
KEAPI_CHAR
deviceName[MAX_STR]; // Name of the device
KEAPI_CHAR
vendorName[MAX_STR]; // Name of the vendor
KEAPI_CHAR
className[MAX_STR]; // Name of the class
}
PCI_DEVICE
, *
PPCI_DEVICE
;
2.13 Storage area
2.13.1 KEApiGetStorageCount
KEAPI_CALLTYPE
KEAPI_UINT32
KEApiGetStorageCount (
KEAPI_UINT32
boardHandle,
KEAPI_PINT32
pStorageCount
);
Description:
Provides number of EEPROM storage areas.
Parameters:
in/out
Parameter name
Description
in
boardHandle
Handle of the selected board
out
pStorageCount
Number of available storage areas
2.13.2 KEApiGetStorageSize
KEAPI_CALLTYPE
KEAPI_UINT32
KEApiGetStorageSize (
KEAPI_UINT32
boardHandle,
KEAPI_INT32
storageNr,
KEAPI_PINT32
pStorageSize
);
Description:
Provides information about EEPROM storage area
’s size.
Parameters:
in/out
Parameter name
Description
in
boardHandle
Handle of the selected board
in
storageNr
Number of the storage area. Number of storage areas can be
obtained from the KEApiGetStorageCount function
out
pStorageSize
Pointer to variable that receives size of the selected storage
area.