Fan control, Keapigetfancount, Keapigetfanlist – Kontron KEAPI User Manual

Page 20: 10 fan control, 1 keapigetfancount, 2 keapigetfanlist

Advertising
background image

Software specification for Kontron EAPI

20

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of the selected board

in

voltageSensorNr

Number (index) of a voltage. Numbers start with 0

out

pVoltageSensorValue

Pointer to the value of the selected sensor, in millivolts

2.10 Fan Control

2.10.1 KEApiGetFanCount

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiGetFanCount (

KEAPI_UINT32

boardHandle,

KEAPI_PINT32

pFanCount

);

Description:

Provides number of fans.

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of the selected board

out

pFanCount

Pointer to number of fans

2.10.2 KEApiGetFanList

KEAPI_CALLTYPE

KEAPI_UINT32

KEApiGetFanList (

KEAPI_UINT32

boardHandle,

PFAN

pFans,

KEAPI_INT32

fanCount

);

Description:

Provides information about fans.

Parameters:

in/out

Parameter name

Description

in

boardHandle

Handle of the selected board

in

fanCount

Number of fans, which can be obtained from the
KEApiGetFanCount function

out

pFans

Pointer to

PFAN

structure

Structure used:

typedef struct

Fan

{

KEAPI_CHAR

name[MAX_STR]; // Fan name

KEAPI_UINT32

rpm;

// Revolutions per minute

KEAPI_UINT8

pwm;

// Pulse width modulation fan control

KEAPI_UINT8

powerMode;

// Fan speed control mode 0 = DC, 1 = PWM

KEAPI_UINT8

method;

// Method of control - Maximal speed,

manual control or thermal cruise
}

FAN

, *

PFAN

;

Advertising