/* Reads the duty cycle of a FAN channel. */
unsigned long FanChannelDutyGet(unsigned long ulBase, unsigned long ulChannel)
/* Reads the duty cycle of a FAN channel. */
unsigned long FanChannelDutyGet(unsigned long ulBase, unsigned long ulChannel)
{
    unsigned long ulDuty;
    ASSERT(ulBase == FAN0_BASE);
    ASSERT(ulChannel <= 5);
    ulDuty = HWREG(ulBase + FAN_O_CMD0 + (ulChannel * 0x10)) & FAN_CMD0_DC_M;
    ulDuty >>= FAN_CMD0_DC_S;
    return(ulDuty);
}