Component: SPI (CAL) (Misc)
From Flowcode Help
Jump to navigationJump to search| 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 | |
|  - HANDLE | Return | 
GetList
|   | GetList | 
| returns Named property list | |
|  - STRING | Name | 
|  - STRING | Return | 
GetValue
|   | GetValue | 
| Reads Named property Value. | |
|  - STRING | Name | 
|  - STRING | Return | 
Master_Byte
|   | Master_Byte | 
| Sends and receives a data byte | |
|  - BYTE | DataOut | 
|  - BYTE | Return | 
Master_Disable_CS
|   | Master_Disable_CS | 
| Outputs a high signal to the chip select pin to deselect the remote slave device. | |
|  - VOID | Return | 
Master_Enable_CS
|   | Master_Enable_CS | 
| Outputs a low signal to the chip select pin to select the remote slave device. | |
|  - VOID | Return | 
Master_Init
|   | Master_Init | 
| Initialise the Master | |
|  - BYTE | Return | 
Master_Transaction
Master_Uninit
|   | Master_Uninit | 
| Uninitialise the Master | |
|  - VOID | Return | 
Prv_TextConsole
SetPrescaler
|   | SetPrescaler | 
| Sets the prescaler value for the clock divider chain | |
|  - BYTE | Prescaler | 
|  - VOID | Return | 
SetValue
|   | SetValue | 
| Change Named property to new Value. | |
|  - STRING | Name | 
|  - STRING | Value | 
|  - VOID | Return | 
Slave_Init
|   | Slave_Init | 
| Initialise the Slave | |
|  - VOID | Return | 
Slave_RxByte
|   | Slave_RxByte | 
| Returns the data received from the SPI Master | |
|  - BYTE | Return | 
Slave_TxByte
|   | Slave_TxByte | 
| Sets the data to be transmitted to the SPI master. | |
|  - BYTE | Data | 
|  - VOID | Return | 
Slave_Uninit
|   | Slave_Uninit | 
| Uninitialise the Slave | |
|  - VOID | Return | 






