Component: Output (DSP)

From Flowcode Help
Jump to navigationJump to search


Author Matrix Ltd
Version 1.2 (Release)
Category DSP


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

UINT


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

BYTE


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

UINT


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

INT


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

STRING



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