MotoHawk Slave SPI Reload

This MotoHawk™ block pre-loads the SPI Slave with data to send when the Master initiates a transfer.

Block ID

Slave Reload

Library

motohawk_SPI_lib

Description

This MotoHawk™ block pre-loads the SPI Slave with data to send when the Master initiates a transfer.

Executing the block will write Frames to load of Data to the SPI slave device. This data is only sent out on the wire when the Master initiates a transfer. Only a single reload can be active at any one time. A previous reload will be over written (though the status will indicate this).

Status Description

Status Value Status Description
0 Reload successful. Buffer was empty.
1 Reload successful. Buffer was not empty (i.e. an earlier reload had filled the buffer with content that hadn’t yet been sent).

Block Parameters

Parameter Field Values Comments/Description
Name Unique, C-legal, single quote enclosed alphanumeric This name is referenced by SPI Slave Trigger blocks inorder to associate when this reload was sent out (implying that the Master also sent something.
Slave SPI Definition Name Single quote enclosed alphanumeric Name of the SPI slave definition whose buffer is to be preloaded.
Max Frames to load Numeric Maximum number of frames that can be loaded into the buffer by this block.
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.