/* Register Command Function: MX25_RDSR Arguments: StatusReg, 8 bit buffer to store status register value Description: The RDSR instruction is for reading Status Register Bits. Return Message: FlashOperationSuccess  */
ReturnMsg MX25_RDSR(uint8_t *StatusReg)
/* Register Command Function: MX25_RDSR Arguments: StatusReg, 8 bit buffer to store status register value Description: The RDSR instruction is for reading Status Register Bits. Return Message: FlashOperationSuccess  */
ReturnMsg MX25_RDSR(uint8_t *StatusReg)
{
    uint8_t  gDataBuffer;
    CS_Low();
    SendByte( FLASH_CMD_RDSR, SIO );
    gDataBuffer = GetByte( SIO );
    CS_High();
    *StatusReg = gDataBuffer;
    return FlashOperationSuccess;
}