Jump to content

Component: Data Queue to Bits (DSP Inputs): Difference between revisions

From Flowcode Help
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead""
Line 96: Line 96:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CountQueueData'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CountQueueData'''
|-
|-
Line 115: Line 115:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FetchNextDataBit'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''FetchNextDataBit'''
|-
|-
Line 129: Line 129:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueByte'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueByte'''
|-
|-
Line 148: Line 148:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueByteArray'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueByteArray'''
|-
|-
Line 172: Line 172:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueFloat'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueFloat'''
|-
|-
Line 191: Line 191:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueFloatArray'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueFloatArray'''
|-
|-
Line 215: Line 215:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueInt'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueInt'''
|-
|-
Line 234: Line 234:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueIntArray'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueIntArray'''
|-
|-
Line 258: Line 258:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueLong'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueLong'''
|-
|-
Line 277: Line 277:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueLongArray'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueLongArray'''
|-
|-
Line 301: Line 301:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueString'''
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''QueueString'''
|-
|-

Revision as of 14:17, 13 July 2026

Author Matrix Ltd
Version 1.2
Category DSP Inputs


Data Queue to Bits component

Allows data to be loaded into a buffer and then output a bit at a time into the DSP system. Useful for things like communications where data is modulated and sent out a bit at a time.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_DSP_DataToBits.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_DSP_DataToBits.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples










Macro reference

CountQueueData

CountQueueData
Returns the number of data bytes/bits remaining in the queue. The bit count includes start/stop bits. 
- BOOL CountBits
0=Return Byte Count, 1=Return Bit Count 
- UINT Return


FetchNextDataBit

FetchNextDataBit
Gets the next stored bit from the data queue. If the data queue is empty then returns the default state. 
- VOID Return


QueueByte

QueueByte
Adds a single byte value to the data buffer. 
- BYTE Data
 
- VOID Return


QueueByteArray

QueueByteArray
Adds an array of byte values to the data buffer. 
- BYTE Data
 
- UINT Count
 
- VOID Return


QueueFloat

QueueFloat
Adds a single float value to the buffer. A 32-bit Float value occupies 4-bytes in the buffer. 
- FLOAT Data
 
- VOID Return


QueueFloatArray

QueueFloatArray
Adds an array of float values to the data buffer. A 32-bit Float value occupies 4-bytes in the buffer. 
- FLOAT Data
 
- UINT Count
 
- VOID Return


QueueInt

QueueInt
Adds a single integer value to the data buffer. A 16-bit integer value occupies 2-bytes in the buffer. 
- UINT Data
 
- VOID Return


QueueIntArray

QueueIntArray
Adds an array of integer values to the data buffer. A 16-bit integer value occupies 2-bytes in the buffer. 
- UINT Data
 
- UINT Count
 
- VOID Return


QueueLong

QueueLong
Adds a single long value to the data buffer. A 32-bit integer value occupies 4-bytes in the buffer. 
- ULONG Data
 
- VOID Return


QueueLongArray

QueueLongArray
Adds an array of long values to the data buffer. A 32-bit integer value occupies 4-bytes in the buffer. 
- ULONG Data
 
- UINT Count
 
- VOID Return


QueueString

QueueString
Adds an string of characters to the data buffer. 
- STRING Data
 
- VOID Return


Property reference

Properties
DSP Buffer Properties
Buffer Size
Number of individual elements the buffer can store, default 1. 
Buffer Type
Sets the buffer data type, data is automatically scaled to fit and make full use of the data type. 
Data Queue Properties
Queue Size
Sets the number of byte elements inside the circular buffer. 
Logic 1 Value
Value passed to the DSP buffer used to represent a set bit in the data queue. 
Logic 0 Value
Value passed to the DSP buffer used to represent a clear bit in the data queue. 
Tick Divider
Sometimes you will not want a new data bit every DSP tick. The Tick Divider property allow you to set how many DSP ticks to wait before fetching the next bit from the data buffer. 
Data Order
Selects the bit order to allow the most significant or least significant bit to be sent first. 
Default State
Value used when the data queue is empty 
Data Format
Decides if each byte is sent out as 8-bit, 9-bit or 10-bit packets. The 9-bit and 10-bit packet types will include a start bit that is opposite to the default state. The 10-bit packet types will also include a stop bit that is the same as the default state.