You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
Block
Mask
Description
The OpFcn SPI Send transmits data on a SPI link.
At each calculation step, this block takes the specified values on its inputs and places them into the transmission FIFO of an SPI port. The user selects the data size in bits.
Parameters
Controller Name | Each functionality block such as the OpFcnSPISend block must refer to an SPI controller block that will manage the data transfer with the bitstream generated with SPI. The binding between OpFcn 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 OpFcnSPISend block, the OpFcnSPISend block is simply disabled and returns 0s. |
---|
Function Number | Currently unused. |
---|
Data size | Specifies the size in bits of the transmitted data. Must be an integer ranging from 1 to 32. |
---|
Maximum data count | Specifies the maximum number of values that can be transmitted at each calculation step. This value will determine the width of the Tx Data input. |
---|
Tx Count | Number of data units produced on the data outport. Possible values range from0 to Maximum data count. This count will be saturated internally if the FIFO does not have enough space to accommodate all values. |
---|
Tx Data | Data to be transmitted. The width of this output is determined by the Maximum data count parameter. Each signal corresponds value to Data size bits converted back into a floating point numerical value. |
---|
Outputs
Tx FIFO level | Produces the FIFO level after the insertion of data by this block. |
---|
Status | A negative value indicates an error occurred. The most likely error is a FIFO overrun. |
---|
Characteristics and Limitations
This block has no special characteristics.
Direct Feedthrough | No |
---|
Discrete sample time | Yes |
---|
XHP support | Yes |
---|
Work offline | No |
---|