Component: Bits to Data Queue (DSP Outputs)

From Flowcode Help
Jump to navigationJump to search
Author Matrix Ltd
Version 1.2
Category DSP Outputs


Bits to Data Queue component

Allows data to be input a bit at a time from the DSP system and passed into a buffer. 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_BitsToData.fcfx

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

Detailed description

No detailed description exists yet for this component

Examples

No additional examples









Macro reference

CollectNextDataBit

Fc9-comp-macro.png CollectNextDataBit
Gets the next value from the DSP buffer and attempt to add as a bit to the data queue.  
Fc9-void-icon.png - VOID Return


CountQueueData

Fc9-comp-macro.png CountQueueData
Returns the number of data bytes received and stored in the queue. 
Fc9-u16-icon.png - UINT Return


GetByte

Fc9-comp-macro.png GetByte
Returns a byte value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Fc9-u8-icon.png - BYTE Return


GetByteArray

Fc9-comp-macro.png GetByteArray
Returns an array of byte values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Fc9-u8-icon.png - BYTE Data
 
Fc9-u16-icon.png - UINT Count
 
Fc9-void-icon.png - VOID Return


GetFloat

Fc9-comp-macro.png GetFloat
Returns a float value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Fc9-f32-icon.png - FLOAT Return


GetFloatArray

Fc9-comp-macro.png GetFloatArray
Returns an array of float values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Fc9-f32-icon.png - FLOAT Data
 
Fc9-u16-icon.png - UINT Count
 
Fc9-void-icon.png - VOID Return


GetInt

Fc9-comp-macro.png GetInt
Returns an integer value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Fc9-u16-icon.png - UINT Return


GetIntArray

Fc9-comp-macro.png GetIntArray
Returns an array of integer values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Fc9-u16-icon.png - UINT Data
 
Fc9-u16-icon.png - UINT Count
 
Fc9-void-icon.png - VOID Return


GetLong

Fc9-comp-macro.png GetLong
Returns a long value from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Fc9-u32-icon.png - ULONG Return


GetLongArray

Fc9-comp-macro.png GetLongArray
Returns an array of long values from the specified buffer. Auto increments the read location if the buffer size is greater than 1. 
Fc9-u32-icon.png - ULONG Data
 
Fc9-u16-icon.png - UINT Count
 
Fc9-void-icon.png - VOID Return


GetString

Fc9-comp-macro.png GetString
Collects a string from the receive buffer. 
Fc9-u16-icon.png - UINT MaxLength
Maximum number of characters to try and receive 
Fc9-string-icon.png - STRING Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png DSP Connection Properties
Fc9-type-16-icon.png Connect To
DSP component with output buffer to collect our data from. 
Fc9-conn-icon.png Data Queue Properties
Fc9-type-21-icon.png Buffer Size
Sets the number of byte elements inside the circular buffer. 
Fc9-type-14-icon.png Logic Threshold
If the DSP value is >= the threshold value then a logic 1 will be stored, otherwise a logic 0 will be stored. 
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 writing 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.