KS8851SNL driver for SAM0.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
PHY register read/write functions | |
uint16_t | ksz8851_reg_read (uint16_t reg) |
Read a register value. More... | |
void | ksz8851_reg_write (uint16_t reg, uint16_t wrdata) |
Write a register value. More... | |
void | ksz8851_reg_setbits (uint16_t reg, uint16_t bits_to_set) |
Read register content, set bitmask and write back to register. More... | |
void | ksz8851_reg_clrbits (uint16_t reg, uint16_t bits_to_clr) |
Read register content, clear bitmask and write back to register. More... | |
PHY FIFO read/write functions | |
void | ksz8851_fifo_read (uint8_t *buf, uint32_t len) |
Read internal fifo buffer. More... | |
void | ksz8851_fifo_write_begin (uint32_t tot_len) |
Start to write internal fifo buffer. More... | |
void | ksz8851_fifo_write (uint8_t *buf, uint32_t len) |
Write internal fifo buffer. More... | |
void | ksz8851_fifo_write_end (uint32_t pad) |
Complete write operation. More... | |
Initialization and configuration | |
uint32_t | ksz8851snl_init (void) |
Initialize the PHY controller. More... | |
void | configure_intn (void(*p_handler)(void)) |
Configure the INTN interrupt. More... | |
Variables | |
struct spi_module | ksz8851snl_master |
struct spi_slave_inst | ksz8851snl_slave |