spi.h

Go to the documentation of this file.
00001 /****************************************************************************/
00019 #ifndef _SPI_H
00020 #define _SPI_H
00021 
00022 /******************************************************************************
00023                    Includes section
00024 ******************************************************************************/
00025 #if defined(AT91SAM7X256)
00026   #include <halMemSpi.h>
00027 #elif defined(ATMEGA1281) || defined(ATMEGA2561) || defined(ATMEGA1284) || defined(AT90USB1287)
00028   #include <halSpi.h>
00029 #endif
00030 
00031 /**************************************************************************/
00073 int HAL_OpenSpi(HAL_SpiMode_t *spiMode, void (*callback)());
00074 
00075 /**************************************************************************/
00080 int HAL_CloseSpi(void);
00081 
00082 /**************************************************************************/
00096 int HAL_WriteSpi(uint8_t *buffer, uint8_t length);
00097 
00098 #endif /* _SPI_H */
00099 // eof spi.h

Generated on Mon Feb 16 17:53:40 2009 for BitCloud Stack Documentation by  doxygen 1.5.1-p1