-
Notifications
You must be signed in to change notification settings - Fork 0
/
spi.h
29 lines (22 loc) · 940 Bytes
/
spi.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//***************************************************************
//------------<02.Dec.2010 by Peter Reiser>----------------------
//***************************************************************
#ifndef _SPI_H_
#define _SPI_H_
//================================================================
#include <MSP430x23x0.h> // prozessor spezific header
//#include <stdio.h> // standard input/output header
#include "mcu.h"
#include "types.h"
//===============================================================
void SpiDirectCommand(u08_t *pbuf);
void SpiDirectMode(void);
void SpiRawWrite(u08_t *pbuf, u08_t length);
void SpiReadCont(u08_t *pbuf, u08_t length);
void SpiReadSingle(u08_t *pbuf, u08_t length);
void SpiSetup(void);
void SpiUsciExtClkSet(void);
void SpiWriteCont(u08_t *pbuf, u08_t length);
void SpiWriteSingle(u08_t *pbuf, u08_t length);
//===============================================================
#endif