Contiki 2.5
efsl_spi.h
1 #ifndef __EFSL_SPI_H__6B6MX40N68__
2 #define __EFSL_SPI_H__6B6MX40N68__
3 
4 #include <types.h>
5 
6 struct hwInterface{
7  eint32 sectorCount;
8 };
9 typedef struct hwInterface hwInterface;
10 
11 esint8 if_initInterface(hwInterface* file,eint8* opts);
12 esint8 if_readBuf(hwInterface* file,euint32 address,euint8* buf);
13 esint8 if_writeBuf(hwInterface* file,euint32 address,euint8* buf);
14 esint8 if_setPos(hwInterface* file,euint32 address);
15 
16 void if_spiInit(hwInterface *iface);
17 void if_spiSetSpeed(euint8 speed);
18 euint8 if_spiSend(hwInterface *iface, euint8 outgoing);
19 
20 
21 #endif /* __EFSL_SPI_H__6B6MX40N68__ */