Developer World
Spresense Arduino Library v3.3.0-b2e6327
SPISettings Class Reference

SPI settings. More...

#include <SPI.h>

Public Member Functions

 SPISettings (uint32_t clock, uint8_t bitOrder, uint8_t dataMode)
 Construct a new SPISettings object. More...
 
 SPISettings ()
 Construct a new SPISettings object.
 

Friends

class SPIClass
 

Detailed Description

SPI settings.

Store SPI settings:

  • SPI clock frequency
    The default clock frequency is 4 MHz. The maximum frequency supported is 20 MHz.
  • SPI bit order
    The default bit order is MSBFIRST.
  • SPI mode
    The default mode is SPI_MODE0.

Constructor & Destructor Documentation

◆ SPISettings()

SPISettings::SPISettings ( uint32_t  clock,
uint8_t  bitOrder,
uint8_t  dataMode 
)
inline

Construct a new SPISettings object.

Parameters
[in]clockClock frequency
[in]bitOrderBit order
[in]dataModeSPI mode

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