ksz8851snl_spi.h

Go to the documentation of this file.
00001 /**************************************************************************/
00016 #ifndef KSZ8851SNL_SPI_H__
00017 #define KSZ8851SNL_SPI_H__
00018 #include <stdint.h>
00019 
00020 /**************************************************************************/
00025 /**************************************************************************/
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033 
00034 void KSZ8851SNL_SPI_Init(void);
00035 uint16_t KSZ8851SNL_SPI_ReadRegister(uint8_t reg);
00036 void KSZ8851SNL_SPI_WriteRegister(uint8_t reg, uint16_t value);
00037 void KSZ8851SNL_SPI_ReadFifo(int numBytes, uint8_t *data);
00038 void KSZ8851SNL_SPI_WriteFifoBegin(void);
00039 void KSZ8851SNL_SPI_WriteFifo(int numBytes, const uint8_t *data);
00040 void KSZ8851SNL_SPI_WriteFifoEnd(void);
00041 
00042 #ifdef __cplusplus
00043 }
00044 #endif
00045 
00049 #endif