SPSR
return read_byte(priv, SPSR);
hspi_write(hspi, SPSR, 0x0);
if ((mask & hspi_read(hspi, SPSR)) == val)