Arduino SPI configuration interface. More...
Arduino SPI configuration interface.
Definition at line 64 of file spiport.hpp.
#include <spiport.hpp>
Public Member Functions | |
SPISettings (uint32_t clock_hz, uint8_t bitOrder, uint8_t dataMode) | |
Create a new SPI settings instance. More... | |
SPISettings () | |
Create a new SPI settings instance with default settings. | |
Friends | |
class | SPIClass |
SPISettings::SPISettings | ( | uint32_t | clock_hz, |
uint8_t | bitOrder, | ||
uint8_t | dataMode | ||
) |
Create a new SPI settings instance.
clock_hz | SPI clock in Hz to use |
bitOrder | Has to be MSBFIST , for compatibility only |
dataMode | SPI mode to use |
The RIOT SPI clock frequency best matching clock
will be chosen, but the frequency will never by greater than what is given in clock
, unless clock_hz
is is lower than 100kHz, which is the lowest clock frequency that will be used.