libtiepie-hw
1.1.10
|
Functions to control the generator frequency mode. More...
Functions | |
TIEPIE_HW_API uint32_t | tiepie_hw_generator_get_frequency_modes (tiepie_hw_handle handle) |
Get the supported generator frequency modes of a specified generator. More... | |
TIEPIE_HW_API uint32_t | tiepie_hw_generator_get_frequency_mode (tiepie_hw_handle handle) |
Get the current generator frequency mode of a specified generator. More... | |
TIEPIE_HW_API uint32_t | tiepie_hw_generator_set_frequency_mode (tiepie_hw_handle handle, uint32_t value) |
Set the generator frequency mode of a specified generator. More... | |
Functions to control the generator frequency mode.
When signal type arbitrary is selected, the frequency mode of the Arbitrary waveform generator can be set. The following frequency modes are supported:
With signal types sine, triangle, square and DC, the frequency mode is fixed to signal frequency. With signal type noise the frequency mode is fixed to sample rate.
The frequency mode can be affected by changing the signal type.
By default the frequency mode is set to signal frequency (TIEPIE_HW_FM_SIGNALFREQUENCY)
TIEPIE_HW_API uint32_t tiepie_hw_generator_get_frequency_modes | ( | tiepie_hw_handle | handle | ) |
Get the supported generator frequency modes of a specified generator.
[in] | handle | A device handle identifying the generator. |
TIEPIE_HW_STATUS_NOT_SUPPORTED | The generator does not support frequency mode. |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid generator handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API uint32_t tiepie_hw_generator_get_frequency_mode | ( | tiepie_hw_handle | handle | ) |
Get the current generator frequency mode of a specified generator.
[in] | handle | A device handle identifying the generator. |
TIEPIE_HW_STATUS_NOT_SUPPORTED | The generator does not support frequency mode. |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid generator handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |
TIEPIE_HW_API uint32_t tiepie_hw_generator_set_frequency_mode | ( | tiepie_hw_handle | handle, |
uint32_t | value | ||
) |
Set the generator frequency mode of a specified generator.
[in] | handle | A device handle identifying the generator. |
[in] | value | The requested generator frequency mode, a TIEPIE_HW_FM_* value. |
TIEPIE_HW_STATUS_INVALID_VALUE | The requested frequency mode is invalid. |
TIEPIE_HW_STATUS_NOT_SUPPORTED | The generator does not support generator mode. |
TIEPIE_HW_STATUS_NOT_CONTROLLABLE | |
TIEPIE_HW_STATUS_INVALID_HANDLE | The handle is not a valid generator handle. |
TIEPIE_HW_STATUS_OBJECT_GONE | |
TIEPIE_HW_STATUS_LIBRARY_NOT_INITIALIZED | |
TIEPIE_HW_STATUS_SUCCESS |