Contiki 2.6
|
00001 #ifndef __EFSL_SPI_H__6B6MX40N68__ 00002 #define __EFSL_SPI_H__6B6MX40N68__ 00003 00004 #include <types.h> 00005 00006 struct hwInterface{ 00007 eint32 sectorCount; 00008 }; 00009 typedef struct hwInterface hwInterface; 00010 00011 esint8 if_initInterface(hwInterface* file,eint8* opts); 00012 esint8 if_readBuf(hwInterface* file,euint32 address,euint8* buf); 00013 esint8 if_writeBuf(hwInterface* file,euint32 address,euint8* buf); 00014 esint8 if_setPos(hwInterface* file,euint32 address); 00015 00016 void if_spiInit(hwInterface *iface); 00017 void if_spiSetSpeed(euint8 speed); 00018 euint8 if_spiSend(hwInterface *iface, euint8 outgoing); 00019 00020 00021 #endif /* __EFSL_SPI_H__6B6MX40N68__ */