EFR32 Mighty Gecko 1 Software Documentation  efr32mg1-doc-5.1.2
ksz8851snl_spi.h
Go to the documentation of this file.
1 /**************************************************************************/
16 #ifndef KSZ8851SNL_SPI_H__
17 #define KSZ8851SNL_SPI_H__
18 #include <stdint.h>
19 
20 /**************************************************************************/
25 /**************************************************************************/
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 void KSZ8851SNL_SPI_Init(void);
35 uint16_t KSZ8851SNL_SPI_ReadRegister(uint8_t reg);
36 void KSZ8851SNL_SPI_WriteRegister(uint8_t reg, uint16_t value);
37 void KSZ8851SNL_SPI_ReadFifo(int numBytes, uint8_t *data);
39 void KSZ8851SNL_SPI_WriteFifo(int numBytes, const uint8_t *data);
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
49 #endif
void KSZ8851SNL_SPI_WriteFifo(int numBytes, const uint8_t *data)
Continue writing ethernet controller FIFO.
uint16_t KSZ8851SNL_SPI_ReadRegister(uint8_t reg)
Read ethernet controller register.
void KSZ8851SNL_SPI_WriteFifoEnd(void)
Stop read/write the ethernet controller FIFO.
void KSZ8851SNL_SPI_ReadFifo(int numBytes, uint8_t *data)
Read data from the ethernet controller RX FIFO.
void KSZ8851SNL_SPI_Init(void)
KSZ8851SNL_SPI_Init Initialize SPI interface to Ethernet controller.
void KSZ8851SNL_SPI_WriteRegister(uint8_t reg, uint16_t value)
Write ethernet controller register.
void KSZ8851SNL_SPI_WriteFifoBegin(void)
Start writing to the ethernet controller FIFO.