I was looking for a HardwareSPI method that does exactly what the deprecated method send(uint8_t data) does -- namely shifts a byte out on MOSI while simultanelously reading the input on MISO.
The documentation suggests there should be a non-deprecated replacement for this method, but none seem to fit the bill -- unless I am misreading their descriptions. In particular, they seem to be half duplex methods -- write a byte, then read a byte (e.g., uint8_t transfer(uint8_t b)) -- rather than full duplex (like uint8_t send(uint8_t b)) -- write a byte *while* reading a byte.
Any help or insights appreciated. From the docs:
Deprecated Functions
The following functions are defined for now, but they have been deprecated, and will be removed in a future Maple IDE release. You shouldn’t use them in new programs, and you should change any of your programs which do use them to the up-to-date functions discussed above.
uint8 HardwareSPI::send(uint8 data)
Writes the single byte data into the port buffer to be transmitted as soon as possible. Returns the data byte shifted back from the slave.