Main Page | File List | Globals | Related Pages

spi_lib.h

Go to the documentation of this file.
00001 
00016 #ifndef _SPI_LIB_H_
00017 #define _SPI_LIB_H_
00018 
00019 /*_____ I N C L U D E - F I L E S ____________________________________________*/
00020 #include "lib_mcu\spi\spi_drv.h"
00021 
00022 /*_____ C O N F I G U R A T I O N _________________________________________*/
00023 
00024 /*_____ D E F I N I T I O N S ______________________________________________*/
00025 
00026 
00027 #ifndef SPI_CONFIG
00028 #error You must enter SPI_CONFIG in config.h
00029 #define SPI_CONFIG     
00030 #endif
00031 
00035 typedef enum {SPI_MASTER, SPI_SLAVE} spi_cf_t;
00036 
00037 /*_____ D E C L A R A T I O N ______________________________________________*/
00038 
00039 /*_____ M A C R O S ________________________________________________________*/
00040 
00041 /*_____ P R O T O T Y P E S ____________________________________________________________*/
00042 
00058 bit     spi_init        (spi_cf_t config);
00059 
00068 char    spi_putchar        (char uc_wr_byte);
00069 bit     spi_test_hit       (void);
00076 char    spi_getchar        (void);
00083 
00084 
00085 
00086 
00087 #endif /* _SPI_LIB_H_ */

Generated on Thu Apr 1 15:50:21 2004 for SPI Library by doxygen 1.3.6