summaryrefslogtreecommitdiff
path: root/include/arch/lora32u4ii/driver/spi.h
blob: 6377fe9c1ede20fb7b215a193c0965c9828a40bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

class SPI {
	private:
		SPI(const SPI &copy);

	public:
		SPI () {}
		signed char setup();
		signed char xmit(
				unsigned char tx_len, unsigned char *tx_buf,
				unsigned char rx_len, unsigned char *rx_buf);
};

extern SPI spi;