Component: Data Queue to Bits (DSP Inputs)

From Flowcode Help
Jump to navigationJump to search
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

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


FetchNextDataBit

Fc9-comp-macro.png FetchNextDataBit
Gets the next stored bit from the data queue. If the data queue is empty then returns the default state. 
Fc9-void-icon.png - VOID Return


QueueByte

Fc9-comp-macro.png QueueByte
Adds a single byte value to the data buffer. 
Fc9-u8-icon.png - BYTE Data
 
Fc9-void-icon.png - VOID Return


QueueByteArray

Fc9-comp-macro.png QueueByteArray
Adds an array of byte values to the data buffer. 
Fc9-u8-icon.png - BYTE Data
 
Fc9-u16-icon.png - UINT Count
 
Fc9-void-icon.png - VOID Return


QueueFloat

Fc9-comp-macro.png QueueFloat
Adds a single float value to the buffer. A 32-bit Float value occupies 4-bytes in the buffer. 
Fc9-f32-icon.png - FLOAT Data
 
Fc9-void-icon.png - VOID Return


QueueFloatArray

Fc9-comp-macro.png QueueFloatArray
Adds an array of float values to the data buffer. A 32-bit Float value occupies 4-bytes in the buffer. 
Fc9-f32-icon.png - FLOAT Data
 
Fc9-u16-icon.png - UINT Count
 
Fc9-void-icon.png - VOID Return


QueueInt

Fc9-comp-macro.png QueueInt
Adds a single integer value to the data buffer. A 16-bit integer value occupies 2-bytes in the buffer. 
Fc9-u16-icon.png - UINT Data
 
Fc9-void-icon.png - VOID Return


QueueIntArray

Fc9-comp-macro.png QueueIntArray
Adds an array of integer values to the data buffer. A 16-bit integer value occupies 2-bytes in the buffer. 
Fc9-u16-icon.png - UINT Data
 
Fc9-u16-icon.png - UINT Count
 
Fc9-void-icon.png - VOID Return


QueueLong

Fc9-comp-macro.png QueueLong
Adds a single long value to the data buffer. A 32-bit integer value occupies 4-bytes in the buffer. 
Fc9-u32-icon.png - ULONG Data
 
Fc9-void-icon.png - VOID Return


QueueLongArray

Fc9-comp-macro.png QueueLongArray
Adds an array of long values to the data buffer. A 32-bit integer value occupies 4-bytes in the buffer. 
Fc9-u32-icon.png - ULONG Data
 
Fc9-u16-icon.png - UINT Count
 
Fc9-void-icon.png - VOID Return


QueueString

Fc9-comp-macro.png QueueString
Adds an string of characters to the data buffer. 
Fc9-string-icon.png - STRING Data
 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png DSP Buffer Properties
Fc9-type-21-icon.png Buffer Size
Number of individual elements the buffer can store, default 1. 
Fc9-type-16-icon.png Buffer Type
Sets the buffer data type, data is automatically scaled to fit and make full use of the data type. 
Fc9-conn-icon.png Data Queue Properties
Fc9-type-21-icon.png Queue Size
Sets the number of byte elements inside the circular buffer. 
Fc9-type-14-icon.png Logic 1 Value
Value passed to the DSP buffer used to represent a set bit in the data queue. 
Fc9-type-14-icon.png Logic 0 Value
Value passed to the DSP buffer used to represent a clear bit in the data queue. 
Fc9-type-21-icon.png 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. 
Fc9-type-16-icon.png Data Order
Selects the bit order to allow the most significant or least significant bit to be sent first. 
Fc9-type-16-icon.png Default State
Value used when the data queue is empty 
Fc9-type-16-icon.png 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.