The processing procedure of sampling mode is showed as the following flowchart.
Please refer to Function
Reference for details of used functions.
And please refer to Sample
Programs of the used development language for details of source code.