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