/* Clears the user bits in the status word (16-bits) of an LPC Channel. */
void LPCChannelStatusClear(unsigned long ulBase, unsigned long ulChannel, unsigned long ulStatus)
/* Clears the user bits in the status word (16-bits) of an LPC Channel. */
void LPCChannelStatusClear(unsigned long ulBase, unsigned long ulChannel, unsigned long ulStatus)
{
    unsigned long ulTemp;
    ASSERT(ulBase == LPC0_BASE);
    ASSERT(LPCChannelValid(ulChannel));
    ASSERT((ulStatus & (~LPC_CH0ST_USER_M)) == 0);
    ulTemp = HWREG(ulBase + LPC_O_CH0ST + (ulChannel * 0x10));
    ulTemp &= ~ulStatus;
    HWREG(ulBase + LPC_O_CH0ST + (ulChannel * 0x10)) = ulTemp;
}