Developer World
Spresense Arduino Library v3.3.0-b2e6327
SPI.h File Reference

Spresense Arduino SPI library. More...

#include <sdk/config.h>
#include <nuttx/config.h>
#include <nuttx/spi/spi.h>
#include <Arduino.h>
Include dependency graph for SPI.h:

Go to the source code of this file.

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

Spresense Arduino SPI library.

Author
Sony Semiconductor Solutions Corporation

It is a library for communicating with SPI devices, with the Spresense as the master device.