#include <yspi.h>
HWSPI::HWSPI |
( |
uint8_t |
SSpin, |
|
|
uint32_t |
clockF, |
|
|
uint8_t |
bitOrder, |
|
|
uint8_t |
dataMode |
|
) |
| |
Class constructor.
- Parameters
-
SSpin | the Slave Select pin ID |
clockF | the clock frequency to us |
bitOrder | either MSBFIRST or LSBFIRST |
dataMode | theSPI mode to use eg SPI_MODE0 |
- Returns
- an instance.
void HWSPI::beginTransaction |
( |
| ) |
const |
|
virtual |
void HWSPI::endTransaction |
( |
| ) |
const |
|
virtual |
void HWSPI::setSS |
( |
uint8_t |
highLow | ) |
const |
|
virtual |
uint8_t HWSPI::transfer |
( |
uint8_t |
data | ) |
const |
|
virtual |
const SPISettings HWSPI::settings |
|
protected |
SPI Settings struct as per SPI library
The documentation for this class was generated from the following files:
- /home/bob/Desktop/temp/Yannick/PhD_Support/temp/SPI/RPI/Python/serialApp/SerialSlave2560/yspi.h
- /home/bob/Desktop/temp/Yannick/PhD_Support/temp/SPI/RPI/Python/serialApp/SerialSlave2560/hwSPI.cpp