#include "CirquePinnacle.h"
PinnacleTouchSPI::PinnacleTouchSPI(pinnacle_gpio_t dataReadyPin, pinnacle_gpio_t slaveSelectPin, uint32_t spiSpeed = PINNACLE_SPI_SPEED);

Create an instance to interface with the Pinnacle ASIC over an SPI bus.

Parameters:
pinnacle_gpio_t dataReadyPin

The input pin connected to the Pinnacle ASIC’s “Data Ready” pin. To use the Pinnacle’s Software Data Ready flag instead, set this to PINNACLE_SW_DR. In general, it recommended to use the Hardware Data Ready pin for speed and efficient bus activity.

Limits of anymeas mode

A Hardware Data Ready pin is required for anymeas mode.

pinnacle_gpio_t slaveSelectPin

The “slave select” pin output to the Pinnacle ASIC.

uint32_t spiSpeed = PINNACLE_SPI_SPEED

The speed (or baudrate) to use on the SPI bus. Defaults to the Pinnacle ASIC’s maximum 13 MHz (13000000).