An SPI device provides the following functions:
- Selects the device as the target you want to communicate with,
- Send one or more bytes to the device.
- Performs a transfer by sending the specified data and returning the response,
- Reads a byte from the device.
- Read one or more bytes from the device.