iPXE
SPI status register bits (not present on all devices)

Macros

#define SPI_STATUS_WPEN   0x80
 Write-protect pin enabled.
#define SPI_STATUS_BP2   0x10
 Block protection bit 2.
#define SPI_STATUS_BP1   0x08
 Block protection bit 1.
#define SPI_STATUS_BP0   0x04
 Block protection bit 0.
#define SPI_STATUS_WEN   0x02
 State of the write enable latch.
#define SPI_STATUS_NRDY   0x01
 Device busy flag.

Detailed Description

Macro Definition Documentation

◆ SPI_STATUS_WPEN

#define SPI_STATUS_WPEN   0x80

Write-protect pin enabled.

Definition at line 62 of file spi.h.

◆ SPI_STATUS_BP2

#define SPI_STATUS_BP2   0x10

Block protection bit 2.

Definition at line 65 of file spi.h.

◆ SPI_STATUS_BP1

#define SPI_STATUS_BP1   0x08

Block protection bit 1.

Definition at line 68 of file spi.h.

◆ SPI_STATUS_BP0

#define SPI_STATUS_BP0   0x04

Block protection bit 0.

Definition at line 71 of file spi.h.

◆ SPI_STATUS_WEN

#define SPI_STATUS_WEN   0x02

State of the write enable latch.

Definition at line 74 of file spi.h.

◆ SPI_STATUS_NRDY

#define SPI_STATUS_NRDY   0x01

Device busy flag.

Definition at line 77 of file spi.h.

Referenced by spi_wait().