I'm sure the answer to this question is (as they say) "intuitively obvious to even the most casual observer" - but here I am anyway:
I am trying to get, via SPI, the manufacturer, device, and JEDEC IDs out of an external flash chip, in this particular case with an LPC55S06 as master and an external Winbond flash and using MCUXpresso IDE. To get this info, the master needs to write a single byte command to the flash chip then read back a sequence of bytes.
Looking through the spi_polling_b2b_transfer_master sample and perusing the fsl_spi.c and fsl_spi.h files, the only non-interrupt function candidate seems to be the function SPI_MasterTransferBlocking(). This function, from reading the code, seems to be designed to concurrently write a block of data and read a same size block response.
Not quite what I had in mind. Is there some trick here (or even some other SPI interface functions) that I am just not seeing?
Thanks,
doug