Component: Input Digital (DSP)
From Flowcode Help
Jump to navigationJump to search
Author | Matrix Ltd |
Version | 1.2 |
Category | DSP |
Contents
Input Digital 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.
Detailed description
No detailed description exists yet for this component
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
![]() |
AddByte |
Adds a single byte value to the current location in the specified buffer and scales it appropriatley to suit the buffer. Auto increments current location. | |
![]() |
Data |
![]() |
Return |
![]() |
AddByteArray |
Adds an array of byte values to the specified buffer and scales it appropriatley to suit the buffer. Auto increments current location. | |
![]() |
Data |
![]() |
Count |
![]() |
Return |
![]() |
AddLong |
Adds a single unsigned long value to the current location in the specified buffer and scales it appropriatley to suit the buffer. Auto increments current location. | |
![]() |
Data |
![]() |
Return |
![]() |
AddInt |
Adds a single unsigned int value to the current location in the specified buffer and scales it appropriatley to suit the buffer. Auto increments current location. | |
![]() |
Data |
![]() |
Return |
![]() |
AddLongArray |
Adds an array of long values to the specified buffer and scales it appropriatley to suit the buffer. Auto increments current location. | |
![]() |
Data |
![]() |
Count |
![]() |
Return |
![]() |
AddIntArray |
Adds an array of integer values to the specified buffer and scales it appropriatley to suit the buffer. Auto increments current location. | |
![]() |
Data |
![]() |
Count |
![]() |
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 |