/* Send a master data transmit request when the master have obtained control of the bus.(Write Step2) 
For this function returns immediately, it is always using in the interrupt hander. */
void I2CMasterWriteRequestS2(unsigned long ulBase, unsigned char ucData, xtBoolean bEndTransmition)
/* Send a master data transmit request when the master have obtained control of the bus.(Write Step2) 
For this function returns immediately, it is always using in the interrupt hander. */
void I2CMasterWriteRequestS2(unsigned long ulBase, unsigned char ucData, xtBoolean bEndTransmition)
{
    xASSERT((ulBase == I2C0_BASE) || ((ulBase == I2C1_BASE)));
    xHWREGB(ulBase + I2C_DAT) = ucData;
    xHWREGB(ulBase + I2C_STATUS) |= I2C_STATUS_IF;
    if(bEndTransmition)
    {
        I2CStopSend(ulBase);
    }    
}