summaryrefslogtreecommitdiff
path: root/include/arch/msp430fr5969lp/driver/spi.h
blob: 606ce39b298c3facaa57940cdbd5dcf1e7ce6eeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright 2020 Birte Kristina Friesel
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */
#ifndef SPI_H
#define SPI_H

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

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

extern SPI spi;

#endif