![]() |
CHGame 0.3.0
Libraries for the CHGame handheld
|
A device's SPI settings: its maximum clock, bit order and mode, for SPIClass::beginTransaction(). More...
#include <SPI.h>
Public Member Functions | |
| constexpr | SPISettings (uint32_t clock, BitOrder bitOrder, uint8_t dataMode, bool noRecv=SPI_TRANSMITRECEIVE) |
| Settings for a device. | |
| constexpr | SPISettings () |
The default settings: 4 MHz requested (3 MHz on the wire), MSB first, SPI_MODE0, send and receive. | |
A device's SPI settings: its maximum clock, bit order and mode, for SPIClass::beginTransaction().
|
inlineconstexpr |
Settings for a device.
| clock | the device's maximum clock in Hz; the bus runs at the fastest 48 MHz / 2^n (n = 1..8) that does not exceed it, and at 187.5 kHz below that. |
| bitOrder | MSBFIRST or LSBFIRST. |
| dataMode | SPI_MODE0 ... SPI_MODE3; any other value means SPI_MODE0. |
| noRecv | SPI_TRANSMITRECEIVE (the default) or SPI_TRANSMITONLY: send only, and do not read what comes back. |
|
inlineconstexpr |
The default settings: 4 MHz requested (3 MHz on the wire), MSB first, SPI_MODE0, send and receive.