Difference between revisions of "Component: SPI (CAL) (Misc)"
From Flowcode Help
Jump to navigationJump to search| Line 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
| − | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_SPI.fcfx FC_Comp_Source_SPI.fcfx] |
| − | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_SPI.fcfx FC_Comp_Source_SPI.fcfx] |
==Detailed description== | ==Detailed description== | ||
| Line 48: | Line 48: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
Revision as of 13:12, 7 February 2023
| Author | Matrix TSL |
| Version | 2.1 |
| Category | Misc |
Contents
SPI component
CAL = Code Abstraction Layer - Allows one code base to run on a wide range of chips. A low level implementation giving direct access to the Serial Peripheral Interface peripheral.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_SPI.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_SPI.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetConsoleHandle
| GetConsoleHandle | |
| Returns a handle to the console used by this component | |
| Return | |
GetList
| GetList | |
| returns Named property list | |
| Name | |
| Return | |
GetValue
| GetValue | |
| Reads Named property Value. | |
| Name | |
| Return | |
Master_Byte
| Master_Byte | |
| Sends and receives a data byte | |
| DataOut | |
| Return | |
Master_Disable_CS
| Master_Disable_CS | |
| Outputs a high signal to the chip select pin to deselect the remote slave device. | |
| Return | |
Master_Enable_CS
| Master_Enable_CS | |
| Outputs a low signal to the chip select pin to select the remote slave device. | |
| Return | |
Master_Init
| Master_Init | |
| Initialise the Master | |
| Return | |
Master_Transaction
Master_Uninit
| Master_Uninit | |
| Uninitialise the Master | |
| Return | |
Prv_TextConsole
SetPrescaler
| SetPrescaler | |
| Sets the prescaler value for the clock divider chain | |
| Prescaler | |
| Return | |
SetValue
| SetValue | |
| Change Named property to new Value. | |
| Name | |
| Value | |
| Return | |
Slave_Init
| Slave_Init | |
| Initialise the Slave | |
| Return | |
Slave_RxByte
| Slave_RxByte | |
| Returns the data received from the SPI Master | |
| Return | |
Slave_TxByte
| Slave_TxByte | |
| Sets the data to be transmitted to the SPI master. | |
| Data | |
| Return | |
Slave_Uninit
| Slave_Uninit | |
| Uninitialise the Slave | |
| Return | |