/* Configure ADT7301 temperature convertion mode. 
This function is to set and change ADT7301 temperature convertion mode,you  */
void ADT7301Configure(unsigned short usMode)
/* Configure ADT7301 temperature convertion mode. 
This function is to set and change ADT7301 temperature convertion mode,you  */
void ADT7301Configure(unsigned short usMode)
{
    unsigned short usWrite;
    xASSERT((usMode == ADT7301_MODE_NORMAL) || (usMode == ADT7301_MODE_SHUTDOWN));
    xGPIOSPinWrite(ADT7301_PIN_SPI_CS, 0);
    if(usMode == ADT7301_MODE_NORMAL)
    {
        usWrite =ADT7301_MODE_NORMAL;
    }
    else
    {
    	usWrite = ADT7301_MODE_SHUTDOWN;
    }
    xSPISingleDataReadWrite(ADT7301_PIN_SPI_PORT, usWrite);
    xGPIOSPinWrite(ADT7301_PIN_SPI_CS, 1);
}