Difference between revisions of "Component: DSPBuffer (DSP)"
From Flowcode Help
Jump to navigationJump to search (Created page with "{| style="width:50%"  |-  | width="20%" style="color:gray;" | Author  | Matrix TSL  |-  | width="20%" style="color:gray;" | Version  | 1.0  |-  | width="20%" style="color:gray...")  | 
				|||
| Line 16: | Line 16: | ||
==Detailed description==  | ==Detailed description==  | ||
| + | |||
| + | |||
| Line 22: | Line 24: | ||
==Examples==  | ==Examples==  | ||
| + | |||
| + | |||
| Line 161: | Line 165: | ||
|-  | |-  | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''  | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Init'''  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | Initialize the component with the specified properties   | 
|-  | |-  | ||
|-  | |-  | ||
| − | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] -    | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return''  | | width="90%" style="border-top: 2px solid #000;" | ''Return''  | ||
|}  | |}  | ||
| Line 179: | Line 178: | ||
|-  | |-  | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''  | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Uninit'''  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | Un-initialize the UART and release the resources   | 
|-  | |-  | ||
|-  | |-  | ||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] -    | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | 
| width="90%" style="border-top: 2px solid #000;" | ''Return''  | | width="90%" style="border-top: 2px solid #000;" | ''Return''  | ||
|}  | |}  | ||
| Line 192: | Line 191: | ||
|-  | |-  | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''  | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReceiveByteArray'''  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | Receives an array of bytes and returns the number of bytes received.   | 
|-  | |-  | ||
|-  | |-  | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | ||
| − | | width="90%" |   | + | | width="90%" | Data  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | A byte array variable to hold the received data   | 
|-  | |-  | ||
| − | | width="10%" align="center  | + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT  | 
| − | | width="90%  | + | | width="90%" | NumBytes  | 
| − | |||
| − | |||
| − | |||
| − | |||
|-  | |-  | ||
| − | |   | + | | colspan="2" | Maximum number of bytes to try and receive   | 
| − | |||
|-  | |-  | ||
| − | |   | + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT  | 
| + | | width="90%" | Timeout  | ||
|-  | |-  | ||
| + | | colspan="2" | Max amount of time in ms to wait between bytes   | ||
|-  | |-  | ||
| − | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT  | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-  | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return''  | | width="90%" style="border-top: 2px solid #000;" | ''Return''  | ||
|}  | |}  | ||
| Line 228: | Line 219: | ||
|-  | |-  | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''  | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReceiveString'''  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | Receives a string of bytes and returns the number of bytes received.   | 
|-  | |-  | ||
|-  | |-  | ||
| − | | width="10%" align="center" | [[File:Fc9-  | + | | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING  | 
| − | | width="90%" |   | + | | width="90%" | StringData  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" |    | 
|-  | |-  | ||
| width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT  | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT  | ||
| − | | width="90%" |   | + | | width="90%" | NumBytes  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | Maximum number of bytes to try and receive   | 
|-  | |-  | ||
| − | | width="10%" align="center  | + | | width="10%" align="center" | [[File:Fc9-u16-icon.png]] - UINT  | 
| − | | width="90%  | + | | width="90%" | Timeout  | 
| − | |||
| − | |||
| − | |||
| − | |||
|-  | |-  | ||
| − | |   | + | | colspan="2" | Max amount of time in ms to wait between bytes   | 
| − | |||
|-  | |-  | ||
| − | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE  | |
| − | |||
| − | |||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-  | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return''  | | width="90%" style="border-top: 2px solid #000;" | ''Return''  | ||
|}  | |}  | ||
| Line 264: | Line 247: | ||
|-  | |-  | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''  | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Start'''  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | Startup routine required by the hardware device. Automatically clears the display after initialising.   | 
|-  | |-  | ||
|-  | |-  | ||
| − | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:]] -    | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return''  | | width="90%" style="border-top: 2px solid #000;" | ''Return''  | ||
|}  | |}  | ||
| Line 282: | Line 260: | ||
|-  | |-  | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''  | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetLEDState'''  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | Sets the state of a single LED   | 
|-  | |-  | ||
|-  | |-  | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | ||
| − | | width="90%" |   | + | | width="90%" | Port  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | 0 = PortA, 1 = PortB   | 
|-  | |-  | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | ||
| − | | width="90%" |   | + | | width="90%" | LED  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | 0 = LED0, 7 = LED7   | 
|-  | |-  | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | ||
| − | | width="90%" |   | + | | width="90%" | State  | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|-  | |-  | ||
| + | | colspan="2" |    | ||
|-  | |-  | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID  | ||
| Line 323: | Line 288: | ||
|-  | |-  | ||
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]  | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''  | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetRxIdent'''  | 
|-  | |-  | ||
| − | | colspan="2" |   | + | | colspan="2" | Gets the Rx ID as a Integer Standard and Extended IDs.   | 
|-  | |-  | ||
|-  | |-  | ||
| width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | | width="10%" align="center" | [[File:Fc9-u8-icon.png]] - BYTE  | ||
| − | | width="90%" |   | + | | width="90%" | Buffer  | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|-  | |-  | ||
| colspan="2" |    | | colspan="2" |    | ||
|-  | |-  | ||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-  | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u32-icon.png]] - ULONG  | 
| width="90%" style="border-top: 2px solid #000;" | ''Return''  | | width="90%" style="border-top: 2px solid #000;" | ''Return''  | ||
|}  | |}  | ||
Revision as of 10:35, 17 November 2021
| Author | Matrix TSL | 
| Version | 1.0 | 
| Category | DSP | 
Contents
DSPBuffer component
Creates a DSP buffer to be embedded into a DSP component to hold any output values.
Detailed description
No detailed description exists yet for this component
Examples
Some examples containing the Input ADC component.
Downloadable macro reference
| Prv_PutPropStr | |
| Idx | |
| Val | |
| Return | |
| Prv_PutConsole | |
| Idx | |
| [[File:]] - | Val | 
| Return | |
| get | |
| idx | |
| [[File:]] - | Return | 
| put | |
| idx | |
| [[File:]] - | val | 
| Return | |
| Prv_GetPropStr | |
| Idx | |
| Return | |
| Prv_GetConsole | |
| Idx | |
| [[File:]] - | Return | 
| Init | |
| Initialize the component with the specified properties | |
| Return | |
| Uninit | |
| Un-initialize the UART and release the resources | |
| 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 | |
| GetRxIdent | |
| Gets the Rx ID as a Integer Standard and Extended IDs. | |
| Buffer | |
| Return | |
| Initialise | |
| Must be called before any other CAN component macros to enable and initialise the CAN peripheral. | |
| Return | |
Property reference
| Properties | |
| Val | |
| Parent Name | |
| Buffer Size | |
| Buffer Type | |
| Data Recorder Trace | |
| Console | |
| Console Size | |
| Text | |
| Orientation | |
| Enabled | |
| Connections | |
| Simulations | |