An SPI port.
#include <Spi.h>
◆ enabled() [1/2]
◆ enabled() [2/2]
virtual void enabled |
( |
bool |
| ) |
|
|
pure virtual |
◆ sendReceive()
- Parameters
-
[in] | dataToWrite | vector of input data |
[in] | chipSelect | pin to use as chip-select, or nullptr. Defaults to nullptr. |
[in] | chipSelectMode | The ChipSelectMode to use if chipSelect != nullptr. Defaults to ChipSelectMode::SpiActiveLow. |
[in] | speed | The speed, in MHz, to clock the data at. Defaults to 6. |
[in] | burstMode | The burst mode to use. Defaults to BurstMode::NoBurst. |
[in] | spiMode | The SPI mode to use. Defaults to SpiMode::Mode00. |
- Returns
- A std::vector<uint8_t> of the received data
The documentation for this class was generated from the following file:
- F:/Git/treehopper-sdk/C++/API/inc/Spi.h