Component: Input (DSP)

From Flowcode Help
Jump to navigationJump to search


Author Matrix Ltd
Version 1.2 (Release)
Category DSP


Image 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. FC6 Icon.png 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