Developer World
Spresense Arduino Library v3.3.0-b2e6327
SPI Library API

API for using SPI. More...

Classes

class  SPISettings
 SPI settings. More...
 
class  SPIClass
 SPI controller. More...
 

Macros

#define SPI_HAS_TRANSACTION   1
 
#define SPI_HAS_NOTUSINGINTERRUPT   1
 
#define SPI_ATOMIC_VERSION   1
 
#define SPI_MODE0   SPIDEV_MODE0
 
#define SPI_MODE1   SPIDEV_MODE1
 
#define SPI_MODE2   SPIDEV_MODE2
 
#define SPI_MODE3   SPIDEV_MODE3
 
#define SPI_CLOCK_DIV2   2
 
#define SPI_CLOCK_DIV4   4
 
#define SPI_CLOCK_DIV8   8
 
#define SPI_CLOCK_DIV16   16
 
#define SPI_CLOCK_DIV32   32
 
#define SPI_CLOCK_DIV64   64
 
#define SPI_CLOCK_DIV128   128
 

Enumerations

enum  SpiInterruptMode { SPI_INT_MODE_NONE = 0 , SPI_INT_MODE_MASK , SPI_INT_MODE_GLOBAL }
 Spi interrupt mode. More...
 

Detailed Description

API for using SPI.

Macro Definition Documentation

◆ SPI_MODE0

#define SPI_MODE0   SPIDEV_MODE0

SPI mode 0

◆ SPI_MODE1

#define SPI_MODE1   SPIDEV_MODE1

SPI mode 1

◆ SPI_MODE2

#define SPI_MODE2   SPIDEV_MODE2

SPI mode 2

◆ SPI_MODE3

#define SPI_MODE3   SPIDEV_MODE3

SPI mode 3

◆ SPI_CLOCK_DIV2

#define SPI_CLOCK_DIV2   2

SPI Clock Divider 2

◆ SPI_CLOCK_DIV4

#define SPI_CLOCK_DIV4   4

SPI Clock Divider 4

◆ SPI_CLOCK_DIV8

#define SPI_CLOCK_DIV8   8

SPI Clock Divider 8

◆ SPI_CLOCK_DIV16

#define SPI_CLOCK_DIV16   16

SPI Clock Divider 16

◆ SPI_CLOCK_DIV32

#define SPI_CLOCK_DIV32   32

SPI Clock Divider 32

◆ SPI_CLOCK_DIV64

#define SPI_CLOCK_DIV64   64

SPI Clock Divider 64

◆ SPI_CLOCK_DIV128

#define SPI_CLOCK_DIV128   128

SPI Clock Divider 128

Enumeration Type Documentation

◆ SpiInterruptMode

Spi interrupt mode.

Enumerator
SPI_INT_MODE_NONE 

None

SPI_INT_MODE_MASK 

Mask

SPI_INT_MODE_GLOBAL 

Global