/* Gets the value of the Read Status Register (0x05)  */
uint8_t w25q16bvGetStatus()
/* Gets the value of the Read Status Register (0x05)  */
uint8_t w25q16bvGetStatus()
{
  uint8_t status;
  W25Q16BV_SELECT();
  w25q16bv_TransferByte(W25Q16BV_CMD_READSTAT1);
  status = w25q16bv_TransferByte(0xFF);
  W25Q16BV_DESELECT();
  return status & (W25Q16BV_STAT1_BUSY | W25Q16BV_STAT1_WRTEN);
}