![]() |
Arduino Core for STM32
1.0
|
Methods for initializing transaction and flushing buffers. More...
Functions | |
| virtual SPI_Status | HardwareSPI::beginTransaction (SPISettings settings) |
| Sets some settings to SPI periphery before transaction. More... | |
| void | HardwareSPI::flushRX () |
| Clears RX FIFO buffer. More... | |
| bool | HardwareSPI::flush () |
| Waits until DMA or IT (nonblocking transaction methods) are timed out and then aborts them. More... | |
| virtual SPI_Status | HardwareSPI::endTransaction (void) |
| This method don't have to be called at the end of the transaction when using HardwareSPI class, but be careful, HardwareSPI_O class requres to call this at the end of transaction. More... | |
Methods for initializing transaction and flushing buffers.
|
virtual |
Sets some settings to SPI periphery before transaction.
| settings | Class, that contains basic SPI settings. |
Reimplemented in HardwareSPI_O.

| void HardwareSPI::flushRX | ( | ) |
Clears RX FIFO buffer.
All received messages will be discarded.

| bool HardwareSPI::flush | ( | ) |
Waits until DMA or IT (nonblocking transaction methods) are timed out and then aborts them.
This method also flushes RX and TX by calling flushRX() and flushTX() methods.

|
virtual |
This method don't have to be called at the end of the transaction when using HardwareSPI class, but be careful, HardwareSPI_O class requres to call this at the end of transaction.
Reimplemented in HardwareSPI_O.
