Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Block

Mask

Description

The OpFcn SPI Recv extracts data received by an SPI link.

At each calculation step, the block extracts data from the reception FIFO and places them on its output. The user selects the data size in bits.

If the reception FIFO received more data than the block can produce(determined by the width of the data output), the extraneous data is removed from the FIFO to prevent accumulation.

Parameters

ControllerNameEach functionality block such as the OpFcnSPIRecv block must refer to an SPI controller block that will manage the data transfer with the bitstream generated with SPI. The binding betweenOpFcn and OpCtrl blocks is performed via the use of the Controller name that each OpCtrl block uniquely defines. This binding is checked during the initialization phase of the model. If no OpCtrl block is found that defines the same Controller Name as this OpFcnSPIRecv block, the OpFcnSPIRecv block is simply disabled and returns0s.
Function NumberCurrently unused.
Data sizeSpecifies the size in bits of the received data. Must be an integer ranging from 1 to 32.
Maximum message countSpecifies the maximum number of messages to extract from the SPI reception FIFO at each calculation step. This value will determine the width of the Rx Data output.

Inputs

This block has no inputs.

Outputs

Rx FIFO levelProduces the FIFO level before extraction of data by the current instance of the block.
Rx CountNumber of data units produced on the data outport. Possible values range from 0 to Maximum message count.
Rx DataData extracted from the board. The width of this output is determined by the Maximum data count parameter. Each signal corresponds a value to Data size bits converted back into a floating point numerical value.
StatusA non zero value is produced if an error occurred.The most likely errors are FIFO overruns (can be monitored with the Rx FIFO level output). When such an error occurs, FIFO content is cleared.

Characteristics and Limitations

This block has no special characteristics.

Direct FeedthroughNo
Discrete sample timeYes
XHP supportYes
Work offlineNo
  • No labels