/* ID Command Function: MX25_RDID Arguments: Identification, 32 bit buffer to store id Description: The RDID instruction is to read the manufacturer ID of 1-byte and followed by Device ID of 2-byte. Return Message: FlashOperationSuccess  */
ReturnMsg MX25_RDID(uint32_t *Identification)
/* ID Command Function: MX25_RDID Arguments: Identification, 32 bit buffer to store id Description: The RDID instruction is to read the manufacturer ID of 1-byte and followed by Device ID of 2-byte. Return Message: FlashOperationSuccess  */
ReturnMsg MX25_RDID(uint32_t *Identification)
{
    uint32_t temp;
    uint8_t  gDataBuffer[3];
    CS_Low();
    SendByte( FLASH_CMD_RDID, SIO );
    gDataBuffer[0] = GetByte( SIO );
    gDataBuffer[1] = GetByte( SIO );
    gDataBuffer[2] = GetByte( SIO );
    CS_High();
    temp =  gDataBuffer[0];
    temp =  (temp << 8) | gDataBuffer[1];
    *Identification =  (temp << 8) | gDataBuffer[2];
    return FlashOperationSuccess;
}