
Software specification for Kontron EAPI
20
Parameters:
Handle of the selected board
Number (index) of a voltage. Numbers start with 0
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:
Handle of the selected board
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:
Handle of the selected board
Number of fans, which can be obtained from the
KEApiGetFanCount function
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;
Comentarios a estos manuales