Information on gated mode.
Information on gated mode.
In gated mode, the generator generates (a part of) the selected signal based on the presence of an external signal on a selected trigger input of the generator.
Starting the generator is done using tiepie_hw_generator_start().
A generator trigger input must be enabled.
The following gated modes are supported:
- TIEPIE_HW_GM_GATED : When the generator is started, signal generation is started, but the output remains at the selected offset level until the selected external input signal becomes active. When the external input signal becomes inactive again, the output goes to the selected offset level again.
- TIEPIE_HW_GM_GATED_PERIODS : After the generator is started, signal generation is started at a new period when the selected external input signal becomes active. When the external input signal becomes inactive again, the current period is finalized, signal generation stops and the output goes to the selected Offset.
- TIEPIE_HW_GM_GATED_PERIOD_START : After the generator is started, signal generation is started at a new period when selected external input signal becomes active. When the external input signal becomes inactive again, signal generation immediately stops and the output goes to the selected Offset.
- TIEPIE_HW_GM_GATED_PERIOD_FINISH : When the generator is started, signal generation is started, but the output remains at the selected offset level until the selected external input signal becomes active. When the external input signal becomes inactive again, the current period is finalized and then the generator stops and the output goes to the selected Offset.
- TIEPIE_HW_GM_GATED_RUN : After the generator is started, signal generation is started at a new period when the selected external input signal becomes active. When the external input signal becomes inactive again, signal generation is paused and the output goes to the selected Offset.
- TIEPIE_HW_GM_GATED_RUN_OUTPUT : After the generator is started, signal generation is started at a new period when the selected external input signal becomes active. When the external input signal becomes inactive again, signal generation is paused and the output will remain at the level of the last generated sample.