Introduction - If you have any usage issues, please Google them yourself
This function of the SPI read and write functions integrated in one, passing val both written to the SPI data is read from the SPI data, only need to perform a read or write before the MCU' s I/O pin is set to the corresponding output or typing.