Difference between revisions of "Component: Output (DSP)"
(XML import) |
(XML import) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 7: | Line 7: | ||
|- | |- | ||
| width="20%" style="color: gray;" | Version | | width="20%" style="color: gray;" | Version | ||
− | | 1.2 | + | | 1.2 (Release) |
|- | |- | ||
| width="20%" style="color: gray;" | Category | | width="20%" style="color: gray;" | Category | ||
Line 15: | Line 15: | ||
− | ==[[ | + | ==[[File:Component Icon 1392d5c3_35ba_4c7f_a539_7f30a09758e4.png|Image]] Output component== |
Allows the values from a buffer to be read. Either a value at a time or as an array. | Allows the values from a buffer to be read. Either a value at a time or as an array. | ||
==Examples== | ==Examples== | ||
− | Here is a basic example demonstrating how to pass a value from the DSP chain. | + | Here is a basic example demonstrating how to pass a value from the DSP chain. |
− | + | {{Fcfile|Delay.fcfx|Delay}} | |
− | |||
− | |||
− | |||
The output value in the example goes to a PWM component but this can be passed to anything such as stored into a CSV file on a SD card or passed to an external I2C device etc. | The output value in the example goes to a PWM component but this can be passed to anything such as stored into a CSV file on a SD card or passed to an external I2C device etc. | ||
Latest revision as of 11:25, 13 February 2015
Author | Matrix Ltd |
Version | 1.2 (Release) |
Category | DSP |
Contents
Output component
Allows the values from a buffer to be read. Either a value at a time or as an array.
Examples
Here is a basic example demonstrating how to pass a value from the DSP chain.
Delay
The output value in the example goes to a PWM component but this can be passed to anything such as stored into a CSV file on a SD card or passed to an external I2C device etc.
Downloadable macro reference
ReadRawTick
Returns the value from the specified buffer at the current index position as is without any type casting or scaling.
Parameters
- This macro has no parameters
Return value
ReadAsByteTick
Returns the value from the specified buffer at the current index position as a byte. If the buffer has a higher bit depth then the return value will be appropriately scaled.
Parameters
- This macro has no parameters
Return value
ReadAsUINTTick
Returns the value from the specified buffer at the current index position as a unsigned int. If the buffer has a lower bit depth then the return value will be appropriately scaled.
Parameters
- This macro has no parameters
Return value
ReadAsSINTTick
Returns the value from the specified buffer at the current index position as a signed int. If the buffer has a lower bit depth then the return value will be appropriately scaled.
Parameters
- INT Data
Return value
Simulation macro reference
ReadFromBuffer
Returns an array of values from the specified buffer at the current index position as a byte array. If the buffer has a higher bit depth then the return value will be appropriately scaled.
Parameters
- <- STRING Data
- This parameter may be returned back to the caller
Return value
Property reference
Buffer Manager
This property is of type Fixed list of ints and can be referenced with the variable name buffer_manager.
Reference to DSP system buffer manager component.
Output
This property is of type Fixed list of ints and can be referenced with the variable name input_a.
Buffer assigned to output channel