/* Function: MX25_RDSCUR Arguments: SecurityReg, 8 bit buffer to store security register value Description: The RDSCUR instruction is for reading the value of Security Register bits. Return Message: FlashOperationSuccess  */
ReturnMsg MX25_RDSCUR(uint8_t *SecurityReg)
/* Function: MX25_RDSCUR Arguments: SecurityReg, 8 bit buffer to store security register value Description: The RDSCUR instruction is for reading the value of Security Register bits. Return Message: FlashOperationSuccess  */
ReturnMsg MX25_RDSCUR(uint8_t *SecurityReg)
{
    uint8_t  gDataBuffer;
    CS_Low();
    SendByte( FLASH_CMD_RDSCUR, SIO );
    gDataBuffer = GetByte( SIO );
    CS_High();
    *SecurityReg = gDataBuffer;
    return FlashOperationSuccess;
}