Prusa MINI Firmware overview
SPISettings Class Reference

#include <SPI.h>

Public Member Functions

 SPISettings ()
 
 SPISettings (uint32_t clock, BitOrder bitOrder, uint8_t dataMode)
 
 SPISettings (uint32_t inClock, BitOrder inBitOrder, uint8_t inDataMode)
 
 SPISettings (uint32_t inClock, BitOrder inBitOrder, uint8_t inDataMode, uint32_t inDataSize)
 
 SPISettings (uint32_t inClock)
 
 SPISettings ()
 

Friends

class SPIClass
 

Constructor & Destructor Documentation

◆ SPISettings() [1/6]

SPISettings::SPISettings ( )
40 {}

◆ SPISettings() [2/6]

SPISettings::SPISettings ( uint32_t  clock,
BitOrder  bitOrder,
uint8_t  dataMode 
)
41 {}

◆ SPISettings() [3/6]

SPISettings::SPISettings ( uint32_t  inClock,
BitOrder  inBitOrder,
uint8_t  inDataMode 
)
98  :
99  SPISettings(uint32_t inClock, BitOrder inBitOrder, uint8_t inDataMode) {
100  if (__builtin_constant_p(inClock))
101  init_AlwaysInline(inClock, inBitOrder, inDataMode, DATA_SIZE_8BIT);
102  else
103  init_MightInline(inClock, inBitOrder, inDataMode, DATA_SIZE_8BIT);

◆ SPISettings() [4/6]

SPISettings::SPISettings ( uint32_t  inClock,
BitOrder  inBitOrder,
uint8_t  inDataMode,
uint32_t  inDataSize 
)
105  {
106  if (__builtin_constant_p(inClock))
107  init_AlwaysInline(inClock, inBitOrder, inDataMode, inDataSize);
108  else
109  init_MightInline(inClock, inBitOrder, inDataMode, inDataSize);

◆ SPISettings() [5/6]

SPISettings::SPISettings ( uint32_t  inClock)
111  {
112  if (__builtin_constant_p(inClock))
113  init_AlwaysInline(inClock, MSBFIRST, SPI_MODE0, DATA_SIZE_8BIT);
114  else
115  init_MightInline(inClock, MSBFIRST, SPI_MODE0, DATA_SIZE_8BIT);

◆ SPISettings() [6/6]

SPISettings::SPISettings ( )
117  {
118  init_AlwaysInline(4000000, MSBFIRST, SPI_MODE0, DATA_SIZE_8BIT);

Friends And Related Function Documentation

◆ SPIClass

friend class SPIClass
friend
SPI_MODE0
#define SPI_MODE0
Definition: SPI.h:80
DATA_SIZE_8BIT
#define DATA_SIZE_8BIT
Definition: SPI.h:85
BitOrder
BitOrder
Definition: wiring_constants.h:65
MSBFIRST
Definition: wiring_constants.h:67
uint8_t
const uint8_t[]
Definition: 404_html.c:3
SPISettings::SPISettings
SPISettings()
Definition: SPI.cpp:40