#include "utility/template/spi.h"
cirque_pinnacle_arduino_wrappers::SPISettings::SPISettings(uint32_t clock, BitOrder bitOrder, DataMode dataMode);
Parameters
uint32_t clock

The SPI speed (in Hz) to be used.

BitOrder bitOrder

The Endianess to be used. Options are:

DataMode dataMode

The clock phase and polarity to be used. Options are:

dataMode

Clock Polarity (CPOL)

Clock Phase (CPHA)

Output Edge

Capture Edge

SPI_MODE0

0

0

Falling

Rising

SPI_MODE1

0

1

Rising

Falling

SPI_MODE2

1

0

Rising

Falling

SPI_MODE3

1

1

Falling

Rising