#include <MdePkg/Include/Protocol/SpiHc.h>
Support a SPI data transaction between the SPI controller and a SPI chip.
Definition at line 127 of file SpiHc.h.
◆ Attributes
UINT32 _EFI_SPI_HC_PROTOCOL::Attributes |
Host control attributes, may have zero or more of the following set:
- HC_SUPPORTS_WRITE_ONLY_OPERATIONS
- HC_SUPPORTS_READ_ONLY_OPERATIONS
- HC_SUPPORTS_WRITE_THEN_READ_OPERATIONS
- HC_TX_FRAME_IN_MOST_SIGNIFICANT_BITS
- The SPI host controller requires the transmit frame to be in most significant bits instead of least significant bits.The host driver will adjust the frames if necessary.
- HC_RX_FRAME_IN_MOST_SIGNIFICANT_BITS
- The SPI host controller places the receive frame to be in most significant bits instead of least significant bits.The host driver will adjust the frames to be in the least significant bits if necessary.
- HC_SUPPORTS_2_BIT_DATA_BUS_W1DTH
- The SPI controller supports a 2 - bit data bus
- HC_SUPPORTS_4_B1T_DATA_BUS_WIDTH
- The SPI controller supports a 4 - bit data bus
- HC_TRANSFER_SIZE_INCLUDES_OPCODE
- Transfer size includes the opcode byte
- HC_TRANSFER_SIZE_INCLUDES_ADDRESS
- Transfer size includes the 3 address bytes The SPI host controller must support full - duplex (receive while sending) operation.The SPI host controller must support a 1 - bit bus width.
Definition at line 154 of file SpiHc.h.
◆ ChipSelect
Assert or deassert the SPI chip select.
Definition at line 171 of file SpiHc.h.
◆ Clock
Set up the clock generator to produce the correct clock frequency, phase and polarity for a SPI chip.
Definition at line 177 of file SpiHc.h.
◆ FrameSizeSupportMask
UINT32 _EFI_SPI_HC_PROTOCOL::FrameSizeSupportMask |
Mask of frame sizes which the SPI host controller supports. Frame size of N-bits is supported when bit N-1 is set. The host controller must support a frame size of 8-bits.
Definition at line 161 of file SpiHc.h.
◆ MaximumTransferBytes
UINT32 _EFI_SPI_HC_PROTOCOL::MaximumTransferBytes |
Maximum transfer size in bytes: 1 - Oxffffffff
Definition at line 166 of file SpiHc.h.
◆ Transaction
Perform the SPI transaction on the SPI peripheral using the SPI host controller.
Definition at line 183 of file SpiHc.h.
The documentation for this struct was generated from the following file: