Loading...
Searching...
No Matches
SPISettings Class Reference

Arduino SPI configuration interface. More...

Detailed Description

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.
 
 SPISettings ()
 Create a new SPI settings instance with default settings.
 

Friends

class SPIClass
 

Constructor & Destructor Documentation

◆ SPISettings() [1/2]

SPISettings::SPISettings ( uint32_t  clock_hz,
uint8_t  bitOrder,
uint8_t  dataMode 
)

Create a new SPI settings instance.

Parameters
clock_hzSPI clock in Hz to use
bitOrderHas to be MSBFIST, for compatibility only
dataModeSPI 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.

◆ SPISettings() [2/2]

SPISettings::SPISettings ( )
inline

Create a new SPI settings instance with default settings.

Definition at line 87 of file spiport.hpp.

Friends And Related Symbol Documentation

◆ SPIClass

friend class SPIClass
friend

Definition at line 89 of file spiport.hpp.


The documentation for this class was generated from the following file: