Difference between revisions of "Component: ADC (CAL) (Misc)"
From Flowcode Help
Jump to navigationJump to search(2 intermediate revisions by the same user not shown) | |||
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_ADC.fcfx FC_Comp_Source_ADC.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_ADC.fcfx FC_Comp_Source_ADC.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 78: | Line 78: | ||
Example showing how to build a component using a CAL component [[Using_CAL_Components|Using CAL Components]]. | Example showing how to build a component using a CAL component [[Using_CAL_Components|Using CAL Components]]. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
Latest revision as of 10:24, 24 February 2023
Author | Matrix TSL |
Version | 2.0 |
Category | Misc |
Contents
ADC component
CAL - Code Abstraction Layer A low level implementation giving direct access to the analogue to digital converter peripheral.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_ADC.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_ADC.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Example showing how to build a component using a CAL component Using CAL Components.
Macro reference
Disable
![]() |
Disable |
Disables the current ADC channel Call this once sampling is complete | |
![]() |
Return |
Enable
GetList
![]() |
GetList |
![]() |
Name |
![]() |
Return |
GetValue
![]() |
GetValue |
Gets the Name property value | |
![]() |
Name |
The name of the property | |
![]() |
Return |
Sample
![]() |
Sample |
Blocking call to read a sample on the currently enabled channel | |
![]() |
Sample_Mode |
True to enable full-width sample (10 or 12 bits), else false for 8 bit | |
![]() |
Return |
SetValue
![]() |
SetValue |
Sets the Value for the named property | |
![]() |
Name |
Name of property to update | |
![]() |
Value |
The new value for the property | |
![]() |
Return |