SPB_MULTI_SPI_WRITE_TRANSFER_INIT - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// spb.h

VOID SPB_MULTI_SPI_WRITE_TRANSFER_INIT(
  SPB_MULTI_SPI_WRITE_TRANSFER *SpiTransfer,
  SPB_MULTI_SPI_TRANSFER_MODE  Mode,
  ULONG                        WritePhaseSingleSpiByteCount,
  ULONG                        WaitCycleByteCount
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-spb-spb_multi_spi_write_transfer_init)

Description

The SPB_MULTI_SPI_WRITE_TRANSFER_INIT function initializes an SPB_MULTI_SPI_WRITE_TRANSFER structure.

Parameters

SpiTransfer

A pointer to the SPB_MULTI_SPI_WRITE_TRANSFER structure that is to be initialized.

Mode

An SPB_MULTI_SPI_TRANSFER_MODE enumeration value, specifying the line mode of the multi-SPI transfer to be used by a bus driver to communicate with a peripheral device.

WritePhaseSingleSpiByteCount

The count of bytes at the beginning of the write phase to be transferred in single-SPI mode, before line mode switch to the mode specified in the Mode member of this struct.

WaitCycleByteCount

The number of wait cycles represented as the number of bytes, between the write phase and read phase of the transfer. For a write operation, which is single phase, this should be set to 0.

Remarks

The SPB_MULTI_SPI_WRITE_TRANSFER_INIT function should be used to initialize multi-SPI write transfers. It initializes a SPB_MULTI_SPI_WRITE_TRANSFER structure with the single transfer phase required for a write operation.

See also