iPXE
Data Fields
spi_device Struct Reference

An SPI device. More...

#include <spi.h>

Data Fields

struct nvs_device nvs
 NVS device. More...
 
struct spi_busbus
 SPI bus to which device is attached. More...
 
unsigned int slave
 Slave number. More...
 
unsigned int command_len
 Command length, in bits. More...
 
unsigned int address_len
 Address length, in bits. More...
 
unsigned int munge_address: 1
 Address is munged. More...
 

Detailed Description

An SPI device.

This data structure represents a physical SPI device attached to an SPI bus.

Definition at line 86 of file spi.h.

Field Documentation

◆ nvs

struct nvs_device spi_device::nvs

◆ bus

struct spi_bus* spi_device::bus

SPI bus to which device is attached.

Definition at line 90 of file spi.h.

Referenced by falcon_init_spi_device(), natsemi_init_eeprom(), realtek_detect(), and realtek_probe().

◆ slave

unsigned int spi_device::slave

Slave number.

Definition at line 92 of file spi.h.

◆ command_len

unsigned int spi_device::command_len

Command length, in bits.

Definition at line 94 of file spi.h.

◆ address_len

unsigned int spi_device::address_len

Address length, in bits.

Definition at line 96 of file spi.h.

◆ munge_address

unsigned int spi_device::munge_address

Address is munged.

Some devices with 9-bit addresses (e.g. AT25040A EEPROM) use bit 3 of the command byte as address bit A8, rather than having a two-byte address. If this flag is set, then commands should be munged in this way.

Definition at line 104 of file spi.h.


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