Difference between revisions of "Component: Input (DSP)"
(XML import of components for release) |
(XML import BR) |
||
(7 intermediate revisions by 4 users not shown) | |||
Line 4: | Line 4: | ||
|- | |- | ||
| width="20%" style="color: gray;" | Author | | width="20%" style="color: gray;" | Author | ||
− | | | + | | Matrix Ltd |
|- | |- | ||
| 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 17: | Line 17: | ||
==[[File:Component Icon c73d493a_b6a0_4dbe_b4b5_79648f67d11e.png|Image]] Input component== | ==[[File:Component Icon c73d493a_b6a0_4dbe_b4b5_79648f67d11e.png|Image]] Input component== | ||
Allows the values from a buffer to be assigned. Either a value at a time or from an array. | Allows the values from a buffer to be assigned. Either a value at a time or from an array. | ||
− | + | The input signal would usually take the form of an ADC reading or raw data values. | |
==Examples== | ==Examples== | ||
− | + | Here is a basic example demonstrating how to pass a value into the DSP chain. | |
− | + | {{Fcfile|Delay.fcfx|Delay}} | |
+ | The input value in the example uses an ADC reading but this can be taken from anything such as a reading from a CSV file on a SD card or a value passed by a sensor on a I2C bus etc. | ||
==Downloadable macro reference== | ==Downloadable macro reference== |
Latest revision as of 15:45, 16 February 2017
Author | Matrix Ltd |
Version | 1.2 (Release) |
Category | DSP |
Contents
Input component
Allows the values from a buffer to be assigned. Either a value at a time or from an array. The input signal would usually take the form of an ADC reading or raw data values.
Examples
Here is a basic example demonstrating how to pass a value into the DSP chain.
Delay
The input value in the example uses an ADC reading but this can be taken from anything such as a reading from a CSV file on a SD card or a value passed by a sensor on a I2C bus etc.
Downloadable macro reference
AddAsByteTick
Adds a single byte value to the current location in the specified buffer and scales it appropriatley to suit the buffer.
Parameters
- BYTE Data
Return value
- This call does not return a value
AddAsUINTTick
Adds a single unsigned int value to the current location in the specified buffer and scales it appropriatley to suit the buffer.
Parameters
- UINT Data
Return value
- This call does not return a value
AddToBuffer
Adds an array of byte values to the specified buffer and scales them appropriatley to suit the buffer.
Parameters
- <- STRING Data
- This parameter may be returned back to the caller
Return value
- This call does not return a value
AddAsSINTTick
Adds a single signed integer value to the current location in the specified buffer and scales it appropriatley to suit the buffer.
Parameters
- INT Data
Return value
- This call does not return a value
AddRawTick
Adds a value to the current location in the specified buffer as is and without scaling.
Parameters
- UINT Data
Return value
- This call does not return a value
Simulation macro reference
This component does not contain any simulation macros
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.
Input
This property is of type Fixed list of ints and can be referenced with the variable name input_a.
Buffer assigned to input channel