/* Function: MX25_REMS Arguments: REMS_Identification, 16 bit buffer to store id fsptr, pointer of flash status structure Description: The REMS instruction is to read the Device manufacturer ID and electric ID of 1-byte. Return Message: FlashOperationSuccess  */
ReturnMsg MX25_REMS(uint16_t *REMS_Identification, FlashStatus *fsptr)
/* Function: MX25_REMS Arguments: REMS_Identification, 16 bit buffer to store id fsptr, pointer of flash status structure Description: The REMS instruction is to read the Device manufacturer ID and electric ID of 1-byte. Return Message: FlashOperationSuccess  */
ReturnMsg MX25_REMS(uint16_t *REMS_Identification, FlashStatus *fsptr)
{
    uint8_t  gDataBuffer[2];
    CS_Low();
    SendByte( FLASH_CMD_REMS, SIO );
    InsertDummyCycle( 16 );
    SendByte( fsptr->ArrangeOpt, SIO );
    gDataBuffer[0] = GetByte( SIO );
    gDataBuffer[1] = GetByte( SIO );
    *REMS_Identification = (gDataBuffer[0] << 8) | gDataBuffer[1];
    CS_High();
    return FlashOperationSuccess;
}