Component: Delay (DSP)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix Ltd |
Version | 1.2 |
Category | DSP |
Contents
Delay component
Allows an adjustable delay to be inserted into the DSP system
Detailed description
No detailed description exists yet for this component
Examples
Here is a simple example file for the Delay component.
The DelayADC component is used to set the amount of delay that the component provides 0-2550 samples in steps of 10 samples.
The Input ADC component is used to pass a variable value into the DSP chain to allow the delay to be simulated.
Here is a picture showing the response of the delay component using the data recorder window.
Downloadable macro reference
![]() |
DelayArray |
Passes an entire buffer into the delay buffer and spits out a delayed version of the buffer at the other end | |
![]() |
Return |
![]() |
Delay |
Passes a single value from a buffer into the delay buffer and spits out a delayed value at the other end | |
![]() |
Return |
![]() |
SetDelaySize |
Specifies the number of values in the delay buffer to allow the length of the delay to be adjustable during runtime. | |
![]() |
Delay_Count |
![]() |
Return |
![]() |
PresetDelay |
Presets the contents of the delay buffer with the specified value. | |
![]() |
Value |
![]() |
Return |
![]() |
IsPlaying |
Checks to see if the last played track is still playing | |
[[File:]] - | Return |
![]() |
GetReplyByte |
Reads a single byte from the last reply. Each reply contains 4 bytes starting with the command code. | |
![]() |
Index |
Range: 0-3 / 0=Command, 1=Feedback, 2=Data MSB, 3=Data LSB | |
![]() |
Return |
![]() |
SkipTrack |
Jump to the next or previous track | |
[[File:]] - | Direction |
0=Next, 1=Previous | |
![]() |
Return |
![]() |
Initialise |
Sets up the UART and does some housekeeping. Must be called before calling any of the other component macros. | |
![]() |
Return |
![]() |
ReadAnalogAsInt |
Reads one of the analogue components as an Integer value | |
![]() |
Channel |
0 = LDR, 1 = POT | |
[[File:]] - | Return |
![]() |
Start |
Startup routine required by the hardware device. Automatically clears the display after initialising. | |
![]() |
Return |
![]() |
SetLEDState |
Sets the state of a single LED | |
![]() |
Port |
0 = PortA, 1 = PortB | |
![]() |
LED |
0 = LED0, 7 = LED7 | |
![]() |
State |
![]() |
Return |
![]() |
Initialise |
Must be called before any other CAN component macros to enable and initialise the CAN peripheral. | |
![]() |
Return |