#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.

Changed in version 2.0.0: dr_pin is a required parameter.

Previously, this parameter conditionally accepted a sentinel value to use the “SW Data Ready” flag in the STATUS_1 register.

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).