|
stm32f103
|
Implements an abstraction layer for SPI. More...
#include <spi.h>
Classes | |
| struct | Config |
| Configuration for individual SPI. More... | |
Public Member Functions | |
| SPI (const Config &config) | |
| Constructor for SPI. More... | |
| char | Transfer (char byte) |
| void | Enable () |
| Enables the SPI bus. More... | |
| void | Disable () |
| Disables the SPI bus. More... | |
Protected Member Functions | |
| void | Init () |
| Performs initialization for this SPI bus. More... | |
Implements an abstraction layer for SPI.
|
explicit |
| void SPI::Disable | ( | ) |
Disables the SPI bus.
| void SPI::Enable | ( | ) |
Enables the SPI bus.
|
protected |
| char SPI::Transfer | ( | char | byte | ) |