MotoHawk Master Read SPI Transaction

This MotoHawk™ block allows the Slave's data that was sent in response to a Master's transaction to be recovered by the application.

Block ID

Master Read SPI Transaction

Library

motohawk_SPI_lib

Description

This MotoHawk™ block allows the Slave's data that was sent in response to a Master's transaction to be recovered by the application. Note that SPI transfers are full duplex so the Slave's response was pre-loaded before the Master's transaction was physically transmitted over the wire.

Status Description

Status Value Status Description
0 The Master Transaction referenced by this read has been transmitted and a reply has been received that matches the length expected by this read block.
1 The Master Transaction referenced by this read has been transmitted and a reply has been received. The recovered reply's length was greater than this read block was expecting.
2 The Master Transaction referenced by this read has initiated transmission, but it is not yet complete and thus the reply is pending. Data is currently invalid while waiting for the response to be received.
3 The Master Transaction referenced by this read has been transmitted, but a reply was not received before the timeout as defined in the SPI master definition block expired.

Block Parameters

Parameter Field Values Comments/Description
Transaction Name Single quote enclosed alpha numeric Name of the transaction that this reply applies to.
Error if get frames does not correlate with max number in the transaction Checkbox When checked the max frames from the referenced transaction must match this block's max frames or an error will result during Simulink Update.
Max Frames to get Numeric Maximum number of frames that can be read from the buffer.
Frame Size Drop-down list Selectable frame size, either 8 bit or 16 bit. This specifies the number of bits in one frame of data.