pitx-sp_fan - fan driver for pITX-SP
pitxSetFanControl( ) - Set fan control register
pitxGetFanControl( ) - Get current value of fan control register
pitxSetFanSpeed( ) - Set fan speed
pitxSetFanDivisor( ) - set fan divisor
pitxGetFanSpeedRPS( ) - Get fan speed in RPS (round per sec)
pitxGetFanSpeed( ) - Get fan speed with current divisor
Driver for pITX-SP fan. For details see: KTD-S0003-C pITX-SP Software Guide
pitxSetFanControl( ) - Set fan control register
void pitxSetFanControl(UINT8 bitMap)
This function sets the Fan control register with a new value
bitMap - new value of the control register
N/A
pitx
pitxGetFanControl( ) - Get current value of fan control register
void pitxGetFanControl(UINT8 *pFanCtrl)
This function returns the current value of the Fan control register
pFanCtrl - output parameter
N/A
pitx
pitxSetFanSpeed( ) - Set fan speed
void pitxSetFanSpeed(UINT8 speed)
This function sets a value of fan speed. The fan speed can be specified by the value from 0 to 31.
- speed - desired speed of a fan (0
minimum; 31 maximum speed)
N/A
pitx
pitxSetFanDivisor( ) - set fan divisor
void pitxSetFanDivisor(UINT8 div)
This function sets a divisor for the fan speed
div - value for the divisor (0 ~ 3)
N/A
pitx
pitxGetFanSpeedRPS( ) - Get fan speed in RPS (round per sec)
void pitxGetFanSpeedRPS(UINT8 *pSpeed)
This function returns the current speed of a fan in RPS. To get the correct result in RPS, the function tries different values of divisor. The routine can take several seconds to complete.
pSpeed - speed output value
N/A
pitx
pitxGetFanSpeed( ) - Get fan speed with current divisor
void pitxGetFanSpeed(UINT8 *pSpeed)
This function returns the current value of the speed register. The real speed should be calculated using the current value of the divisor.
pSpeed - speed output value
N/A
pitx