Keapigetnetworkdevicelist, Keapigetpcidevicecount, Keapigetpcidevicelist – Kontron KEAPI User Manual

Page 25: 2 keapigetnetworkdevicelist, 3 keapigetpcidevicecount, 4 keapigetpcidevicelist

Advertising
background image

Software specification for Kontron EAPI

25

2.12.2 KEApiGetNetworkDeviceList

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiGetNetworkDeviceList (

KEAPI_UINT32

boardHandle,

PNETWORK_DEVICE

pNetworkDevices,

KEAPI_INT32

networkDeviceCount

);

Description:

Provides information about installed network devices.

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of the selected board

in

networkDeviceCount

Number of network devices

out

pNetworkDevices

Pointer to array of

NETWORK_DEVICE

structures. The array

must be preallocated as NetworkDeviceCount *
sizeof(

NETWORK_DEVICE

), where

NetworkDeviceCount is obtained from calling
KEApiGetNetworkDeviceCount.

Structure used:

typedef struct

Network_Device

{

KEAPI_CHAR

ip[MAX_STR];

// IP address

KEAPI_CHAR

mac[MAX_STR];

// MAC address in format XX-XX-XX-XX-XX-XX

KEAPI_INT32

speed;

// Connection speed

KEAPI_CHAR

deviceName[MAX_STR];

// Name of the network device

}

NETWORK_DEVICE

, *

PNETWORK_DEVICE

;

2.12.3 KEApiGetPciDeviceCount

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiGetPciDeviceCount (

KEAPI_UINT32

boardHandle,

KEAPI_PINT32

pPciDeviceCount

);

Description:

Provides a number of installed PCI devices.

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of the selected board

out

pPciDeviceCount

Number of installed PCI devices

2.12.4 KEApiGetPciDeviceList

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiGetPciDeviceList (

KEAPI_UINT32

boardHandle,

PPCI_DEVICE

pPciDevices,

KEAPI_INT32

pciDeviceCount

);

Description:

Provides a list of PCI devices.

Advertising