iPXE
|
A bit-bashing SPI bus. More...
#include <spi_bit.h>
Data Fields | |
struct spi_bus | bus |
SPI bus. More... | |
struct bit_basher | basher |
Bit-bashing interface. More... | |
int | endianness |
Endianness of data. More... | |
struct spi_bus spi_bit_basher::bus |
SPI bus.
Definition at line 18 of file spi_bit.h.
Referenced by init_spi_bit_basher(), natsemi_init_eeprom(), realtek_detect(), realtek_init_eeprom(), spi_bit_set_slave_select(), and spi_bit_transfer().
struct bit_basher spi_bit_basher::basher |
Bit-bashing interface.
Definition at line 20 of file spi_bit.h.
Referenced by ifec_spi_read_bit(), ifec_spi_write_bit(), init_spi_bit_basher(), natsemi_init_eeprom(), natsemi_spi_read_bit(), natsemi_spi_write_bit(), realtek_init_eeprom(), realtek_spi_close_bit(), realtek_spi_open_bit(), realtek_spi_read_bit(), realtek_spi_write_bit(), rtl818x_spi_read_bit(), rtl818x_spi_write_bit(), spi_bit_rw(), spi_bit_set_slave_select(), and spi_bit_transfer().
int spi_bit_basher::endianness |
Endianness of data.
SPI commands and addresses are always big-endian (i.e. MSB transmitted first on the wire), but some cards (e.g. natsemi) choose to regard the data stored in the EEPROM as little-endian (i.e. LSB transmitted first on the wire).
Definition at line 29 of file spi_bit.h.
Referenced by natsemi_init_eeprom(), and spi_bit_rw().