SPI Device Definition
This MotoHawk™ block allows an SPI Transaction instance to be defined and performed.
Block ID
GenericSPIDeviceTransaction
Library
motohawk_GenericSPI_lib
MotoHawk_lib/Device Specific/SPI Device Blocks
Description

This MotoHawk™ block defines an SPI Transaction instance. An SPI Transaction is a sequence of duplex word transfers that will be scheduled on the referenced SPI Device when the block executes.
Terminate the RX port if the transaction should discard the response.
The Transfer Status port shall return zero if the transaction occurred and non-zero if there was an error. Errors enumerated by the motohawk_SPITransaction_status_enum M-script
Block Parameters
| Parameter Field | Values | Comments/Description |
|---|---|---|
| Reference Name | Alpha-numeric text, single-quote enclosed | Name of the SPI Device that the SPI Transaction is to execute on. |
| Transfer Word Size (Bytes) | Drop-down list | Defines the word size of the transfer, which will define the TX and RX signal port type. Must match the referenced SPI Device. |
| Words in Transfer | Positive non-zero Integer | Defines the number of words to be transferred by this transaction. Must not be larger than the maximum number of transferred words that the SPI device is expected to support. |
