25#ifndef _WATCH_SPI_H_INCLUDED
26#define _WATCH_SPI_H_INCLUDED
bool watch_spi_read(uint8_t *buf, uint16_t length)
Reads a series of values from a device on the SPI bus.
bool watch_spi_transfer(const uint8_t *data_out, uint8_t *data_in, uint16_t length)
Reads a series of values from a device on the SPI bus.
void watch_enable_spi(void)
Enables the SPI peripheral. Call this before attempting to interface with SPI devices.
void watch_disable_spi(void)
Disables the SPI peripheral.
bool watch_spi_write(const uint8_t *buf, uint16_t length)
Writes a series of values to a device on the SPI bus.