iPXE
Data Fields
spi_bit_basher Struct Reference

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...
 

Detailed Description

A bit-bashing SPI bus.

Definition at line 16 of file spi_bit.h.

Field Documentation

◆ bus

struct spi_bus spi_bit_basher::bus

◆ basher

struct bit_basher spi_bit_basher::basher

◆ endianness

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().


The documentation for this struct was generated from the following file: